diff --git a/services/databricks/mgmt/2018-04-01/databricks/CHANGELOG.md b/services/databricks/mgmt/2018-04-01/databricks/CHANGELOG.md index 52911e4cc5e4..adca1966b23d 100644 --- a/services/databricks/mgmt/2018-04-01/databricks/CHANGELOG.md +++ b/services/databricks/mgmt/2018-04-01/databricks/CHANGELOG.md @@ -1,2 +1,20 @@ -# Change History +# Unreleased +## Additive Changes + +### New Funcs + +1. WorkspaceCustomParameters.MarshalJSON() ([]byte, error) + +### Struct Changes + +#### New Struct Fields + +1. WorkspaceCustomParameters.LoadBalancerBackendPoolName +1. WorkspaceCustomParameters.LoadBalancerID +1. WorkspaceCustomParameters.NatGatewayName +1. WorkspaceCustomParameters.PublicIPName +1. WorkspaceCustomParameters.ResourceTags +1. WorkspaceCustomParameters.StorageAccountName +1. WorkspaceCustomParameters.StorageAccountSkuName +1. WorkspaceCustomParameters.VnetAddressPrefix diff --git a/services/databricks/mgmt/2018-04-01/databricks/_meta.json b/services/databricks/mgmt/2018-04-01/databricks/_meta.json index 8fbb37506330..c105d9b2c65e 100644 --- a/services/databricks/mgmt/2018-04-01/databricks/_meta.json +++ b/services/databricks/mgmt/2018-04-01/databricks/_meta.json @@ -1,5 +1,5 @@ { - "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", + "commit": "33de1e86182c9e74865ebcb2c9f6245774e09ab2", "readme": "/_/azure-rest-api-specs/specification/databricks/resource-manager/readme.md", "tag": "package-2018-04-01", "use": "@microsoft.azure/autorest.go@2.1.187", diff --git a/services/databricks/mgmt/2018-04-01/databricks/client.go b/services/databricks/mgmt/2018-04-01/databricks/client.go index 2c8f51306abf..649e1e4af056 100644 --- a/services/databricks/mgmt/2018-04-01/databricks/client.go +++ b/services/databricks/mgmt/2018-04-01/databricks/client.go @@ -1,6 +1,6 @@ // Package databricks implements the Azure ARM Databricks service API version 2018-04-01. // -// ARM Databricks +// The Microsoft Azure management APIs allow end users to operate on Azure Databricks Workspace resources. package databricks // Copyright (c) Microsoft Corporation. All rights reserved. diff --git a/services/databricks/mgmt/2018-04-01/databricks/databricksapi/interfaces.go b/services/databricks/mgmt/2018-04-01/databricks/databricksapi/interfaces.go index b739daa627a5..32f6370cd096 100644 --- a/services/databricks/mgmt/2018-04-01/databricks/databricksapi/interfaces.go +++ b/services/databricks/mgmt/2018-04-01/databricks/databricksapi/interfaces.go @@ -25,6 +25,14 @@ type WorkspacesClientAPI interface { var _ WorkspacesClientAPI = (*databricks.WorkspacesClient)(nil) +// OperationsClientAPI contains the set of methods on the OperationsClient type. +type OperationsClientAPI interface { + List(ctx context.Context) (result databricks.OperationListResultPage, err error) + ListComplete(ctx context.Context) (result databricks.OperationListResultIterator, err error) +} + +var _ OperationsClientAPI = (*databricks.OperationsClient)(nil) + // VNetPeeringClientAPI contains the set of methods on the VNetPeeringClient type. type VNetPeeringClientAPI interface { CreateOrUpdate(ctx context.Context, virtualNetworkPeeringParameters databricks.VirtualNetworkPeering, resourceGroupName string, workspaceName string, peeringName string) (result databricks.VNetPeeringCreateOrUpdateFuture, err error) @@ -35,11 +43,3 @@ type VNetPeeringClientAPI interface { } var _ VNetPeeringClientAPI = (*databricks.VNetPeeringClient)(nil) - -// OperationsClientAPI contains the set of methods on the OperationsClient type. -type OperationsClientAPI interface { - List(ctx context.Context) (result databricks.OperationListResultPage, err error) - ListComplete(ctx context.Context) (result databricks.OperationListResultIterator, err error) -} - -var _ OperationsClientAPI = (*databricks.OperationsClient)(nil) diff --git a/services/databricks/mgmt/2018-04-01/databricks/models.go b/services/databricks/mgmt/2018-04-01/databricks/models.go index 58d1f4a4d9e8..41f6b42dbb91 100644 --- a/services/databricks/mgmt/2018-04-01/databricks/models.go +++ b/services/databricks/mgmt/2018-04-01/databricks/models.go @@ -853,12 +853,79 @@ type WorkspaceCustomParameters struct { CustomPrivateSubnetName *WorkspaceCustomStringParameter `json:"customPrivateSubnetName,omitempty"` // EnableNoPublicIP - Should the Public IP be Disabled? EnableNoPublicIP *WorkspaceCustomBooleanParameter `json:"enableNoPublicIp,omitempty"` + // LoadBalancerBackendPoolName - Name of the outbound Load Balancer Backend Pool for Secure Cluster Connectivity (No Public IP). + LoadBalancerBackendPoolName *WorkspaceCustomStringParameter `json:"loadBalancerBackendPoolName,omitempty"` + // LoadBalancerID - Resource URI of Outbound Load balancer for Secure Cluster Connectivity (No Public IP) workspace. + LoadBalancerID *WorkspaceCustomStringParameter `json:"loadBalancerId,omitempty"` + // NatGatewayName - Name of the NAT gateway for Secure Cluster Connectivity (No Public IP) workspace subnets. + NatGatewayName *WorkspaceCustomStringParameter `json:"natGatewayName,omitempty"` + // PublicIPName - Name of the Public IP for No Public IP workspace with managed vNet. + PublicIPName *WorkspaceCustomStringParameter `json:"publicIpName,omitempty"` // PrepareEncryption - Prepare the workspace for encryption. Enables the Managed Identity for managed storage account. PrepareEncryption *WorkspaceCustomBooleanParameter `json:"prepareEncryption,omitempty"` // Encryption - Contains the encryption details for Customer-Managed Key (CMK) enabled workspace. Encryption *WorkspaceEncryptionParameter `json:"encryption,omitempty"` // RequireInfrastructureEncryption - A boolean indicating whether or not the DBFS root file system will be enabled with secondary layer of encryption with platform managed keys for data at rest. RequireInfrastructureEncryption *WorkspaceCustomBooleanParameter `json:"requireInfrastructureEncryption,omitempty"` + // StorageAccountName - Default DBFS storage account name. + StorageAccountName *WorkspaceCustomStringParameter `json:"storageAccountName,omitempty"` + // StorageAccountSkuName - Storage account SKU name, ex: Standard_GRS, Standard_LRS. Refer https://aka.ms/storageskus for valid inputs. + StorageAccountSkuName *WorkspaceCustomStringParameter `json:"storageAccountSkuName,omitempty"` + // VnetAddressPrefix - Address prefix for Managed virtual network. Default value for this input is 10.139. + VnetAddressPrefix *WorkspaceCustomStringParameter `json:"vnetAddressPrefix,omitempty"` + // ResourceTags - READ-ONLY; Tags applied to resources under Managed resource group. These can be updated by updating tags at workspace level. + ResourceTags *WorkspaceCustomObjectParameter `json:"resourceTags,omitempty"` +} + +// MarshalJSON is the custom marshaler for WorkspaceCustomParameters. +func (wcp WorkspaceCustomParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if wcp.AmlWorkspaceID != nil { + objectMap["amlWorkspaceId"] = wcp.AmlWorkspaceID + } + if wcp.CustomVirtualNetworkID != nil { + objectMap["customVirtualNetworkId"] = wcp.CustomVirtualNetworkID + } + if wcp.CustomPublicSubnetName != nil { + objectMap["customPublicSubnetName"] = wcp.CustomPublicSubnetName + } + if wcp.CustomPrivateSubnetName != nil { + objectMap["customPrivateSubnetName"] = wcp.CustomPrivateSubnetName + } + if wcp.EnableNoPublicIP != nil { + objectMap["enableNoPublicIp"] = wcp.EnableNoPublicIP + } + if wcp.LoadBalancerBackendPoolName != nil { + objectMap["loadBalancerBackendPoolName"] = wcp.LoadBalancerBackendPoolName + } + if wcp.LoadBalancerID != nil { + objectMap["loadBalancerId"] = wcp.LoadBalancerID + } + if wcp.NatGatewayName != nil { + objectMap["natGatewayName"] = wcp.NatGatewayName + } + if wcp.PublicIPName != nil { + objectMap["publicIpName"] = wcp.PublicIPName + } + if wcp.PrepareEncryption != nil { + objectMap["prepareEncryption"] = wcp.PrepareEncryption + } + if wcp.Encryption != nil { + objectMap["encryption"] = wcp.Encryption + } + if wcp.RequireInfrastructureEncryption != nil { + objectMap["requireInfrastructureEncryption"] = wcp.RequireInfrastructureEncryption + } + if wcp.StorageAccountName != nil { + objectMap["storageAccountName"] = wcp.StorageAccountName + } + if wcp.StorageAccountSkuName != nil { + objectMap["storageAccountSkuName"] = wcp.StorageAccountSkuName + } + if wcp.VnetAddressPrefix != nil { + objectMap["vnetAddressPrefix"] = wcp.VnetAddressPrefix + } + return json.Marshal(objectMap) } // WorkspaceCustomStringParameter the Value. diff --git a/services/databricks/mgmt/2018-04-01/databricks/operations.go b/services/databricks/mgmt/2018-04-01/databricks/operations.go index 64e25deece85..c2d4d44e44a2 100644 --- a/services/databricks/mgmt/2018-04-01/databricks/operations.go +++ b/services/databricks/mgmt/2018-04-01/databricks/operations.go @@ -14,7 +14,8 @@ import ( "net/http" ) -// OperationsClient is the ARM Databricks +// OperationsClient is the the Microsoft Azure management APIs allow end users to operate on Azure Databricks Workspace +// resources. type OperationsClient struct { BaseClient } diff --git a/services/databricks/mgmt/2018-04-01/databricks/vnetpeering.go b/services/databricks/mgmt/2018-04-01/databricks/vnetpeering.go index 7d974b0037c1..e3991ed0138f 100644 --- a/services/databricks/mgmt/2018-04-01/databricks/vnetpeering.go +++ b/services/databricks/mgmt/2018-04-01/databricks/vnetpeering.go @@ -15,7 +15,8 @@ import ( "net/http" ) -// VNetPeeringClient is the ARM Databricks +// VNetPeeringClient is the the Microsoft Azure management APIs allow end users to operate on Azure Databricks +// Workspace resources. type VNetPeeringClient struct { BaseClient } diff --git a/services/databricks/mgmt/2018-04-01/databricks/workspaces.go b/services/databricks/mgmt/2018-04-01/databricks/workspaces.go index 172a4661de08..2c3153db83fc 100644 --- a/services/databricks/mgmt/2018-04-01/databricks/workspaces.go +++ b/services/databricks/mgmt/2018-04-01/databricks/workspaces.go @@ -15,7 +15,8 @@ import ( "net/http" ) -// WorkspacesClient is the ARM Databricks +// WorkspacesClient is the the Microsoft Azure management APIs allow end users to operate on Azure Databricks Workspace +// resources. type WorkspacesClient struct { BaseClient } @@ -62,10 +63,26 @@ func (client WorkspacesClient) CreateOrUpdate(ctx context.Context, parameters Wo Chain: []validation.Constraint{{Target: "parameters.WorkspaceProperties.Parameters.CustomPrivateSubnetName.Value", Name: validation.Null, Rule: true, Chain: nil}}}, {Target: "parameters.WorkspaceProperties.Parameters.EnableNoPublicIP", Name: validation.Null, Rule: false, Chain: []validation.Constraint{{Target: "parameters.WorkspaceProperties.Parameters.EnableNoPublicIP.Value", Name: validation.Null, Rule: true, Chain: nil}}}, + {Target: "parameters.WorkspaceProperties.Parameters.LoadBalancerBackendPoolName", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.WorkspaceProperties.Parameters.LoadBalancerBackendPoolName.Value", Name: validation.Null, Rule: true, Chain: nil}}}, + {Target: "parameters.WorkspaceProperties.Parameters.LoadBalancerID", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.WorkspaceProperties.Parameters.LoadBalancerID.Value", Name: validation.Null, Rule: true, Chain: nil}}}, + {Target: "parameters.WorkspaceProperties.Parameters.NatGatewayName", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.WorkspaceProperties.Parameters.NatGatewayName.Value", Name: validation.Null, Rule: true, Chain: nil}}}, + {Target: "parameters.WorkspaceProperties.Parameters.PublicIPName", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.WorkspaceProperties.Parameters.PublicIPName.Value", Name: validation.Null, Rule: true, Chain: nil}}}, {Target: "parameters.WorkspaceProperties.Parameters.PrepareEncryption", Name: validation.Null, Rule: false, Chain: []validation.Constraint{{Target: "parameters.WorkspaceProperties.Parameters.PrepareEncryption.Value", Name: validation.Null, Rule: true, Chain: nil}}}, {Target: "parameters.WorkspaceProperties.Parameters.RequireInfrastructureEncryption", Name: validation.Null, Rule: false, Chain: []validation.Constraint{{Target: "parameters.WorkspaceProperties.Parameters.RequireInfrastructureEncryption.Value", Name: validation.Null, Rule: true, Chain: nil}}}, + {Target: "parameters.WorkspaceProperties.Parameters.StorageAccountName", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.WorkspaceProperties.Parameters.StorageAccountName.Value", Name: validation.Null, Rule: true, Chain: nil}}}, + {Target: "parameters.WorkspaceProperties.Parameters.StorageAccountSkuName", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.WorkspaceProperties.Parameters.StorageAccountSkuName.Value", Name: validation.Null, Rule: true, Chain: nil}}}, + {Target: "parameters.WorkspaceProperties.Parameters.VnetAddressPrefix", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.WorkspaceProperties.Parameters.VnetAddressPrefix.Value", Name: validation.Null, Rule: true, Chain: nil}}}, + {Target: "parameters.WorkspaceProperties.Parameters.ResourceTags", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.WorkspaceProperties.Parameters.ResourceTags.Value", Name: validation.Null, Rule: true, Chain: nil}}}, }}, }}, {Target: "parameters.Sku", Name: validation.Null, Rule: false, diff --git a/services/labservices/mgmt/2018-10-15/labservices/CHANGELOG.md b/services/labservices/mgmt/2018-10-15/labservices/CHANGELOG.md index 52911e4cc5e4..a1ecf841edb0 100644 --- a/services/labservices/mgmt/2018-10-15/labservices/CHANGELOG.md +++ b/services/labservices/mgmt/2018-10-15/labservices/CHANGELOG.md @@ -1,2 +1,2 @@ -# Change History +# Unreleased diff --git a/services/labservices/mgmt/2018-10-15/labservices/_meta.json b/services/labservices/mgmt/2018-10-15/labservices/_meta.json index 6ffbaab846ad..984578752ef8 100644 --- a/services/labservices/mgmt/2018-10-15/labservices/_meta.json +++ b/services/labservices/mgmt/2018-10-15/labservices/_meta.json @@ -1,5 +1,5 @@ { - "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", + "commit": "33de1e86182c9e74865ebcb2c9f6245774e09ab2", "readme": "/_/azure-rest-api-specs/specification/labservices/resource-manager/readme.md", "tag": "package-2018-10", "use": "@microsoft.azure/autorest.go@2.1.187", diff --git a/services/preview/databricks/mgmt/2021-04-01-preview/databricks/CHANGELOG.md b/services/preview/databricks/mgmt/2021-04-01-preview/databricks/CHANGELOG.md index 52911e4cc5e4..1c273556ed13 100644 --- a/services/preview/databricks/mgmt/2021-04-01-preview/databricks/CHANGELOG.md +++ b/services/preview/databricks/mgmt/2021-04-01-preview/databricks/CHANGELOG.md @@ -1,2 +1,22 @@ -# Change History +# Unreleased +## Additive Changes + +### New Funcs + +1. NewOutboundNetworkDependenciesEndpointsClient(string) OutboundNetworkDependenciesEndpointsClient +1. NewOutboundNetworkDependenciesEndpointsClientWithBaseURI(string, string) OutboundNetworkDependenciesEndpointsClient +1. OutboundNetworkDependenciesEndpointsClient.List(context.Context, string, string) (ListOutboundEnvironmentEndpoint, error) +1. OutboundNetworkDependenciesEndpointsClient.ListPreparer(context.Context, string, string) (*http.Request, error) +1. OutboundNetworkDependenciesEndpointsClient.ListResponder(*http.Response) (ListOutboundEnvironmentEndpoint, error) +1. OutboundNetworkDependenciesEndpointsClient.ListSender(*http.Request) (*http.Response, error) + +### Struct Changes + +#### New Structs + +1. EndpointDependency +1. EndpointDetail +1. ListOutboundEnvironmentEndpoint +1. OutboundEnvironmentEndpoint +1. OutboundNetworkDependenciesEndpointsClient diff --git a/services/preview/databricks/mgmt/2021-04-01-preview/databricks/_meta.json b/services/preview/databricks/mgmt/2021-04-01-preview/databricks/_meta.json index 7d526096b4bf..f43f03a25fc0 100644 --- a/services/preview/databricks/mgmt/2021-04-01-preview/databricks/_meta.json +++ b/services/preview/databricks/mgmt/2021-04-01-preview/databricks/_meta.json @@ -1,5 +1,5 @@ { - "commit": "2b0b50e3e5bd467aa039a51cafa2a071593eca28", + "commit": "33de1e86182c9e74865ebcb2c9f6245774e09ab2", "readme": "/_/azure-rest-api-specs/specification/databricks/resource-manager/readme.md", "tag": "package-2021-04-01-preview", "use": "@microsoft.azure/autorest.go@2.1.187", diff --git a/services/preview/databricks/mgmt/2021-04-01-preview/databricks/client.go b/services/preview/databricks/mgmt/2021-04-01-preview/databricks/client.go index 6c57631b61e0..3dcdbb824531 100644 --- a/services/preview/databricks/mgmt/2021-04-01-preview/databricks/client.go +++ b/services/preview/databricks/mgmt/2021-04-01-preview/databricks/client.go @@ -1,4 +1,4 @@ -// Package databricks implements the Azure ARM Databricks service API version . +// Package databricks implements the Azure ARM Databricks service API version 2021-04-01-preview. // // The Microsoft Azure management APIs allow end users to operate on Azure Databricks Workspace resources. package databricks diff --git a/services/preview/databricks/mgmt/2021-04-01-preview/databricks/databricksapi/interfaces.go b/services/preview/databricks/mgmt/2021-04-01-preview/databricks/databricksapi/interfaces.go index 3399dfafa457..4e36e0b4a8a2 100644 --- a/services/preview/databricks/mgmt/2021-04-01-preview/databricks/databricksapi/interfaces.go +++ b/services/preview/databricks/mgmt/2021-04-01-preview/databricks/databricksapi/interfaces.go @@ -53,6 +53,13 @@ type PrivateEndpointConnectionsClientAPI interface { var _ PrivateEndpointConnectionsClientAPI = (*databricks.PrivateEndpointConnectionsClient)(nil) +// OutboundNetworkDependenciesEndpointsClientAPI contains the set of methods on the OutboundNetworkDependenciesEndpointsClient type. +type OutboundNetworkDependenciesEndpointsClientAPI interface { + List(ctx context.Context, resourceGroupName string, workspaceName string) (result databricks.ListOutboundEnvironmentEndpoint, err error) +} + +var _ OutboundNetworkDependenciesEndpointsClientAPI = (*databricks.OutboundNetworkDependenciesEndpointsClient)(nil) + // VNetPeeringClientAPI contains the set of methods on the VNetPeeringClient type. type VNetPeeringClientAPI interface { CreateOrUpdate(ctx context.Context, virtualNetworkPeeringParameters databricks.VirtualNetworkPeering, resourceGroupName string, workspaceName string, peeringName string) (result databricks.VNetPeeringCreateOrUpdateFuture, err error) diff --git a/services/preview/databricks/mgmt/2021-04-01-preview/databricks/models.go b/services/preview/databricks/mgmt/2021-04-01-preview/databricks/models.go index 589bc4b44784..27fa1672624f 100644 --- a/services/preview/databricks/mgmt/2021-04-01-preview/databricks/models.go +++ b/services/preview/databricks/mgmt/2021-04-01-preview/databricks/models.go @@ -80,6 +80,26 @@ type EncryptionV2KeyVaultProperties struct { KeyVersion *string `json:"keyVersion,omitempty"` } +// EndpointDependency a domain name or IP address the Workspace is reaching at. +type EndpointDependency struct { + // DomainName - The domain name of the dependency. + DomainName *string `json:"domainName,omitempty"` + // EndpointDetails - The Ports used when connecting to domainName. + EndpointDetails *[]EndpointDetail `json:"endpointDetails,omitempty"` +} + +// EndpointDetail connect information from the Workspace to a single endpoint. +type EndpointDetail struct { + // IPAddress - An IP Address that Domain Name currently resolves to. + IPAddress *string `json:"ipAddress,omitempty"` + // Port - The port an endpoint is connected to. + Port *int32 `json:"port,omitempty"` + // Latency - The time in milliseconds it takes for the connection to be created from the Workspace to this IpAddress at this Port. + Latency *float64 `json:"latency,omitempty"` + // IsAccessible - Whether it is possible to create a connection from the Workspace to this IpAddress at this Port. + IsAccessible *bool `json:"isAccessible,omitempty"` +} + // ErrorDetail ... type ErrorDetail struct { // Code - The error's code. @@ -140,6 +160,12 @@ type GroupIDInformationProperties struct { RequiredZoneNames *[]string `json:"requiredZoneNames,omitempty"` } +// ListOutboundEnvironmentEndpoint ... +type ListOutboundEnvironmentEndpoint struct { + autorest.Response `json:"-"` + Value *[]OutboundEnvironmentEndpoint `json:"value,omitempty"` +} + // ManagedIdentityConfiguration the Managed Identity details for storage account. type ManagedIdentityConfiguration struct { // PrincipalID - READ-ONLY; The objectId of the Managed Identity that is linked to the Managed Storage account. @@ -334,6 +360,14 @@ func NewOperationListResultPage(cur OperationListResult, getNextPage func(contex } } +// OutboundEnvironmentEndpoint egress endpoints which Workspace connects to for common purposes. +type OutboundEnvironmentEndpoint struct { + // Category - The category of endpoints accessed by the Workspace, e.g. azure-storage, azure-mysql, etc. + Category *string `json:"category,omitempty"` + // Endpoints - The endpoints that Workspace connect to + Endpoints *[]EndpointDependency `json:"endpoints,omitempty"` +} + // PrivateEndpoint the private endpoint property of a private endpoint connection type PrivateEndpoint struct { // ID - READ-ONLY; The resource identifier. diff --git a/services/preview/databricks/mgmt/2021-04-01-preview/databricks/outboundnetworkdependenciesendpoints.go b/services/preview/databricks/mgmt/2021-04-01-preview/databricks/outboundnetworkdependenciesendpoints.go new file mode 100644 index 000000000000..96b5fcca68f4 --- /dev/null +++ b/services/preview/databricks/mgmt/2021-04-01-preview/databricks/outboundnetworkdependenciesendpoints.go @@ -0,0 +1,124 @@ +package databricks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// 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" +) + +// OutboundNetworkDependenciesEndpointsClient is the the Microsoft Azure management APIs allow end users to operate on +// Azure Databricks Workspace resources. +type OutboundNetworkDependenciesEndpointsClient struct { + BaseClient +} + +// NewOutboundNetworkDependenciesEndpointsClient creates an instance of the OutboundNetworkDependenciesEndpointsClient +// client. +func NewOutboundNetworkDependenciesEndpointsClient(subscriptionID string) OutboundNetworkDependenciesEndpointsClient { + return NewOutboundNetworkDependenciesEndpointsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewOutboundNetworkDependenciesEndpointsClientWithBaseURI creates an instance of the +// OutboundNetworkDependenciesEndpointsClient client using a custom endpoint. Use this when interacting with an Azure +// cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewOutboundNetworkDependenciesEndpointsClientWithBaseURI(baseURI string, subscriptionID string) OutboundNetworkDependenciesEndpointsClient { + return OutboundNetworkDependenciesEndpointsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// List gets the list of endpoints that VNET Injected Workspace calls Azure Databricks Control Plane. You must +// configure outbound access with these endpoints. For more information, see +// https://docs.microsoft.com/en-us/azure/databricks/administration-guide/cloud-configurations/azure/udr +// Parameters: +// resourceGroupName - the name of the resource group. The name is case insensitive. +// workspaceName - the name of the workspace. +func (client OutboundNetworkDependenciesEndpointsClient) List(ctx context.Context, resourceGroupName string, workspaceName string) (result ListOutboundEnvironmentEndpoint, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OutboundNetworkDependenciesEndpointsClient.List") + 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: 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: workspaceName, + Constraints: []validation.Constraint{{Target: "workspaceName", Name: validation.MaxLength, Rule: 64, Chain: nil}, + {Target: "workspaceName", Name: validation.MinLength, Rule: 3, Chain: nil}}}}); err != nil { + return result, validation.NewError("databricks.OutboundNetworkDependenciesEndpointsClient", "List", err.Error()) + } + + req, err := client.ListPreparer(ctx, resourceGroupName, workspaceName) + if err != nil { + err = autorest.NewErrorWithError(err, "databricks.OutboundNetworkDependenciesEndpointsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "databricks.OutboundNetworkDependenciesEndpointsClient", "List", resp, "Failure sending request") + return + } + + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "databricks.OutboundNetworkDependenciesEndpointsClient", "List", resp, "Failure responding to request") + return + } + + return +} + +// ListPreparer prepares the List request. +func (client OutboundNetworkDependenciesEndpointsClient) ListPreparer(ctx context.Context, resourceGroupName string, workspaceName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "workspaceName": autorest.Encode("path", workspaceName), + } + + const APIVersion = "2021-04-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.Databricks/workspaces/{workspaceName}/outboundNetworkDependenciesEndpoints", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client OutboundNetworkDependenciesEndpointsClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client OutboundNetworkDependenciesEndpointsClient) ListResponder(resp *http.Response) (result ListOutboundEnvironmentEndpoint, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result.Value), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/preview/databricks/mgmt/2021-04-01-preview/databricks/vnetpeering.go b/services/preview/databricks/mgmt/2021-04-01-preview/databricks/vnetpeering.go index e3991ed0138f..3d54ad92f841 100644 --- a/services/preview/databricks/mgmt/2021-04-01-preview/databricks/vnetpeering.go +++ b/services/preview/databricks/mgmt/2021-04-01-preview/databricks/vnetpeering.go @@ -87,7 +87,7 @@ func (client VNetPeeringClient) CreateOrUpdatePreparer(ctx context.Context, virt "workspaceName": autorest.Encode("path", workspaceName), } - const APIVersion = "2018-04-01" + const APIVersion = "2021-04-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -184,7 +184,7 @@ func (client VNetPeeringClient) DeletePreparer(ctx context.Context, resourceGrou "workspaceName": autorest.Encode("path", workspaceName), } - const APIVersion = "2018-04-01" + const APIVersion = "2021-04-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -282,7 +282,7 @@ func (client VNetPeeringClient) GetPreparer(ctx context.Context, resourceGroupNa "workspaceName": autorest.Encode("path", workspaceName), } - const APIVersion = "2018-04-01" + const APIVersion = "2021-04-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -374,7 +374,7 @@ func (client VNetPeeringClient) ListByWorkspacePreparer(ctx context.Context, res "workspaceName": autorest.Encode("path", workspaceName), } - const APIVersion = "2018-04-01" + const APIVersion = "2021-04-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/services/preview/labservices/mgmt/2021-11-15-preview/labservices/CHANGELOG.md b/services/preview/labservices/mgmt/2021-11-15-preview/labservices/CHANGELOG.md index 52911e4cc5e4..a1ecf841edb0 100644 --- a/services/preview/labservices/mgmt/2021-11-15-preview/labservices/CHANGELOG.md +++ b/services/preview/labservices/mgmt/2021-11-15-preview/labservices/CHANGELOG.md @@ -1,2 +1,2 @@ -# Change History +# Unreleased diff --git a/services/preview/labservices/mgmt/2021-11-15-preview/labservices/_meta.json b/services/preview/labservices/mgmt/2021-11-15-preview/labservices/_meta.json index 63238f55d373..a9dc9493f3e0 100644 --- a/services/preview/labservices/mgmt/2021-11-15-preview/labservices/_meta.json +++ b/services/preview/labservices/mgmt/2021-11-15-preview/labservices/_meta.json @@ -1,5 +1,5 @@ { - "commit": "3587a60ea8f18e76a41e4b56b72aeddce879aae9", + "commit": "33de1e86182c9e74865ebcb2c9f6245774e09ab2", "readme": "/_/azure-rest-api-specs/specification/labservices/resource-manager/readme.md", "tag": "package-preview-2021-11", "use": "@microsoft.azure/autorest.go@2.1.187",