-
Notifications
You must be signed in to change notification settings - Fork 875
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AutoPR customproviders/resource-manager] Add Swagger and Examples fo…
…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
1 parent
6988060
commit d4d4094
Showing
8 changed files
with
1,701 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
profiles/preview/preview/customproviders/mgmt/customproviders/customprovidersapi/models.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
132 changes: 132 additions & 0 deletions
132
profiles/preview/preview/customproviders/mgmt/customproviders/models.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() | ||
} |
51 changes: 51 additions & 0 deletions
51
services/preview/customproviders/mgmt/2018-09-01-preview/customproviders/client.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
42 changes: 42 additions & 0 deletions
42
.../customproviders/mgmt/2018-09-01-preview/customproviders/customprovidersapi/interfaces.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.