Skip to content

Commit

Permalink
[AutoPR customproviders/resource-manager] Add Swagger and Examples fo…
Browse files Browse the repository at this point in the history
…r custom resource provider to Azure (#4707)

* Generated from 6978e76e3cd1985d6084841a96875aa45b9bc1b1

Add Swagger and Examples for custom resource provider to Azure

* Generated from aa7e89837bf343bcfd3766558a6f54fad5b66f66

Apply suggestions from code review

Fix typos in strings for RP.

Co-Authored-By: jjbfour <jobreen@microsoft.com>
  • Loading branch information
2 people authored and jhendrixMSFT committed Apr 30, 2019
1 parent 6988060 commit d4d4094
Show file tree
Hide file tree
Showing 8 changed files with 1,701 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// +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 customprovidersapi

import original "github.com/Azure/azure-sdk-for-go/services/preview/customproviders/mgmt/2018-09-01-preview/customproviders/customprovidersapi"

type CustomResourceProviderClientAPI = original.CustomResourceProviderClientAPI
type OperationsClientAPI = original.OperationsClientAPI
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
// +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 customproviders

import (
"context"

original "github.com/Azure/azure-sdk-for-go/services/preview/customproviders/mgmt/2018-09-01-preview/customproviders"
)

const (
DefaultBaseURI = original.DefaultBaseURI
)

type ActionRouting = original.ActionRouting

const (
Proxy ActionRouting = original.Proxy
)

type ProvisioningState = original.ProvisioningState

const (
Accepted ProvisioningState = original.Accepted
Deleting ProvisioningState = original.Deleting
Failed ProvisioningState = original.Failed
Running ProvisioningState = original.Running
Succeeded ProvisioningState = original.Succeeded
)

type ResourceTypeRouting = original.ResourceTypeRouting

const (
ResourceTypeRoutingProxy ResourceTypeRouting = original.ResourceTypeRoutingProxy
ResourceTypeRoutingProxyCache ResourceTypeRouting = original.ResourceTypeRoutingProxyCache
)

type ValidationType = original.ValidationType

const (
Swagger ValidationType = original.Swagger
)

type BaseClient = original.BaseClient
type CustomRPActionRouteDefinition = original.CustomRPActionRouteDefinition
type CustomRPManifest = original.CustomRPManifest
type CustomRPManifestProperties = original.CustomRPManifestProperties
type CustomRPResourceTypeRouteDefinition = original.CustomRPResourceTypeRouteDefinition
type CustomRPRouteDefinition = original.CustomRPRouteDefinition
type CustomRPValidations = original.CustomRPValidations
type CustomResourceProviderClient = original.CustomResourceProviderClient
type CustomResourceProviderCreateOrUpdateFuture = original.CustomResourceProviderCreateOrUpdateFuture
type CustomResourceProviderDeleteFuture = original.CustomResourceProviderDeleteFuture
type ErrorDefinition = original.ErrorDefinition
type ErrorResponse = original.ErrorResponse
type ListByCustomRPManifest = original.ListByCustomRPManifest
type ListByCustomRPManifestIterator = original.ListByCustomRPManifestIterator
type ListByCustomRPManifestPage = original.ListByCustomRPManifestPage
type OperationsClient = original.OperationsClient
type Resource = original.Resource
type ResourceProviderOperation = original.ResourceProviderOperation
type ResourceProviderOperationDisplay = original.ResourceProviderOperationDisplay
type ResourceProviderOperationList = original.ResourceProviderOperationList
type ResourceProviderOperationListIterator = original.ResourceProviderOperationListIterator
type ResourceProviderOperationListPage = original.ResourceProviderOperationListPage
type ResourceProvidersUpdate = original.ResourceProvidersUpdate

func New(subscriptionID string) BaseClient {
return original.New(subscriptionID)
}
func NewCustomResourceProviderClient(subscriptionID string) CustomResourceProviderClient {
return original.NewCustomResourceProviderClient(subscriptionID)
}
func NewCustomResourceProviderClientWithBaseURI(baseURI string, subscriptionID string) CustomResourceProviderClient {
return original.NewCustomResourceProviderClientWithBaseURI(baseURI, subscriptionID)
}
func NewListByCustomRPManifestIterator(page ListByCustomRPManifestPage) ListByCustomRPManifestIterator {
return original.NewListByCustomRPManifestIterator(page)
}
func NewListByCustomRPManifestPage(getNextPage func(context.Context, ListByCustomRPManifest) (ListByCustomRPManifest, error)) ListByCustomRPManifestPage {
return original.NewListByCustomRPManifestPage(getNextPage)
}
func NewOperationsClient(subscriptionID string) OperationsClient {
return original.NewOperationsClient(subscriptionID)
}
func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient {
return original.NewOperationsClientWithBaseURI(baseURI, subscriptionID)
}
func NewResourceProviderOperationListIterator(page ResourceProviderOperationListPage) ResourceProviderOperationListIterator {
return original.NewResourceProviderOperationListIterator(page)
}
func NewResourceProviderOperationListPage(getNextPage func(context.Context, ResourceProviderOperationList) (ResourceProviderOperationList, error)) ResourceProviderOperationListPage {
return original.NewResourceProviderOperationListPage(getNextPage)
}
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
return original.NewWithBaseURI(baseURI, subscriptionID)
}
func PossibleActionRoutingValues() []ActionRouting {
return original.PossibleActionRoutingValues()
}
func PossibleProvisioningStateValues() []ProvisioningState {
return original.PossibleProvisioningStateValues()
}
func PossibleResourceTypeRoutingValues() []ResourceTypeRouting {
return original.PossibleResourceTypeRoutingValues()
}
func PossibleValidationTypeValues() []ValidationType {
return original.PossibleValidationTypeValues()
}
func UserAgent() string {
return original.UserAgent() + " profiles/preview"
}
func Version() string {
return original.Version()
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d4d4094

Please sign in to comment.