Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR hdinsight/data-plane/hdinsight/resource-manager] [HDInsight] - Swagger based job SDK #3318

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// +build go1.9

// Copyright 2018 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 hdinsightapi

import original "github.com/Azure/azure-sdk-for-go/services/preview/hdinsight/2018-11-01-preview/hdinsight/hdinsightapi"

type JobClientAPI = original.JobClientAPI
67 changes: 67 additions & 0 deletions profiles/preview/preview/hdinsight/hdinsight/models.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
// +build go1.9

// Copyright 2018 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 hdinsight

import original "github.com/Azure/azure-sdk-for-go/services/preview/hdinsight/2018-11-01-preview/hdinsight"

type BaseClient = original.BaseClient
type JobClient = original.JobClient
type ApplicationState = original.ApplicationState

const (
ACCEPTED ApplicationState = original.ACCEPTED
FAILED ApplicationState = original.FAILED
FINISHED ApplicationState = original.FINISHED
KILLED ApplicationState = original.KILLED
NEW ApplicationState = original.NEW
NEWSAVING ApplicationState = original.NEWSAVING
RUNNING ApplicationState = original.RUNNING
SUBMITTED ApplicationState = original.SUBMITTED
)

type AppState = original.AppState
type JobDetailRootJSONObject = original.JobDetailRootJSONObject
type JobID = original.JobID
type JobListJSONObject = original.JobListJSONObject
type JobOperationsErrorResponse = original.JobOperationsErrorResponse
type JobSubmissionJSONResponse = original.JobSubmissionJSONResponse
type ListJobListJSONObject = original.ListJobListJSONObject
type Profile = original.Profile
type Status = original.Status
type Userargs = original.Userargs

func New(clusterDNSName string, userName string) BaseClient {
return original.New(clusterDNSName, userName)
}
func NewWithoutDefaults(clusterDNSName string, userName string) BaseClient {
return original.NewWithoutDefaults(clusterDNSName, userName)
}
func NewJobClient(clusterDNSName string, userName string) JobClient {
return original.NewJobClient(clusterDNSName, userName)
}
func PossibleApplicationStateValues() []ApplicationState {
return original.PossibleApplicationStateValues()
}
func UserAgent() string {
return original.UserAgent() + " profiles/preview"
}
func Version() string {
return original.Version()
}
14 changes: 14 additions & 0 deletions profiles/preview/preview/hdinsight/mgmt/hdinsight/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,14 @@ const (
ActiveDirectory DirectoryType = original.ActiveDirectory
)

type JSONWebKeyEncryptionAlgorithm = original.JSONWebKeyEncryptionAlgorithm

const (
RSA15 JSONWebKeyEncryptionAlgorithm = original.RSA15
RSAOAEP JSONWebKeyEncryptionAlgorithm = original.RSAOAEP
RSAOAEP256 JSONWebKeyEncryptionAlgorithm = original.RSAOAEP256
)

type OSType = original.OSType

const (
Expand Down Expand Up @@ -96,6 +104,7 @@ type Cluster = original.Cluster
type ClusterCreateParametersExtended = original.ClusterCreateParametersExtended
type ClusterCreateProperties = original.ClusterCreateProperties
type ClusterDefinition = original.ClusterDefinition
type ClusterDiskEncryptionParameters = original.ClusterDiskEncryptionParameters
type ClusterGetProperties = original.ClusterGetProperties
type ClusterIdentity = original.ClusterIdentity
type ClusterIdentityUserAssignedIdentitiesValue = original.ClusterIdentityUserAssignedIdentitiesValue
Expand All @@ -112,10 +121,12 @@ type ClustersCreateFuture = original.ClustersCreateFuture
type ClustersDeleteFuture = original.ClustersDeleteFuture
type ClustersExecuteScriptActionsFuture = original.ClustersExecuteScriptActionsFuture
type ClustersResizeFuture = original.ClustersResizeFuture
type ClustersRotateDiskEncryptionKeyFuture = original.ClustersRotateDiskEncryptionKeyFuture
type ComputeProfile = original.ComputeProfile
type ConfigurationsUpdateFuture = original.ConfigurationsUpdateFuture
type ConnectivityEndpoint = original.ConnectivityEndpoint
type DataDisksGroups = original.DataDisksGroups
type DiskEncryptionProperties = original.DiskEncryptionProperties
type ErrorResponse = original.ErrorResponse
type Errors = original.Errors
type ExecuteScriptActionParameters = original.ExecuteScriptActionParameters
Expand Down Expand Up @@ -208,6 +219,9 @@ func PossibleClusterProvisioningStateValues() []ClusterProvisioningState {
func PossibleDirectoryTypeValues() []DirectoryType {
return original.PossibleDirectoryTypeValues()
}
func PossibleJSONWebKeyEncryptionAlgorithmValues() []JSONWebKeyEncryptionAlgorithm {
return original.PossibleJSONWebKeyEncryptionAlgorithmValues()
}
func PossibleOSTypeValues() []OSType {
return original.PossibleOSTypeValues()
}
Expand Down
46 changes: 46 additions & 0 deletions services/preview/hdinsight/2018-11-01-preview/hdinsight/client.go

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