diff --git a/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/applications.go b/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/applications.go index bfa320c790c4..aff44ea2a691 100644 --- a/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/applications.go +++ b/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/applications.go @@ -114,7 +114,6 @@ func (client ApplicationsClient) CreateSender(req *http.Request) (future Applica func (client ApplicationsClient) CreateResponder(resp *http.Response) (result Application, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -192,7 +191,6 @@ func (client ApplicationsClient) DeleteSender(req *http.Request) (future Applica func (client ApplicationsClient) DeleteResponder(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 @@ -269,7 +267,6 @@ func (client ApplicationsClient) GetSender(req *http.Request) (*http.Response, e 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()) @@ -346,7 +343,6 @@ func (client ApplicationsClient) ListSender(req *http.Request) (*http.Response, func (client ApplicationsClient) ListResponder(resp *http.Response) (result ApplicationListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/clusters.go b/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/clusters.go index 3c281f614e39..a1c279236af2 100644 --- a/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/clusters.go +++ b/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/clusters.go @@ -113,7 +113,6 @@ func (client ClustersClient) CreateSender(req *http.Request) (future ClustersCre func (client ClustersClient) CreateResponder(resp *http.Response) (result Cluster, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -189,7 +188,6 @@ func (client ClustersClient) DeleteSender(req *http.Request) (future ClustersDel func (client ClustersClient) DeleteResponder(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 @@ -273,7 +271,6 @@ func (client ClustersClient) ExecuteScriptActionsSender(req *http.Request) (futu func (client ClustersClient) ExecuteScriptActionsResponder(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 @@ -348,7 +345,6 @@ func (client ClustersClient) GetSender(req *http.Request) (*http.Response, error func (client ClustersClient) GetResponder(resp *http.Response) (result Cluster, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -424,7 +420,6 @@ func (client ClustersClient) GetGatewaySettingsSender(req *http.Request) (*http. func (client ClustersClient) GetGatewaySettingsResponder(resp *http.Response) (result GatewaySettings, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -496,7 +491,6 @@ func (client ClustersClient) ListSender(req *http.Request) (*http.Response, erro func (client ClustersClient) ListResponder(resp *http.Response) (result ClusterListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -608,7 +602,6 @@ func (client ClustersClient) ListByResourceGroupSender(req *http.Request) (*http func (client ClustersClient) ListByResourceGroupResponder(resp *http.Response) (result ClusterListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -725,7 +718,6 @@ func (client ClustersClient) ResizeSender(req *http.Request) (future ClustersRes func (client ClustersClient) ResizeResponder(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 @@ -803,7 +795,6 @@ func (client ClustersClient) RotateDiskEncryptionKeySender(req *http.Request) (f func (client ClustersClient) RotateDiskEncryptionKeyResponder(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 @@ -881,7 +872,6 @@ func (client ClustersClient) UpdateSender(req *http.Request) (*http.Response, er func (client ClustersClient) UpdateResponder(resp *http.Response) (result Cluster, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -960,7 +950,6 @@ func (client ClustersClient) UpdateGatewaySettingsSender(req *http.Request) (fut func (client ClustersClient) UpdateGatewaySettingsResponder(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 diff --git a/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/configurations.go b/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/configurations.go index 614656a40534..710c2ad64693 100644 --- a/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/configurations.go +++ b/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/configurations.go @@ -113,7 +113,6 @@ func (client ConfigurationsClient) GetSender(req *http.Request) (*http.Response, func (client ConfigurationsClient) GetResponder(resp *http.Response) (result SetString, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result.Value), autorest.ByClosing()) @@ -189,7 +188,6 @@ func (client ConfigurationsClient) ListSender(req *http.Request) (*http.Response func (client ConfigurationsClient) ListResponder(resp *http.Response) (result ClusterConfigurations, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -277,7 +275,6 @@ func (client ConfigurationsClient) UpdateSender(req *http.Request) (future Confi func (client ConfigurationsClient) UpdateResponder(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 diff --git a/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/extension.go b/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/extension.go index 135fb13bfbbd..bd7d044e79a5 100644 --- a/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/extension.go +++ b/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/extension.go @@ -114,7 +114,6 @@ func (client ExtensionClient) CreateSender(req *http.Request) (*http.Response, e func (client ExtensionClient) CreateResponder(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 @@ -191,7 +190,6 @@ func (client ExtensionClient) DeleteSender(req *http.Request) (*http.Response, e func (client ExtensionClient) DeleteResponder(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 @@ -266,7 +264,6 @@ func (client ExtensionClient) DisableMonitoringSender(req *http.Request) (future func (client ExtensionClient) DisableMonitoringResponder(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 @@ -344,7 +341,6 @@ func (client ExtensionClient) EnableMonitoringSender(req *http.Request) (future func (client ExtensionClient) EnableMonitoringResponder(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 @@ -421,7 +417,6 @@ func (client ExtensionClient) GetSender(req *http.Request) (*http.Response, erro func (client ExtensionClient) GetResponder(resp *http.Response) (result Extension, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -497,7 +492,6 @@ func (client ExtensionClient) GetMonitoringStatusSender(req *http.Request) (*htt func (client ExtensionClient) GetMonitoringStatusResponder(resp *http.Response) (result ClusterMonitoringResponse, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/locations.go b/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/locations.go index 282bc76f6961..2bbd918b012f 100644 --- a/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/locations.go +++ b/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/locations.go @@ -107,7 +107,6 @@ func (client LocationsClient) GetCapabilitiesSender(req *http.Request) (*http.Re func (client LocationsClient) GetCapabilitiesResponder(resp *http.Response) (result CapabilitiesResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -181,7 +180,6 @@ func (client LocationsClient) ListBillingSpecsSender(req *http.Request) (*http.R func (client LocationsClient) ListBillingSpecsResponder(resp *http.Response) (result BillingResponseListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -255,7 +253,6 @@ func (client LocationsClient) ListUsagesSender(req *http.Request) (*http.Respons func (client LocationsClient) ListUsagesResponder(resp *http.Response) (result UsagesListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/models.go b/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/models.go index a97cc4b8c0c1..f3c98f5921f2 100644 --- a/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/models.go +++ b/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/models.go @@ -153,6 +153,36 @@ func PossibleOSTypeValues() []OSType { return []OSType{Linux, Windows} } +// OutboundOnlyPublicNetworkAccessType enumerates the values for outbound only public network access type. +type OutboundOnlyPublicNetworkAccessType string + +const ( + // PublicLoadBalancer ... + PublicLoadBalancer OutboundOnlyPublicNetworkAccessType = "PublicLoadBalancer" + // UDR ... + UDR OutboundOnlyPublicNetworkAccessType = "UDR" +) + +// PossibleOutboundOnlyPublicNetworkAccessTypeValues returns an array of possible values for the OutboundOnlyPublicNetworkAccessType const type. +func PossibleOutboundOnlyPublicNetworkAccessTypeValues() []OutboundOnlyPublicNetworkAccessType { + return []OutboundOnlyPublicNetworkAccessType{PublicLoadBalancer, UDR} +} + +// PublicNetworkAccess enumerates the values for public network access. +type PublicNetworkAccess string + +const ( + // InboundAndOutbound ... + InboundAndOutbound PublicNetworkAccess = "InboundAndOutbound" + // OutboundOnly ... + OutboundOnly PublicNetworkAccess = "OutboundOnly" +) + +// PossiblePublicNetworkAccessValues returns an array of possible values for the PublicNetworkAccess const type. +func PossiblePublicNetworkAccessValues() []PublicNetworkAccess { + return []PublicNetworkAccess{InboundAndOutbound, OutboundOnly} +} + // ResourceIdentityType enumerates the values for resource identity type. type ResourceIdentityType string @@ -702,8 +732,12 @@ type ClusterCreateProperties struct { StorageProfile *StorageProfile `json:"storageProfile,omitempty"` // DiskEncryptionProperties - The disk encryption properties. DiskEncryptionProperties *DiskEncryptionProperties `json:"diskEncryptionProperties,omitempty"` + // EncryptionInTransitProperties - The encryption-in-transit properties. + EncryptionInTransitProperties *EncryptionInTransitProperties `json:"encryptionInTransitProperties,omitempty"` // MinSupportedTLSVersion - The minimal supported tls version. MinSupportedTLSVersion *string `json:"minSupportedTlsVersion,omitempty"` + // NetworkSettings - The network settings. + NetworkSettings *NetworkSettings `json:"networkSettings,omitempty"` } // ClusterDefinition the cluster definition. @@ -776,8 +810,12 @@ type ClusterGetProperties struct { ConnectivityEndpoints *[]ConnectivityEndpoint `json:"connectivityEndpoints,omitempty"` // DiskEncryptionProperties - The disk encryption properties. DiskEncryptionProperties *DiskEncryptionProperties `json:"diskEncryptionProperties,omitempty"` + // EncryptionInTransitProperties - The encryption-in-transit properties. + EncryptionInTransitProperties *EncryptionInTransitProperties `json:"encryptionInTransitProperties,omitempty"` // MinSupportedTLSVersion - The minimal supported tls version. MinSupportedTLSVersion *string `json:"minSupportedTlsVersion,omitempty"` + // NetworkSettings - The network settings. + NetworkSettings *NetworkSettings `json:"networkSettings,omitempty"` } // ClusterIdentity identity for the cluster. @@ -1229,6 +1267,14 @@ type DiskEncryptionProperties struct { EncryptionAlgorithm JSONWebKeyEncryptionAlgorithm `json:"encryptionAlgorithm,omitempty"` // MsiResourceID - Resource ID of Managed Identity that is used to access the key vault. MsiResourceID *string `json:"msiResourceId,omitempty"` + // EncryptionAtHost - Indicates whether or not resource disk encryption is enabled. + EncryptionAtHost *bool `json:"encryptionAtHost,omitempty"` +} + +// EncryptionInTransitProperties the encryption-in-transit properties. +type EncryptionInTransitProperties struct { + // IsEncryptionInTransitEnabled - Indicates whether or not inter cluster node communication is encrypted in transit. + IsEncryptionInTransitEnabled *bool `json:"isEncryptionInTransitEnabled,omitempty"` } // ErrorResponse describes the format of Error response. @@ -1351,6 +1397,14 @@ type LocalizedName struct { LocalizedValue *string `json:"localizedValue,omitempty"` } +// NetworkSettings the network settings. +type NetworkSettings struct { + // PublicNetworkAccess - Specifies whether public network access is enabled for inbound and outbound, or outbound only. Possible values include: 'InboundAndOutbound', 'OutboundOnly' + PublicNetworkAccess PublicNetworkAccess `json:"publicNetworkAccess,omitempty"` + // OutboundOnlyPublicNetworkAccessType - The mechanism through which the cluster will have outbound access to the public network. Possible values include: 'PublicLoadBalancer', 'UDR' + OutboundOnlyPublicNetworkAccessType OutboundOnlyPublicNetworkAccessType `json:"outboundOnlyPublicNetworkAccessType,omitempty"` +} + // Operation the HDInsight REST API operation. type Operation struct { // Name - The operation name: {provider}/{resource}/{operation} diff --git a/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/operations.go b/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/operations.go index dda2283af9fa..59f9c0c06598 100644 --- a/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/operations.go +++ b/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/operations.go @@ -101,7 +101,6 @@ func (client OperationsClient) ListSender(req *http.Request) (*http.Response, er 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()) diff --git a/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/scriptactions.go b/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/scriptactions.go index da2fefd563c0..e73642c8d1b9 100644 --- a/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/scriptactions.go +++ b/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/scriptactions.go @@ -111,7 +111,6 @@ func (client ScriptActionsClient) DeleteSender(req *http.Request) (*http.Respons func (client ScriptActionsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByClosing()) result.Response = resp @@ -188,7 +187,6 @@ func (client ScriptActionsClient) GetExecutionDetailSender(req *http.Request) (* func (client ScriptActionsClient) GetExecutionDetailResponder(resp *http.Response) (result RuntimeScriptActionDetail, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -265,7 +263,6 @@ func (client ScriptActionsClient) ListPersistedScriptsSender(req *http.Request) func (client ScriptActionsClient) ListPersistedScriptsResponder(resp *http.Response) (result ScriptActionsList, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/scriptexecutionhistory.go b/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/scriptexecutionhistory.go index e91eac36d9d4..fc96eb281992 100644 --- a/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/scriptexecutionhistory.go +++ b/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/scriptexecutionhistory.go @@ -111,7 +111,6 @@ func (client ScriptExecutionHistoryClient) ListSender(req *http.Request) (*http. func (client ScriptExecutionHistoryClient) ListResponder(resp *http.Response) (result ScriptActionExecutionHistoryList, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -226,7 +225,6 @@ func (client ScriptExecutionHistoryClient) PromoteSender(req *http.Request) (*ht func (client ScriptExecutionHistoryClient) PromoteResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByClosing()) result.Response = resp diff --git a/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/version.go b/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/version.go index 9c7fa1aee6a9..d31520644f89 100644 --- a/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/version.go +++ b/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/version.go @@ -21,7 +21,7 @@ import "github.com/Azure/azure-sdk-for-go/version" // UserAgent returns the UserAgent string to use when sending http.Requests. func UserAgent() string { - return "Azure-SDK-For-Go/" + version.Number + " hdinsight/2015-03-01-preview" + return "Azure-SDK-For-Go/" + Version() + " hdinsight/2015-03-01-preview" } // Version returns the semantic version (see http://semver.org) of the client.