diff --git a/sdk/synapse/synapse-artifacts/CHANGELOG.md b/sdk/synapse/synapse-artifacts/CHANGELOG.md index 4cb91e3d002e..279eae914b6c 100644 --- a/sdk/synapse/synapse-artifacts/CHANGELOG.md +++ b/sdk/synapse/synapse-artifacts/CHANGELOG.md @@ -1,5 +1,66 @@ # Release History +## 1.0.0-beta.16 (2025-09-30) + +### Features Added +- Add a new Model ServiceNowV2LinkedService +- Model ServiceNowV2ObjectDataset has a new parameter table_name +- Model ServiceNowV2ObjectDataset has a new parameter value_type +- linked service add support Presto server linked service +- Model DynamicsSink has a new parameter bypass_business_logic_execution +- Model DynamicsSink has a new parameter bypass_power_automate_flows +- Model AzurePostgreSqlSink has a new parameter write_method +- Model AzurePostgreSqlSink has a new parameter upsert_settings +- Model SnowflakeV2LinkedService has a new parameter role +- Model SnowflakeV2LinkedService has a new parameter schema +- Model AzurePostgreSqlLinkedService has a new parameter service_principal_embedded_cert +- Model AzurePostgreSqlLinkedService has a new parameter service_principal_embedded_cert_password +- Model ODataLinkedService has a new parameter service_principal_embedded_cert +- Model ODataLinkedService has a new parameter service_principal_embedded_cert_password +- Model Office365LinkedService has a new parameter service_principal_embedded_cert +- Model Office365LinkedService has a new parameter service_principal_embedded_cert_password +- Model RestServiceLinkedService has a new parameter service_principal_embedded_cert +- Model RestServiceLinkedService has a new parameter service_principal_embedded_cert_password +- Model SharePointOnlineListLinkedService has a new parameter service_principal_embedded_cert +- Model SharePointOnlineListLinkedService has a new parameter service_principal_embedded_cert_password +- Model AzureDatabricksLinkedService has a new parameter data_security_mode +- Model AmazonRdsForOracleLinkedService has a new parameter server +- Model AmazonRdsForOracleLinkedService has a new parameter authentication_type +- Model AmazonRdsForOracleLinkedService has a new parameter username +- Model AmazonRdsForOracleLinkedService has a new parameter encryption_client +- Model AmazonRdsForOracleLinkedService has a new parameter encryption_types_client +- Model AmazonRdsForOracleLinkedService has a new parameter crypto_checksum_client +- Model AmazonRdsForOracleLinkedService has a new parameter crypto_checksum_types_client +- Model AmazonRdsForOracleLinkedService has a new parameter initial_lob_fetch_size +- Model AmazonRdsForOracleLinkedService has a new parameter fetch_size +- Model AmazonRdsForOracleLinkedService has a new parameter statement_cache_size +- Model AmazonRdsForOracleLinkedService has a new parameter initialization_string +- Model AmazonRdsForOracleLinkedService has a new parameter enable_bulk_load +- Model AmazonRdsForOracleLinkedService has a new parameter fetch_tswtz_as_timestamp +- Model AmazonRdsForOracleLinkedService has a new parameter support_v1_data_types +- Model FtpServerLinkedService has a new parameter enable_server_certificate_validation +- Model HiveLinkedService has a new parameter enable_server_certificate_validation +- Model HttpLinkedService has a new parameter enable_server_certificate_validation +- Model ImpalaLinkedService has a new parameter enable_server_certificate_validation +- Model RestServiceLinkedService has a new parameter enable_server_certificate_validation +- Model SparkLinkedService has a new parameter enable_server_certificate_validation +- Model QuickBooksLinkedService has a new parameter refresh_token +- Model AmazonRdsForOracleSource has a new parameter number_precision +- Model AmazonRdsForOracleSource has a new parameter number_scale +- Model OracleSource has a new parameter number_precision +- Model OracleSource has a new parameter number_scale +- Model LakeHouseLinkedService has a new parameter authentication_type +- Model LakeHouseLinkedService has a new parameter credential +- Model WarehouseLinkedService has a new parameter authentication_type +- Model WarehouseLinkedService has a new parameter credential +- Model HDInsightLinkedService has a new parameter cluster_auth_type +- Model HDInsightLinkedService has a new parameter credential + +### Breaking Changes + +- Model LinkedService parameter OracleLinkedService parameter connection_string now is not required +- Model GreenplumLinkedService remove parameter password +- Model ExpressionV2 parameter value change its type from string to object ## 1.0.0-beta.16 (2025-03-21) ### Features Added diff --git a/sdk/synapse/synapse-artifacts/src/artifactsClient.ts b/sdk/synapse/synapse-artifacts/src/artifactsClient.ts index 4656c3735a89..32909873d9ba 100644 --- a/sdk/synapse/synapse-artifacts/src/artifactsClient.ts +++ b/sdk/synapse/synapse-artifacts/src/artifactsClient.ts @@ -68,10 +68,10 @@ export class ArtifactsClient extends coreClient.ServiceClient { /** * Initializes a new instance of the ArtifactsClient class. - * @param credentials - Subscription credentials which uniquely identify client subscription. - * @param endpoint - The workspace development endpoint, for example + * @param credentials Subscription credentials which uniquely identify client subscription. + * @param endpoint The workspace development endpoint, for example * `https://myworkspace.dev.azuresynapse.net`. - * @param options - The parameter options + * @param options The parameter options */ constructor( credentials: coreAuth.TokenCredential, @@ -119,13 +119,14 @@ export class ArtifactsClient extends coreClient.ServiceClient { options.pipeline.getOrderedPolicies(); bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( (pipelinePolicy) => - pipelinePolicy.name === coreRestPipeline.bearerTokenAuthenticationPolicyName, + pipelinePolicy.name === + coreRestPipeline.bearerTokenAuthenticationPolicyName, ); } if ( !options || !options.pipeline || - options.pipeline.getOrderedPolicies().length === 0 || + options.pipeline.getOrderedPolicies().length == 0 || !bearerTokenAuthenticationPolicyFound ) { this.pipeline.removePolicy({ @@ -135,9 +136,11 @@ export class ArtifactsClient extends coreClient.ServiceClient { coreRestPipeline.bearerTokenAuthenticationPolicy({ credential: credentials, scopes: - optionsWithDefaults.credentialScopes ?? `${optionsWithDefaults.endpoint}/.default`, + optionsWithDefaults.credentialScopes ?? + `${optionsWithDefaults.endpoint}/.default`, challengeCallbacks: { - authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge, + authorizeRequestOnChallenge: + coreClient.authorizeRequestOnClaimChallenge, }, }), ); @@ -149,7 +152,9 @@ export class ArtifactsClient extends coreClient.ServiceClient { this.kqlScripts = new KqlScriptsImpl(this); this.kqlScriptOperations = new KqlScriptOperationsImpl(this); this.metastore = new MetastoreImpl(this); - this.sparkConfigurationOperations = new SparkConfigurationOperationsImpl(this); + this.sparkConfigurationOperations = new SparkConfigurationOperationsImpl( + this, + ); this.bigDataPools = new BigDataPoolsImpl(this); this.dataFlowOperations = new DataFlowOperationsImpl(this); this.dataFlowDebugSession = new DataFlowDebugSessionImpl(this); @@ -162,7 +167,9 @@ export class ArtifactsClient extends coreClient.ServiceClient { this.notebookOperationResult = new NotebookOperationResultImpl(this); this.pipelineOperations = new PipelineOperationsImpl(this); this.pipelineRunOperations = new PipelineRunOperationsImpl(this); - this.sparkJobDefinitionOperations = new SparkJobDefinitionOperationsImpl(this); + this.sparkJobDefinitionOperations = new SparkJobDefinitionOperationsImpl( + this, + ); this.sqlPools = new SqlPoolsImpl(this); this.sqlScriptOperations = new SqlScriptOperationsImpl(this); this.triggerOperations = new TriggerOperationsImpl(this); diff --git a/sdk/synapse/synapse-artifacts/src/lroImpl.ts b/sdk/synapse/synapse-artifacts/src/lroImpl.ts index b31bfb513809..12819b3e3ec9 100644 --- a/sdk/synapse/synapse-artifacts/src/lroImpl.ts +++ b/sdk/synapse/synapse-artifacts/src/lroImpl.ts @@ -6,6 +6,9 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + import type { AbortSignalLike } from "@azure/abort-controller"; import type { LongRunningOperation, LroResponse } from "@azure/core-lro"; @@ -23,7 +26,10 @@ export function createLroSpec(inputs: { requestMethod: spec.httpMethod, requestPath: spec.path!, sendInitialRequest: () => sendOperationFn(args, spec), - sendPollRequest: (path: string, options?: { abortSignal?: AbortSignalLike }) => { + sendPollRequest: ( + path: string, + options?: { abortSignal?: AbortSignalLike }, + ) => { const { requestBody, ...restSpec } = spec; return sendOperationFn(args, { ...restSpec, diff --git a/sdk/synapse/synapse-artifacts/src/models/index.ts b/sdk/synapse/synapse-artifacts/src/models/index.ts index 470df27d498e..b8c37dff3044 100644 --- a/sdk/synapse/synapse-artifacts/src/models/index.ts +++ b/sdk/synapse/synapse-artifacts/src/models/index.ts @@ -1,5 +1,3 @@ -/* eslint-disable no-irregular-whitespace */ -/* eslint-disable tsdoc/syntax */ /* * Copyright (c) Microsoft Corporation. * Licensed under the MIT License. @@ -10,7 +8,10 @@ import type * as coreClient from "@azure/core-client"; -export type SecretBaseUnion = SecretBase | SecureString | AzureKeyVaultSecretReference; +export type SecretBaseUnion = + | SecretBase + | SecureString + | AzureKeyVaultSecretReference; export type DataFlowUnion = DataFlow | MappingDataFlow | Flowlet; export type IntegrationRuntimeUnion = | IntegrationRuntime @@ -243,7 +244,8 @@ export type LinkedServiceUnion = | PowerBIWorkspaceLinkedService | SalesforceV2LinkedService | SalesforceServiceCloudV2LinkedService - | WarehouseLinkedService; + | WarehouseLinkedService + | ServiceNowV2LinkedService; export type ActivityUnion = | Activity | ControlActivityUnion @@ -1702,7 +1704,8 @@ export interface LinkedService { | "PowerBIWorkspace" | "SalesforceV2" | "SalesforceServiceCloudV2" - | "Warehouse"; + | "Warehouse" + | "ServiceNowV2"; /** Describes unknown properties. The value of an unknown property can be of "any" type. */ [property: string]: any; /** Version of the linked service. */ @@ -3093,7 +3096,12 @@ export interface DatasetSchemaDataElement { /** The format definition of a storage. */ export interface DatasetStorageFormat { /** Polymorphic discriminator, which specifies the different types this object can be */ - type: "TextFormat" | "JsonFormat" | "AvroFormat" | "OrcFormat" | "ParquetFormat"; + type: + | "TextFormat" + | "JsonFormat" + | "AvroFormat" + | "OrcFormat" + | "ParquetFormat"; /** Describes unknown properties. The value of an unknown property can be of "any" type. */ [property: string]: any; /** Serializer. Type: string (or Expression with resultType string). */ @@ -3200,26 +3208,6 @@ export interface ScriptAction { parameters?: string; } -/** ServiceNowV2 server linked service properties. */ -export interface ServiceNowV2LinkedServiceTypeProperties { - /** The endpoint of the ServiceNowV2 server. (i.e. .service-now.com) */ - endpoint: any; - /** The authentication type to use. */ - authenticationType: ServiceNowV2AuthenticationType; - /** The user name used to connect to the ServiceNowV2 server for Basic and OAuth2 authentication. */ - username?: any; - /** The password corresponding to the user name for Basic and OAuth2 authentication. */ - password?: SecretBaseUnion; - /** The client id for OAuth2 authentication. */ - clientId?: any; - /** The client secret for OAuth2 authentication. */ - clientSecret?: SecretBaseUnion; - /** GrantType for OAuth2 authentication. Default value is password. */ - grantType?: any; - /** The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. */ - encryptedCredential?: string; -} - /** Execution policy for an activity. */ export interface ActivityPolicy { /** Describes unknown properties. The value of an unknown property can be of "any" type. */ @@ -3675,6 +3663,12 @@ export interface OutputColumn { name?: string; } +/** Azure Database for PostgreSQL upsert option settings */ +export interface AzurePostgreSqlSinkUpsertSettings { + /** Key column names for unique row identification. Type: array of strings (or Expression with resultType array of strings). */ + keys?: any; +} + /** The settings that will be leveraged for Netezza source partitioning. */ export interface NetezzaPartitionSettings { /** The name of the column in integer type that will be used for proceeding range partitioning. Type: string (or Expression with resultType string). */ @@ -3775,6 +3769,10 @@ export interface TypeConversionSettings { dateTimeOffsetFormat?: any; /** The format for TimeSpan values. Type: string (or Expression with resultType string). */ timeSpanFormat?: any; + /** The format for Time values. Type: string (or Expression with resultType string). */ + timeFormat?: any; + /** The format for Date values. Type: string (or Expression with resultType string). */ + dateFormat?: any; /** The culture used to convert data from/to string. Type: string (or Expression with resultType string). */ culture?: any; } @@ -3981,8 +3979,8 @@ export interface SynapseActivityAuthentication { export interface ExpressionV2 { /** Type of expressions supported by the system. Type: string. */ type?: ExpressionV2Type; - /** Value for Constant/Field Type: string. */ - value?: string; + /** Value for Constant/Field Type: object. */ + value?: any; /** Expression operator value Type: list of strings. */ operators?: string[]; /** List of nested expressions. */ @@ -4062,7 +4060,7 @@ export interface TriggerReference { export interface IntegrationRuntimeComputeProperties { /** Describes unknown properties. The value of an unknown property can be of "any" type. */ [property: string]: any; - /** The location for managed integration runtime. The supported regions could be found on https://docs.microsoft.com/azure/data-factory/data-factory-data-movement-activities */ + /** The location for managed integration runtime. The supported regions could be found on https://docs.microsoft.com/en-us/azure/data-factory/data-factory-data-movement-activities */ location?: string; /** The node size requirement to managed integration runtime. */ nodeSize?: string; @@ -4278,7 +4276,8 @@ export interface SelfHostedIntegrationRuntime extends IntegrationRuntime { } /** Integration runtime debug resource. */ -export interface IntegrationRuntimeDebugResource extends SubResourceDebugResource { +export interface IntegrationRuntimeDebugResource + extends SubResourceDebugResource { /** Integration runtime properties. */ properties: IntegrationRuntimeUnion; } @@ -5374,6 +5373,8 @@ export interface ServiceNowV2ObjectDataset extends Dataset { type: "ServiceNowV2Object"; /** The table name. Type: string (or Expression with resultType string). */ tableName?: any; + /** Type of value copied from source. */ + valueType?: ValueType; } /** The storage account linked service. */ @@ -5922,6 +5923,8 @@ export interface HDInsightLinkedService extends LinkedService { type: "HDInsight"; /** HDInsight cluster URI. Type: string (or Expression with resultType string). */ clusterUri: any; + /** HDInsight cluster authentication type. */ + clusterAuthType?: HDInsightClusterAuthenticationType; /** HDInsight cluster user name. Type: string (or Expression with resultType string). */ userName?: any; /** HDInsight cluster password. */ @@ -5936,6 +5939,8 @@ export interface HDInsightLinkedService extends LinkedService { isEspEnabled?: any; /** Specify the FileSystem if the main storage for the HDInsight is ADLS Gen2. Type: string (or Expression with resultType string). */ fileSystem?: any; + /** The credential reference containing MI authentication information for the HDInsight cluster. */ + credential?: CredentialReference; } /** File system linked service. */ @@ -6001,7 +6006,7 @@ export interface OracleLinkedService extends LinkedService { /** Polymorphic discriminator, which specifies the different types this object can be */ type: "Oracle"; /** The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. Only used for Version 1.0. */ - connectionString: any; + connectionString?: any; /** The location of Oracle database you want to connect to, the supported forms include connector descriptor, Easy Connect (Plus) Naming and Oracle Net Services Name (Only self-hosted IR). Type: string. Only used for Version 2.0. */ server?: any; /** Authentication type for connecting to the Oracle database. Only used for Version 2.0. */ @@ -6036,14 +6041,42 @@ export interface OracleLinkedService extends LinkedService { encryptedCredential?: any; } -/** AmazonRdsForOracle database. */ +/** AmazonRdsForOracle database. This linked service has supported version property. The Version 1.0 is scheduled for deprecation while your pipeline will continue to run after EOL but without any bug fix or new features. */ export interface AmazonRdsForOracleLinkedService extends LinkedService { /** Polymorphic discriminator, which specifies the different types this object can be */ type: "AmazonRdsForOracle"; - /** The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. */ - connectionString: any; + /** The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. Only used for Version 1.0. */ + connectionString?: any; + /** The location of AmazonRdsForOracle database you want to connect to, the supported forms include connector descriptor, Easy Connect (Plus) Naming and Oracle Net Services Name (Only self-hosted IR). Type: string. Only used for Version 2.0. */ + server?: any; + /** Authentication type for connecting to the AmazonRdsForOracle database. Only used for Version 2.0. */ + authenticationType?: AmazonRdsForOracleAuthenticationType; + /** The AmazonRdsForOracle database username. Type: string. Only used for Version 2.0. */ + username?: any; /** The Azure key vault secret reference of password in connection string. */ password?: SecretBaseUnion; + /** Specifies the encryption client behavior. Supported values are accepted, rejected, requested or required, default value is required. Type: string. Only used for Version 2.0. */ + encryptionClient?: any; + /** Specifies the encryption algorithms that client can use. Supported values are AES128, AES192, AES256, 3DES112, 3DES168, default value is (AES256). Type: string. Only used for Version 2.0. */ + encryptionTypesClient?: any; + /** Specifies the desired data integrity behavior when this client connects to a server. Supported values are accepted, rejected, requested or required, default value is required. Type: string. Only used for Version 2.0. */ + cryptoChecksumClient?: any; + /** Specifies the crypto-checksum algorithms that client can use. Supported values are SHA1, SHA256, SHA384, SHA512, default value is (SHA512). Type: string. Only used for Version 2.0. */ + cryptoChecksumTypesClient?: any; + /** Specifies the amount that the source initially fetches for LOB columns, default value is 0. Type: integer. Only used for Version 2.0. */ + initialLobFetchSize?: any; + /** Specifies the number of bytes that the driver allocates to fetch the data in one database round-trip, default value is 10485760. Type: integer. Only used for Version 2.0. */ + fetchSize?: any; + /** Specifies the number of cursors or statements to be cached for each database connection, default value is 0. Type: integer. Only used for Version 2.0. */ + statementCacheSize?: any; + /** Specifies a command that is issued immediately after connecting to the database to manage session settings. Type: string. Only used for Version 2.0. */ + initializationString?: any; + /** Specifies whether to use bulk copy or batch insert when loading data into the database, default value is true. Type: boolean. Only used for Version 2.0. */ + enableBulkLoad?: any; + /** Specifies whether to use the Version 1.0 data type mappings. Do not set this to true unless you want to keep backward compatibility with Version 1.0's data type mappings, default value is false. Type: boolean. Only used for Version 2.0. */ + supportV1DataTypes?: any; + /** Specifies whether the driver returns column value with the TIMESTAMP WITH TIME ZONE data type as DateTime or string. This setting is ignored if supportV1DataTypes is not true, default value is true. Type: boolean. Only used for Version 2.0. */ + fetchTswtzAsTimestamp?: any; /** The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). */ encryptedCredential?: any; } @@ -6530,6 +6563,12 @@ export interface Office365LinkedService extends LinkedService { servicePrincipalId: any; /** Specify the application's key. */ servicePrincipalKey: SecretBaseUnion; + /** The service principal credential type for authentication.'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. If not specified, 'ServicePrincipalKey' is in use. Type: string (or Expression with resultType string). */ + servicePrincipalCredentialType?: any; + /** Specify the base64 encoded certificate of your application registered in Azure Active Directory. Type: string (or Expression with resultType string). */ + servicePrincipalEmbeddedCert?: SecretBaseUnion; + /** Specify the password of your certificate if your certificate has a password and you are using AadServicePrincipal authentication. Type: string (or Expression with resultType string). */ + servicePrincipalEmbeddedCertPassword?: SecretBaseUnion; /** The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). */ encryptedCredential?: any; } @@ -7210,8 +7249,6 @@ export interface GreenplumLinkedService extends LinkedService { connectionTimeout?: any; /** The time to wait (in seconds) while trying to execute a command before terminating the attempt and generating an error. Set to zero for infinity. Type: integer. Only used for V2. */ commandTimeout?: any; - /** The Azure key vault secret reference of password in connection string. Type: string. Only used for V2. */ - password?: SecretBaseUnion; } /** HBase server linked service. */ @@ -7270,6 +7307,8 @@ export interface HiveLinkedService extends LinkedService { httpPath?: any; /** Specifies whether the connections to the server are encrypted using SSL. The default value is false. */ enableSsl?: any; + /** Specifies whether the connections to the server will validate server certificate, the default value is True. Only used for Version 2.0 */ + enableServerCertificateValidation?: any; /** The full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default value is the cacerts.pem file installed with the IR. */ trustedCertPath?: any; /** Specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default value is false. */ @@ -7318,8 +7357,12 @@ export interface ImpalaLinkedService extends LinkedService { username?: any; /** The password corresponding to the user name when using UsernameAndPassword. */ password?: SecretBaseUnion; + /** The transport protocol to use in the Thrift layer (for V2 only). Default value is Binary. */ + thriftTransportProtocol?: ImpalaThriftTransportProtocol; /** Specifies whether the connections to the server are encrypted using SSL. The default value is false. */ enableSsl?: any; + /** Specify whether to enable server SSL certificate validation when you connect.Always use System Trust Store (for V2 only). The default value is true. */ + enableServerCertificateValidation?: any; /** The full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default value is the cacerts.pem file installed with the IR. */ trustedCertPath?: any; /** Specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default value is false. */ @@ -7480,17 +7523,17 @@ export interface PhoenixLinkedService extends LinkedService { encryptedCredential?: any; } -/** Presto server linked service. */ +/** Presto server linked service. This linked service has supported version property. The Version 1.0 is scheduled for deprecation while your pipeline will continue to run after EOL but without any bug fix or new features. */ export interface PrestoLinkedService extends LinkedService { /** Polymorphic discriminator, which specifies the different types this object can be */ type: "Presto"; /** The IP address or host name of the Presto server. (i.e. 192.168.222.160) */ host: any; - /** The version of the Presto server. (i.e. 0.148-t) */ - serverVersion: any; + /** The version of the Presto server. (i.e. 0.148-t) Only used for Version 1.0. */ + serverVersion?: any; /** The catalog context for all request against the server. */ catalog: any; - /** The TCP port that the Presto server uses to listen for client connections. The default value is 8080. */ + /** The TCP port that the Presto server uses to listen for client connections. The default value is 8080 when disable SSL, default value is 443 when enable SSL. */ port?: any; /** The authentication mechanism used to connect to the Presto server. */ authenticationType: PrestoAuthenticationType; @@ -7498,23 +7541,25 @@ export interface PrestoLinkedService extends LinkedService { username?: any; /** The password corresponding to the user name. */ password?: SecretBaseUnion; - /** Specifies whether the connections to the server are encrypted using SSL. The default value is false. */ + /** Specifies whether the connections to the server are encrypted using SSL. The default value for legacy version is False. The default value for version 2.0 is True. */ enableSsl?: any; - /** The full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default value is the cacerts.pem file installed with the IR. */ + /** Specifies whether the connections to the server will validate server certificate, the default value is True. Only used for Version 2.0 */ + enableServerCertificateValidation?: any; + /** The full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default value is the cacerts.pem file installed with the IR. Only used for Version 1.0. */ trustedCertPath?: any; - /** Specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default value is false. */ + /** Specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default value is false. Only used for Version 1.0. */ useSystemTrustStore?: any; - /** Specifies whether to require a CA-issued SSL certificate name to match the host name of the server when connecting over SSL. The default value is false. */ + /** Specifies whether to require a CA-issued SSL certificate name to match the host name of the server when connecting over SSL. The default value is false. Only used for Version 1.0. */ allowHostNameCNMismatch?: any; - /** Specifies whether to allow self-signed certificates from the server. The default value is false. */ + /** Specifies whether to allow self-signed certificates from the server. The default value is false. Only used for Version 1.0. */ allowSelfSignedServerCert?: any; - /** The local time zone used by the connection. Valid values for this option are specified in the IANA Time Zone Database. The default value is the system time zone. */ + /** The local time zone used by the connection. Valid values for this option are specified in the IANA Time Zone Database. The default value for Version 1.0 is the client system time zone. The default value for Version 2.0 is server system timeZone */ timeZoneID?: any; /** The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). */ encryptedCredential?: any; } -/** QuickBooks server linked service. */ +/** QuickBooks server linked service. This linked service has supported version property. The Version 1.0 is scheduled for deprecation while your pipeline will continue to run after EOL but without any bug fix or new features. */ export interface QuickBooksLinkedService extends LinkedService { /** Polymorphic discriminator, which specifies the different types this object can be */ type: "QuickBooks"; @@ -7524,14 +7569,16 @@ export interface QuickBooksLinkedService extends LinkedService { endpoint: any; /** The company ID of the QuickBooks company to authorize. */ companyId: any; - /** The consumer key for OAuth 1.0 authentication. */ + /** The consumer key for OAuth 2.0 authentication. */ consumerKey: any; - /** The consumer secret for OAuth 1.0 authentication. */ + /** The consumer secret for OAuth 2.0 authentication. */ consumerSecret: SecretBaseUnion; - /** The access token for OAuth 1.0 authentication. */ - accessToken: SecretBaseUnion; - /** The access token secret for OAuth 1.0 authentication. */ - accessTokenSecret: SecretBaseUnion; + /** The access token for OAuth 2.0 authentication. */ + accessToken?: SecretBaseUnion; + /** The access token secret is deprecated for OAuth 1.0 authentication. Only used for version 1.0. */ + accessTokenSecret?: SecretBaseUnion; + /** The refresh token for OAuth 2.0 authentication. */ + refreshToken?: SecretBaseUnion; /** Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. */ useEncryptedEndpoints?: any; /** The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). */ @@ -7604,6 +7651,8 @@ export interface SparkLinkedService extends LinkedService { httpPath?: any; /** Specifies whether the connections to the server are encrypted using SSL. The default value is false. */ enableSsl?: any; + /** Specifies whether the connections to the server will validate server certificate, the default value is True. Only used for Version 2.0 */ + enableServerCertificateValidation?: any; /** The full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default value is the cacerts.pem file installed with the IR. */ trustedCertPath?: any; /** Specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default value is false. */ @@ -7801,7 +7850,7 @@ export interface HDInsightOnDemandLinkedService extends LinkedService { dataNodeSize?: any; /** Specifies the size of the Zoo Keeper node for the HDInsight cluster. */ zookeeperNodeSize?: any; - /** Custom script actions to run on HDI ondemand cluster once it's up. Please refer to https://docs.microsoft.com/azure/hdinsight/hdinsight-hadoop-customize-cluster-linux?toc=%2Fen-us%2Fazure%2Fhdinsight%2Fr-server%2FTOC.json&bc=%2Fen-us%2Fazure%2Fbread%2Ftoc.json#understanding-script-actions. */ + /** Custom script actions to run on HDI ondemand cluster once it's up. Please refer to https://docs.microsoft.com/en-us/azure/hdinsight/hdinsight-hadoop-customize-cluster-linux?toc=%2Fen-us%2Fazure%2Fhdinsight%2Fr-server%2FTOC.json&bc=%2Fen-us%2Fazure%2Fbread%2Ftoc.json#understanding-script-actions. */ scriptActions?: ScriptAction[]; /** The ARM resource ID for the vNet to which the cluster should be joined after creation. Type: string (or Expression with resultType string). */ virtualNetworkId?: any; @@ -7875,6 +7924,8 @@ export interface AzureDatabricksLinkedService extends LinkedService { policyId?: any; /** The credential reference containing authentication information. */ credential?: CredentialReference; + /** The data security mode for the Databricks Cluster. Type: string (or Expression with resultType string). */ + dataSecurityMode?: any; } /** Azure Databricks Delta Lake linked service. */ @@ -8099,8 +8150,12 @@ export interface SnowflakeV2LinkedService extends LinkedService { tenantId?: any; /** The scope of the application registered in Azure Active Directory for AADServicePrincipal authentication. */ scope?: any; - /** The host name of the Snowflake account. */ + /** The default access control role to use in the Snowflake session. Type: string (or Expression with resultType string). */ + role?: any; + /** The host name of the Snowflake account. Type: string (or Expression with resultType string). */ host?: any; + /** Schema name for connection. Type: string (or Expression with resultType string). */ + schema?: any; /** The Azure key vault secret reference of privateKey for KeyPair auth. */ privateKey?: SecretBaseUnion; /** The Azure key vault secret reference of private key password for KeyPair auth with encrypted private key. */ @@ -8151,6 +8206,8 @@ export interface LakeHouseLinkedService extends LinkedService { workspaceId?: any; /** The ID of Microsoft Fabric Lakehouse artifact. Type: string (or Expression with resultType string). */ artifactId?: any; + /** The authentication type to use. */ + authenticationType?: LakehouseAuthenticationType; /** The ID of the application used to authenticate against Microsoft Fabric Lakehouse. Type: string (or Expression with resultType string). */ servicePrincipalId?: any; /** The Key of the application used to authenticate against Microsoft Fabric Lakehouse. */ @@ -8163,6 +8220,8 @@ export interface LakeHouseLinkedService extends LinkedService { servicePrincipalCredentialType?: any; /** The credential of the service principal object in Azure Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only be AzureKeyVaultSecretReference. */ servicePrincipalCredential?: SecretBaseUnion; + /** The credential reference containing authentication information. */ + credential?: CredentialReference; } /** Power BI Workspace linked service. */ @@ -8221,6 +8280,8 @@ export interface WarehouseLinkedService extends LinkedService { endpoint: any; /** The ID of Microsoft Fabric workspace. Type: string (or Expression with resultType string). */ workspaceId?: any; + /** The authentication type to use. */ + authenticationType?: WarehouseAuthenticationType; /** The ID of the application used to authenticate against Microsoft Fabric Warehouse. Type: string (or Expression with resultType string). */ servicePrincipalId?: any; /** The Key of the application used to authenticate against Microsoft Fabric Warehouse. */ @@ -8233,6 +8294,30 @@ export interface WarehouseLinkedService extends LinkedService { servicePrincipalCredentialType?: any; /** The credential of the service principal object in Azure Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only be AzureKeyVaultSecretReference. */ servicePrincipalCredential?: SecretBaseUnion; + /** The credential reference containing authentication information. */ + credential?: CredentialReference; +} + +/** ServiceNowV2 server linked service. */ +export interface ServiceNowV2LinkedService extends LinkedService { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "ServiceNowV2"; + /** The endpoint of the ServiceNowV2 server. (i.e. .service-now.com) */ + endpoint: any; + /** The authentication type to use. */ + authenticationType: ServiceNowV2AuthenticationType; + /** The user name used to connect to the ServiceNowV2 server for Basic and OAuth2 authentication. */ + username?: any; + /** The password corresponding to the user name for Basic and OAuth2 authentication. */ + password?: SecretBaseUnion; + /** The client id for OAuth2 authentication. */ + clientId?: any; + /** The client secret for OAuth2 authentication. */ + clientSecret?: SecretBaseUnion; + /** GrantType for OAuth2 authentication. Default value is password. */ + grantType?: any; + /** The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. */ + encryptedCredential?: string; } /** Base class for all control activities like IfCondition, ForEach , Until. */ @@ -8661,7 +8746,8 @@ export interface AzureSqlMILinkedServiceTypeProperties } /** A WebLinkedService that uses anonymous authentication to communicate with an HTTP endpoint. */ -export interface WebAnonymousAuthentication extends WebLinkedServiceTypeProperties { +export interface WebAnonymousAuthentication + extends WebLinkedServiceTypeProperties { /** Polymorphic discriminator, which specifies the different types this object can be */ authenticationType: "Anonymous"; } @@ -8677,7 +8763,8 @@ export interface WebBasicAuthentication extends WebLinkedServiceTypeProperties { } /** A WebLinkedService that uses client certificate based authentication to communicate with an HTTP endpoint. This scheme follows mutual authentication; the server must also provide valid credentials to the client. */ -export interface WebClientCertificateAuthentication extends WebLinkedServiceTypeProperties { +export interface WebClientCertificateAuthentication + extends WebLinkedServiceTypeProperties { /** Polymorphic discriminator, which specifies the different types this object can be */ authenticationType: "ClientCertificate"; /** Base64-encoded contents of a PFX file. */ @@ -9523,6 +9610,10 @@ export interface OracleSource extends CopySource { partitionSettings?: OraclePartitionSettings; /** Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with resultType array of objects). */ additionalColumns?: any; + /** The decimal precision used to represent Oracle NUMBER type without precision and scale. The range is 1 to 256 and default value is 256 if not specified. Type: integer (or Expression with resultType integer). Only used for Version 2.0. */ + numberPrecision?: any; + /** The decimal scale used to represent Oracle NUMBER type without precision and scale. The range is 0 to 130 and default value is 130 if not specified. Type: integer (or Expression with resultType integer). Only used for Version 2.0. */ + numberScale?: any; } /** A copy activity AmazonRdsForOracle source. */ @@ -9539,6 +9630,10 @@ export interface AmazonRdsForOracleSource extends CopySource { partitionSettings?: AmazonRdsForOraclePartitionSettings; /** Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with resultType array of objects). */ additionalColumns?: any; + /** The decimal precision used to represent Oracle NUMBER type without precision and scale. The range is 1 to 256 and default value is 256 if not specified. Type: integer (or Expression with resultType integer). Only used for Version 2.0. */ + numberPrecision?: any; + /** The decimal scale used to represent Oracle NUMBER type without precision and scale. The range is 0 to 130 and default value is 130 if not specified. Type: integer (or Expression with resultType integer). Only used for Version 2.0. */ + numberScale?: any; } /** A copy activity source for web page table. */ @@ -9773,12 +9868,16 @@ export interface TeradataSink extends CopySink { importSettings?: TeradataImportCommand; } -/** A copy activity Azure PostgreSQL sink. */ +/** A copy activity Azure Database for PostgreSQL sink. */ export interface AzurePostgreSqlSink extends CopySink { /** Polymorphic discriminator, which specifies the different types this object can be */ type: "AzurePostgreSqlSink"; /** A query to execute before starting the copy. Type: string (or Expression with resultType string). */ preCopyScript?: any; + /** The write behavior for the operation. Default is Bulk Insert. */ + writeMethod?: AzurePostgreSqlWriteMethodEnum; + /** Azure Database for PostgreSQL upsert option settings */ + upsertSettings?: AzurePostgreSqlSinkUpsertSettings; } /** A copy activity Azure MySql sink. */ @@ -10101,6 +10200,10 @@ export interface DynamicsSink extends CopySink { ignoreNullValues?: any; /** The logical name of the alternate key which will be used when upserting records. Type: string (or Expression with resultType string). */ alternateKeyName?: any; + /** Controls the bypass of Dataverse custom business logic. Type: string (or Expression with resultType string). Type: string (or Expression with resultType string). */ + bypassBusinessLogicExecution?: any; + /** Controls the bypass of Power Automate flows. Default is false. Type: boolean (or Expression with resultType boolean). */ + bypassPowerAutomateFlows?: any; } /** A copy activity Dynamics CRM sink. */ @@ -10113,6 +10216,10 @@ export interface DynamicsCrmSink extends CopySink { ignoreNullValues?: any; /** The logical name of the alternate key which will be used when upserting records. Type: string (or Expression with resultType string). */ alternateKeyName?: any; + /** Controls the bypass of Dataverse custom business logic. Type: string (or Expression with resultType string). Type: string (or Expression with resultType string). */ + bypassBusinessLogicExecution?: any; + /** Controls the bypass of Power Automate flows. Default is false. Type: boolean (or Expression with resultType boolean). */ + bypassPowerAutomateFlows?: any; } /** A copy activity Common Data Service for Apps sink. */ @@ -10125,6 +10232,10 @@ export interface CommonDataServiceForAppsSink extends CopySink { ignoreNullValues?: any; /** The logical name of the alternate key which will be used when upserting records. Type: string (or Expression with resultType string). */ alternateKeyName?: any; + /** Controls the bypass of Dataverse custom business logic. Type: string (or Expression with resultType string). Type: string (or Expression with resultType string). */ + bypassBusinessLogicExecution?: any; + /** Controls the bypass of Power Automate flows. Default is false. Type: boolean (or Expression with resultType boolean). */ + bypassPowerAutomateFlows?: any; } /** A copy activity Azure Data Explorer sink. */ @@ -10278,13 +10389,16 @@ export interface TabularTranslator extends CopyTranslator { /** Trigger referenced dependency. */ export interface TriggerDependencyReference extends DependencyReference { /** Polymorphic discriminator, which specifies the different types this object can be */ - type: "TriggerDependencyReference" | "TumblingWindowTriggerDependencyReference"; + type: + | "TriggerDependencyReference" + | "TumblingWindowTriggerDependencyReference"; /** Referenced trigger. */ referenceTrigger: TriggerReference; } /** Self referenced tumbling window trigger dependency. */ -export interface SelfDependencyTumblingWindowTriggerReference extends DependencyReference { +export interface SelfDependencyTumblingWindowTriggerReference + extends DependencyReference { /** Polymorphic discriminator, which specifies the different types this object can be */ type: "SelfDependencyTumblingWindowTriggerReference"; /** Timespan applied to the start time of a tumbling window when evaluating dependency. */ @@ -10294,7 +10408,8 @@ export interface SelfDependencyTumblingWindowTriggerReference extends Dependency } /** The key authorization type integration runtime. */ -export interface LinkedIntegrationRuntimeKeyAuthorization extends LinkedIntegrationRuntimeType { +export interface LinkedIntegrationRuntimeKeyAuthorization + extends LinkedIntegrationRuntimeType { /** Polymorphic discriminator, which specifies the different types this object can be */ authorizationType: "Key"; /** The key used for authorization. */ @@ -10302,7 +10417,8 @@ export interface LinkedIntegrationRuntimeKeyAuthorization extends LinkedIntegrat } /** The role based access control (RBAC) authorization type integration runtime. */ -export interface LinkedIntegrationRuntimeRbacAuthorization extends LinkedIntegrationRuntimeType { +export interface LinkedIntegrationRuntimeRbacAuthorization + extends LinkedIntegrationRuntimeType { /** Polymorphic discriminator, which specifies the different types this object can be */ authorizationType: "RBAC"; /** The resource identifier of the integration runtime to be shared. */ @@ -11486,7 +11602,7 @@ export interface AmazonMWSSource extends TabularSource { query?: any; } -/** A copy activity Azure PostgreSQL source. */ +/** A copy activity Azure Database for PostgreSQL source. */ export interface AzurePostgreSqlSource extends TabularSource { /** Polymorphic discriminator, which specifies the different types this object can be */ type: "AzurePostgreSqlSource"; @@ -11817,7 +11933,8 @@ export interface ServiceNowV2Source extends TabularSource { } /** Referenced tumbling window trigger dependency. */ -export interface TumblingWindowTriggerDependencyReference extends TriggerDependencyReference { +export interface TumblingWindowTriggerDependencyReference + extends TriggerDependencyReference { /** Polymorphic discriminator, which specifies the different types this object can be */ type: "TumblingWindowTriggerDependencyReference"; /** Timespan applied to the start time of a tumbling window when evaluating dependency. */ @@ -12817,6 +12934,24 @@ export enum KnownCredentialReferenceType { */ export type CredentialReferenceType = string; +/** Known values of {@link ValueType} that the service accepts. */ +export enum KnownValueType { + /** Actual */ + Actual = "actual", + /** Display */ + Display = "display", +} + +/** + * Defines values for ValueType. \ + * {@link KnownValueType} can be used interchangeably with ValueType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **actual** \ + * **display** + */ +export type ValueType = string; + /** Known values of {@link AzureStorageAuthenticationType} that the service accepts. */ export enum KnownAzureStorageAuthenticationType { /** Anonymous */ @@ -12976,6 +13111,27 @@ export enum KnownAzureSqlMIAuthenticationType { */ export type AzureSqlMIAuthenticationType = string; +/** Known values of {@link HDInsightClusterAuthenticationType} that the service accepts. */ +export enum KnownHDInsightClusterAuthenticationType { + /** BasicAuth */ + BasicAuth = "BasicAuth", + /** SystemAssignedManagedIdentity */ + SystemAssignedManagedIdentity = "SystemAssignedManagedIdentity", + /** UserAssignedManagedIdentity */ + UserAssignedManagedIdentity = "UserAssignedManagedIdentity", +} + +/** + * Defines values for HDInsightClusterAuthenticationType. \ + * {@link KnownHDInsightClusterAuthenticationType} can be used interchangeably with HDInsightClusterAuthenticationType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **BasicAuth** \ + * **SystemAssignedManagedIdentity** \ + * **UserAssignedManagedIdentity** + */ +export type HDInsightClusterAuthenticationType = string; + /** Known values of {@link OracleAuthenticationType} that the service accepts. */ export enum KnownOracleAuthenticationType { /** Basic */ @@ -12991,6 +13147,21 @@ export enum KnownOracleAuthenticationType { */ export type OracleAuthenticationType = string; +/** Known values of {@link AmazonRdsForOracleAuthenticationType} that the service accepts. */ +export enum KnownAmazonRdsForOracleAuthenticationType { + /** Basic */ + Basic = "Basic", +} + +/** + * Defines values for AmazonRdsForOracleAuthenticationType. \ + * {@link KnownAmazonRdsForOracleAuthenticationType} can be used interchangeably with AmazonRdsForOracleAuthenticationType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Basic** + */ +export type AmazonRdsForOracleAuthenticationType = string; + /** Known values of {@link SybaseAuthenticationType} that the service accepts. */ export enum KnownSybaseAuthenticationType { /** Basic */ @@ -13588,6 +13759,48 @@ export enum KnownSnowflakeAuthenticationType { */ export type SnowflakeAuthenticationType = string; +/** Known values of {@link LakehouseAuthenticationType} that the service accepts. */ +export enum KnownLakehouseAuthenticationType { + /** ServicePrincipal */ + ServicePrincipal = "ServicePrincipal", + /** SystemAssignedManagedIdentity */ + SystemAssignedManagedIdentity = "SystemAssignedManagedIdentity", + /** UserAssignedManagedIdentity */ + UserAssignedManagedIdentity = "UserAssignedManagedIdentity", +} + +/** + * Defines values for LakehouseAuthenticationType. \ + * {@link KnownLakehouseAuthenticationType} can be used interchangeably with LakehouseAuthenticationType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **ServicePrincipal** \ + * **SystemAssignedManagedIdentity** \ + * **UserAssignedManagedIdentity** + */ +export type LakehouseAuthenticationType = string; + +/** Known values of {@link WarehouseAuthenticationType} that the service accepts. */ +export enum KnownWarehouseAuthenticationType { + /** ServicePrincipal */ + ServicePrincipal = "ServicePrincipal", + /** SystemAssignedManagedIdentity */ + SystemAssignedManagedIdentity = "SystemAssignedManagedIdentity", + /** UserAssignedManagedIdentity */ + UserAssignedManagedIdentity = "UserAssignedManagedIdentity", +} + +/** + * Defines values for WarehouseAuthenticationType. \ + * {@link KnownWarehouseAuthenticationType} can be used interchangeably with WarehouseAuthenticationType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **ServicePrincipal** \ + * **SystemAssignedManagedIdentity** \ + * **UserAssignedManagedIdentity** + */ +export type WarehouseAuthenticationType = string; + /** Known values of {@link ServiceNowV2AuthenticationType} that the service accepts. */ export enum KnownServiceNowV2AuthenticationType { /** Basic */ @@ -13690,6 +13903,27 @@ export enum KnownCassandraSourceReadConsistencyLevels { */ export type CassandraSourceReadConsistencyLevels = string; +/** Known values of {@link AzurePostgreSqlWriteMethodEnum} that the service accepts. */ +export enum KnownAzurePostgreSqlWriteMethodEnum { + /** BulkInsert */ + BulkInsert = "BulkInsert", + /** CopyCommand */ + CopyCommand = "CopyCommand", + /** Upsert */ + Upsert = "Upsert", +} + +/** + * Defines values for AzurePostgreSqlWriteMethodEnum. \ + * {@link KnownAzurePostgreSqlWriteMethodEnum} can be used interchangeably with AzurePostgreSqlWriteMethodEnum, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **BulkInsert** \ + * **CopyCommand** \ + * **Upsert** + */ +export type AzurePostgreSqlWriteMethodEnum = string; + /** Known values of {@link NetezzaPartitionOption} that the service accepts. */ export enum KnownNetezzaPartitionOption { /** None */ @@ -14771,6 +15005,8 @@ export enum KnownSapTablePartitionOption { export type SapTablePartitionOption = string; /** Defines values for ResourceIdentityType. */ export type ResourceIdentityType = "None" | "SystemAssigned"; +/** Defines values for ImpalaThriftTransportProtocol. */ +export type ImpalaThriftTransportProtocol = "Binary" | "HTTP"; /** Defines values for DayOfWeek. */ export type DayOfWeek = | "Sunday" @@ -14782,73 +15018,88 @@ export type DayOfWeek = | "Saturday"; /** Optional parameters. */ -export interface LinkConnectionListByWorkspaceOptionalParams extends coreClient.OperationOptions {} +export interface LinkConnectionListByWorkspaceOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the listByWorkspace operation. */ export type LinkConnectionListByWorkspaceResponse = LinkConnectionListResponse; /** Optional parameters. */ -export interface LinkConnectionCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} +export interface LinkConnectionCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ export type LinkConnectionCreateOrUpdateResponse = LinkConnectionResource; /** Optional parameters. */ -export interface LinkConnectionGetOptionalParams extends coreClient.OperationOptions {} +export interface LinkConnectionGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type LinkConnectionGetResponse = LinkConnectionResource; /** Optional parameters. */ -export interface LinkConnectionDeleteOptionalParams extends coreClient.OperationOptions {} +export interface LinkConnectionDeleteOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface LinkConnectionEditTablesOptionalParams extends coreClient.OperationOptions {} +export interface LinkConnectionEditTablesOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface LinkConnectionStartOptionalParams extends coreClient.OperationOptions {} +export interface LinkConnectionStartOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface LinkConnectionStopOptionalParams extends coreClient.OperationOptions {} +export interface LinkConnectionStopOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ export interface LinkConnectionGetDetailedStatusOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getDetailedStatus operation. */ -export type LinkConnectionGetDetailedStatusResponse = LinkConnectionDetailedStatus; +export type LinkConnectionGetDetailedStatusResponse = + LinkConnectionDetailedStatus; /** Optional parameters. */ -export interface LinkConnectionListLinkTablesOptionalParams extends coreClient.OperationOptions {} +export interface LinkConnectionListLinkTablesOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the listLinkTables operation. */ export type LinkConnectionListLinkTablesResponse = LinkTableListResponse; /** Optional parameters. */ -export interface LinkConnectionQueryTableStatusOptionalParams extends coreClient.OperationOptions {} +export interface LinkConnectionQueryTableStatusOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the queryTableStatus operation. */ -export type LinkConnectionQueryTableStatusResponse = LinkConnectionQueryTableStatus; +export type LinkConnectionQueryTableStatusResponse = + LinkConnectionQueryTableStatus; /** Optional parameters. */ export interface LinkConnectionUpdateLandingZoneCredentialOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface LinkConnectionPauseOptionalParams extends coreClient.OperationOptions {} +export interface LinkConnectionPauseOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface LinkConnectionResumeOptionalParams extends coreClient.OperationOptions {} +export interface LinkConnectionResumeOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ export interface LinkConnectionListByWorkspaceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByWorkspaceNext operation. */ -export type LinkConnectionListByWorkspaceNextResponse = LinkConnectionListResponse; +export type LinkConnectionListByWorkspaceNextResponse = + LinkConnectionListResponse; /** Optional parameters. */ -export interface RunNotebookCreateRunOptionalParams extends coreClient.OperationOptions { +export interface RunNotebookCreateRunOptionalParams + extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -14856,40 +15107,47 @@ export interface RunNotebookCreateRunOptionalParams extends coreClient.Operation } /** Contains response data for the createRun operation. */ -export type RunNotebookCreateRunResponse = RunNotebookCreateRunHeaders & RunNotebookResponse; +export type RunNotebookCreateRunResponse = RunNotebookCreateRunHeaders & + RunNotebookResponse; /** Optional parameters. */ -export interface RunNotebookGetStatusOptionalParams extends coreClient.OperationOptions {} +export interface RunNotebookGetStatusOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the getStatus operation. */ export type RunNotebookGetStatusResponse = RunNotebookResponse; /** Optional parameters. */ -export interface RunNotebookCancelRunOptionalParams extends coreClient.OperationOptions {} +export interface RunNotebookCancelRunOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the cancelRun operation. */ export type RunNotebookCancelRunResponse = RunNotebookResponse; /** Optional parameters. */ -export interface RunNotebookGetSnapshotOptionalParams extends coreClient.OperationOptions {} +export interface RunNotebookGetSnapshotOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the getSnapshot operation. */ export type RunNotebookGetSnapshotResponse = RunNotebookSnapshotResponse; /** Optional parameters. */ -export interface KqlScriptsGetAllOptionalParams extends coreClient.OperationOptions {} +export interface KqlScriptsGetAllOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the getAll operation. */ export type KqlScriptsGetAllResponse = KqlScriptsResourceCollectionResponse; /** Optional parameters. */ -export interface KqlScriptsGetAllNextOptionalParams extends coreClient.OperationOptions {} +export interface KqlScriptsGetAllNextOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the getAllNext operation. */ export type KqlScriptsGetAllNextResponse = KqlScriptsResourceCollectionResponse; /** Optional parameters. */ -export interface KqlScriptCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +export interface KqlScriptCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -14900,13 +15158,15 @@ export interface KqlScriptCreateOrUpdateOptionalParams extends coreClient.Operat export type KqlScriptCreateOrUpdateResponse = KqlScriptResource; /** Optional parameters. */ -export interface KqlScriptGetByNameOptionalParams extends coreClient.OperationOptions {} +export interface KqlScriptGetByNameOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the getByName operation. */ export type KqlScriptGetByNameResponse = KqlScriptResource; /** Optional parameters. */ -export interface KqlScriptDeleteByNameOptionalParams extends coreClient.OperationOptions { +export interface KqlScriptDeleteByNameOptionalParams + extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -14914,7 +15174,8 @@ export interface KqlScriptDeleteByNameOptionalParams extends coreClient.Operatio } /** Optional parameters. */ -export interface KqlScriptRenameOptionalParams extends coreClient.OperationOptions { +export interface KqlScriptRenameOptionalParams + extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -14922,25 +15183,30 @@ export interface KqlScriptRenameOptionalParams extends coreClient.OperationOptio } /** Optional parameters. */ -export interface MetastoreRegisterOptionalParams extends coreClient.OperationOptions {} +export interface MetastoreRegisterOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the register operation. */ export type MetastoreRegisterResponse = MetastoreRegistrationResponse; /** Optional parameters. */ -export interface MetastoreGetDatabaseOperationsOptionalParams extends coreClient.OperationOptions {} +export interface MetastoreGetDatabaseOperationsOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the getDatabaseOperations operation. */ -export type MetastoreGetDatabaseOperationsResponse = MetastoreRequestSuccessResponse; +export type MetastoreGetDatabaseOperationsResponse = + MetastoreRequestSuccessResponse; /** Optional parameters. */ -export interface MetastoreUpdateOptionalParams extends coreClient.OperationOptions {} +export interface MetastoreUpdateOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ export type MetastoreUpdateResponse = MetastoreUpdationResponse; /** Optional parameters. */ -export interface MetastoreDeleteOptionalParams extends coreClient.OperationOptions {} +export interface MetastoreDeleteOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ export interface SparkConfigurationGetSparkConfigurationsByWorkspaceOptionalParams @@ -14962,7 +15228,8 @@ export interface SparkConfigurationCreateOrUpdateSparkConfigurationOptionalParam } /** Contains response data for the createOrUpdateSparkConfiguration operation. */ -export type SparkConfigurationCreateOrUpdateSparkConfigurationResponse = SparkConfigurationResource; +export type SparkConfigurationCreateOrUpdateSparkConfigurationResponse = + SparkConfigurationResource; /** Optional parameters. */ export interface SparkConfigurationGetSparkConfigurationOptionalParams @@ -14972,7 +15239,8 @@ export interface SparkConfigurationGetSparkConfigurationOptionalParams } /** Contains response data for the getSparkConfiguration operation. */ -export type SparkConfigurationGetSparkConfigurationResponse = SparkConfigurationResource; +export type SparkConfigurationGetSparkConfigurationResponse = + SparkConfigurationResource; /** Optional parameters. */ export interface SparkConfigurationDeleteSparkConfigurationOptionalParams @@ -15001,19 +15269,22 @@ export type SparkConfigurationGetSparkConfigurationsByWorkspaceNextResponse = SparkConfigurationListResponse; /** Optional parameters. */ -export interface BigDataPoolsListOptionalParams extends coreClient.OperationOptions {} +export interface BigDataPoolsListOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type BigDataPoolsListResponse = BigDataPoolResourceInfoListResult; /** Optional parameters. */ -export interface BigDataPoolsGetOptionalParams extends coreClient.OperationOptions {} +export interface BigDataPoolsGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type BigDataPoolsGetResponse = BigDataPoolResourceInfo; /** Optional parameters. */ -export interface DataFlowCreateOrUpdateDataFlowOptionalParams extends coreClient.OperationOptions { +export interface DataFlowCreateOrUpdateDataFlowOptionalParams + extends coreClient.OperationOptions { /** ETag of the data flow entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. */ ifMatch?: string; /** Delay to wait until next poll, in milliseconds. */ @@ -15026,7 +15297,8 @@ export interface DataFlowCreateOrUpdateDataFlowOptionalParams extends coreClient export type DataFlowCreateOrUpdateDataFlowResponse = DataFlowResource; /** Optional parameters. */ -export interface DataFlowGetDataFlowOptionalParams extends coreClient.OperationOptions { +export interface DataFlowGetDataFlowOptionalParams + extends coreClient.OperationOptions { /** ETag of the data flow entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned. */ ifNoneMatch?: string; } @@ -15035,7 +15307,8 @@ export interface DataFlowGetDataFlowOptionalParams extends coreClient.OperationO export type DataFlowGetDataFlowResponse = DataFlowResource; /** Optional parameters. */ -export interface DataFlowDeleteDataFlowOptionalParams extends coreClient.OperationOptions { +export interface DataFlowDeleteDataFlowOptionalParams + extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -15043,7 +15316,8 @@ export interface DataFlowDeleteDataFlowOptionalParams extends coreClient.Operati } /** Optional parameters. */ -export interface DataFlowRenameDataFlowOptionalParams extends coreClient.OperationOptions { +export interface DataFlowRenameDataFlowOptionalParams + extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -15090,7 +15364,8 @@ export interface DataFlowDebugSessionAddDataFlowOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the addDataFlow operation. */ -export type DataFlowDebugSessionAddDataFlowResponse = AddDataFlowToDebugSessionResponse; +export type DataFlowDebugSessionAddDataFlowResponse = + AddDataFlowToDebugSessionResponse; /** Optional parameters. */ export interface DataFlowDebugSessionDeleteDataFlowDebugSessionOptionalParams @@ -15106,7 +15381,8 @@ export interface DataFlowDebugSessionExecuteCommandOptionalParams } /** Contains response data for the executeCommand operation. */ -export type DataFlowDebugSessionExecuteCommandResponse = DataFlowDebugCommandResponse; +export type DataFlowDebugSessionExecuteCommandResponse = + DataFlowDebugCommandResponse; /** Optional parameters. */ export interface DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceNextOptionalParams @@ -15117,13 +15393,15 @@ export type DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceNextRespons QueryDataFlowDebugSessionsResponse; /** Optional parameters. */ -export interface DatasetGetDatasetsByWorkspaceOptionalParams extends coreClient.OperationOptions {} +export interface DatasetGetDatasetsByWorkspaceOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the getDatasetsByWorkspace operation. */ export type DatasetGetDatasetsByWorkspaceResponse = DatasetListResponse; /** Optional parameters. */ -export interface DatasetCreateOrUpdateDatasetOptionalParams extends coreClient.OperationOptions { +export interface DatasetCreateOrUpdateDatasetOptionalParams + extends coreClient.OperationOptions { /** ETag of the dataset entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. */ ifMatch?: string; /** Delay to wait until next poll, in milliseconds. */ @@ -15136,7 +15414,8 @@ export interface DatasetCreateOrUpdateDatasetOptionalParams extends coreClient.O export type DatasetCreateOrUpdateDatasetResponse = DatasetResource; /** Optional parameters. */ -export interface DatasetGetDatasetOptionalParams extends coreClient.OperationOptions { +export interface DatasetGetDatasetOptionalParams + extends coreClient.OperationOptions { /** ETag of the dataset entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned. */ ifNoneMatch?: string; } @@ -15145,7 +15424,8 @@ export interface DatasetGetDatasetOptionalParams extends coreClient.OperationOpt export type DatasetGetDatasetResponse = DatasetResource; /** Optional parameters. */ -export interface DatasetDeleteDatasetOptionalParams extends coreClient.OperationOptions { +export interface DatasetDeleteDatasetOptionalParams + extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -15153,7 +15433,8 @@ export interface DatasetDeleteDatasetOptionalParams extends coreClient.Operation } /** Optional parameters. */ -export interface DatasetRenameDatasetOptionalParams extends coreClient.OperationOptions { +export interface DatasetRenameDatasetOptionalParams + extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -15175,28 +15456,33 @@ export interface WorkspaceGitRepoManagementGetGitHubAccessTokenOptionalParams } /** Contains response data for the getGitHubAccessToken operation. */ -export type WorkspaceGitRepoManagementGetGitHubAccessTokenResponse = GitHubAccessTokenResponse; +export type WorkspaceGitRepoManagementGetGitHubAccessTokenResponse = + GitHubAccessTokenResponse; /** Optional parameters. */ -export interface IntegrationRuntimesListOptionalParams extends coreClient.OperationOptions {} +export interface IntegrationRuntimesListOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type IntegrationRuntimesListResponse = IntegrationRuntimeListResponse; /** Optional parameters. */ -export interface IntegrationRuntimesGetOptionalParams extends coreClient.OperationOptions {} +export interface IntegrationRuntimesGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type IntegrationRuntimesGetResponse = IntegrationRuntimeResource; /** Optional parameters. */ -export interface LibraryListOptionalParams extends coreClient.OperationOptions {} +export interface LibraryListOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type LibraryListOperationResponse = LibraryListResponse; /** Optional parameters. */ -export interface LibraryFlushOptionalParams extends coreClient.OperationOptions { +export interface LibraryFlushOptionalParams + extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -15204,13 +15490,15 @@ export interface LibraryFlushOptionalParams extends coreClient.OperationOptions } /** Optional parameters. */ -export interface LibraryGetOperationResultOptionalParams extends coreClient.OperationOptions {} +export interface LibraryGetOperationResultOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the getOperationResult operation. */ export type LibraryGetOperationResultResponse = LibraryResource; /** Optional parameters. */ -export interface LibraryDeleteOptionalParams extends coreClient.OperationOptions { +export interface LibraryDeleteOptionalParams + extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -15224,7 +15512,8 @@ export interface LibraryGetOptionalParams extends coreClient.OperationOptions {} export type LibraryGetResponse = LibraryResource; /** Optional parameters. */ -export interface LibraryCreateOptionalParams extends coreClient.OperationOptions { +export interface LibraryCreateOptionalParams + extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -15232,13 +15521,15 @@ export interface LibraryCreateOptionalParams extends coreClient.OperationOptions } /** Optional parameters. */ -export interface LibraryAppendOptionalParams extends coreClient.OperationOptions { +export interface LibraryAppendOptionalParams + extends coreClient.OperationOptions { /** Set this header to a byte offset at which the block is expected to be appended. The request succeeds only if the current offset matches this value. Otherwise, the request fails with the AppendPositionConditionNotMet error (HTTP status code 412 – Precondition Failed) */ blobConditionAppendPosition?: number; } /** Optional parameters. */ -export interface LibraryListNextOptionalParams extends coreClient.OperationOptions {} +export interface LibraryListNextOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type LibraryListNextResponse = LibraryListResponse; @@ -15248,7 +15539,8 @@ export interface LinkedServiceGetLinkedServicesByWorkspaceOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getLinkedServicesByWorkspace operation. */ -export type LinkedServiceGetLinkedServicesByWorkspaceResponse = LinkedServiceListResponse; +export type LinkedServiceGetLinkedServicesByWorkspaceResponse = + LinkedServiceListResponse; /** Optional parameters. */ export interface LinkedServiceCreateOrUpdateLinkedServiceOptionalParams @@ -15262,10 +15554,12 @@ export interface LinkedServiceCreateOrUpdateLinkedServiceOptionalParams } /** Contains response data for the createOrUpdateLinkedService operation. */ -export type LinkedServiceCreateOrUpdateLinkedServiceResponse = LinkedServiceResource; +export type LinkedServiceCreateOrUpdateLinkedServiceResponse = + LinkedServiceResource; /** Optional parameters. */ -export interface LinkedServiceGetLinkedServiceOptionalParams extends coreClient.OperationOptions { +export interface LinkedServiceGetLinkedServiceOptionalParams + extends coreClient.OperationOptions { /** ETag of the linked service entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned. */ ifNoneMatch?: string; } @@ -15296,7 +15590,8 @@ export interface LinkedServiceGetLinkedServicesByWorkspaceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getLinkedServicesByWorkspaceNext operation. */ -export type LinkedServiceGetLinkedServicesByWorkspaceNextResponse = LinkedServiceListResponse; +export type LinkedServiceGetLinkedServicesByWorkspaceNextResponse = + LinkedServiceListResponse; /** Optional parameters. */ export interface NotebookGetNotebooksByWorkspaceOptionalParams @@ -15310,10 +15605,12 @@ export interface NotebookGetNotebookSummaryByWorkSpaceOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getNotebookSummaryByWorkSpace operation. */ -export type NotebookGetNotebookSummaryByWorkSpaceResponse = NotebookListResponse; +export type NotebookGetNotebookSummaryByWorkSpaceResponse = + NotebookListResponse; /** Optional parameters. */ -export interface NotebookCreateOrUpdateNotebookOptionalParams extends coreClient.OperationOptions { +export interface NotebookCreateOrUpdateNotebookOptionalParams + extends coreClient.OperationOptions { /** ETag of the Note book entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. */ ifMatch?: string; /** Delay to wait until next poll, in milliseconds. */ @@ -15326,7 +15623,8 @@ export interface NotebookCreateOrUpdateNotebookOptionalParams extends coreClient export type NotebookCreateOrUpdateNotebookResponse = NotebookResource; /** Optional parameters. */ -export interface NotebookGetNotebookOptionalParams extends coreClient.OperationOptions { +export interface NotebookGetNotebookOptionalParams + extends coreClient.OperationOptions { /** ETag of the Notebook entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned. */ ifNoneMatch?: string; } @@ -15335,7 +15633,8 @@ export interface NotebookGetNotebookOptionalParams extends coreClient.OperationO export type NotebookGetNotebookResponse = NotebookResource; /** Optional parameters. */ -export interface NotebookDeleteNotebookOptionalParams extends coreClient.OperationOptions { +export interface NotebookDeleteNotebookOptionalParams + extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -15343,7 +15642,8 @@ export interface NotebookDeleteNotebookOptionalParams extends coreClient.Operati } /** Optional parameters. */ -export interface NotebookRenameNotebookOptionalParams extends coreClient.OperationOptions { +export interface NotebookRenameNotebookOptionalParams + extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -15362,10 +15662,12 @@ export interface NotebookGetNotebookSummaryByWorkSpaceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getNotebookSummaryByWorkSpaceNext operation. */ -export type NotebookGetNotebookSummaryByWorkSpaceNextResponse = NotebookListResponse; +export type NotebookGetNotebookSummaryByWorkSpaceNextResponse = + NotebookListResponse; /** Optional parameters. */ -export interface NotebookOperationResultGetOptionalParams extends coreClient.OperationOptions {} +export interface NotebookOperationResultGetOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ export interface PipelineGetPipelinesByWorkspaceOptionalParams @@ -15375,7 +15677,8 @@ export interface PipelineGetPipelinesByWorkspaceOptionalParams export type PipelineGetPipelinesByWorkspaceResponse = PipelineListResponse; /** Optional parameters. */ -export interface PipelineCreateOrUpdatePipelineOptionalParams extends coreClient.OperationOptions { +export interface PipelineCreateOrUpdatePipelineOptionalParams + extends coreClient.OperationOptions { /** ETag of the pipeline entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. */ ifMatch?: string; /** Delay to wait until next poll, in milliseconds. */ @@ -15388,7 +15691,8 @@ export interface PipelineCreateOrUpdatePipelineOptionalParams extends coreClient export type PipelineCreateOrUpdatePipelineResponse = PipelineResource; /** Optional parameters. */ -export interface PipelineGetPipelineOptionalParams extends coreClient.OperationOptions { +export interface PipelineGetPipelineOptionalParams + extends coreClient.OperationOptions { /** ETag of the pipeline entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned. */ ifNoneMatch?: string; } @@ -15397,7 +15701,8 @@ export interface PipelineGetPipelineOptionalParams extends coreClient.OperationO export type PipelineGetPipelineResponse = PipelineResource; /** Optional parameters. */ -export interface PipelineDeletePipelineOptionalParams extends coreClient.OperationOptions { +export interface PipelineDeletePipelineOptionalParams + extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -15405,7 +15710,8 @@ export interface PipelineDeletePipelineOptionalParams extends coreClient.Operati } /** Optional parameters. */ -export interface PipelineRenamePipelineOptionalParams extends coreClient.OperationOptions { +export interface PipelineRenamePipelineOptionalParams + extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -15413,7 +15719,8 @@ export interface PipelineRenamePipelineOptionalParams extends coreClient.Operati } /** Optional parameters. */ -export interface PipelineCreatePipelineRunOptionalParams extends coreClient.OperationOptions { +export interface PipelineCreatePipelineRunOptionalParams + extends coreClient.OperationOptions { /** Parameters of the pipeline run. These parameters will be used only if the runId is not specified. */ parameters?: { [propertyName: string]: any }; /** The pipeline run identifier. If run ID is specified the parameters of the specified run will be used to create a new run. */ @@ -15439,22 +15746,26 @@ export interface PipelineRunQueryPipelineRunsByWorkspaceOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the queryPipelineRunsByWorkspace operation. */ -export type PipelineRunQueryPipelineRunsByWorkspaceResponse = PipelineRunsQueryResponse; +export type PipelineRunQueryPipelineRunsByWorkspaceResponse = + PipelineRunsQueryResponse; /** Optional parameters. */ -export interface PipelineRunGetPipelineRunOptionalParams extends coreClient.OperationOptions {} +export interface PipelineRunGetPipelineRunOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the getPipelineRun operation. */ export type PipelineRunGetPipelineRunResponse = PipelineRun; /** Optional parameters. */ -export interface PipelineRunQueryActivityRunsOptionalParams extends coreClient.OperationOptions {} +export interface PipelineRunQueryActivityRunsOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the queryActivityRuns operation. */ export type PipelineRunQueryActivityRunsResponse = ActivityRunsQueryResponse; /** Optional parameters. */ -export interface PipelineRunCancelPipelineRunOptionalParams extends coreClient.OperationOptions { +export interface PipelineRunCancelPipelineRunOptionalParams + extends coreClient.OperationOptions { /** If true, cancel all the Child pipelines that are triggered by the current pipeline. */ isRecursive?: boolean; } @@ -15479,7 +15790,8 @@ export interface SparkJobDefinitionCreateOrUpdateSparkJobDefinitionOptionalParam } /** Contains response data for the createOrUpdateSparkJobDefinition operation. */ -export type SparkJobDefinitionCreateOrUpdateSparkJobDefinitionResponse = SparkJobDefinitionResource; +export type SparkJobDefinitionCreateOrUpdateSparkJobDefinitionResponse = + SparkJobDefinitionResource; /** Optional parameters. */ export interface SparkJobDefinitionGetSparkJobDefinitionOptionalParams @@ -15489,7 +15801,8 @@ export interface SparkJobDefinitionGetSparkJobDefinitionOptionalParams } /** Contains response data for the getSparkJobDefinition operation. */ -export type SparkJobDefinitionGetSparkJobDefinitionResponse = SparkJobDefinitionResource; +export type SparkJobDefinitionGetSparkJobDefinitionResponse = + SparkJobDefinitionResource; /** Optional parameters. */ export interface SparkJobDefinitionDeleteSparkJobDefinitionOptionalParams @@ -15542,13 +15855,15 @@ export type SparkJobDefinitionGetSparkJobDefinitionsByWorkspaceNextResponse = SparkJobDefinitionsListResponse; /** Optional parameters. */ -export interface SqlPoolsListOptionalParams extends coreClient.OperationOptions {} +export interface SqlPoolsListOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type SqlPoolsListResponse = SqlPoolInfoListResult; /** Optional parameters. */ -export interface SqlPoolsGetOptionalParams extends coreClient.OperationOptions {} +export interface SqlPoolsGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type SqlPoolsGetResponse = SqlPool; @@ -15575,7 +15890,8 @@ export interface SqlScriptCreateOrUpdateSqlScriptOptionalParams export type SqlScriptCreateOrUpdateSqlScriptResponse = SqlScriptResource; /** Optional parameters. */ -export interface SqlScriptGetSqlScriptOptionalParams extends coreClient.OperationOptions { +export interface SqlScriptGetSqlScriptOptionalParams + extends coreClient.OperationOptions { /** ETag of the sql compute entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned. */ ifNoneMatch?: string; } @@ -15584,7 +15900,8 @@ export interface SqlScriptGetSqlScriptOptionalParams extends coreClient.Operatio export type SqlScriptGetSqlScriptResponse = SqlScriptResource; /** Optional parameters. */ -export interface SqlScriptDeleteSqlScriptOptionalParams extends coreClient.OperationOptions { +export interface SqlScriptDeleteSqlScriptOptionalParams + extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -15592,7 +15909,8 @@ export interface SqlScriptDeleteSqlScriptOptionalParams extends coreClient.Opera } /** Optional parameters. */ -export interface SqlScriptRenameSqlScriptOptionalParams extends coreClient.OperationOptions { +export interface SqlScriptRenameSqlScriptOptionalParams + extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -15604,16 +15922,19 @@ export interface SqlScriptGetSqlScriptsByWorkspaceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getSqlScriptsByWorkspaceNext operation. */ -export type SqlScriptGetSqlScriptsByWorkspaceNextResponse = SqlScriptsListResponse; +export type SqlScriptGetSqlScriptsByWorkspaceNextResponse = + SqlScriptsListResponse; /** Optional parameters. */ -export interface TriggerGetTriggersByWorkspaceOptionalParams extends coreClient.OperationOptions {} +export interface TriggerGetTriggersByWorkspaceOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the getTriggersByWorkspace operation. */ export type TriggerGetTriggersByWorkspaceResponse = TriggerListResponse; /** Optional parameters. */ -export interface TriggerCreateOrUpdateTriggerOptionalParams extends coreClient.OperationOptions { +export interface TriggerCreateOrUpdateTriggerOptionalParams + extends coreClient.OperationOptions { /** ETag of the trigger entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. */ ifMatch?: string; /** Delay to wait until next poll, in milliseconds. */ @@ -15626,7 +15947,8 @@ export interface TriggerCreateOrUpdateTriggerOptionalParams extends coreClient.O export type TriggerCreateOrUpdateTriggerResponse = TriggerResource; /** Optional parameters. */ -export interface TriggerGetTriggerOptionalParams extends coreClient.OperationOptions { +export interface TriggerGetTriggerOptionalParams + extends coreClient.OperationOptions { /** ETag of the trigger entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned. */ ifNoneMatch?: string; } @@ -15635,7 +15957,8 @@ export interface TriggerGetTriggerOptionalParams extends coreClient.OperationOpt export type TriggerGetTriggerResponse = TriggerResource; /** Optional parameters. */ -export interface TriggerDeleteTriggerOptionalParams extends coreClient.OperationOptions { +export interface TriggerDeleteTriggerOptionalParams + extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -15643,7 +15966,8 @@ export interface TriggerDeleteTriggerOptionalParams extends coreClient.Operation } /** Optional parameters. */ -export interface TriggerSubscribeTriggerToEventsOptionalParams extends coreClient.OperationOptions { +export interface TriggerSubscribeTriggerToEventsOptionalParams + extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -15651,14 +15975,16 @@ export interface TriggerSubscribeTriggerToEventsOptionalParams extends coreClien } /** Contains response data for the subscribeTriggerToEvents operation. */ -export type TriggerSubscribeTriggerToEventsResponse = TriggerSubscriptionOperationStatus; +export type TriggerSubscribeTriggerToEventsResponse = + TriggerSubscriptionOperationStatus; /** Optional parameters. */ export interface TriggerGetEventSubscriptionStatusOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEventSubscriptionStatus operation. */ -export type TriggerGetEventSubscriptionStatusResponse = TriggerSubscriptionOperationStatus; +export type TriggerGetEventSubscriptionStatusResponse = + TriggerSubscriptionOperationStatus; /** Optional parameters. */ export interface TriggerUnsubscribeTriggerFromEventsOptionalParams @@ -15670,10 +15996,12 @@ export interface TriggerUnsubscribeTriggerFromEventsOptionalParams } /** Contains response data for the unsubscribeTriggerFromEvents operation. */ -export type TriggerUnsubscribeTriggerFromEventsResponse = TriggerSubscriptionOperationStatus; +export type TriggerUnsubscribeTriggerFromEventsResponse = + TriggerSubscriptionOperationStatus; /** Optional parameters. */ -export interface TriggerStartTriggerOptionalParams extends coreClient.OperationOptions { +export interface TriggerStartTriggerOptionalParams + extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -15681,7 +16009,8 @@ export interface TriggerStartTriggerOptionalParams extends coreClient.OperationO } /** Optional parameters. */ -export interface TriggerStopTriggerOptionalParams extends coreClient.OperationOptions { +export interface TriggerStopTriggerOptionalParams + extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -15696,7 +16025,8 @@ export interface TriggerGetTriggersByWorkspaceNextOptionalParams export type TriggerGetTriggersByWorkspaceNextResponse = TriggerListResponse; /** Optional parameters. */ -export interface TriggerRunRerunTriggerInstanceOptionalParams extends coreClient.OperationOptions {} +export interface TriggerRunRerunTriggerInstanceOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ export interface TriggerRunCancelTriggerInstanceOptionalParams @@ -15707,16 +16037,19 @@ export interface TriggerRunQueryTriggerRunsByWorkspaceOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the queryTriggerRunsByWorkspace operation. */ -export type TriggerRunQueryTriggerRunsByWorkspaceResponse = TriggerRunsQueryResponse; +export type TriggerRunQueryTriggerRunsByWorkspaceResponse = + TriggerRunsQueryResponse; /** Optional parameters. */ -export interface WorkspaceGetOptionalParams extends coreClient.OperationOptions {} +export interface WorkspaceGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type WorkspaceGetResponse = Workspace; /** Optional parameters. */ -export interface ArtifactsClientOptionalParams extends coreClient.ServiceClientOptions { +export interface ArtifactsClientOptionalParams + extends coreClient.ServiceClientOptions { /** Overrides client endpoint. */ endpoint?: string; } diff --git a/sdk/synapse/synapse-artifacts/src/models/mappers.ts b/sdk/synapse/synapse-artifacts/src/models/mappers.ts index da8abc8110f2..3488368efc83 100644 --- a/sdk/synapse/synapse-artifacts/src/models/mappers.ts +++ b/sdk/synapse/synapse-artifacts/src/models/mappers.ts @@ -166,26 +166,27 @@ export const LinkedServiceReference: coreClient.CompositeMapper = { }, }; -export const LinkConnectionSourceDatabaseTypeProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "LinkConnectionSourceDatabaseTypeProperties", - modelProperties: { - resourceId: { - serializedName: "resourceId", - type: { - name: "String", +export const LinkConnectionSourceDatabaseTypeProperties: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "LinkConnectionSourceDatabaseTypeProperties", + modelProperties: { + resourceId: { + serializedName: "resourceId", + type: { + name: "String", + }, }, - }, - principalId: { - serializedName: "principalId", - type: { - name: "String", + principalId: { + serializedName: "principalId", + type: { + name: "String", + }, }, }, }, - }, -}; + }; export const LinkConnectionTargetDatabase: coreClient.CompositeMapper = { type: { @@ -210,32 +211,33 @@ export const LinkConnectionTargetDatabase: coreClient.CompositeMapper = { }, }; -export const LinkConnectionTargetDatabaseTypeProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "LinkConnectionTargetDatabaseTypeProperties", - modelProperties: { - crossTableTransaction: { - serializedName: "crossTableTransaction", - type: { - name: "Boolean", +export const LinkConnectionTargetDatabaseTypeProperties: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "LinkConnectionTargetDatabaseTypeProperties", + modelProperties: { + crossTableTransaction: { + serializedName: "crossTableTransaction", + type: { + name: "Boolean", + }, }, - }, - dropExistingTargetTableOnStart: { - serializedName: "dropExistingTargetTableOnStart", - type: { - name: "Boolean", + dropExistingTargetTableOnStart: { + serializedName: "dropExistingTargetTableOnStart", + type: { + name: "Boolean", + }, }, - }, - actionOnExistingTargetTable: { - serializedName: "actionOnExistingTargetTable", - type: { - name: "String", + actionOnExistingTargetTable: { + serializedName: "actionOnExistingTargetTable", + type: { + name: "String", + }, }, }, }, - }, -}; + }; export const LinkConnectionLandingZone: coreClient.CompositeMapper = { type: { @@ -477,41 +479,43 @@ export const LinkTableRequestTarget: coreClient.CompositeMapper = { }, }; -export const LinkTableRequestTargetDistributionOptions: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "LinkTableRequestTargetDistributionOptions", - modelProperties: { - type: { - serializedName: "type", +export const LinkTableRequestTargetDistributionOptions: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "LinkTableRequestTargetDistributionOptions", + modelProperties: { type: { - name: "String", + serializedName: "type", + type: { + name: "String", + }, }, - }, - distributionColumn: { - serializedName: "distributionColumn", - type: { - name: "String", + distributionColumn: { + serializedName: "distributionColumn", + type: { + name: "String", + }, }, }, }, - }, -}; + }; -export const LinkTableRequestTargetStructureOptions: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "LinkTableRequestTargetStructureOptions", - modelProperties: { - type: { - serializedName: "type", +export const LinkTableRequestTargetStructureOptions: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "LinkTableRequestTargetStructureOptions", + modelProperties: { type: { - name: "String", + serializedName: "type", + type: { + name: "String", + }, }, }, }, - }, -}; + }; export const LinkConnectionDetailedStatus: coreClient.CompositeMapper = { type: { @@ -1657,32 +1661,33 @@ export const NotebookFolder: coreClient.CompositeMapper = { }, }; -export const KqlScriptsResourceCollectionResponse: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "KqlScriptsResourceCollectionResponse", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "KqlScriptResource", +export const KqlScriptsResourceCollectionResponse: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "KqlScriptsResourceCollectionResponse", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "KqlScriptResource", + }, }, }, }, - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String", + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, }, }, }, - }, -}; + }; export const KqlScriptResource: coreClient.CompositeMapper = { type: { @@ -5660,39 +5665,40 @@ export const DataFlowReference: coreClient.CompositeMapper = { }, }; -export const RerunTumblingWindowTriggerActionParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RerunTumblingWindowTriggerActionParameters", - modelProperties: { - startTime: { - serializedName: "startTime", - required: true, - type: { - name: "DateTime", - }, - }, - endTime: { - serializedName: "endTime", - required: true, - type: { - name: "DateTime", +export const RerunTumblingWindowTriggerActionParameters: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "RerunTumblingWindowTriggerActionParameters", + modelProperties: { + startTime: { + serializedName: "startTime", + required: true, + type: { + name: "DateTime", + }, }, - }, - maxConcurrency: { - constraints: { - InclusiveMaximum: 50, - InclusiveMinimum: 1, + endTime: { + serializedName: "endTime", + required: true, + type: { + name: "DateTime", + }, }, - serializedName: "maxConcurrency", - required: true, - type: { - name: "Number", + maxConcurrency: { + constraints: { + InclusiveMaximum: 50, + InclusiveMinimum: 1, + }, + serializedName: "maxConcurrency", + required: true, + type: { + name: "Number", + }, }, }, }, - }, -}; + }; export const GetSsisObjectMetadataRequest: coreClient.CompositeMapper = { type: { @@ -6347,169 +6353,171 @@ export const DatasetCompression: coreClient.CompositeMapper = { }, }; -export const AzureStorageLinkedServiceTypeProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AzureStorageLinkedServiceTypeProperties", - modelProperties: { - connectionString: { - serializedName: "connectionString", - type: { - name: "any", +export const AzureStorageLinkedServiceTypeProperties: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "AzureStorageLinkedServiceTypeProperties", + modelProperties: { + connectionString: { + serializedName: "connectionString", + type: { + name: "any", + }, }, - }, - accountKey: { - serializedName: "accountKey", - type: { - name: "Composite", - className: "AzureKeyVaultSecretReference", + accountKey: { + serializedName: "accountKey", + type: { + name: "Composite", + className: "AzureKeyVaultSecretReference", + }, }, - }, - sasUri: { - serializedName: "sasUri", - type: { - name: "any", + sasUri: { + serializedName: "sasUri", + type: { + name: "any", + }, }, - }, - sasToken: { - serializedName: "sasToken", - type: { - name: "Composite", - className: "AzureKeyVaultSecretReference", + sasToken: { + serializedName: "sasToken", + type: { + name: "Composite", + className: "AzureKeyVaultSecretReference", + }, }, - }, - encryptedCredential: { - serializedName: "encryptedCredential", - type: { - name: "String", + encryptedCredential: { + serializedName: "encryptedCredential", + type: { + name: "String", + }, }, }, }, - }, -}; + }; -export const SqlServerBaseLinkedServiceTypeProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SqlServerBaseLinkedServiceTypeProperties", - modelProperties: { - server: { - serializedName: "server", - type: { - name: "any", +export const SqlServerBaseLinkedServiceTypeProperties: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "SqlServerBaseLinkedServiceTypeProperties", + modelProperties: { + server: { + serializedName: "server", + type: { + name: "any", + }, }, - }, - database: { - serializedName: "database", - type: { - name: "any", + database: { + serializedName: "database", + type: { + name: "any", + }, }, - }, - encrypt: { - serializedName: "encrypt", - type: { - name: "any", + encrypt: { + serializedName: "encrypt", + type: { + name: "any", + }, }, - }, - trustServerCertificate: { - serializedName: "trustServerCertificate", - type: { - name: "any", + trustServerCertificate: { + serializedName: "trustServerCertificate", + type: { + name: "any", + }, }, - }, - hostNameInCertificate: { - serializedName: "hostNameInCertificate", - type: { - name: "any", + hostNameInCertificate: { + serializedName: "hostNameInCertificate", + type: { + name: "any", + }, }, - }, - applicationIntent: { - serializedName: "applicationIntent", - type: { - name: "any", + applicationIntent: { + serializedName: "applicationIntent", + type: { + name: "any", + }, }, - }, - connectTimeout: { - serializedName: "connectTimeout", - type: { - name: "any", + connectTimeout: { + serializedName: "connectTimeout", + type: { + name: "any", + }, }, - }, - connectRetryCount: { - serializedName: "connectRetryCount", - type: { - name: "any", + connectRetryCount: { + serializedName: "connectRetryCount", + type: { + name: "any", + }, }, - }, - connectRetryInterval: { - serializedName: "connectRetryInterval", - type: { - name: "any", + connectRetryInterval: { + serializedName: "connectRetryInterval", + type: { + name: "any", + }, }, - }, - loadBalanceTimeout: { - serializedName: "loadBalanceTimeout", - type: { - name: "any", + loadBalanceTimeout: { + serializedName: "loadBalanceTimeout", + type: { + name: "any", + }, }, - }, - commandTimeout: { - serializedName: "commandTimeout", - type: { - name: "any", + commandTimeout: { + serializedName: "commandTimeout", + type: { + name: "any", + }, }, - }, - integratedSecurity: { - serializedName: "integratedSecurity", - type: { - name: "any", + integratedSecurity: { + serializedName: "integratedSecurity", + type: { + name: "any", + }, }, - }, - failoverPartner: { - serializedName: "failoverPartner", - type: { - name: "any", + failoverPartner: { + serializedName: "failoverPartner", + type: { + name: "any", + }, }, - }, - maxPoolSize: { - serializedName: "maxPoolSize", - type: { - name: "any", + maxPoolSize: { + serializedName: "maxPoolSize", + type: { + name: "any", + }, }, - }, - minPoolSize: { - serializedName: "minPoolSize", - type: { - name: "any", + minPoolSize: { + serializedName: "minPoolSize", + type: { + name: "any", + }, }, - }, - multipleActiveResultSets: { - serializedName: "multipleActiveResultSets", - type: { - name: "any", + multipleActiveResultSets: { + serializedName: "multipleActiveResultSets", + type: { + name: "any", + }, }, - }, - multiSubnetFailover: { - serializedName: "multiSubnetFailover", - type: { - name: "any", + multiSubnetFailover: { + serializedName: "multiSubnetFailover", + type: { + name: "any", + }, }, - }, - packetSize: { - serializedName: "packetSize", - type: { - name: "any", + packetSize: { + serializedName: "packetSize", + type: { + name: "any", + }, }, - }, - pooling: { - serializedName: "pooling", - type: { - name: "any", + pooling: { + serializedName: "pooling", + type: { + name: "any", + }, }, }, }, - }, -}; + }; export const SqlAlwaysEncryptedProperties: coreClient.CompositeMapper = { type: { @@ -6611,81 +6619,20 @@ export const ScriptAction: coreClient.CompositeMapper = { }, }; -export const ServiceNowV2LinkedServiceTypeProperties: coreClient.CompositeMapper = { +export const ActivityPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServiceNowV2LinkedServiceTypeProperties", + className: "ActivityPolicy", + additionalProperties: { type: { name: "Object" } }, modelProperties: { - endpoint: { - serializedName: "endpoint", - required: true, + timeout: { + serializedName: "timeout", type: { name: "any", }, }, - authenticationType: { - serializedName: "authenticationType", - required: true, - type: { - name: "String", - }, - }, - username: { - serializedName: "username", - type: { - name: "any", - }, - }, - password: { - serializedName: "password", - type: { - name: "Composite", - className: "SecretBase", - }, - }, - clientId: { - serializedName: "clientId", - type: { - name: "any", - }, - }, - clientSecret: { - serializedName: "clientSecret", - type: { - name: "Composite", - className: "SecretBase", - }, - }, - grantType: { - serializedName: "grantType", - type: { - name: "any", - }, - }, - encryptedCredential: { - serializedName: "encryptedCredential", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const ActivityPolicy: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ActivityPolicy", - additionalProperties: { type: { name: "Object" } }, - modelProperties: { - timeout: { - serializedName: "timeout", - type: { - name: "any", - }, - }, - retry: { - serializedName: "retry", + retry: { + serializedName: "retry", type: { name: "any", }, @@ -7425,6 +7372,21 @@ export const OutputColumn: coreClient.CompositeMapper = { }, }; +export const AzurePostgreSqlSinkUpsertSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AzurePostgreSqlSinkUpsertSettings", + modelProperties: { + keys: { + serializedName: "keys", + type: { + name: "any", + }, + }, + }, + }, +}; + export const NetezzaPartitionSettings: coreClient.CompositeMapper = { type: { name: "Composite", @@ -7704,6 +7666,18 @@ export const TypeConversionSettings: coreClient.CompositeMapper = { name: "any", }, }, + timeFormat: { + serializedName: "timeFormat", + type: { + name: "any", + }, + }, + dateFormat: { + serializedName: "dateFormat", + type: { + name: "any", + }, + }, culture: { serializedName: "culture", type: { @@ -8147,26 +8121,27 @@ export const ContinuationSettingsReference: coreClient.CompositeMapper = { }, }; -export const ExecuteDataFlowActivityTypePropertiesCompute: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ExecuteDataFlowActivityTypePropertiesCompute", - modelProperties: { - computeType: { - serializedName: "computeType", - type: { - name: "any", +export const ExecuteDataFlowActivityTypePropertiesCompute: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ExecuteDataFlowActivityTypePropertiesCompute", + modelProperties: { + computeType: { + serializedName: "computeType", + type: { + name: "any", + }, }, - }, - coreCount: { - serializedName: "coreCount", - type: { - name: "any", + coreCount: { + serializedName: "coreCount", + type: { + name: "any", + }, }, }, }, - }, -}; + }; export const ScriptActivityScriptBlock: coreClient.CompositeMapper = { type: { @@ -8242,51 +8217,53 @@ export const ScriptActivityParameter: coreClient.CompositeMapper = { }, }; -export const ScriptActivityTypePropertiesLogSettings: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ScriptActivityTypePropertiesLogSettings", - modelProperties: { - logDestination: { - serializedName: "logDestination", - required: true, - type: { - name: "String", +export const ScriptActivityTypePropertiesLogSettings: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ScriptActivityTypePropertiesLogSettings", + modelProperties: { + logDestination: { + serializedName: "logDestination", + required: true, + type: { + name: "String", + }, }, - }, - logLocationSettings: { - serializedName: "logLocationSettings", - type: { - name: "Composite", - className: "LogLocationSettings", + logLocationSettings: { + serializedName: "logLocationSettings", + type: { + name: "Composite", + className: "LogLocationSettings", + }, }, }, }, - }, -}; + }; -export const SparkConfigurationParametrizationReference: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SparkConfigurationParametrizationReference", - modelProperties: { - type: { - serializedName: "type", - required: true, +export const SparkConfigurationParametrizationReference: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "SparkConfigurationParametrizationReference", + modelProperties: { type: { - name: "String", + serializedName: "type", + required: true, + type: { + name: "String", + }, }, - }, - referenceName: { - serializedName: "referenceName", - required: true, - type: { - name: "any", + referenceName: { + serializedName: "referenceName", + required: true, + type: { + name: "any", + }, }, }, }, - }, -}; + }; export const SynapseActivityAuthentication: coreClient.CompositeMapper = { type: { @@ -8325,7 +8302,7 @@ export const ExpressionV2: coreClient.CompositeMapper = { value: { serializedName: "value", type: { - name: "String", + name: "any", }, }, operators: { @@ -8631,42 +8608,43 @@ export const IntegrationRuntimeComputeProperties: coreClient.CompositeMapper = { }, }; -export const IntegrationRuntimeDataFlowProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "IntegrationRuntimeDataFlowProperties", - additionalProperties: { type: { name: "Object" } }, - modelProperties: { - computeType: { - serializedName: "computeType", - type: { - name: "String", - }, - }, - coreCount: { - serializedName: "coreCount", - type: { - name: "Number", +export const IntegrationRuntimeDataFlowProperties: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "IntegrationRuntimeDataFlowProperties", + additionalProperties: { type: { name: "Object" } }, + modelProperties: { + computeType: { + serializedName: "computeType", + type: { + name: "String", + }, }, - }, - timeToLive: { - constraints: { - InclusiveMinimum: 0, + coreCount: { + serializedName: "coreCount", + type: { + name: "Number", + }, }, - serializedName: "timeToLive", - type: { - name: "Number", + timeToLive: { + constraints: { + InclusiveMinimum: 0, + }, + serializedName: "timeToLive", + type: { + name: "Number", + }, }, - }, - cleanup: { - serializedName: "cleanup", - type: { - name: "Boolean", + cleanup: { + serializedName: "cleanup", + type: { + name: "Boolean", + }, }, }, }, - }, -}; + }; export const IntegrationRuntimeVNetProperties: coreClient.CompositeMapper = { type: { @@ -8795,56 +8773,58 @@ export const IntegrationRuntimeSsisCatalogInfo: coreClient.CompositeMapper = { }, }; -export const IntegrationRuntimeCustomSetupScriptProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "IntegrationRuntimeCustomSetupScriptProperties", - modelProperties: { - blobContainerUri: { - serializedName: "blobContainerUri", - type: { - name: "String", +export const IntegrationRuntimeCustomSetupScriptProperties: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "IntegrationRuntimeCustomSetupScriptProperties", + modelProperties: { + blobContainerUri: { + serializedName: "blobContainerUri", + type: { + name: "String", + }, }, - }, - sasToken: { - serializedName: "sasToken", - type: { - name: "Composite", - className: "SecureString", + sasToken: { + serializedName: "sasToken", + type: { + name: "Composite", + className: "SecureString", + }, }, }, }, - }, -}; + }; -export const IntegrationRuntimeDataProxyProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "IntegrationRuntimeDataProxyProperties", - modelProperties: { - connectVia: { - serializedName: "connectVia", - type: { - name: "Composite", - className: "EntityReference", +export const IntegrationRuntimeDataProxyProperties: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "IntegrationRuntimeDataProxyProperties", + modelProperties: { + connectVia: { + serializedName: "connectVia", + type: { + name: "Composite", + className: "EntityReference", + }, }, - }, - stagingLinkedService: { - serializedName: "stagingLinkedService", - type: { - name: "Composite", - className: "EntityReference", + stagingLinkedService: { + serializedName: "stagingLinkedService", + type: { + name: "Composite", + className: "EntityReference", + }, }, - }, - path: { - serializedName: "path", - type: { - name: "String", + path: { + serializedName: "path", + type: { + name: "String", + }, }, }, }, - }, -}; + }; export const EntityReference: coreClient.CompositeMapper = { type: { @@ -10016,25 +9996,26 @@ export const DynamicsCrmEntityDataset: coreClient.CompositeMapper = { }, }; -export const CommonDataServiceForAppsEntityDataset: coreClient.CompositeMapper = { - serializedName: "CommonDataServiceForAppsEntity", - type: { - name: "Composite", - className: "CommonDataServiceForAppsEntityDataset", - uberParent: "Dataset", - additionalProperties: { type: { name: "Object" } }, - polymorphicDiscriminator: Dataset.type.polymorphicDiscriminator, - modelProperties: { - ...Dataset.type.modelProperties, - entityName: { - serializedName: "typeProperties.entityName", - type: { - name: "any", +export const CommonDataServiceForAppsEntityDataset: coreClient.CompositeMapper = + { + serializedName: "CommonDataServiceForAppsEntity", + type: { + name: "Composite", + className: "CommonDataServiceForAppsEntityDataset", + uberParent: "Dataset", + additionalProperties: { type: { name: "Object" } }, + polymorphicDiscriminator: Dataset.type.polymorphicDiscriminator, + modelProperties: { + ...Dataset.type.modelProperties, + entityName: { + serializedName: "typeProperties.entityName", + type: { + name: "any", + }, }, }, }, - }, -}; + }; export const AzureDataLakeStoreDataset: coreClient.CompositeMapper = { serializedName: "AzureDataLakeStoreFile", @@ -11801,25 +11782,26 @@ export const VerticaTableDataset: coreClient.CompositeMapper = { }, }; -export const SalesforceMarketingCloudObjectDataset: coreClient.CompositeMapper = { - serializedName: "SalesforceMarketingCloudObject", - type: { - name: "Composite", - className: "SalesforceMarketingCloudObjectDataset", - uberParent: "Dataset", - additionalProperties: { type: { name: "Object" } }, - polymorphicDiscriminator: Dataset.type.polymorphicDiscriminator, - modelProperties: { - ...Dataset.type.modelProperties, - tableName: { - serializedName: "typeProperties.tableName", - type: { - name: "any", +export const SalesforceMarketingCloudObjectDataset: coreClient.CompositeMapper = + { + serializedName: "SalesforceMarketingCloudObject", + type: { + name: "Composite", + className: "SalesforceMarketingCloudObjectDataset", + uberParent: "Dataset", + additionalProperties: { type: { name: "Object" } }, + polymorphicDiscriminator: Dataset.type.polymorphicDiscriminator, + modelProperties: { + ...Dataset.type.modelProperties, + tableName: { + serializedName: "typeProperties.tableName", + type: { + name: "any", + }, }, }, }, - }, -}; + }; export const ResponsysObjectDataset: coreClient.CompositeMapper = { serializedName: "ResponsysObject", @@ -12072,31 +12054,32 @@ export const SalesforceV2ObjectDataset: coreClient.CompositeMapper = { }, }; -export const SalesforceServiceCloudV2ObjectDataset: coreClient.CompositeMapper = { - serializedName: "SalesforceServiceCloudV2Object", - type: { - name: "Composite", - className: "SalesforceServiceCloudV2ObjectDataset", - uberParent: "Dataset", - additionalProperties: { type: { name: "Object" } }, - polymorphicDiscriminator: Dataset.type.polymorphicDiscriminator, - modelProperties: { - ...Dataset.type.modelProperties, - objectApiName: { - serializedName: "typeProperties.objectApiName", - type: { - name: "any", +export const SalesforceServiceCloudV2ObjectDataset: coreClient.CompositeMapper = + { + serializedName: "SalesforceServiceCloudV2Object", + type: { + name: "Composite", + className: "SalesforceServiceCloudV2ObjectDataset", + uberParent: "Dataset", + additionalProperties: { type: { name: "Object" } }, + polymorphicDiscriminator: Dataset.type.polymorphicDiscriminator, + modelProperties: { + ...Dataset.type.modelProperties, + objectApiName: { + serializedName: "typeProperties.objectApiName", + type: { + name: "any", + }, }, - }, - reportId: { - serializedName: "typeProperties.reportId", - type: { - name: "any", + reportId: { + serializedName: "typeProperties.reportId", + type: { + name: "any", + }, }, }, }, - }, -}; + }; export const WarehouseTableDataset: coreClient.CompositeMapper = { serializedName: "WarehouseTable", @@ -12140,6 +12123,12 @@ export const ServiceNowV2ObjectDataset: coreClient.CompositeMapper = { name: "any", }, }, + valueType: { + serializedName: "typeProperties.valueType", + type: { + name: "String", + }, + }, }, }, }; @@ -13664,101 +13653,102 @@ export const DynamicsCrmLinkedService: coreClient.CompositeMapper = { }, }; -export const CommonDataServiceForAppsLinkedService: coreClient.CompositeMapper = { - serializedName: "CommonDataServiceForApps", - type: { - name: "Composite", - className: "CommonDataServiceForAppsLinkedService", - uberParent: "LinkedService", - additionalProperties: { type: { name: "Object" } }, - polymorphicDiscriminator: LinkedService.type.polymorphicDiscriminator, - modelProperties: { - ...LinkedService.type.modelProperties, - deploymentType: { - serializedName: "typeProperties.deploymentType", - required: true, - type: { - name: "any", +export const CommonDataServiceForAppsLinkedService: coreClient.CompositeMapper = + { + serializedName: "CommonDataServiceForApps", + type: { + name: "Composite", + className: "CommonDataServiceForAppsLinkedService", + uberParent: "LinkedService", + additionalProperties: { type: { name: "Object" } }, + polymorphicDiscriminator: LinkedService.type.polymorphicDiscriminator, + modelProperties: { + ...LinkedService.type.modelProperties, + deploymentType: { + serializedName: "typeProperties.deploymentType", + required: true, + type: { + name: "any", + }, }, - }, - hostName: { - serializedName: "typeProperties.hostName", - type: { - name: "any", + hostName: { + serializedName: "typeProperties.hostName", + type: { + name: "any", + }, }, - }, - port: { - serializedName: "typeProperties.port", - type: { - name: "any", + port: { + serializedName: "typeProperties.port", + type: { + name: "any", + }, }, - }, - serviceUri: { - serializedName: "typeProperties.serviceUri", - type: { - name: "any", + serviceUri: { + serializedName: "typeProperties.serviceUri", + type: { + name: "any", + }, }, - }, - organizationName: { - serializedName: "typeProperties.organizationName", - type: { - name: "any", + organizationName: { + serializedName: "typeProperties.organizationName", + type: { + name: "any", + }, }, - }, - authenticationType: { - serializedName: "typeProperties.authenticationType", - required: true, - type: { - name: "any", + authenticationType: { + serializedName: "typeProperties.authenticationType", + required: true, + type: { + name: "any", + }, }, - }, - domain: { - serializedName: "typeProperties.domain", - type: { - name: "any", + domain: { + serializedName: "typeProperties.domain", + type: { + name: "any", + }, }, - }, - username: { - serializedName: "typeProperties.username", - type: { - name: "any", + username: { + serializedName: "typeProperties.username", + type: { + name: "any", + }, }, - }, - password: { - serializedName: "typeProperties.password", - type: { - name: "Composite", - className: "SecretBase", + password: { + serializedName: "typeProperties.password", + type: { + name: "Composite", + className: "SecretBase", + }, }, - }, - servicePrincipalId: { - serializedName: "typeProperties.servicePrincipalId", - type: { - name: "any", + servicePrincipalId: { + serializedName: "typeProperties.servicePrincipalId", + type: { + name: "any", + }, }, - }, - servicePrincipalCredentialType: { - serializedName: "typeProperties.servicePrincipalCredentialType", - type: { - name: "any", + servicePrincipalCredentialType: { + serializedName: "typeProperties.servicePrincipalCredentialType", + type: { + name: "any", + }, }, - }, - servicePrincipalCredential: { - serializedName: "typeProperties.servicePrincipalCredential", - type: { - name: "Composite", - className: "SecretBase", + servicePrincipalCredential: { + serializedName: "typeProperties.servicePrincipalCredential", + type: { + name: "Composite", + className: "SecretBase", + }, }, - }, - encryptedCredential: { - serializedName: "typeProperties.encryptedCredential", - type: { - name: "any", + encryptedCredential: { + serializedName: "typeProperties.encryptedCredential", + type: { + name: "any", + }, }, }, }, - }, -}; + }; export const HDInsightLinkedService: coreClient.CompositeMapper = { serializedName: "HDInsight", @@ -13777,6 +13767,12 @@ export const HDInsightLinkedService: coreClient.CompositeMapper = { name: "any", }, }, + clusterAuthType: { + serializedName: "typeProperties.clusterAuthType", + type: { + name: "String", + }, + }, userName: { serializedName: "typeProperties.userName", type: { @@ -13822,6 +13818,13 @@ export const HDInsightLinkedService: coreClient.CompositeMapper = { name: "any", }, }, + credential: { + serializedName: "typeProperties.credential", + type: { + name: "Composite", + className: "CredentialReference", + }, + }, }, }, }; @@ -14008,7 +14011,6 @@ export const OracleLinkedService: coreClient.CompositeMapper = { ...LinkedService.type.modelProperties, connectionString: { serializedName: "typeProperties.connectionString", - required: true, type: { name: "any", }, @@ -14126,7 +14128,24 @@ export const AmazonRdsForOracleLinkedService: coreClient.CompositeMapper = { ...LinkedService.type.modelProperties, connectionString: { serializedName: "typeProperties.connectionString", - required: true, + type: { + name: "any", + }, + }, + server: { + serializedName: "typeProperties.server", + type: { + name: "any", + }, + }, + authenticationType: { + serializedName: "typeProperties.authenticationType", + type: { + name: "String", + }, + }, + username: { + serializedName: "typeProperties.username", type: { name: "any", }, @@ -14138,6 +14157,72 @@ export const AmazonRdsForOracleLinkedService: coreClient.CompositeMapper = { className: "SecretBase", }, }, + encryptionClient: { + serializedName: "typeProperties.encryptionClient", + type: { + name: "any", + }, + }, + encryptionTypesClient: { + serializedName: "typeProperties.encryptionTypesClient", + type: { + name: "any", + }, + }, + cryptoChecksumClient: { + serializedName: "typeProperties.cryptoChecksumClient", + type: { + name: "any", + }, + }, + cryptoChecksumTypesClient: { + serializedName: "typeProperties.cryptoChecksumTypesClient", + type: { + name: "any", + }, + }, + initialLobFetchSize: { + serializedName: "typeProperties.initialLobFetchSize", + type: { + name: "any", + }, + }, + fetchSize: { + serializedName: "typeProperties.fetchSize", + type: { + name: "any", + }, + }, + statementCacheSize: { + serializedName: "typeProperties.statementCacheSize", + type: { + name: "any", + }, + }, + initializationString: { + serializedName: "typeProperties.initializationString", + type: { + name: "any", + }, + }, + enableBulkLoad: { + serializedName: "typeProperties.enableBulkLoad", + type: { + name: "any", + }, + }, + supportV1DataTypes: { + serializedName: "typeProperties.supportV1DataTypes", + type: { + name: "any", + }, + }, + fetchTswtzAsTimestamp: { + serializedName: "typeProperties.fetchTswtzAsTimestamp", + type: { + name: "any", + }, + }, encryptedCredential: { serializedName: "typeProperties.encryptedCredential", type: { @@ -15568,6 +15653,26 @@ export const Office365LinkedService: coreClient.CompositeMapper = { className: "SecretBase", }, }, + servicePrincipalCredentialType: { + serializedName: "typeProperties.servicePrincipalCredentialType", + type: { + name: "any", + }, + }, + servicePrincipalEmbeddedCert: { + serializedName: "typeProperties.servicePrincipalEmbeddedCert", + type: { + name: "Composite", + className: "SecretBase", + }, + }, + servicePrincipalEmbeddedCertPassword: { + serializedName: "typeProperties.servicePrincipalEmbeddedCertPassword", + type: { + name: "Composite", + className: "SecretBase", + }, + }, encryptedCredential: { serializedName: "typeProperties.encryptedCredential", type: { @@ -17563,13 +17668,6 @@ export const GreenplumLinkedService: coreClient.CompositeMapper = { name: "any", }, }, - password: { - serializedName: "typeProperties.password", - type: { - name: "Composite", - className: "SecretBase", - }, - }, }, }, }; @@ -17742,6 +17840,12 @@ export const HiveLinkedService: coreClient.CompositeMapper = { name: "any", }, }, + enableServerCertificateValidation: { + serializedName: "typeProperties.enableServerCertificateValidation", + type: { + name: "any", + }, + }, trustedCertPath: { serializedName: "typeProperties.trustedCertPath", type: { @@ -17885,12 +17989,25 @@ export const ImpalaLinkedService: coreClient.CompositeMapper = { className: "SecretBase", }, }, + thriftTransportProtocol: { + serializedName: "typeProperties.thriftTransportProtocol", + type: { + name: "Enum", + allowedValues: ["Binary", "HTTP"], + }, + }, enableSsl: { serializedName: "typeProperties.enableSsl", type: { name: "any", }, }, + enableServerCertificateValidation: { + serializedName: "typeProperties.enableServerCertificateValidation", + type: { + name: "any", + }, + }, trustedCertPath: { serializedName: "typeProperties.trustedCertPath", type: { @@ -18376,7 +18493,6 @@ export const PrestoLinkedService: coreClient.CompositeMapper = { }, serverVersion: { serializedName: "typeProperties.serverVersion", - required: true, type: { name: "any", }, @@ -18420,6 +18536,12 @@ export const PrestoLinkedService: coreClient.CompositeMapper = { name: "any", }, }, + enableServerCertificateValidation: { + serializedName: "typeProperties.enableServerCertificateValidation", + type: { + name: "any", + }, + }, trustedCertPath: { serializedName: "typeProperties.trustedCertPath", type: { @@ -18518,6 +18640,13 @@ export const QuickBooksLinkedService: coreClient.CompositeMapper = { className: "SecretBase", }, }, + refreshToken: { + serializedName: "typeProperties.refreshToken", + type: { + name: "Composite", + className: "SecretBase", + }, + }, useEncryptedEndpoints: { serializedName: "typeProperties.useEncryptedEndpoints", type: { @@ -18732,6 +18861,12 @@ export const SparkLinkedService: coreClient.CompositeMapper = { name: "any", }, }, + enableServerCertificateValidation: { + serializedName: "typeProperties.enableServerCertificateValidation", + type: { + name: "any", + }, + }, trustedCertPath: { serializedName: "typeProperties.trustedCertPath", type: { @@ -19051,69 +19186,70 @@ export const NetezzaLinkedService: coreClient.CompositeMapper = { }, }; -export const SalesforceMarketingCloudLinkedService: coreClient.CompositeMapper = { - serializedName: "SalesforceMarketingCloud", +export const SalesforceMarketingCloudLinkedService: coreClient.CompositeMapper = + { + serializedName: "SalesforceMarketingCloud", + type: { + name: "Composite", + className: "SalesforceMarketingCloudLinkedService", + uberParent: "LinkedService", + additionalProperties: { type: { name: "Object" } }, + polymorphicDiscriminator: LinkedService.type.polymorphicDiscriminator, + modelProperties: { + ...LinkedService.type.modelProperties, + connectionProperties: { + serializedName: "typeProperties.connectionProperties", + type: { + name: "any", + }, + }, + clientId: { + serializedName: "typeProperties.clientId", + required: true, + type: { + name: "any", + }, + }, + clientSecret: { + serializedName: "typeProperties.clientSecret", + type: { + name: "Composite", + className: "SecretBase", + }, + }, + useEncryptedEndpoints: { + serializedName: "typeProperties.useEncryptedEndpoints", + type: { + name: "any", + }, + }, + useHostVerification: { + serializedName: "typeProperties.useHostVerification", + type: { + name: "any", + }, + }, + usePeerVerification: { + serializedName: "typeProperties.usePeerVerification", + type: { + name: "any", + }, + }, + encryptedCredential: { + serializedName: "typeProperties.encryptedCredential", + type: { + name: "any", + }, + }, + }, + }, + }; + +export const HDInsightOnDemandLinkedService: coreClient.CompositeMapper = { + serializedName: "HDInsightOnDemand", type: { name: "Composite", - className: "SalesforceMarketingCloudLinkedService", - uberParent: "LinkedService", - additionalProperties: { type: { name: "Object" } }, - polymorphicDiscriminator: LinkedService.type.polymorphicDiscriminator, - modelProperties: { - ...LinkedService.type.modelProperties, - connectionProperties: { - serializedName: "typeProperties.connectionProperties", - type: { - name: "any", - }, - }, - clientId: { - serializedName: "typeProperties.clientId", - required: true, - type: { - name: "any", - }, - }, - clientSecret: { - serializedName: "typeProperties.clientSecret", - type: { - name: "Composite", - className: "SecretBase", - }, - }, - useEncryptedEndpoints: { - serializedName: "typeProperties.useEncryptedEndpoints", - type: { - name: "any", - }, - }, - useHostVerification: { - serializedName: "typeProperties.useHostVerification", - type: { - name: "any", - }, - }, - usePeerVerification: { - serializedName: "typeProperties.usePeerVerification", - type: { - name: "any", - }, - }, - encryptedCredential: { - serializedName: "typeProperties.encryptedCredential", - type: { - name: "any", - }, - }, - }, - }, -}; - -export const HDInsightOnDemandLinkedService: coreClient.CompositeMapper = { - serializedName: "HDInsightOnDemand", - type: { - name: "Composite", - className: "HDInsightOnDemandLinkedService", + className: "HDInsightOnDemandLinkedService", uberParent: "LinkedService", additionalProperties: { type: { name: "Object" } }, polymorphicDiscriminator: LinkedService.type.polymorphicDiscriminator, @@ -19546,56 +19682,63 @@ export const AzureDatabricksLinkedService: coreClient.CompositeMapper = { className: "CredentialReference", }, }, + dataSecurityMode: { + serializedName: "typeProperties.dataSecurityMode", + type: { + name: "any", + }, + }, }, }, }; -export const AzureDatabricksDeltaLakeLinkedService: coreClient.CompositeMapper = { - serializedName: "AzureDatabricksDeltaLake", - type: { - name: "Composite", - className: "AzureDatabricksDeltaLakeLinkedService", - uberParent: "LinkedService", - additionalProperties: { type: { name: "Object" } }, - polymorphicDiscriminator: LinkedService.type.polymorphicDiscriminator, - modelProperties: { - ...LinkedService.type.modelProperties, - domain: { - serializedName: "typeProperties.domain", - required: true, - type: { - name: "any", +export const AzureDatabricksDeltaLakeLinkedService: coreClient.CompositeMapper = + { + serializedName: "AzureDatabricksDeltaLake", + type: { + name: "Composite", + className: "AzureDatabricksDeltaLakeLinkedService", + uberParent: "LinkedService", + additionalProperties: { type: { name: "Object" } }, + polymorphicDiscriminator: LinkedService.type.polymorphicDiscriminator, + modelProperties: { + ...LinkedService.type.modelProperties, + domain: { + serializedName: "typeProperties.domain", + required: true, + type: { + name: "any", + }, }, - }, - accessToken: { - serializedName: "typeProperties.accessToken", - type: { - name: "Composite", - className: "SecretBase", + accessToken: { + serializedName: "typeProperties.accessToken", + type: { + name: "Composite", + className: "SecretBase", + }, }, - }, - clusterId: { - serializedName: "typeProperties.clusterId", - type: { - name: "any", + clusterId: { + serializedName: "typeProperties.clusterId", + type: { + name: "any", + }, }, - }, - encryptedCredential: { - serializedName: "typeProperties.encryptedCredential", - type: { - name: "any", + encryptedCredential: { + serializedName: "typeProperties.encryptedCredential", + type: { + name: "any", + }, }, - }, - credential: { - serializedName: "typeProperties.credential", - type: { - name: "Composite", - className: "CredentialReference", + credential: { + serializedName: "typeProperties.credential", + type: { + name: "Composite", + className: "CredentialReference", + }, }, }, }, - }, -}; + }; export const ResponsysLinkedService: coreClient.CompositeMapper = { serializedName: "Responsys", @@ -20212,12 +20355,24 @@ export const SnowflakeV2LinkedService: coreClient.CompositeMapper = { name: "any", }, }, + role: { + serializedName: "typeProperties.role", + type: { + name: "any", + }, + }, host: { serializedName: "typeProperties.host", type: { name: "any", }, }, + schema: { + serializedName: "typeProperties.schema", + type: { + name: "any", + }, + }, privateKey: { serializedName: "typeProperties.privateKey", type: { @@ -20365,6 +20520,12 @@ export const LakeHouseLinkedService: coreClient.CompositeMapper = { name: "any", }, }, + authenticationType: { + serializedName: "typeProperties.authenticationType", + type: { + name: "String", + }, + }, servicePrincipalId: { serializedName: "typeProperties.servicePrincipalId", type: { @@ -20403,6 +20564,13 @@ export const LakeHouseLinkedService: coreClient.CompositeMapper = { className: "SecretBase", }, }, + credential: { + serializedName: "typeProperties.credential", + type: { + name: "Composite", + className: "CredentialReference", + }, + }, }, }, }; @@ -20486,18 +20654,84 @@ export const SalesforceV2LinkedService: coreClient.CompositeMapper = { }, }; -export const SalesforceServiceCloudV2LinkedService: coreClient.CompositeMapper = { - serializedName: "SalesforceServiceCloudV2", +export const SalesforceServiceCloudV2LinkedService: coreClient.CompositeMapper = + { + serializedName: "SalesforceServiceCloudV2", + type: { + name: "Composite", + className: "SalesforceServiceCloudV2LinkedService", + uberParent: "LinkedService", + additionalProperties: { type: { name: "Object" } }, + polymorphicDiscriminator: LinkedService.type.polymorphicDiscriminator, + modelProperties: { + ...LinkedService.type.modelProperties, + environmentUrl: { + serializedName: "typeProperties.environmentUrl", + type: { + name: "any", + }, + }, + authenticationType: { + serializedName: "typeProperties.authenticationType", + type: { + name: "any", + }, + }, + clientId: { + serializedName: "typeProperties.clientId", + type: { + name: "any", + }, + }, + clientSecret: { + serializedName: "typeProperties.clientSecret", + type: { + name: "Composite", + className: "SecretBase", + }, + }, + apiVersion: { + serializedName: "typeProperties.apiVersion", + type: { + name: "any", + }, + }, + encryptedCredential: { + serializedName: "typeProperties.encryptedCredential", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const WarehouseLinkedService: coreClient.CompositeMapper = { + serializedName: "Warehouse", type: { name: "Composite", - className: "SalesforceServiceCloudV2LinkedService", + className: "WarehouseLinkedService", uberParent: "LinkedService", additionalProperties: { type: { name: "Object" } }, polymorphicDiscriminator: LinkedService.type.polymorphicDiscriminator, modelProperties: { ...LinkedService.type.modelProperties, - environmentUrl: { - serializedName: "typeProperties.environmentUrl", + artifactId: { + serializedName: "typeProperties.artifactId", + required: true, + type: { + name: "any", + }, + }, + endpoint: { + serializedName: "typeProperties.endpoint", + required: true, + type: { + name: "any", + }, + }, + workspaceId: { + serializedName: "typeProperties.workspaceId", type: { name: "any", }, @@ -20505,24 +20739,24 @@ export const SalesforceServiceCloudV2LinkedService: coreClient.CompositeMapper = authenticationType: { serializedName: "typeProperties.authenticationType", type: { - name: "any", + name: "String", }, }, - clientId: { - serializedName: "typeProperties.clientId", + servicePrincipalId: { + serializedName: "typeProperties.servicePrincipalId", type: { name: "any", }, }, - clientSecret: { - serializedName: "typeProperties.clientSecret", + servicePrincipalKey: { + serializedName: "typeProperties.servicePrincipalKey", type: { name: "Composite", className: "SecretBase", }, }, - apiVersion: { - serializedName: "typeProperties.apiVersion", + tenant: { + serializedName: "typeProperties.tenant", type: { name: "any", }, @@ -20533,27 +20767,40 @@ export const SalesforceServiceCloudV2LinkedService: coreClient.CompositeMapper = name: "String", }, }, + servicePrincipalCredentialType: { + serializedName: "typeProperties.servicePrincipalCredentialType", + type: { + name: "any", + }, + }, + servicePrincipalCredential: { + serializedName: "typeProperties.servicePrincipalCredential", + type: { + name: "Composite", + className: "SecretBase", + }, + }, + credential: { + serializedName: "typeProperties.credential", + type: { + name: "Composite", + className: "CredentialReference", + }, + }, }, }, }; -export const WarehouseLinkedService: coreClient.CompositeMapper = { - serializedName: "Warehouse", +export const ServiceNowV2LinkedService: coreClient.CompositeMapper = { + serializedName: "ServiceNowV2", type: { name: "Composite", - className: "WarehouseLinkedService", + className: "ServiceNowV2LinkedService", uberParent: "LinkedService", additionalProperties: { type: { name: "Object" } }, polymorphicDiscriminator: LinkedService.type.polymorphicDiscriminator, modelProperties: { ...LinkedService.type.modelProperties, - artifactId: { - serializedName: "typeProperties.artifactId", - required: true, - type: { - name: "any", - }, - }, endpoint: { serializedName: "typeProperties.endpoint", required: true, @@ -20561,48 +20808,49 @@ export const WarehouseLinkedService: coreClient.CompositeMapper = { name: "any", }, }, - workspaceId: { - serializedName: "typeProperties.workspaceId", + authenticationType: { + serializedName: "typeProperties.authenticationType", + required: true, type: { - name: "any", + name: "String", }, }, - servicePrincipalId: { - serializedName: "typeProperties.servicePrincipalId", + username: { + serializedName: "typeProperties.username", type: { name: "any", }, }, - servicePrincipalKey: { - serializedName: "typeProperties.servicePrincipalKey", + password: { + serializedName: "typeProperties.password", type: { name: "Composite", className: "SecretBase", }, }, - tenant: { - serializedName: "typeProperties.tenant", + clientId: { + serializedName: "typeProperties.clientId", type: { name: "any", }, }, - encryptedCredential: { - serializedName: "typeProperties.encryptedCredential", + clientSecret: { + serializedName: "typeProperties.clientSecret", type: { - name: "String", + name: "Composite", + className: "SecretBase", }, }, - servicePrincipalCredentialType: { - serializedName: "typeProperties.servicePrincipalCredentialType", + grantType: { + serializedName: "typeProperties.grantType", type: { name: "any", }, }, - servicePrincipalCredential: { - serializedName: "typeProperties.servicePrincipalCredential", + encryptedCredential: { + serializedName: "typeProperties.encryptedCredential", type: { - name: "Composite", - className: "SecretBase", + name: "String", }, }, }, @@ -21149,7 +21397,8 @@ export const TextFormat: coreClient.CompositeMapper = { className: "TextFormat", uberParent: "DatasetStorageFormat", additionalProperties: { type: { name: "Object" } }, - polymorphicDiscriminator: DatasetStorageFormat.type.polymorphicDiscriminator, + polymorphicDiscriminator: + DatasetStorageFormat.type.polymorphicDiscriminator, modelProperties: { ...DatasetStorageFormat.type.modelProperties, columnDelimiter: { @@ -21217,7 +21466,8 @@ export const JsonFormat: coreClient.CompositeMapper = { className: "JsonFormat", uberParent: "DatasetStorageFormat", additionalProperties: { type: { name: "Object" } }, - polymorphicDiscriminator: DatasetStorageFormat.type.polymorphicDiscriminator, + polymorphicDiscriminator: + DatasetStorageFormat.type.polymorphicDiscriminator, modelProperties: { ...DatasetStorageFormat.type.modelProperties, filePattern: { @@ -21261,7 +21511,8 @@ export const AvroFormat: coreClient.CompositeMapper = { className: "AvroFormat", uberParent: "DatasetStorageFormat", additionalProperties: { type: { name: "Object" } }, - polymorphicDiscriminator: DatasetStorageFormat.type.polymorphicDiscriminator, + polymorphicDiscriminator: + DatasetStorageFormat.type.polymorphicDiscriminator, modelProperties: { ...DatasetStorageFormat.type.modelProperties, }, @@ -21275,7 +21526,8 @@ export const OrcFormat: coreClient.CompositeMapper = { className: "OrcFormat", uberParent: "DatasetStorageFormat", additionalProperties: { type: { name: "Object" } }, - polymorphicDiscriminator: DatasetStorageFormat.type.polymorphicDiscriminator, + polymorphicDiscriminator: + DatasetStorageFormat.type.polymorphicDiscriminator, modelProperties: { ...DatasetStorageFormat.type.modelProperties, }, @@ -21289,410 +21541,417 @@ export const ParquetFormat: coreClient.CompositeMapper = { className: "ParquetFormat", uberParent: "DatasetStorageFormat", additionalProperties: { type: { name: "Object" } }, - polymorphicDiscriminator: DatasetStorageFormat.type.polymorphicDiscriminator, + polymorphicDiscriminator: + DatasetStorageFormat.type.polymorphicDiscriminator, modelProperties: { ...DatasetStorageFormat.type.modelProperties, }, }, }; -export const AzureTableStorageLinkedServiceTypeProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AzureTableStorageLinkedServiceTypeProperties", - modelProperties: { - ...AzureStorageLinkedServiceTypeProperties.type.modelProperties, - serviceEndpoint: { - serializedName: "serviceEndpoint", - type: { - name: "any", +export const AzureTableStorageLinkedServiceTypeProperties: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "AzureTableStorageLinkedServiceTypeProperties", + modelProperties: { + ...AzureStorageLinkedServiceTypeProperties.type.modelProperties, + serviceEndpoint: { + serializedName: "serviceEndpoint", + type: { + name: "any", + }, }, - }, - credential: { - serializedName: "credential", - type: { - name: "Composite", - className: "CredentialReference", + credential: { + serializedName: "credential", + type: { + name: "Composite", + className: "CredentialReference", + }, }, }, }, - }, -}; + }; -export const AzureSqlDWLinkedServiceTypeProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AzureSqlDWLinkedServiceTypeProperties", - modelProperties: { - ...SqlServerBaseLinkedServiceTypeProperties.type.modelProperties, - connectionString: { - serializedName: "connectionString", - type: { - name: "any", +export const AzureSqlDWLinkedServiceTypeProperties: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "AzureSqlDWLinkedServiceTypeProperties", + modelProperties: { + ...SqlServerBaseLinkedServiceTypeProperties.type.modelProperties, + connectionString: { + serializedName: "connectionString", + type: { + name: "any", + }, }, - }, - authenticationType: { - serializedName: "authenticationType", - type: { - name: "String", + authenticationType: { + serializedName: "authenticationType", + type: { + name: "String", + }, }, - }, - userName: { - serializedName: "userName", - type: { - name: "any", + userName: { + serializedName: "userName", + type: { + name: "any", + }, }, - }, - password: { - serializedName: "password", - type: { - name: "Composite", - className: "AzureKeyVaultSecretReference", + password: { + serializedName: "password", + type: { + name: "Composite", + className: "AzureKeyVaultSecretReference", + }, }, - }, - servicePrincipalId: { - serializedName: "servicePrincipalId", - type: { - name: "any", + servicePrincipalId: { + serializedName: "servicePrincipalId", + type: { + name: "any", + }, }, - }, - servicePrincipalKey: { - serializedName: "servicePrincipalKey", - type: { - name: "Composite", - className: "SecretBase", + servicePrincipalKey: { + serializedName: "servicePrincipalKey", + type: { + name: "Composite", + className: "SecretBase", + }, }, - }, - servicePrincipalCredentialType: { - serializedName: "servicePrincipalCredentialType", - type: { - name: "any", + servicePrincipalCredentialType: { + serializedName: "servicePrincipalCredentialType", + type: { + name: "any", + }, }, - }, - servicePrincipalCredential: { - serializedName: "servicePrincipalCredential", - type: { - name: "Composite", - className: "SecretBase", + servicePrincipalCredential: { + serializedName: "servicePrincipalCredential", + type: { + name: "Composite", + className: "SecretBase", + }, }, - }, - tenant: { - serializedName: "tenant", - type: { - name: "any", + tenant: { + serializedName: "tenant", + type: { + name: "any", + }, }, - }, - azureCloudType: { - serializedName: "azureCloudType", - type: { - name: "any", + azureCloudType: { + serializedName: "azureCloudType", + type: { + name: "any", + }, }, - }, - encryptedCredential: { - serializedName: "encryptedCredential", - type: { - name: "any", + encryptedCredential: { + serializedName: "encryptedCredential", + type: { + name: "any", + }, }, - }, - credential: { - serializedName: "credential", - type: { - name: "Composite", - className: "CredentialReference", + credential: { + serializedName: "credential", + type: { + name: "Composite", + className: "CredentialReference", + }, }, }, }, - }, -}; + }; -export const SqlServerLinkedServiceTypeProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SqlServerLinkedServiceTypeProperties", - modelProperties: { - ...SqlServerBaseLinkedServiceTypeProperties.type.modelProperties, - connectionString: { - serializedName: "connectionString", - type: { - name: "any", +export const SqlServerLinkedServiceTypeProperties: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "SqlServerLinkedServiceTypeProperties", + modelProperties: { + ...SqlServerBaseLinkedServiceTypeProperties.type.modelProperties, + connectionString: { + serializedName: "connectionString", + type: { + name: "any", + }, }, - }, - authenticationType: { - serializedName: "authenticationType", - type: { - name: "String", + authenticationType: { + serializedName: "authenticationType", + type: { + name: "String", + }, }, - }, - userName: { - serializedName: "userName", - type: { - name: "any", + userName: { + serializedName: "userName", + type: { + name: "any", + }, }, - }, - password: { - serializedName: "password", - type: { - name: "Composite", - className: "SecretBase", + password: { + serializedName: "password", + type: { + name: "Composite", + className: "SecretBase", + }, }, - }, - encryptedCredential: { - serializedName: "encryptedCredential", - type: { - name: "any", + encryptedCredential: { + serializedName: "encryptedCredential", + type: { + name: "any", + }, }, - }, - alwaysEncryptedSettings: { - serializedName: "alwaysEncryptedSettings", - type: { - name: "Composite", - className: "SqlAlwaysEncryptedProperties", + alwaysEncryptedSettings: { + serializedName: "alwaysEncryptedSettings", + type: { + name: "Composite", + className: "SqlAlwaysEncryptedProperties", + }, }, - }, - credential: { - serializedName: "credential", - type: { - name: "Composite", - className: "CredentialReference", + credential: { + serializedName: "credential", + type: { + name: "Composite", + className: "CredentialReference", + }, }, }, }, - }, -}; + }; -export const AmazonRdsForSqlServerLinkedServiceTypeProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AmazonRdsForSqlServerLinkedServiceTypeProperties", - modelProperties: { - ...SqlServerBaseLinkedServiceTypeProperties.type.modelProperties, - connectionString: { - serializedName: "connectionString", - type: { - name: "any", +export const AmazonRdsForSqlServerLinkedServiceTypeProperties: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "AmazonRdsForSqlServerLinkedServiceTypeProperties", + modelProperties: { + ...SqlServerBaseLinkedServiceTypeProperties.type.modelProperties, + connectionString: { + serializedName: "connectionString", + type: { + name: "any", + }, }, - }, - authenticationType: { - serializedName: "authenticationType", - type: { - name: "String", + authenticationType: { + serializedName: "authenticationType", + type: { + name: "String", + }, }, - }, - userName: { - serializedName: "userName", - type: { - name: "any", + userName: { + serializedName: "userName", + type: { + name: "any", + }, }, - }, - password: { - serializedName: "password", - type: { - name: "Composite", - className: "SecretBase", + password: { + serializedName: "password", + type: { + name: "Composite", + className: "SecretBase", + }, }, - }, - encryptedCredential: { - serializedName: "encryptedCredential", - type: { - name: "any", + encryptedCredential: { + serializedName: "encryptedCredential", + type: { + name: "any", + }, }, - }, - alwaysEncryptedSettings: { - serializedName: "alwaysEncryptedSettings", - type: { - name: "Composite", - className: "SqlAlwaysEncryptedProperties", + alwaysEncryptedSettings: { + serializedName: "alwaysEncryptedSettings", + type: { + name: "Composite", + className: "SqlAlwaysEncryptedProperties", + }, }, }, }, - }, -}; + }; -export const AzureSqlDatabaseLinkedServiceTypeProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AzureSqlDatabaseLinkedServiceTypeProperties", - modelProperties: { - ...SqlServerBaseLinkedServiceTypeProperties.type.modelProperties, - connectionString: { - serializedName: "connectionString", - type: { - name: "any", - }, - }, - authenticationType: { - serializedName: "authenticationType", - type: { - name: "String", +export const AzureSqlDatabaseLinkedServiceTypeProperties: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "AzureSqlDatabaseLinkedServiceTypeProperties", + modelProperties: { + ...SqlServerBaseLinkedServiceTypeProperties.type.modelProperties, + connectionString: { + serializedName: "connectionString", + type: { + name: "any", + }, }, - }, - userName: { - serializedName: "userName", - type: { - name: "any", + authenticationType: { + serializedName: "authenticationType", + type: { + name: "String", + }, }, - }, - password: { - serializedName: "password", - type: { - name: "Composite", - className: "AzureKeyVaultSecretReference", + userName: { + serializedName: "userName", + type: { + name: "any", + }, }, - }, - servicePrincipalId: { - serializedName: "servicePrincipalId", - type: { - name: "any", + password: { + serializedName: "password", + type: { + name: "Composite", + className: "AzureKeyVaultSecretReference", + }, }, - }, - servicePrincipalKey: { - serializedName: "servicePrincipalKey", - type: { - name: "Composite", - className: "SecretBase", + servicePrincipalId: { + serializedName: "servicePrincipalId", + type: { + name: "any", + }, }, - }, - servicePrincipalCredentialType: { - serializedName: "servicePrincipalCredentialType", - type: { - name: "any", + servicePrincipalKey: { + serializedName: "servicePrincipalKey", + type: { + name: "Composite", + className: "SecretBase", + }, }, - }, - servicePrincipalCredential: { - serializedName: "servicePrincipalCredential", - type: { - name: "Composite", - className: "SecretBase", + servicePrincipalCredentialType: { + serializedName: "servicePrincipalCredentialType", + type: { + name: "any", + }, }, - }, - tenant: { - serializedName: "tenant", - type: { - name: "any", + servicePrincipalCredential: { + serializedName: "servicePrincipalCredential", + type: { + name: "Composite", + className: "SecretBase", + }, }, - }, - azureCloudType: { - serializedName: "azureCloudType", - type: { - name: "any", + tenant: { + serializedName: "tenant", + type: { + name: "any", + }, }, - }, - alwaysEncryptedSettings: { - serializedName: "alwaysEncryptedSettings", - type: { - name: "Composite", - className: "SqlAlwaysEncryptedProperties", + azureCloudType: { + serializedName: "azureCloudType", + type: { + name: "any", + }, }, - }, - encryptedCredential: { - serializedName: "encryptedCredential", - type: { - name: "any", + alwaysEncryptedSettings: { + serializedName: "alwaysEncryptedSettings", + type: { + name: "Composite", + className: "SqlAlwaysEncryptedProperties", + }, }, - }, - credential: { - serializedName: "credential", - type: { - name: "Composite", - className: "CredentialReference", + encryptedCredential: { + serializedName: "encryptedCredential", + type: { + name: "any", + }, + }, + credential: { + serializedName: "credential", + type: { + name: "Composite", + className: "CredentialReference", + }, }, }, }, - }, -}; + }; -export const AzureSqlMILinkedServiceTypeProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AzureSqlMILinkedServiceTypeProperties", - modelProperties: { - ...SqlServerBaseLinkedServiceTypeProperties.type.modelProperties, - connectionString: { - serializedName: "connectionString", - type: { - name: "any", +export const AzureSqlMILinkedServiceTypeProperties: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "AzureSqlMILinkedServiceTypeProperties", + modelProperties: { + ...SqlServerBaseLinkedServiceTypeProperties.type.modelProperties, + connectionString: { + serializedName: "connectionString", + type: { + name: "any", + }, }, - }, - authenticationType: { - serializedName: "authenticationType", - type: { - name: "String", + authenticationType: { + serializedName: "authenticationType", + type: { + name: "String", + }, }, - }, - userName: { - serializedName: "userName", - type: { - name: "any", + userName: { + serializedName: "userName", + type: { + name: "any", + }, }, - }, - password: { - serializedName: "password", - type: { - name: "Composite", - className: "AzureKeyVaultSecretReference", + password: { + serializedName: "password", + type: { + name: "Composite", + className: "AzureKeyVaultSecretReference", + }, }, - }, - servicePrincipalId: { - serializedName: "servicePrincipalId", - type: { - name: "any", + servicePrincipalId: { + serializedName: "servicePrincipalId", + type: { + name: "any", + }, }, - }, - servicePrincipalKey: { - serializedName: "servicePrincipalKey", - type: { - name: "Composite", - className: "SecretBase", + servicePrincipalKey: { + serializedName: "servicePrincipalKey", + type: { + name: "Composite", + className: "SecretBase", + }, }, - }, - servicePrincipalCredentialType: { - serializedName: "servicePrincipalCredentialType", - type: { - name: "any", + servicePrincipalCredentialType: { + serializedName: "servicePrincipalCredentialType", + type: { + name: "any", + }, }, - }, - servicePrincipalCredential: { - serializedName: "servicePrincipalCredential", - type: { - name: "Composite", - className: "SecretBase", + servicePrincipalCredential: { + serializedName: "servicePrincipalCredential", + type: { + name: "Composite", + className: "SecretBase", + }, }, - }, - tenant: { - serializedName: "tenant", - type: { - name: "any", + tenant: { + serializedName: "tenant", + type: { + name: "any", + }, }, - }, - azureCloudType: { - serializedName: "azureCloudType", - type: { - name: "any", + azureCloudType: { + serializedName: "azureCloudType", + type: { + name: "any", + }, }, - }, - alwaysEncryptedSettings: { - serializedName: "alwaysEncryptedSettings", - type: { - name: "Composite", - className: "SqlAlwaysEncryptedProperties", + alwaysEncryptedSettings: { + serializedName: "alwaysEncryptedSettings", + type: { + name: "Composite", + className: "SqlAlwaysEncryptedProperties", + }, }, - }, - encryptedCredential: { - serializedName: "encryptedCredential", - type: { - name: "any", + encryptedCredential: { + serializedName: "encryptedCredential", + type: { + name: "any", + }, }, - }, - credential: { - serializedName: "credential", - type: { - name: "Composite", - className: "CredentialReference", + credential: { + serializedName: "credential", + type: { + name: "Composite", + className: "CredentialReference", + }, }, }, }, - }, -}; + }; export const WebAnonymousAuthentication: coreClient.CompositeMapper = { serializedName: "Anonymous", @@ -21700,7 +21959,8 @@ export const WebAnonymousAuthentication: coreClient.CompositeMapper = { name: "Composite", className: "WebAnonymousAuthentication", uberParent: "WebLinkedServiceTypeProperties", - polymorphicDiscriminator: WebLinkedServiceTypeProperties.type.polymorphicDiscriminator, + polymorphicDiscriminator: + WebLinkedServiceTypeProperties.type.polymorphicDiscriminator, modelProperties: { ...WebLinkedServiceTypeProperties.type.modelProperties, }, @@ -21713,7 +21973,8 @@ export const WebBasicAuthentication: coreClient.CompositeMapper = { name: "Composite", className: "WebBasicAuthentication", uberParent: "WebLinkedServiceTypeProperties", - polymorphicDiscriminator: WebLinkedServiceTypeProperties.type.polymorphicDiscriminator, + polymorphicDiscriminator: + WebLinkedServiceTypeProperties.type.polymorphicDiscriminator, modelProperties: { ...WebLinkedServiceTypeProperties.type.modelProperties, username: { @@ -21740,7 +22001,8 @@ export const WebClientCertificateAuthentication: coreClient.CompositeMapper = { name: "Composite", className: "WebClientCertificateAuthentication", uberParent: "WebLinkedServiceTypeProperties", - polymorphicDiscriminator: WebLinkedServiceTypeProperties.type.polymorphicDiscriminator, + polymorphicDiscriminator: + WebLinkedServiceTypeProperties.type.polymorphicDiscriminator, modelProperties: { ...WebLinkedServiceTypeProperties.type.modelProperties, pfx: { @@ -22890,7 +23152,8 @@ export const ZipDeflateReadSettings: coreClient.CompositeMapper = { className: "ZipDeflateReadSettings", uberParent: "CompressionReadSettings", additionalProperties: { type: { name: "Object" } }, - polymorphicDiscriminator: CompressionReadSettings.type.polymorphicDiscriminator, + polymorphicDiscriminator: + CompressionReadSettings.type.polymorphicDiscriminator, modelProperties: { ...CompressionReadSettings.type.modelProperties, preserveZipFileNameAsFolder: { @@ -22910,7 +23173,8 @@ export const TarReadSettings: coreClient.CompositeMapper = { className: "TarReadSettings", uberParent: "CompressionReadSettings", additionalProperties: { type: { name: "Object" } }, - polymorphicDiscriminator: CompressionReadSettings.type.polymorphicDiscriminator, + polymorphicDiscriminator: + CompressionReadSettings.type.polymorphicDiscriminator, modelProperties: { ...CompressionReadSettings.type.modelProperties, preserveCompressionFileNameAsFolder: { @@ -22930,7 +23194,8 @@ export const TarGZipReadSettings: coreClient.CompositeMapper = { className: "TarGZipReadSettings", uberParent: "CompressionReadSettings", additionalProperties: { type: { name: "Object" } }, - polymorphicDiscriminator: CompressionReadSettings.type.polymorphicDiscriminator, + polymorphicDiscriminator: + CompressionReadSettings.type.polymorphicDiscriminator, modelProperties: { ...CompressionReadSettings.type.modelProperties, preserveCompressionFileNameAsFolder: { @@ -23877,6 +24142,18 @@ export const OracleSource: coreClient.CompositeMapper = { name: "any", }, }, + numberPrecision: { + serializedName: "numberPrecision", + type: { + name: "any", + }, + }, + numberScale: { + serializedName: "numberScale", + type: { + name: "any", + }, + }, }, }, }; @@ -23922,6 +24199,18 @@ export const AmazonRdsForOracleSource: coreClient.CompositeMapper = { name: "any", }, }, + numberPrecision: { + serializedName: "numberPrecision", + type: { + name: "any", + }, + }, + numberScale: { + serializedName: "numberScale", + type: { + name: "any", + }, + }, }, }, }; @@ -24571,6 +24860,19 @@ export const AzurePostgreSqlSink: coreClient.CompositeMapper = { name: "any", }, }, + writeMethod: { + serializedName: "writeMethod", + type: { + name: "String", + }, + }, + upsertSettings: { + serializedName: "upsertSettings", + type: { + name: "Composite", + className: "AzurePostgreSqlSinkUpsertSettings", + }, + }, }, }, }; @@ -25435,6 +25737,18 @@ export const DynamicsSink: coreClient.CompositeMapper = { name: "any", }, }, + bypassBusinessLogicExecution: { + serializedName: "bypassBusinessLogicExecution", + type: { + name: "any", + }, + }, + bypassPowerAutomateFlows: { + serializedName: "bypassPowerAutomateFlows", + type: { + name: "any", + }, + }, }, }, }; @@ -25468,6 +25782,18 @@ export const DynamicsCrmSink: coreClient.CompositeMapper = { name: "any", }, }, + bypassBusinessLogicExecution: { + serializedName: "bypassBusinessLogicExecution", + type: { + name: "any", + }, + }, + bypassPowerAutomateFlows: { + serializedName: "bypassPowerAutomateFlows", + type: { + name: "any", + }, + }, }, }, }; @@ -25501,6 +25827,18 @@ export const CommonDataServiceForAppsSink: coreClient.CompositeMapper = { name: "any", }, }, + bypassBusinessLogicExecution: { + serializedName: "bypassBusinessLogicExecution", + type: { + name: "any", + }, + }, + bypassPowerAutomateFlows: { + serializedName: "bypassPowerAutomateFlows", + type: { + name: "any", + }, + }, }, }, }; @@ -25737,31 +26075,32 @@ export const TeradataImportCommand: coreClient.CompositeMapper = { }, }; -export const AzureDatabricksDeltaLakeImportCommand: coreClient.CompositeMapper = { - serializedName: "AzureDatabricksDeltaLakeImportCommand", - type: { - name: "Composite", - className: "AzureDatabricksDeltaLakeImportCommand", - uberParent: "ImportSettings", - additionalProperties: { type: { name: "Object" } }, - polymorphicDiscriminator: ImportSettings.type.polymorphicDiscriminator, - modelProperties: { - ...ImportSettings.type.modelProperties, - dateFormat: { - serializedName: "dateFormat", - type: { - name: "any", +export const AzureDatabricksDeltaLakeImportCommand: coreClient.CompositeMapper = + { + serializedName: "AzureDatabricksDeltaLakeImportCommand", + type: { + name: "Composite", + className: "AzureDatabricksDeltaLakeImportCommand", + uberParent: "ImportSettings", + additionalProperties: { type: { name: "Object" } }, + polymorphicDiscriminator: ImportSettings.type.polymorphicDiscriminator, + modelProperties: { + ...ImportSettings.type.modelProperties, + dateFormat: { + serializedName: "dateFormat", + type: { + name: "any", + }, }, - }, - timestampFormat: { - serializedName: "timestampFormat", - type: { - name: "any", + timestampFormat: { + serializedName: "timestampFormat", + type: { + name: "any", + }, }, }, }, - }, -}; + }; export const SnowflakeImportCopyCommand: coreClient.CompositeMapper = { serializedName: "SnowflakeImportCopyCommand", @@ -25819,31 +26158,32 @@ export const SnowflakeExportCopyCommand: coreClient.CompositeMapper = { }, }; -export const AzureDatabricksDeltaLakeExportCommand: coreClient.CompositeMapper = { - serializedName: "AzureDatabricksDeltaLakeExportCommand", - type: { - name: "Composite", - className: "AzureDatabricksDeltaLakeExportCommand", - uberParent: "ExportSettings", - additionalProperties: { type: { name: "Object" } }, - polymorphicDiscriminator: ExportSettings.type.polymorphicDiscriminator, - modelProperties: { - ...ExportSettings.type.modelProperties, - dateFormat: { - serializedName: "dateFormat", - type: { - name: "any", +export const AzureDatabricksDeltaLakeExportCommand: coreClient.CompositeMapper = + { + serializedName: "AzureDatabricksDeltaLakeExportCommand", + type: { + name: "Composite", + className: "AzureDatabricksDeltaLakeExportCommand", + uberParent: "ExportSettings", + additionalProperties: { type: { name: "Object" } }, + polymorphicDiscriminator: ExportSettings.type.polymorphicDiscriminator, + modelProperties: { + ...ExportSettings.type.modelProperties, + dateFormat: { + serializedName: "dateFormat", + type: { + name: "any", + }, }, - }, - timestampFormat: { - serializedName: "timestampFormat", - type: { - name: "any", + timestampFormat: { + serializedName: "timestampFormat", + type: { + name: "any", + }, }, }, }, - }, -}; + }; export const TabularTranslator: coreClient.CompositeMapper = { serializedName: "TabularTranslator", @@ -25925,81 +26265,91 @@ export const TriggerDependencyReference: coreClient.CompositeMapper = { }, }; -export const SelfDependencyTumblingWindowTriggerReference: coreClient.CompositeMapper = { - serializedName: "SelfDependencyTumblingWindowTriggerReference", - type: { - name: "Composite", - className: "SelfDependencyTumblingWindowTriggerReference", - uberParent: "DependencyReference", - polymorphicDiscriminator: DependencyReference.type.polymorphicDiscriminator, - modelProperties: { - ...DependencyReference.type.modelProperties, - offset: { - constraints: { - Pattern: new RegExp("-((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9]))"), - MaxLength: 15, - MinLength: 8, - }, - serializedName: "offset", - required: true, - type: { - name: "String", - }, - }, - size: { - constraints: { - Pattern: new RegExp("((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9]))"), - MaxLength: 15, - MinLength: 8, +export const SelfDependencyTumblingWindowTriggerReference: coreClient.CompositeMapper = + { + serializedName: "SelfDependencyTumblingWindowTriggerReference", + type: { + name: "Composite", + className: "SelfDependencyTumblingWindowTriggerReference", + uberParent: "DependencyReference", + polymorphicDiscriminator: + DependencyReference.type.polymorphicDiscriminator, + modelProperties: { + ...DependencyReference.type.modelProperties, + offset: { + constraints: { + Pattern: new RegExp( + "-((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9]))", + ), + MaxLength: 15, + MinLength: 8, + }, + serializedName: "offset", + required: true, + type: { + name: "String", + }, }, - serializedName: "size", - type: { - name: "String", + size: { + constraints: { + Pattern: new RegExp( + "((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9]))", + ), + MaxLength: 15, + MinLength: 8, + }, + serializedName: "size", + type: { + name: "String", + }, }, }, }, - }, -}; - -export const LinkedIntegrationRuntimeKeyAuthorization: coreClient.CompositeMapper = { - serializedName: "Key", - type: { - name: "Composite", - className: "LinkedIntegrationRuntimeKeyAuthorization", - uberParent: "LinkedIntegrationRuntimeType", - polymorphicDiscriminator: LinkedIntegrationRuntimeType.type.polymorphicDiscriminator, - modelProperties: { - ...LinkedIntegrationRuntimeType.type.modelProperties, - key: { - serializedName: "key", - type: { - name: "Composite", - className: "SecureString", + }; + +export const LinkedIntegrationRuntimeKeyAuthorization: coreClient.CompositeMapper = + { + serializedName: "Key", + type: { + name: "Composite", + className: "LinkedIntegrationRuntimeKeyAuthorization", + uberParent: "LinkedIntegrationRuntimeType", + polymorphicDiscriminator: + LinkedIntegrationRuntimeType.type.polymorphicDiscriminator, + modelProperties: { + ...LinkedIntegrationRuntimeType.type.modelProperties, + key: { + serializedName: "key", + type: { + name: "Composite", + className: "SecureString", + }, }, }, }, - }, -}; - -export const LinkedIntegrationRuntimeRbacAuthorization: coreClient.CompositeMapper = { - serializedName: "RBAC", - type: { - name: "Composite", - className: "LinkedIntegrationRuntimeRbacAuthorization", - uberParent: "LinkedIntegrationRuntimeType", - polymorphicDiscriminator: LinkedIntegrationRuntimeType.type.polymorphicDiscriminator, - modelProperties: { - ...LinkedIntegrationRuntimeType.type.modelProperties, - resourceId: { - serializedName: "resourceId", - required: true, - type: { - name: "String", + }; + +export const LinkedIntegrationRuntimeRbacAuthorization: coreClient.CompositeMapper = + { + serializedName: "RBAC", + type: { + name: "Composite", + className: "LinkedIntegrationRuntimeRbacAuthorization", + uberParent: "LinkedIntegrationRuntimeType", + polymorphicDiscriminator: + LinkedIntegrationRuntimeType.type.polymorphicDiscriminator, + modelProperties: { + ...LinkedIntegrationRuntimeType.type.modelProperties, + resourceId: { + serializedName: "resourceId", + required: true, + type: { + name: "String", + }, }, }, }, - }, -}; + }; export const SubResource: coreClient.CompositeMapper = { type: { @@ -28532,7 +28882,8 @@ export const ScheduleTrigger: coreClient.CompositeMapper = { className: "ScheduleTrigger", uberParent: "MultiplePipelineTrigger", additionalProperties: { type: { name: "Object" } }, - polymorphicDiscriminator: MultiplePipelineTrigger.type.polymorphicDiscriminator, + polymorphicDiscriminator: + MultiplePipelineTrigger.type.polymorphicDiscriminator, modelProperties: { ...MultiplePipelineTrigger.type.modelProperties, recurrence: { @@ -28553,7 +28904,8 @@ export const BlobTrigger: coreClient.CompositeMapper = { className: "BlobTrigger", uberParent: "MultiplePipelineTrigger", additionalProperties: { type: { name: "Object" } }, - polymorphicDiscriminator: MultiplePipelineTrigger.type.polymorphicDiscriminator, + polymorphicDiscriminator: + MultiplePipelineTrigger.type.polymorphicDiscriminator, modelProperties: { ...MultiplePipelineTrigger.type.modelProperties, folderPath: { @@ -28588,7 +28940,8 @@ export const BlobEventsTrigger: coreClient.CompositeMapper = { className: "BlobEventsTrigger", uberParent: "MultiplePipelineTrigger", additionalProperties: { type: { name: "Object" } }, - polymorphicDiscriminator: MultiplePipelineTrigger.type.polymorphicDiscriminator, + polymorphicDiscriminator: + MultiplePipelineTrigger.type.polymorphicDiscriminator, modelProperties: { ...MultiplePipelineTrigger.type.modelProperties, blobPathBeginsWith: { @@ -28639,7 +28992,8 @@ export const CustomEventsTrigger: coreClient.CompositeMapper = { className: "CustomEventsTrigger", uberParent: "MultiplePipelineTrigger", additionalProperties: { type: { name: "Object" } }, - polymorphicDiscriminator: MultiplePipelineTrigger.type.polymorphicDiscriminator, + polymorphicDiscriminator: + MultiplePipelineTrigger.type.polymorphicDiscriminator, modelProperties: { ...MultiplePipelineTrigger.type.modelProperties, subjectBeginsWith: { @@ -30396,40 +30750,46 @@ export const ServiceNowV2Source: coreClient.CompositeMapper = { }, }; -export const TumblingWindowTriggerDependencyReference: coreClient.CompositeMapper = { - serializedName: "TumblingWindowTriggerDependencyReference", - type: { - name: "Composite", - className: "TumblingWindowTriggerDependencyReference", - uberParent: "TriggerDependencyReference", - polymorphicDiscriminator: TriggerDependencyReference.type.polymorphicDiscriminator, - modelProperties: { - ...TriggerDependencyReference.type.modelProperties, - offset: { - constraints: { - Pattern: new RegExp("-?((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9]))"), - MaxLength: 15, - MinLength: 8, - }, - serializedName: "offset", - type: { - name: "String", - }, - }, - size: { - constraints: { - Pattern: new RegExp("((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9]))"), - MaxLength: 15, - MinLength: 8, +export const TumblingWindowTriggerDependencyReference: coreClient.CompositeMapper = + { + serializedName: "TumblingWindowTriggerDependencyReference", + type: { + name: "Composite", + className: "TumblingWindowTriggerDependencyReference", + uberParent: "TriggerDependencyReference", + polymorphicDiscriminator: + TriggerDependencyReference.type.polymorphicDiscriminator, + modelProperties: { + ...TriggerDependencyReference.type.modelProperties, + offset: { + constraints: { + Pattern: new RegExp( + "-?((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9]))", + ), + MaxLength: 15, + MinLength: 8, + }, + serializedName: "offset", + type: { + name: "String", + }, }, - serializedName: "size", - type: { - name: "String", + size: { + constraints: { + Pattern: new RegExp( + "((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9]))", + ), + MaxLength: 15, + MinLength: 8, + }, + serializedName: "size", + type: { + name: "String", + }, }, }, }, - }, -}; + }; export const SparkConfigurationResource: coreClient.CompositeMapper = { type: { @@ -30680,35 +31040,37 @@ export const RunNotebookCreateRunHeaders: coreClient.CompositeMapper = { }, }; -export const DataFlowDebugSessionCreateDataFlowDebugSessionHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DataFlowDebugSessionCreateDataFlowDebugSessionHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String", +export const DataFlowDebugSessionCreateDataFlowDebugSessionHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "DataFlowDebugSessionCreateDataFlowDebugSessionHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, }, }, }, - }, -}; + }; -export const DataFlowDebugSessionExecuteCommandHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DataFlowDebugSessionExecuteCommandHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String", +export const DataFlowDebugSessionExecuteCommandHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "DataFlowDebugSessionExecuteCommandHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, }, }, }, - }, -}; + }; export const discriminators = { SecretBase: SecretBase, @@ -30761,7 +31123,8 @@ export const discriminators = { "Dataset.DocumentDbCollection": DocumentDbCollectionDataset, "Dataset.DynamicsEntity": DynamicsEntityDataset, "Dataset.DynamicsCrmEntity": DynamicsCrmEntityDataset, - "Dataset.CommonDataServiceForAppsEntity": CommonDataServiceForAppsEntityDataset, + "Dataset.CommonDataServiceForAppsEntity": + CommonDataServiceForAppsEntityDataset, "Dataset.AzureDataLakeStoreFile": AzureDataLakeStoreDataset, "Dataset.AzureBlobFSFile": AzureBlobFSDataset, "Dataset.Office365Table": Office365Dataset, @@ -30830,7 +31193,8 @@ export const discriminators = { "Dataset.ZohoObject": ZohoObjectDataset, "Dataset.NetezzaTable": NetezzaTableDataset, "Dataset.VerticaTable": VerticaTableDataset, - "Dataset.SalesforceMarketingCloudObject": SalesforceMarketingCloudObjectDataset, + "Dataset.SalesforceMarketingCloudObject": + SalesforceMarketingCloudObjectDataset, "Dataset.ResponsysObject": ResponsysObjectDataset, "Dataset.DynamicsAXResource": DynamicsAXResourceDataset, "Dataset.OracleServiceCloudObject": OracleServiceCloudObjectDataset, @@ -30842,7 +31206,8 @@ export const discriminators = { "Dataset.AzureDatabricksDeltaLakeDataset": AzureDatabricksDeltaLakeDataset, "Dataset.LakehouseTable": LakeHouseTableDataset, "Dataset.SalesforceV2Object": SalesforceV2ObjectDataset, - "Dataset.SalesforceServiceCloudV2Object": SalesforceServiceCloudV2ObjectDataset, + "Dataset.SalesforceServiceCloudV2Object": + SalesforceServiceCloudV2ObjectDataset, "Dataset.WarehouseTable": WarehouseTableDataset, "Dataset.ServiceNowV2Object": ServiceNowV2ObjectDataset, "LinkedService.AzureStorage": AzureStorageLinkedService, @@ -30858,7 +31223,8 @@ export const discriminators = { "LinkedService.CosmosDb": CosmosDbLinkedService, "LinkedService.Dynamics": DynamicsLinkedService, "LinkedService.DynamicsCrm": DynamicsCrmLinkedService, - "LinkedService.CommonDataServiceForApps": CommonDataServiceForAppsLinkedService, + "LinkedService.CommonDataServiceForApps": + CommonDataServiceForAppsLinkedService, "LinkedService.HDInsight": HDInsightLinkedService, "LinkedService.FileServer": FileServerLinkedService, "LinkedService.AzureFileStorage": AzureFileStorageLinkedService, @@ -30943,11 +31309,13 @@ export const discriminators = { "LinkedService.Zoho": ZohoLinkedService, "LinkedService.Vertica": VerticaLinkedService, "LinkedService.Netezza": NetezzaLinkedService, - "LinkedService.SalesforceMarketingCloud": SalesforceMarketingCloudLinkedService, + "LinkedService.SalesforceMarketingCloud": + SalesforceMarketingCloudLinkedService, "LinkedService.HDInsightOnDemand": HDInsightOnDemandLinkedService, "LinkedService.AzureDataLakeAnalytics": AzureDataLakeAnalyticsLinkedService, "LinkedService.AzureDatabricks": AzureDatabricksLinkedService, - "LinkedService.AzureDatabricksDeltaLake": AzureDatabricksDeltaLakeLinkedService, + "LinkedService.AzureDatabricksDeltaLake": + AzureDatabricksDeltaLakeLinkedService, "LinkedService.Responsys": ResponsysLinkedService, "LinkedService.DynamicsAX": DynamicsAXLinkedService, "LinkedService.OracleServiceCloud": OracleServiceCloudLinkedService, @@ -30962,8 +31330,10 @@ export const discriminators = { "LinkedService.Lakehouse": LakeHouseLinkedService, "LinkedService.PowerBIWorkspace": PowerBIWorkspaceLinkedService, "LinkedService.SalesforceV2": SalesforceV2LinkedService, - "LinkedService.SalesforceServiceCloudV2": SalesforceServiceCloudV2LinkedService, + "LinkedService.SalesforceServiceCloudV2": + SalesforceServiceCloudV2LinkedService, "LinkedService.Warehouse": WarehouseLinkedService, + "LinkedService.ServiceNowV2": ServiceNowV2LinkedService, "Activity.Container": ControlActivity, "Activity.Execution": ExecutionActivity, "Activity.SqlPoolStoredProcedure": SqlPoolStoredProcedureActivity, @@ -30990,25 +31360,33 @@ export const discriminators = { "DatasetStorageFormat.ParquetFormat": ParquetFormat, "WebLinkedServiceTypeProperties.Anonymous": WebAnonymousAuthentication, "WebLinkedServiceTypeProperties.Basic": WebBasicAuthentication, - "WebLinkedServiceTypeProperties.ClientCertificate": WebClientCertificateAuthentication, - "StoreReadSettings.AzureBlobStorageReadSettings": AzureBlobStorageReadSettings, + "WebLinkedServiceTypeProperties.ClientCertificate": + WebClientCertificateAuthentication, + "StoreReadSettings.AzureBlobStorageReadSettings": + AzureBlobStorageReadSettings, "StoreReadSettings.AzureBlobFSReadSettings": AzureBlobFSReadSettings, - "StoreReadSettings.AzureDataLakeStoreReadSettings": AzureDataLakeStoreReadSettings, + "StoreReadSettings.AzureDataLakeStoreReadSettings": + AzureDataLakeStoreReadSettings, "StoreReadSettings.AmazonS3ReadSettings": AmazonS3ReadSettings, "StoreReadSettings.FileServerReadSettings": FileServerReadSettings, - "StoreReadSettings.AzureFileStorageReadSettings": AzureFileStorageReadSettings, - "StoreReadSettings.GoogleCloudStorageReadSettings": GoogleCloudStorageReadSettings, + "StoreReadSettings.AzureFileStorageReadSettings": + AzureFileStorageReadSettings, + "StoreReadSettings.GoogleCloudStorageReadSettings": + GoogleCloudStorageReadSettings, "StoreReadSettings.FtpReadSettings": FtpReadSettings, "StoreReadSettings.SftpReadSettings": SftpReadSettings, "StoreReadSettings.HttpReadSettings": HttpReadSettings, "StoreReadSettings.HdfsReadSettings": HdfsReadSettings, "StoreReadSettings.LakeHouseReadSettings": LakeHouseReadSettings, "StoreWriteSettings.SftpWriteSettings": SftpWriteSettings, - "StoreWriteSettings.AzureBlobStorageWriteSettings": AzureBlobStorageWriteSettings, + "StoreWriteSettings.AzureBlobStorageWriteSettings": + AzureBlobStorageWriteSettings, "StoreWriteSettings.AzureBlobFSWriteSettings": AzureBlobFSWriteSettings, - "StoreWriteSettings.AzureDataLakeStoreWriteSettings": AzureDataLakeStoreWriteSettings, + "StoreWriteSettings.AzureDataLakeStoreWriteSettings": + AzureDataLakeStoreWriteSettings, "StoreWriteSettings.FileServerWriteSettings": FileServerWriteSettings, - "StoreWriteSettings.AzureFileStorageWriteSettings": AzureFileStorageWriteSettings, + "StoreWriteSettings.AzureFileStorageWriteSettings": + AzureFileStorageWriteSettings, "StoreWriteSettings.LakeHouseWriteSettings": LakeHouseWriteSettings, "FormatReadSettings.ParquetReadSettings": ParquetReadSettings, "FormatReadSettings.DelimitedTextReadSettings": DelimitedTextReadSettings, @@ -31109,16 +31487,19 @@ export const discriminators = { "CopySink.SalesforceV2Sink": SalesforceV2Sink, "CopySink.SalesforceServiceCloudV2Sink": SalesforceServiceCloudV2Sink, "ImportSettings.TeradataImportCommand": TeradataImportCommand, - "ImportSettings.AzureDatabricksDeltaLakeImportCommand": AzureDatabricksDeltaLakeImportCommand, + "ImportSettings.AzureDatabricksDeltaLakeImportCommand": + AzureDatabricksDeltaLakeImportCommand, "ImportSettings.SnowflakeImportCopyCommand": SnowflakeImportCopyCommand, "ExportSettings.SnowflakeExportCopyCommand": SnowflakeExportCopyCommand, - "ExportSettings.AzureDatabricksDeltaLakeExportCommand": AzureDatabricksDeltaLakeExportCommand, + "ExportSettings.AzureDatabricksDeltaLakeExportCommand": + AzureDatabricksDeltaLakeExportCommand, "CopyTranslator.TabularTranslator": TabularTranslator, "DependencyReference.TriggerDependencyReference": TriggerDependencyReference, "DependencyReference.SelfDependencyTumblingWindowTriggerReference": SelfDependencyTumblingWindowTriggerReference, "LinkedIntegrationRuntimeType.Key": LinkedIntegrationRuntimeKeyAuthorization, - "LinkedIntegrationRuntimeType.RBAC": LinkedIntegrationRuntimeRbacAuthorization, + "LinkedIntegrationRuntimeType.RBAC": + LinkedIntegrationRuntimeRbacAuthorization, "ControlActivity.ExecutePipeline": ExecutePipelineActivity, "ControlActivity.IfCondition": IfConditionActivity, "ControlActivity.Switch": SwitchActivity, @@ -31139,9 +31520,11 @@ export const discriminators = { "ExecutionActivity.HDInsightSpark": HDInsightSparkActivity, "ExecutionActivity.ExecuteSSISPackage": ExecuteSsisPackageActivity, "ExecutionActivity.Custom": CustomActivity, - "ExecutionActivity.SqlServerStoredProcedure": SqlServerStoredProcedureActivity, + "ExecutionActivity.SqlServerStoredProcedure": + SqlServerStoredProcedureActivity, "ExecutionActivity.Delete": DeleteActivity, - "ExecutionActivity.AzureDataExplorerCommand": AzureDataExplorerCommandActivity, + "ExecutionActivity.AzureDataExplorerCommand": + AzureDataExplorerCommandActivity, "ExecutionActivity.Lookup": LookupActivity, "ExecutionActivity.WebActivity": WebActivity, "ExecutionActivity.GetMetadata": GetMetadataActivity, @@ -31216,7 +31599,8 @@ export const discriminators = { "TabularSource.ZohoSource": ZohoSource, "TabularSource.NetezzaSource": NetezzaSource, "TabularSource.VerticaSource": VerticaSource, - "TabularSource.SalesforceMarketingCloudSource": SalesforceMarketingCloudSource, + "TabularSource.SalesforceMarketingCloudSource": + SalesforceMarketingCloudSource, "TabularSource.ResponsysSource": ResponsysSource, "TabularSource.DynamicsAXSource": DynamicsAXSource, "TabularSource.OracleServiceCloudSource": OracleServiceCloudSource, diff --git a/sdk/synapse/synapse-artifacts/src/operations/bigDataPools.ts b/sdk/synapse/synapse-artifacts/src/operations/bigDataPools.ts index ae73e80ecf6b..98789e967eba 100644 --- a/sdk/synapse/synapse-artifacts/src/operations/bigDataPools.ts +++ b/sdk/synapse/synapse-artifacts/src/operations/bigDataPools.ts @@ -19,6 +19,58 @@ import type { BigDataPoolsGetResponse, } from "../models/index.js"; +/** Class containing BigDataPools operations. */ +export class BigDataPoolsImpl implements BigDataPools { + private readonly client: ArtifactsClient; + + /** + * Initialize a new instance of the class BigDataPools class. + * @param client Reference to the service client + */ + constructor(client: ArtifactsClient) { + this.client = client; + } + + /** + * List Big Data Pools + * @param options The options parameters. + */ + async list( + options?: BigDataPoolsListOptionalParams, + ): Promise { + return tracingClient.withSpan( + "ArtifactsClient.list", + options ?? {}, + async (options) => { + return this.client.sendOperationRequest( + { options }, + listOperationSpec, + ) as Promise; + }, + ); + } + + /** + * Get Big Data Pool + * @param bigDataPoolName The Big Data Pool name + * @param options The options parameters. + */ + async get( + bigDataPoolName: string, + options?: BigDataPoolsGetOptionalParams, + ): Promise { + return tracingClient.withSpan( + "ArtifactsClient.get", + options ?? {}, + async (options) => { + return this.client.sendOperationRequest( + { bigDataPoolName, options }, + getOperationSpec, + ) as Promise; + }, + ); + } +} // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); @@ -54,46 +106,3 @@ const getOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer, }; - -/** Class containing BigDataPools operations. */ -export class BigDataPoolsImpl implements BigDataPools { - private readonly client: ArtifactsClient; - - /** - * Initialize a new instance of the class BigDataPools class. - * @param client - Reference to the service client - */ - constructor(client: ArtifactsClient) { - this.client = client; - } - - /** - * List Big Data Pools - * @param options - The options parameters. - */ - async list(options?: BigDataPoolsListOptionalParams): Promise { - return tracingClient.withSpan("ArtifactsClient.list", options ?? {}, async (updatedOptions) => { - return this.client.sendOperationRequest( - { updatedOptions }, - listOperationSpec, - ) as Promise; - }); - } - - /** - * Get Big Data Pool - * @param bigDataPoolName - The Big Data Pool name - * @param options - The options parameters. - */ - async get( - bigDataPoolName: string, - options?: BigDataPoolsGetOptionalParams, - ): Promise { - return tracingClient.withSpan("ArtifactsClient.get", options ?? {}, async (updatedOptions) => { - return this.client.sendOperationRequest( - { bigDataPoolName, updatedOptions }, - getOperationSpec, - ) as Promise; - }); - } -} diff --git a/sdk/synapse/synapse-artifacts/src/operations/dataFlowDebugSession.ts b/sdk/synapse/synapse-artifacts/src/operations/dataFlowDebugSession.ts index b4e9b7b835a3..3441759391d4 100644 --- a/sdk/synapse/synapse-artifacts/src/operations/dataFlowDebugSession.ts +++ b/sdk/synapse/synapse-artifacts/src/operations/dataFlowDebugSession.ts @@ -14,8 +14,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers.js"; import * as Parameters from "../models/parameters.js"; import type { ArtifactsClient } from "../artifactsClient.js"; -import type { SimplePollerLike, OperationState } from "@azure/core-lro"; -import { createHttpPoller } from "@azure/core-lro"; +import type { + SimplePollerLike, + OperationState} from "@azure/core-lro"; +import { + createHttpPoller, +} from "@azure/core-lro"; import { createLroSpec } from "../lroImpl.js"; import type { DataFlowDebugSessionInfo, @@ -34,140 +38,16 @@ import type { DataFlowDebugSessionExecuteCommandOptionalParams, DataFlowDebugSessionExecuteCommandResponse, DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceNextResponse, - DataFlowDebugCommandResponse, } from "../models/index.js"; -import type { RawHttpHeaders } from "@azure/core-rest-pipeline"; - -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const createDataFlowDebugSessionOperationSpec: coreClient.OperationSpec = { - path: "/createDataFlowDebugSession", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.CreateDataFlowDebugSessionResponse, - }, - 201: { - bodyMapper: Mappers.CreateDataFlowDebugSessionResponse, - }, - 202: { - bodyMapper: Mappers.CreateDataFlowDebugSessionResponse, - }, - 204: { - bodyMapper: Mappers.CreateDataFlowDebugSessionResponse, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - requestBody: Parameters.request1, - queryParameters: [Parameters.apiVersion5], - urlParameters: [Parameters.endpoint], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const queryDataFlowDebugSessionsByWorkspaceOperationSpec: coreClient.OperationSpec = { - path: "/queryDataFlowDebugSessions", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.QueryDataFlowDebugSessionsResponse, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion5], - urlParameters: [Parameters.endpoint], - headerParameters: [Parameters.accept], - serializer, -}; -const addDataFlowOperationSpec: coreClient.OperationSpec = { - path: "/addDataFlowToDebugSession", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.AddDataFlowToDebugSessionResponse, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - requestBody: Parameters.request2, - queryParameters: [Parameters.apiVersion5], - urlParameters: [Parameters.endpoint], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const deleteDataFlowDebugSessionOperationSpec: coreClient.OperationSpec = { - path: "/deleteDataFlowDebugSession", - httpMethod: "POST", - responses: { - 200: {}, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - requestBody: Parameters.request3, - queryParameters: [Parameters.apiVersion5], - urlParameters: [Parameters.endpoint], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const executeCommandOperationSpec: coreClient.OperationSpec = { - path: "/executeDataFlowDebugCommand", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.DataFlowDebugCommandResponse, - }, - 201: { - bodyMapper: Mappers.DataFlowDebugCommandResponse, - }, - 202: { - bodyMapper: Mappers.DataFlowDebugCommandResponse, - }, - 204: { - bodyMapper: Mappers.DataFlowDebugCommandResponse, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - requestBody: Parameters.request4, - queryParameters: [Parameters.apiVersion5], - urlParameters: [Parameters.endpoint], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const queryDataFlowDebugSessionsByWorkspaceNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.QueryDataFlowDebugSessionsResponse, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - urlParameters: [Parameters.endpoint, Parameters.nextLink], - headerParameters: [Parameters.accept], - serializer, -}; +/// /** Class containing DataFlowDebugSession operations. */ export class DataFlowDebugSessionImpl implements DataFlowDebugSession { private readonly client: ArtifactsClient; /** * Initialize a new instance of the class DataFlowDebugSession class. - * @param client - Reference to the service client + * @param client Reference to the service client */ constructor(client: ArtifactsClient) { this.client = client; @@ -175,7 +55,7 @@ export class DataFlowDebugSessionImpl implements DataFlowDebugSession { /** * Query all active data flow debug sessions. - * @param options - The options parameters. + * @param options The options parameters. */ public listQueryDataFlowDebugSessionsByWorkspace( options?: DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceOptionalParams, @@ -192,7 +72,10 @@ export class DataFlowDebugSessionImpl implements DataFlowDebugSession { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.queryDataFlowDebugSessionsByWorkspacePagingPage(options, settings); + return this.queryDataFlowDebugSessionsByWorkspacePagingPage( + options, + settings, + ); }, }; } @@ -211,7 +94,10 @@ export class DataFlowDebugSessionImpl implements DataFlowDebugSession { yield page; } while (continuationToken) { - result = await this._queryDataFlowDebugSessionsByWorkspaceNext(continuationToken, options); + result = await this._queryDataFlowDebugSessionsByWorkspaceNext( + continuationToken, + options, + ); continuationToken = result.nextLink; const page = result.value || []; setContinuationToken(page, continuationToken); @@ -222,15 +108,17 @@ export class DataFlowDebugSessionImpl implements DataFlowDebugSession { private async *queryDataFlowDebugSessionsByWorkspacePagingAll( options?: DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceOptionalParams, ): AsyncIterableIterator { - for await (const page of this.queryDataFlowDebugSessionsByWorkspacePagingPage(options)) { + for await (const page of this.queryDataFlowDebugSessionsByWorkspacePagingPage( + options, + )) { yield* page; } } /** * Creates a data flow debug session. - * @param request - Data flow debug session definition - * @param options - The options parameters. + * @param request Data flow debug session definition + * @param options The options parameters. */ async beginCreateDataFlowDebugSession( request: CreateDataFlowDebugSessionRequest, @@ -260,7 +148,8 @@ export class DataFlowDebugSessionImpl implements DataFlowDebugSession { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -305,8 +194,8 @@ export class DataFlowDebugSessionImpl implements DataFlowDebugSession { /** * Creates a data flow debug session. - * @param request - Data flow debug session definition - * @param options - The options parameters. + * @param request Data flow debug session definition + * @param options The options parameters. */ async beginCreateDataFlowDebugSessionAndWait( request: CreateDataFlowDebugSessionRequest, @@ -318,7 +207,7 @@ export class DataFlowDebugSessionImpl implements DataFlowDebugSession { /** * Query all active data flow debug sessions. - * @param options - The options parameters. + * @param options The options parameters. */ private async _queryDataFlowDebugSessionsByWorkspace( options?: DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceOptionalParams, @@ -326,9 +215,9 @@ export class DataFlowDebugSessionImpl implements DataFlowDebugSession { return tracingClient.withSpan( "ArtifactsClient._queryDataFlowDebugSessionsByWorkspace", options ?? {}, - async (updatedOptions) => { + async (options) => { return this.client.sendOperationRequest( - { updatedOptions }, + { options }, queryDataFlowDebugSessionsByWorkspaceOperationSpec, ) as Promise; }, @@ -337,8 +226,8 @@ export class DataFlowDebugSessionImpl implements DataFlowDebugSession { /** * Add a data flow into debug session. - * @param request - Data flow debug session definition with debug content. - * @param options - The options parameters. + * @param request Data flow debug session definition with debug content. + * @param options The options parameters. */ async addDataFlow( request: DataFlowDebugPackage, @@ -347,9 +236,9 @@ export class DataFlowDebugSessionImpl implements DataFlowDebugSession { return tracingClient.withSpan( "ArtifactsClient.addDataFlow", options ?? {}, - async (updatedOptions) => { + async (options) => { return this.client.sendOperationRequest( - { request, updatedOptions }, + { request, options }, addDataFlowOperationSpec, ) as Promise; }, @@ -358,8 +247,8 @@ export class DataFlowDebugSessionImpl implements DataFlowDebugSession { /** * Deletes a data flow debug session. - * @param request - Data flow debug session definition for deletion - * @param options - The options parameters. + * @param request Data flow debug session definition for deletion + * @param options The options parameters. */ async deleteDataFlowDebugSession( request: DeleteDataFlowDebugSessionRequest, @@ -368,9 +257,9 @@ export class DataFlowDebugSessionImpl implements DataFlowDebugSession { return tracingClient.withSpan( "ArtifactsClient.deleteDataFlowDebugSession", options ?? {}, - async (updatedOptions) => { + async (options) => { return this.client.sendOperationRequest( - { request, updatedOptions }, + { request, options }, deleteDataFlowDebugSessionOperationSpec, ) as Promise; }, @@ -379,8 +268,8 @@ export class DataFlowDebugSessionImpl implements DataFlowDebugSession { /** * Execute a data flow debug command. - * @param request - Data flow debug command definition. - * @param options - The options parameters. + * @param request Data flow debug command definition. + * @param options The options parameters. */ async beginExecuteCommand( request: DataFlowDebugCommandRequest, @@ -409,15 +298,9 @@ export class DataFlowDebugSessionImpl implements DataFlowDebugSession { const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, - ): Promise<{ - flatResponse: DataFlowDebugCommandResponse; - rawResponse: { - statusCode: number; - body: any; - headers: RawHttpHeaders; - }; - }> => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -462,8 +345,8 @@ export class DataFlowDebugSessionImpl implements DataFlowDebugSession { /** * Execute a data flow debug command. - * @param request - Data flow debug command definition. - * @param options - The options parameters. + * @param request Data flow debug command definition. + * @param options The options parameters. */ async beginExecuteCommandAndWait( request: DataFlowDebugCommandRequest, @@ -475,9 +358,9 @@ export class DataFlowDebugSessionImpl implements DataFlowDebugSession { /** * QueryDataFlowDebugSessionsByWorkspaceNext - * @param nextLink - The nextLink from the previous successful call to the + * @param nextLink The nextLink from the previous successful call to the * QueryDataFlowDebugSessionsByWorkspace method. - * @param options - The options parameters. + * @param options The options parameters. */ private async _queryDataFlowDebugSessionsByWorkspaceNext( nextLink: string, @@ -486,12 +369,136 @@ export class DataFlowDebugSessionImpl implements DataFlowDebugSession { return tracingClient.withSpan( "ArtifactsClient._queryDataFlowDebugSessionsByWorkspaceNext", options ?? {}, - async (updatedOptions) => { + async (options) => { return this.client.sendOperationRequest( - { nextLink, updatedOptions }, + { nextLink, options }, queryDataFlowDebugSessionsByWorkspaceNextOperationSpec, ) as Promise; }, ); } } +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const createDataFlowDebugSessionOperationSpec: coreClient.OperationSpec = { + path: "/createDataFlowDebugSession", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.CreateDataFlowDebugSessionResponse, + }, + 201: { + bodyMapper: Mappers.CreateDataFlowDebugSessionResponse, + }, + 202: { + bodyMapper: Mappers.CreateDataFlowDebugSessionResponse, + }, + 204: { + bodyMapper: Mappers.CreateDataFlowDebugSessionResponse, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + requestBody: Parameters.request1, + queryParameters: [Parameters.apiVersion5], + urlParameters: [Parameters.endpoint], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const queryDataFlowDebugSessionsByWorkspaceOperationSpec: coreClient.OperationSpec = + { + path: "/queryDataFlowDebugSessions", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.QueryDataFlowDebugSessionsResponse, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [Parameters.endpoint], + headerParameters: [Parameters.accept], + serializer, + }; +const addDataFlowOperationSpec: coreClient.OperationSpec = { + path: "/addDataFlowToDebugSession", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.AddDataFlowToDebugSessionResponse, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + requestBody: Parameters.request2, + queryParameters: [Parameters.apiVersion5], + urlParameters: [Parameters.endpoint], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const deleteDataFlowDebugSessionOperationSpec: coreClient.OperationSpec = { + path: "/deleteDataFlowDebugSession", + httpMethod: "POST", + responses: { + 200: {}, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + requestBody: Parameters.request3, + queryParameters: [Parameters.apiVersion5], + urlParameters: [Parameters.endpoint], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const executeCommandOperationSpec: coreClient.OperationSpec = { + path: "/executeDataFlowDebugCommand", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.DataFlowDebugCommandResponse, + }, + 201: { + bodyMapper: Mappers.DataFlowDebugCommandResponse, + }, + 202: { + bodyMapper: Mappers.DataFlowDebugCommandResponse, + }, + 204: { + bodyMapper: Mappers.DataFlowDebugCommandResponse, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + requestBody: Parameters.request4, + queryParameters: [Parameters.apiVersion5], + urlParameters: [Parameters.endpoint], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const queryDataFlowDebugSessionsByWorkspaceNextOperationSpec: coreClient.OperationSpec = + { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.QueryDataFlowDebugSessionsResponse, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + urlParameters: [Parameters.endpoint, Parameters.nextLink], + headerParameters: [Parameters.accept], + serializer, + }; diff --git a/sdk/synapse/synapse-artifacts/src/operations/dataFlowOperations.ts b/sdk/synapse/synapse-artifacts/src/operations/dataFlowOperations.ts index 0e345a72913a..85fd065f0f8c 100644 --- a/sdk/synapse/synapse-artifacts/src/operations/dataFlowOperations.ts +++ b/sdk/synapse/synapse-artifacts/src/operations/dataFlowOperations.ts @@ -14,8 +14,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers.js"; import * as Parameters from "../models/parameters.js"; import type { ArtifactsClient } from "../artifactsClient.js"; -import type { SimplePollerLike, OperationState } from "@azure/core-lro"; -import { createHttpPoller } from "@azure/core-lro"; +import type { + SimplePollerLike, + OperationState} from "@azure/core-lro"; +import { + createHttpPoller, +} from "@azure/core-lro"; import { createLroSpec } from "../lroImpl.js"; import type { DataFlowResource, @@ -31,129 +35,15 @@ import type { DataFlowRenameDataFlowOptionalParams, DataFlowGetDataFlowsByWorkspaceNextResponse, } from "../models/index.js"; -import type { RawHttpHeaders } from "@azure/core-rest-pipeline"; - -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const createOrUpdateDataFlowOperationSpec: coreClient.OperationSpec = { - path: "/dataflows/{dataFlowName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.DataFlowResource, - }, - 201: { - bodyMapper: Mappers.DataFlowResource, - }, - 202: { - bodyMapper: Mappers.DataFlowResource, - }, - 204: { - bodyMapper: Mappers.DataFlowResource, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - requestBody: Parameters.dataFlow, - queryParameters: [Parameters.apiVersion5], - urlParameters: [Parameters.endpoint, Parameters.dataFlowName], - headerParameters: [Parameters.accept, Parameters.contentType, Parameters.ifMatch], - mediaType: "json", - serializer, -}; -const getDataFlowOperationSpec: coreClient.OperationSpec = { - path: "/dataflows/{dataFlowName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DataFlowResource, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion5], - urlParameters: [Parameters.endpoint, Parameters.dataFlowName], - headerParameters: [Parameters.accept, Parameters.ifNoneMatch], - serializer, -}; -const deleteDataFlowOperationSpec: coreClient.OperationSpec = { - path: "/dataflows/{dataFlowName}", - httpMethod: "DELETE", - responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion5], - urlParameters: [Parameters.endpoint, Parameters.dataFlowName], - headerParameters: [Parameters.accept], - serializer, -}; -const renameDataFlowOperationSpec: coreClient.OperationSpec = { - path: "/dataflows/{dataFlowName}/rename", - httpMethod: "POST", - responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - requestBody: Parameters.request, - queryParameters: [Parameters.apiVersion5], - urlParameters: [Parameters.endpoint, Parameters.dataFlowName], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const getDataFlowsByWorkspaceOperationSpec: coreClient.OperationSpec = { - path: "/dataflows", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DataFlowListResponse, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion5], - urlParameters: [Parameters.endpoint], - headerParameters: [Parameters.accept], - serializer, -}; -const getDataFlowsByWorkspaceNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DataFlowListResponse, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - urlParameters: [Parameters.endpoint, Parameters.nextLink], - headerParameters: [Parameters.accept], - serializer, -}; +/// /** Class containing DataFlowOperations operations. */ export class DataFlowOperationsImpl implements DataFlowOperations { private readonly client: ArtifactsClient; /** * Initialize a new instance of the class DataFlowOperations class. - * @param client - Reference to the service client + * @param client Reference to the service client */ constructor(client: ArtifactsClient) { this.client = client; @@ -161,7 +51,7 @@ export class DataFlowOperationsImpl implements DataFlowOperations { /** * Lists data flows. - * @param options - The options parameters. + * @param options The options parameters. */ public listDataFlowsByWorkspace( options?: DataFlowGetDataFlowsByWorkspaceOptionalParams, @@ -197,7 +87,10 @@ export class DataFlowOperationsImpl implements DataFlowOperations { yield page; } while (continuationToken) { - result = await this._getDataFlowsByWorkspaceNext(continuationToken, options); + result = await this._getDataFlowsByWorkspaceNext( + continuationToken, + options, + ); continuationToken = result.nextLink; const page = result.value || []; setContinuationToken(page, continuationToken); @@ -215,9 +108,9 @@ export class DataFlowOperationsImpl implements DataFlowOperations { /** * Creates or updates a data flow. - * @param dataFlowName - The data flow name. - * @param dataFlow - Data flow resource definition. - * @param options - The options parameters. + * @param dataFlowName The data flow name. + * @param dataFlow Data flow resource definition. + * @param options The options parameters. */ async beginCreateOrUpdateDataFlow( dataFlowName: string, @@ -247,15 +140,9 @@ export class DataFlowOperationsImpl implements DataFlowOperations { const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, - ): Promise<{ - flatResponse: DataFlowResource; - rawResponse: { - statusCode: number; - body: any; - headers: RawHttpHeaders; - }; - }> => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -300,23 +187,27 @@ export class DataFlowOperationsImpl implements DataFlowOperations { /** * Creates or updates a data flow. - * @param dataFlowName - The data flow name. - * @param dataFlow - Data flow resource definition. - * @param options - The options parameters. + * @param dataFlowName The data flow name. + * @param dataFlow Data flow resource definition. + * @param options The options parameters. */ async beginCreateOrUpdateDataFlowAndWait( dataFlowName: string, dataFlow: DataFlowResource, options?: DataFlowCreateOrUpdateDataFlowOptionalParams, ): Promise { - const poller = await this.beginCreateOrUpdateDataFlow(dataFlowName, dataFlow, options); + const poller = await this.beginCreateOrUpdateDataFlow( + dataFlowName, + dataFlow, + options, + ); return poller.pollUntilDone(); } /** * Gets a data flow. - * @param dataFlowName - The data flow name. - * @param options - The options parameters. + * @param dataFlowName The data flow name. + * @param options The options parameters. */ async getDataFlow( dataFlowName: string, @@ -325,9 +216,9 @@ export class DataFlowOperationsImpl implements DataFlowOperations { return tracingClient.withSpan( "ArtifactsClient.getDataFlow", options ?? {}, - async (updatedOptions) => { + async (options) => { return this.client.sendOperationRequest( - { dataFlowName, updatedOptions }, + { dataFlowName, options }, getDataFlowOperationSpec, ) as Promise; }, @@ -336,8 +227,8 @@ export class DataFlowOperationsImpl implements DataFlowOperations { /** * Deletes a data flow. - * @param dataFlowName - The data flow name. - * @param options - The options parameters. + * @param dataFlowName The data flow name. + * @param options The options parameters. */ async beginDeleteDataFlow( dataFlowName: string, @@ -358,15 +249,9 @@ export class DataFlowOperationsImpl implements DataFlowOperations { const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, - ): Promise<{ - flatResponse: void; - rawResponse: { - statusCode: number; - body: any; - headers: RawHttpHeaders; - }; - }> => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -408,8 +293,8 @@ export class DataFlowOperationsImpl implements DataFlowOperations { /** * Deletes a data flow. - * @param dataFlowName - The data flow name. - * @param options - The options parameters. + * @param dataFlowName The data flow name. + * @param options The options parameters. */ async beginDeleteDataFlowAndWait( dataFlowName: string, @@ -421,9 +306,9 @@ export class DataFlowOperationsImpl implements DataFlowOperations { /** * Renames a dataflow. - * @param dataFlowName - The data flow name. - * @param request - proposed new name. - * @param options - The options parameters. + * @param dataFlowName The data flow name. + * @param request proposed new name. + * @param options The options parameters. */ async beginRenameDataFlow( dataFlowName: string, @@ -445,15 +330,9 @@ export class DataFlowOperationsImpl implements DataFlowOperations { const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, - ): Promise<{ - flatResponse: void; - rawResponse: { - statusCode: number; - body: any; - headers: RawHttpHeaders; - }; - }> => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -495,22 +374,26 @@ export class DataFlowOperationsImpl implements DataFlowOperations { /** * Renames a dataflow. - * @param dataFlowName - The data flow name. - * @param request - proposed new name. - * @param options - The options parameters. + * @param dataFlowName The data flow name. + * @param request proposed new name. + * @param options The options parameters. */ async beginRenameDataFlowAndWait( dataFlowName: string, request: ArtifactRenameRequest, options?: DataFlowRenameDataFlowOptionalParams, ): Promise { - const poller = await this.beginRenameDataFlow(dataFlowName, request, options); + const poller = await this.beginRenameDataFlow( + dataFlowName, + request, + options, + ); return poller.pollUntilDone(); } /** * Lists data flows. - * @param options - The options parameters. + * @param options The options parameters. */ private async _getDataFlowsByWorkspace( options?: DataFlowGetDataFlowsByWorkspaceOptionalParams, @@ -518,9 +401,9 @@ export class DataFlowOperationsImpl implements DataFlowOperations { return tracingClient.withSpan( "ArtifactsClient._getDataFlowsByWorkspace", options ?? {}, - async (updatedOptions) => { + async (options) => { return this.client.sendOperationRequest( - { updatedOptions }, + { options }, getDataFlowsByWorkspaceOperationSpec, ) as Promise; }, @@ -529,9 +412,9 @@ export class DataFlowOperationsImpl implements DataFlowOperations { /** * GetDataFlowsByWorkspaceNext - * @param nextLink - The nextLink from the previous successful call to the GetDataFlowsByWorkspace + * @param nextLink The nextLink from the previous successful call to the GetDataFlowsByWorkspace * method. - * @param options - The options parameters. + * @param options The options parameters. */ private async _getDataFlowsByWorkspaceNext( nextLink: string, @@ -540,12 +423,129 @@ export class DataFlowOperationsImpl implements DataFlowOperations { return tracingClient.withSpan( "ArtifactsClient._getDataFlowsByWorkspaceNext", options ?? {}, - async (updatedOptions) => { + async (options) => { return this.client.sendOperationRequest( - { nextLink, updatedOptions }, + { nextLink, options }, getDataFlowsByWorkspaceNextOperationSpec, ) as Promise; }, ); } } +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const createOrUpdateDataFlowOperationSpec: coreClient.OperationSpec = { + path: "/dataflows/{dataFlowName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.DataFlowResource, + }, + 201: { + bodyMapper: Mappers.DataFlowResource, + }, + 202: { + bodyMapper: Mappers.DataFlowResource, + }, + 204: { + bodyMapper: Mappers.DataFlowResource, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + requestBody: Parameters.dataFlow, + queryParameters: [Parameters.apiVersion5], + urlParameters: [Parameters.endpoint, Parameters.dataFlowName], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + ], + mediaType: "json", + serializer, +}; +const getDataFlowOperationSpec: coreClient.OperationSpec = { + path: "/dataflows/{dataFlowName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DataFlowResource, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [Parameters.endpoint, Parameters.dataFlowName], + headerParameters: [Parameters.accept, Parameters.ifNoneMatch], + serializer, +}; +const deleteDataFlowOperationSpec: coreClient.OperationSpec = { + path: "/dataflows/{dataFlowName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [Parameters.endpoint, Parameters.dataFlowName], + headerParameters: [Parameters.accept], + serializer, +}; +const renameDataFlowOperationSpec: coreClient.OperationSpec = { + path: "/dataflows/{dataFlowName}/rename", + httpMethod: "POST", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + requestBody: Parameters.request, + queryParameters: [Parameters.apiVersion5], + urlParameters: [Parameters.endpoint, Parameters.dataFlowName], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const getDataFlowsByWorkspaceOperationSpec: coreClient.OperationSpec = { + path: "/dataflows", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DataFlowListResponse, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [Parameters.endpoint], + headerParameters: [Parameters.accept], + serializer, +}; +const getDataFlowsByWorkspaceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DataFlowListResponse, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + urlParameters: [Parameters.endpoint, Parameters.nextLink], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/synapse/synapse-artifacts/src/operations/datasetOperations.ts b/sdk/synapse/synapse-artifacts/src/operations/datasetOperations.ts index 7685da677078..ababce87da52 100644 --- a/sdk/synapse/synapse-artifacts/src/operations/datasetOperations.ts +++ b/sdk/synapse/synapse-artifacts/src/operations/datasetOperations.ts @@ -14,8 +14,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers.js"; import * as Parameters from "../models/parameters.js"; import type { ArtifactsClient } from "../artifactsClient.js"; -import type { SimplePollerLike, OperationState } from "@azure/core-lro"; -import { createHttpPoller } from "@azure/core-lro"; +import type { + SimplePollerLike, + OperationState} from "@azure/core-lro"; +import { + createHttpPoller, +} from "@azure/core-lro"; import { createLroSpec } from "../lroImpl.js"; import type { DatasetResource, @@ -31,130 +35,15 @@ import type { DatasetRenameDatasetOptionalParams, DatasetGetDatasetsByWorkspaceNextResponse, } from "../models/index.js"; -import type { RawHttpHeaders } from "@azure/core-rest-pipeline"; - -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const getDatasetsByWorkspaceOperationSpec: coreClient.OperationSpec = { - path: "/datasets", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DatasetListResponse, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion5], - urlParameters: [Parameters.endpoint], - headerParameters: [Parameters.accept], - serializer, -}; -const createOrUpdateDatasetOperationSpec: coreClient.OperationSpec = { - path: "/datasets/{datasetName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.DatasetResource, - }, - 201: { - bodyMapper: Mappers.DatasetResource, - }, - 202: { - bodyMapper: Mappers.DatasetResource, - }, - 204: { - bodyMapper: Mappers.DatasetResource, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - requestBody: Parameters.dataset, - queryParameters: [Parameters.apiVersion5], - urlParameters: [Parameters.endpoint, Parameters.datasetName], - headerParameters: [Parameters.accept, Parameters.contentType, Parameters.ifMatch], - mediaType: "json", - serializer, -}; -const getDatasetOperationSpec: coreClient.OperationSpec = { - path: "/datasets/{datasetName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DatasetResource, - }, - 304: {}, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion5], - urlParameters: [Parameters.endpoint, Parameters.datasetName], - headerParameters: [Parameters.accept, Parameters.ifNoneMatch], - serializer, -}; -const deleteDatasetOperationSpec: coreClient.OperationSpec = { - path: "/datasets/{datasetName}", - httpMethod: "DELETE", - responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion5], - urlParameters: [Parameters.endpoint, Parameters.datasetName], - headerParameters: [Parameters.accept], - serializer, -}; -const renameDatasetOperationSpec: coreClient.OperationSpec = { - path: "/datasets/{datasetName}/rename", - httpMethod: "POST", - responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - requestBody: Parameters.request, - queryParameters: [Parameters.apiVersion5], - urlParameters: [Parameters.endpoint, Parameters.datasetName], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const getDatasetsByWorkspaceNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DatasetListResponse, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - urlParameters: [Parameters.endpoint, Parameters.nextLink], - headerParameters: [Parameters.accept], - serializer, -}; +/// /** Class containing DatasetOperations operations. */ export class DatasetOperationsImpl implements DatasetOperations { private readonly client: ArtifactsClient; /** * Initialize a new instance of the class DatasetOperations class. - * @param client - Reference to the service client + * @param client Reference to the service client */ constructor(client: ArtifactsClient) { this.client = client; @@ -162,7 +51,7 @@ export class DatasetOperationsImpl implements DatasetOperations { /** * Lists datasets. - * @param options - The options parameters. + * @param options The options parameters. */ public listDatasetsByWorkspace( options?: DatasetGetDatasetsByWorkspaceOptionalParams, @@ -198,7 +87,10 @@ export class DatasetOperationsImpl implements DatasetOperations { yield page; } while (continuationToken) { - result = await this._getDatasetsByWorkspaceNext(continuationToken, options); + result = await this._getDatasetsByWorkspaceNext( + continuationToken, + options, + ); continuationToken = result.nextLink; const page = result.value || []; setContinuationToken(page, continuationToken); @@ -216,7 +108,7 @@ export class DatasetOperationsImpl implements DatasetOperations { /** * Lists datasets. - * @param options - The options parameters. + * @param options The options parameters. */ private async _getDatasetsByWorkspace( options?: DatasetGetDatasetsByWorkspaceOptionalParams, @@ -224,9 +116,9 @@ export class DatasetOperationsImpl implements DatasetOperations { return tracingClient.withSpan( "ArtifactsClient._getDatasetsByWorkspace", options ?? {}, - async (updatedOptions) => { + async (options) => { return this.client.sendOperationRequest( - { updatedOptions }, + { options }, getDatasetsByWorkspaceOperationSpec, ) as Promise; }, @@ -235,9 +127,9 @@ export class DatasetOperationsImpl implements DatasetOperations { /** * Creates or updates a dataset. - * @param datasetName - The dataset name. - * @param dataset - Dataset resource definition. - * @param options - The options parameters. + * @param datasetName The dataset name. + * @param dataset Dataset resource definition. + * @param options The options parameters. */ async beginCreateOrUpdateDataset( datasetName: string, @@ -267,15 +159,9 @@ export class DatasetOperationsImpl implements DatasetOperations { const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, - ): Promise<{ - flatResponse: DatasetResource; - rawResponse: { - statusCode: number; - body: any; - headers: RawHttpHeaders; - }; - }> => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -320,23 +206,27 @@ export class DatasetOperationsImpl implements DatasetOperations { /** * Creates or updates a dataset. - * @param datasetName - The dataset name. - * @param dataset - Dataset resource definition. - * @param options - The options parameters. + * @param datasetName The dataset name. + * @param dataset Dataset resource definition. + * @param options The options parameters. */ async beginCreateOrUpdateDatasetAndWait( datasetName: string, dataset: DatasetResource, options?: DatasetCreateOrUpdateDatasetOptionalParams, ): Promise { - const poller = await this.beginCreateOrUpdateDataset(datasetName, dataset, options); + const poller = await this.beginCreateOrUpdateDataset( + datasetName, + dataset, + options, + ); return poller.pollUntilDone(); } /** * Gets a dataset. - * @param datasetName - The dataset name. - * @param options - The options parameters. + * @param datasetName The dataset name. + * @param options The options parameters. */ async getDataset( datasetName: string, @@ -345,9 +235,9 @@ export class DatasetOperationsImpl implements DatasetOperations { return tracingClient.withSpan( "ArtifactsClient.getDataset", options ?? {}, - async (updatedOptions) => { + async (options) => { return this.client.sendOperationRequest( - { datasetName, updatedOptions }, + { datasetName, options }, getDatasetOperationSpec, ) as Promise; }, @@ -356,8 +246,8 @@ export class DatasetOperationsImpl implements DatasetOperations { /** * Deletes a dataset. - * @param datasetName - The dataset name. - * @param options - The options parameters. + * @param datasetName The dataset name. + * @param options The options parameters. */ async beginDeleteDataset( datasetName: string, @@ -378,15 +268,9 @@ export class DatasetOperationsImpl implements DatasetOperations { const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, - ): Promise<{ - flatResponse: void; - rawResponse: { - statusCode: number; - body: any; - headers: RawHttpHeaders; - }; - }> => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -428,8 +312,8 @@ export class DatasetOperationsImpl implements DatasetOperations { /** * Deletes a dataset. - * @param datasetName - The dataset name. - * @param options - The options parameters. + * @param datasetName The dataset name. + * @param options The options parameters. */ async beginDeleteDatasetAndWait( datasetName: string, @@ -441,9 +325,9 @@ export class DatasetOperationsImpl implements DatasetOperations { /** * Renames a dataset. - * @param datasetName - The dataset name. - * @param request - proposed new name. - * @param options - The options parameters. + * @param datasetName The dataset name. + * @param request proposed new name. + * @param options The options parameters. */ async beginRenameDataset( datasetName: string, @@ -465,15 +349,9 @@ export class DatasetOperationsImpl implements DatasetOperations { const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, - ): Promise<{ - flatResponse: void; - rawResponse: { - statusCode: number; - body: any; - headers: RawHttpHeaders; - }; - }> => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -515,9 +393,9 @@ export class DatasetOperationsImpl implements DatasetOperations { /** * Renames a dataset. - * @param datasetName - The dataset name. - * @param request - proposed new name. - * @param options - The options parameters. + * @param datasetName The dataset name. + * @param request proposed new name. + * @param options The options parameters. */ async beginRenameDatasetAndWait( datasetName: string, @@ -530,8 +408,8 @@ export class DatasetOperationsImpl implements DatasetOperations { /** * GetDatasetsByWorkspaceNext - * @param nextLink - The nextLink from the previous successful call to the GetDatasetsByWorkspace method. - * @param options - The options parameters. + * @param nextLink The nextLink from the previous successful call to the GetDatasetsByWorkspace method. + * @param options The options parameters. */ private async _getDatasetsByWorkspaceNext( nextLink: string, @@ -540,12 +418,130 @@ export class DatasetOperationsImpl implements DatasetOperations { return tracingClient.withSpan( "ArtifactsClient._getDatasetsByWorkspaceNext", options ?? {}, - async (updatedOptions) => { + async (options) => { return this.client.sendOperationRequest( - { nextLink, updatedOptions }, + { nextLink, options }, getDatasetsByWorkspaceNextOperationSpec, ) as Promise; }, ); } } +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getDatasetsByWorkspaceOperationSpec: coreClient.OperationSpec = { + path: "/datasets", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DatasetListResponse, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [Parameters.endpoint], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateDatasetOperationSpec: coreClient.OperationSpec = { + path: "/datasets/{datasetName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.DatasetResource, + }, + 201: { + bodyMapper: Mappers.DatasetResource, + }, + 202: { + bodyMapper: Mappers.DatasetResource, + }, + 204: { + bodyMapper: Mappers.DatasetResource, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + requestBody: Parameters.dataset, + queryParameters: [Parameters.apiVersion5], + urlParameters: [Parameters.endpoint, Parameters.datasetName], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + ], + mediaType: "json", + serializer, +}; +const getDatasetOperationSpec: coreClient.OperationSpec = { + path: "/datasets/{datasetName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DatasetResource, + }, + 304: {}, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [Parameters.endpoint, Parameters.datasetName], + headerParameters: [Parameters.accept, Parameters.ifNoneMatch], + serializer, +}; +const deleteDatasetOperationSpec: coreClient.OperationSpec = { + path: "/datasets/{datasetName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [Parameters.endpoint, Parameters.datasetName], + headerParameters: [Parameters.accept], + serializer, +}; +const renameDatasetOperationSpec: coreClient.OperationSpec = { + path: "/datasets/{datasetName}/rename", + httpMethod: "POST", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + requestBody: Parameters.request, + queryParameters: [Parameters.apiVersion5], + urlParameters: [Parameters.endpoint, Parameters.datasetName], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const getDatasetsByWorkspaceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DatasetListResponse, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + urlParameters: [Parameters.endpoint, Parameters.nextLink], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/synapse/synapse-artifacts/src/operations/integrationRuntimes.ts b/sdk/synapse/synapse-artifacts/src/operations/integrationRuntimes.ts index f4624a6379e9..09fa5dab0a88 100644 --- a/sdk/synapse/synapse-artifacts/src/operations/integrationRuntimes.ts +++ b/sdk/synapse/synapse-artifacts/src/operations/integrationRuntimes.ts @@ -19,6 +19,58 @@ import type { IntegrationRuntimesGetResponse, } from "../models/index.js"; +/** Class containing IntegrationRuntimes operations. */ +export class IntegrationRuntimesImpl implements IntegrationRuntimes { + private readonly client: ArtifactsClient; + + /** + * Initialize a new instance of the class IntegrationRuntimes class. + * @param client Reference to the service client + */ + constructor(client: ArtifactsClient) { + this.client = client; + } + + /** + * List Integration Runtimes + * @param options The options parameters. + */ + async list( + options?: IntegrationRuntimesListOptionalParams, + ): Promise { + return tracingClient.withSpan( + "ArtifactsClient.list", + options ?? {}, + async (options) => { + return this.client.sendOperationRequest( + { options }, + listOperationSpec, + ) as Promise; + }, + ); + } + + /** + * Get Integration Runtime + * @param integrationRuntimeName The Integration Runtime name + * @param options The options parameters. + */ + async get( + integrationRuntimeName: string, + options?: IntegrationRuntimesGetOptionalParams, + ): Promise { + return tracingClient.withSpan( + "ArtifactsClient.get", + options ?? {}, + async (options) => { + return this.client.sendOperationRequest( + { integrationRuntimeName, options }, + getOperationSpec, + ) as Promise; + }, + ); + } +} // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); @@ -54,48 +106,3 @@ const getOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer, }; - -/** Class containing IntegrationRuntimes operations. */ -export class IntegrationRuntimesImpl implements IntegrationRuntimes { - private readonly client: ArtifactsClient; - - /** - * Initialize a new instance of the class IntegrationRuntimes class. - * @param client - Reference to the service client - */ - constructor(client: ArtifactsClient) { - this.client = client; - } - - /** - * List Integration Runtimes - * @param options - The options parameters. - */ - async list( - options?: IntegrationRuntimesListOptionalParams, - ): Promise { - return tracingClient.withSpan("ArtifactsClient.list", options ?? {}, async (updatedOptions) => { - return this.client.sendOperationRequest( - { updatedOptions }, - listOperationSpec, - ) as Promise; - }); - } - - /** - * Get Integration Runtime - * @param integrationRuntimeName - The Integration Runtime name - * @param options - The options parameters. - */ - async get( - integrationRuntimeName: string, - options?: IntegrationRuntimesGetOptionalParams, - ): Promise { - return tracingClient.withSpan("ArtifactsClient.get", options ?? {}, async (updatedOptions) => { - return this.client.sendOperationRequest( - { integrationRuntimeName, updatedOptions }, - getOperationSpec, - ) as Promise; - }); - } -} diff --git a/sdk/synapse/synapse-artifacts/src/operations/kqlScriptOperations.ts b/sdk/synapse/synapse-artifacts/src/operations/kqlScriptOperations.ts index 43d2d05ee7b8..821f54ea3f83 100644 --- a/sdk/synapse/synapse-artifacts/src/operations/kqlScriptOperations.ts +++ b/sdk/synapse/synapse-artifacts/src/operations/kqlScriptOperations.ts @@ -12,8 +12,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers.js"; import * as Parameters from "../models/parameters.js"; import type { ArtifactsClient } from "../artifactsClient.js"; -import type { SimplePollerLike, OperationState } from "@azure/core-lro"; -import { createHttpPoller } from "@azure/core-lro"; +import type { + SimplePollerLike, + OperationState} from "@azure/core-lro"; +import { + createHttpPoller, +} from "@azure/core-lro"; import { createLroSpec } from "../lroImpl.js"; import type { KqlScriptResource, @@ -25,90 +29,6 @@ import type { ArtifactRenameRequest, KqlScriptRenameOptionalParams, } from "../models/index.js"; -import type { RawHttpHeaders } from "@azure/core-rest-pipeline"; - -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: "/kqlScripts/{kqlScriptName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.KqlScriptResource, - }, - 201: { - bodyMapper: Mappers.KqlScriptResource, - }, - 202: { - bodyMapper: Mappers.KqlScriptResource, - }, - 204: { - bodyMapper: Mappers.KqlScriptResource, - }, - default: { - bodyMapper: Mappers.ErrorContract, - }, - }, - requestBody: Parameters.kqlScript, - queryParameters: [Parameters.apiVersion2], - urlParameters: [Parameters.endpoint, Parameters.kqlScriptName], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const getByNameOperationSpec: coreClient.OperationSpec = { - path: "/kqlScripts/{kqlScriptName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.KqlScriptResource, - }, - default: { - bodyMapper: Mappers.ErrorContract, - }, - }, - queryParameters: [Parameters.apiVersion2], - urlParameters: [Parameters.endpoint, Parameters.kqlScriptName], - headerParameters: [Parameters.accept], - serializer, -}; -const deleteByNameOperationSpec: coreClient.OperationSpec = { - path: "/kqlScripts/{kqlScriptName}", - httpMethod: "DELETE", - responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.ErrorContract, - }, - }, - queryParameters: [Parameters.apiVersion2], - urlParameters: [Parameters.endpoint, Parameters.kqlScriptName], - headerParameters: [Parameters.accept], - serializer, -}; -const renameOperationSpec: coreClient.OperationSpec = { - path: "/kqlScripts/{kqlScriptName}/rename", - httpMethod: "POST", - responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.ErrorContract, - }, - }, - requestBody: Parameters.renameRequest, - queryParameters: [Parameters.apiVersion2], - urlParameters: [Parameters.endpoint, Parameters.kqlScriptName], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; /** Class containing KqlScriptOperations operations. */ export class KqlScriptOperationsImpl implements KqlScriptOperations { @@ -116,7 +36,7 @@ export class KqlScriptOperationsImpl implements KqlScriptOperations { /** * Initialize a new instance of the class KqlScriptOperations class. - * @param client - Reference to the service client + * @param client Reference to the service client */ constructor(client: ArtifactsClient) { this.client = client; @@ -124,9 +44,9 @@ export class KqlScriptOperationsImpl implements KqlScriptOperations { /** * Creates or updates a KQL Script - * @param kqlScriptName - KQL script name - * @param kqlScript - KQL script - * @param options - The options parameters. + * @param kqlScriptName KQL script name + * @param kqlScript KQL script + * @param options The options parameters. */ async beginCreateOrUpdate( kqlScriptName: string, @@ -156,15 +76,9 @@ export class KqlScriptOperationsImpl implements KqlScriptOperations { const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, - ): Promise<{ - flatResponse: KqlScriptResource; - rawResponse: { - statusCode: number; - body: any; - headers: RawHttpHeaders; - }; - }> => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -209,23 +123,27 @@ export class KqlScriptOperationsImpl implements KqlScriptOperations { /** * Creates or updates a KQL Script - * @param kqlScriptName - KQL script name - * @param kqlScript - KQL script - * @param options - The options parameters. + * @param kqlScriptName KQL script name + * @param kqlScript KQL script + * @param options The options parameters. */ async beginCreateOrUpdateAndWait( kqlScriptName: string, kqlScript: KqlScriptResource, options?: KqlScriptCreateOrUpdateOptionalParams, ): Promise { - const poller = await this.beginCreateOrUpdate(kqlScriptName, kqlScript, options); + const poller = await this.beginCreateOrUpdate( + kqlScriptName, + kqlScript, + options, + ); return poller.pollUntilDone(); } /** * Get KQL script by name - * @param kqlScriptName - KQL script name - * @param options - The options parameters. + * @param kqlScriptName KQL script name + * @param options The options parameters. */ async getByName( kqlScriptName: string, @@ -234,9 +152,9 @@ export class KqlScriptOperationsImpl implements KqlScriptOperations { return tracingClient.withSpan( "ArtifactsClient.getByName", options ?? {}, - async (updatedOptions) => { + async (options) => { return this.client.sendOperationRequest( - { kqlScriptName, updatedOptions }, + { kqlScriptName, options }, getByNameOperationSpec, ) as Promise; }, @@ -245,8 +163,8 @@ export class KqlScriptOperationsImpl implements KqlScriptOperations { /** * Delete KQL script by name - * @param kqlScriptName - KQL script name - * @param options - The options parameters. + * @param kqlScriptName KQL script name + * @param options The options parameters. */ async beginDeleteByName( kqlScriptName: string, @@ -267,15 +185,9 @@ export class KqlScriptOperationsImpl implements KqlScriptOperations { const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, - ): Promise<{ - flatResponse: void; - rawResponse: { - statusCode: number; - body: any; - headers: RawHttpHeaders; - }; - }> => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -317,8 +229,8 @@ export class KqlScriptOperationsImpl implements KqlScriptOperations { /** * Delete KQL script by name - * @param kqlScriptName - KQL script name - * @param options - The options parameters. + * @param kqlScriptName KQL script name + * @param options The options parameters. */ async beginDeleteByNameAndWait( kqlScriptName: string, @@ -330,9 +242,9 @@ export class KqlScriptOperationsImpl implements KqlScriptOperations { /** * Rename KQL script - * @param kqlScriptName - KQL script name - * @param renameRequest - Rename request - * @param options - The options parameters. + * @param kqlScriptName KQL script name + * @param renameRequest Rename request + * @param options The options parameters. */ async beginRename( kqlScriptName: string, @@ -343,22 +255,20 @@ export class KqlScriptOperationsImpl implements KqlScriptOperations { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ): Promise => { - return tracingClient.withSpan("ArtifactsClient.beginRename", options ?? {}, async () => { - return this.client.sendOperationRequest(args, spec) as Promise; - }); + return tracingClient.withSpan( + "ArtifactsClient.beginRename", + options ?? {}, + async () => { + return this.client.sendOperationRequest(args, spec) as Promise; + }, + ); }; const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, - ): Promise<{ - flatResponse: void; - rawResponse: { - statusCode: number; - body: any; - headers: RawHttpHeaders; - }; - }> => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -400,16 +310,102 @@ export class KqlScriptOperationsImpl implements KqlScriptOperations { /** * Rename KQL script - * @param kqlScriptName - KQL script name - * @param renameRequest - Rename request - * @param options - The options parameters. + * @param kqlScriptName KQL script name + * @param renameRequest Rename request + * @param options The options parameters. */ async beginRenameAndWait( kqlScriptName: string, renameRequest: ArtifactRenameRequest, options?: KqlScriptRenameOptionalParams, ): Promise { - const poller = await this.beginRename(kqlScriptName, renameRequest, options); + const poller = await this.beginRename( + kqlScriptName, + renameRequest, + options, + ); return poller.pollUntilDone(); } } +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/kqlScripts/{kqlScriptName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.KqlScriptResource, + }, + 201: { + bodyMapper: Mappers.KqlScriptResource, + }, + 202: { + bodyMapper: Mappers.KqlScriptResource, + }, + 204: { + bodyMapper: Mappers.KqlScriptResource, + }, + default: { + bodyMapper: Mappers.ErrorContract, + }, + }, + requestBody: Parameters.kqlScript, + queryParameters: [Parameters.apiVersion2], + urlParameters: [Parameters.endpoint, Parameters.kqlScriptName], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const getByNameOperationSpec: coreClient.OperationSpec = { + path: "/kqlScripts/{kqlScriptName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.KqlScriptResource, + }, + default: { + bodyMapper: Mappers.ErrorContract, + }, + }, + queryParameters: [Parameters.apiVersion2], + urlParameters: [Parameters.endpoint, Parameters.kqlScriptName], + headerParameters: [Parameters.accept], + serializer, +}; +const deleteByNameOperationSpec: coreClient.OperationSpec = { + path: "/kqlScripts/{kqlScriptName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorContract, + }, + }, + queryParameters: [Parameters.apiVersion2], + urlParameters: [Parameters.endpoint, Parameters.kqlScriptName], + headerParameters: [Parameters.accept], + serializer, +}; +const renameOperationSpec: coreClient.OperationSpec = { + path: "/kqlScripts/{kqlScriptName}/rename", + httpMethod: "POST", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorContract, + }, + }, + requestBody: Parameters.renameRequest, + queryParameters: [Parameters.apiVersion2], + urlParameters: [Parameters.endpoint, Parameters.kqlScriptName], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; diff --git a/sdk/synapse/synapse-artifacts/src/operations/kqlScripts.ts b/sdk/synapse/synapse-artifacts/src/operations/kqlScripts.ts index ade490486000..6b45f2c3c76b 100644 --- a/sdk/synapse/synapse-artifacts/src/operations/kqlScripts.ts +++ b/sdk/synapse/synapse-artifacts/src/operations/kqlScripts.ts @@ -22,48 +22,14 @@ import type { KqlScriptsGetAllNextResponse, } from "../models/index.js"; -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const getAllOperationSpec: coreClient.OperationSpec = { - path: "/kqlScripts", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.KqlScriptsResourceCollectionResponse, - }, - default: { - bodyMapper: Mappers.ErrorContract, - }, - }, - queryParameters: [Parameters.apiVersion2], - urlParameters: [Parameters.endpoint], - headerParameters: [Parameters.accept], - serializer, -}; -const getAllNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.KqlScriptsResourceCollectionResponse, - }, - default: { - bodyMapper: Mappers.ErrorContract, - }, - }, - urlParameters: [Parameters.endpoint, Parameters.nextLink], - headerParameters: [Parameters.accept], - serializer, -}; - +/// /** Class containing KqlScripts operations. */ export class KqlScriptsImpl implements KqlScripts { private readonly client: ArtifactsClient; /** * Initialize a new instance of the class KqlScripts class. - * @param client - Reference to the service client + * @param client Reference to the service client */ constructor(client: ArtifactsClient) { this.client = client; @@ -71,7 +37,7 @@ export class KqlScriptsImpl implements KqlScripts { /** * Get all KQL scripts - * @param options - The options parameters. + * @param options The options parameters. */ public listAll( options?: KqlScriptsGetAllOptionalParams, @@ -125,7 +91,7 @@ export class KqlScriptsImpl implements KqlScripts { /** * Get all KQL scripts - * @param options - The options parameters. + * @param options The options parameters. */ private async _getAll( options?: KqlScriptsGetAllOptionalParams, @@ -133,9 +99,9 @@ export class KqlScriptsImpl implements KqlScripts { return tracingClient.withSpan( "ArtifactsClient._getAll", options ?? {}, - async (updatedOptions) => { + async (options) => { return this.client.sendOperationRequest( - { updatedOptions }, + { options }, getAllOperationSpec, ) as Promise; }, @@ -144,8 +110,8 @@ export class KqlScriptsImpl implements KqlScripts { /** * GetAllNext - * @param nextLink - The nextLink from the previous successful call to the GetAll method. - * @param options - The options parameters. + * @param nextLink The nextLink from the previous successful call to the GetAll method. + * @param options The options parameters. */ private async _getAllNext( nextLink: string, @@ -154,12 +120,46 @@ export class KqlScriptsImpl implements KqlScripts { return tracingClient.withSpan( "ArtifactsClient._getAllNext", options ?? {}, - async (updatedOptions) => { + async (options) => { return this.client.sendOperationRequest( - { nextLink, updatedOptions }, + { nextLink, options }, getAllNextOperationSpec, ) as Promise; }, ); } } +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getAllOperationSpec: coreClient.OperationSpec = { + path: "/kqlScripts", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.KqlScriptsResourceCollectionResponse, + }, + default: { + bodyMapper: Mappers.ErrorContract, + }, + }, + queryParameters: [Parameters.apiVersion2], + urlParameters: [Parameters.endpoint], + headerParameters: [Parameters.accept], + serializer, +}; +const getAllNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.KqlScriptsResourceCollectionResponse, + }, + default: { + bodyMapper: Mappers.ErrorContract, + }, + }, + urlParameters: [Parameters.endpoint, Parameters.nextLink], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/synapse/synapse-artifacts/src/operations/library.ts b/sdk/synapse/synapse-artifacts/src/operations/library.ts index 064aff7ad379..43648ed27bb5 100644 --- a/sdk/synapse/synapse-artifacts/src/operations/library.ts +++ b/sdk/synapse/synapse-artifacts/src/operations/library.ts @@ -15,8 +15,12 @@ import type * as coreRestPipeline from "@azure/core-rest-pipeline"; import * as Mappers from "../models/mappers.js"; import * as Parameters from "../models/parameters.js"; import type { ArtifactsClient } from "../artifactsClient.js"; -import type { SimplePollerLike, OperationState } from "@azure/core-lro"; -import { createHttpPoller } from "@azure/core-lro"; +import type { + SimplePollerLike, + OperationState} from "@azure/core-lro"; +import { + createHttpPoller, +} from "@azure/core-lro"; import { createLroSpec } from "../lroImpl.js"; import type { LibraryResource, @@ -34,155 +38,14 @@ import type { LibraryListNextResponse, } from "../models/index.js"; -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listOperationSpec: coreClient.OperationSpec = { - path: "/libraries", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.LibraryListResponse, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion5], - urlParameters: [Parameters.endpoint], - headerParameters: [Parameters.accept], - serializer, -}; -const flushOperationSpec: coreClient.OperationSpec = { - path: "/libraries/{libraryName}/flush", - httpMethod: "POST", - responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion5], - urlParameters: [Parameters.endpoint, Parameters.libraryName], - headerParameters: [Parameters.accept], - serializer, -}; -const getOperationResultOperationSpec: coreClient.OperationSpec = { - path: "/libraryOperationResults/{operationId}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.LibraryResource, - }, - 202: { - bodyMapper: Mappers.OperationResult, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion5], - urlParameters: [Parameters.endpoint, Parameters.operationId], - headerParameters: [Parameters.accept], - serializer, -}; -const deleteOperationSpec: coreClient.OperationSpec = { - path: "/libraries/{libraryName}", - httpMethod: "DELETE", - responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion5], - urlParameters: [Parameters.endpoint, Parameters.libraryName], - headerParameters: [Parameters.accept], - serializer, -}; -const getOperationSpec: coreClient.OperationSpec = { - path: "/libraries/{libraryName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.LibraryResource, - }, - 304: {}, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion5], - urlParameters: [Parameters.endpoint, Parameters.libraryName], - headerParameters: [Parameters.accept], - serializer, -}; -const createOperationSpec: coreClient.OperationSpec = { - path: "/libraries/{libraryName}", - httpMethod: "PUT", - responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion5], - urlParameters: [Parameters.endpoint, Parameters.libraryName], - headerParameters: [Parameters.accept], - serializer, -}; -const appendOperationSpec: coreClient.OperationSpec = { - path: "/libraries/{libraryName}", - httpMethod: "PUT", - responses: { - 201: {}, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - requestBody: Parameters.content, - queryParameters: [Parameters.apiVersion5, Parameters.comp], - urlParameters: [Parameters.endpoint, Parameters.libraryName], - headerParameters: [ - Parameters.contentType1, - Parameters.accept1, - Parameters.blobConditionAppendPosition, - ], - mediaType: "binary", - serializer, -}; -const listNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.LibraryListResponse, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - urlParameters: [Parameters.endpoint, Parameters.nextLink], - headerParameters: [Parameters.accept], - serializer, -}; - +/// /** Class containing Library operations. */ export class LibraryImpl implements Library { private readonly client: ArtifactsClient; /** * Initialize a new instance of the class Library class. - * @param client - Reference to the service client + * @param client Reference to the service client */ constructor(client: ArtifactsClient) { this.client = client; @@ -190,9 +53,11 @@ export class LibraryImpl implements Library { /** * Lists Library. - * @param options - The options parameters. + * @param options The options parameters. */ - public list(options?: LibraryListOptionalParams): PagedAsyncIterableIterator { + public list( + options?: LibraryListOptionalParams, + ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { next() { @@ -242,15 +107,17 @@ export class LibraryImpl implements Library { /** * Lists Library. - * @param options - The options parameters. + * @param options The options parameters. */ - private async _list(options?: LibraryListOptionalParams): Promise { + private async _list( + options?: LibraryListOptionalParams, + ): Promise { return tracingClient.withSpan( "ArtifactsClient._list", options ?? {}, - async (updatedOptions) => { + async (options) => { return this.client.sendOperationRequest( - { updatedOptions }, + { options }, listOperationSpec, ) as Promise; }, @@ -259,9 +126,9 @@ export class LibraryImpl implements Library { /** * Flush Library - * @param libraryName - file name to upload. Minimum length of the filename should be 1 excluding the + * @param libraryName file name to upload. Minimum length of the filename should be 1 excluding the * extension length. - * @param options - The options parameters. + * @param options The options parameters. */ async beginFlush( libraryName: string, @@ -271,22 +138,20 @@ export class LibraryImpl implements Library { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ): Promise => { - return tracingClient.withSpan("ArtifactsClient.beginFlush", options ?? {}, async () => { - return this.client.sendOperationRequest(args, spec) as Promise; - }); + return tracingClient.withSpan( + "ArtifactsClient.beginFlush", + options ?? {}, + async () => { + return this.client.sendOperationRequest(args, spec) as Promise; + }, + ); }; const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, - ): Promise<{ - flatResponse: void; - rawResponse: { - statusCode: number; - body: any; - headers: coreRestPipeline.RawHttpHeaders; - }; - }> => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -328,9 +193,9 @@ export class LibraryImpl implements Library { /** * Flush Library - * @param libraryName - file name to upload. Minimum length of the filename should be 1 excluding the + * @param libraryName file name to upload. Minimum length of the filename should be 1 excluding the * extension length. - * @param options - The options parameters. + * @param options The options parameters. */ async beginFlushAndWait( libraryName: string, @@ -342,8 +207,8 @@ export class LibraryImpl implements Library { /** * Get Operation result for Library - * @param operationId - operation id for which status is requested - * @param options - The options parameters. + * @param operationId operation id for which status is requested + * @param options The options parameters. */ async getOperationResult( operationId: string, @@ -352,9 +217,9 @@ export class LibraryImpl implements Library { return tracingClient.withSpan( "ArtifactsClient.getOperationResult", options ?? {}, - async (updatedOptions) => { + async (options) => { return this.client.sendOperationRequest( - { operationId, updatedOptions }, + { operationId, options }, getOperationResultOperationSpec, ) as Promise; }, @@ -363,9 +228,9 @@ export class LibraryImpl implements Library { /** * Delete Library - * @param libraryName - file name to upload. Minimum length of the filename should be 1 excluding the + * @param libraryName file name to upload. Minimum length of the filename should be 1 excluding the * extension length. - * @param options - The options parameters. + * @param options The options parameters. */ async beginDelete( libraryName: string, @@ -375,22 +240,20 @@ export class LibraryImpl implements Library { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ): Promise => { - return tracingClient.withSpan("ArtifactsClient.beginDelete", options ?? {}, async () => { - return this.client.sendOperationRequest(args, spec) as Promise; - }); + return tracingClient.withSpan( + "ArtifactsClient.beginDelete", + options ?? {}, + async () => { + return this.client.sendOperationRequest(args, spec) as Promise; + }, + ); }; const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, - ): Promise<{ - flatResponse: void; - rawResponse: { - statusCode: number; - body: any; - headers: coreRestPipeline.RawHttpHeaders; - }; - }> => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -432,9 +295,9 @@ export class LibraryImpl implements Library { /** * Delete Library - * @param libraryName - file name to upload. Minimum length of the filename should be 1 excluding the + * @param libraryName file name to upload. Minimum length of the filename should be 1 excluding the * extension length. - * @param options - The options parameters. + * @param options The options parameters. */ async beginDeleteAndWait( libraryName: string, @@ -446,24 +309,31 @@ export class LibraryImpl implements Library { /** * Get Library - * @param libraryName - file name to upload. Minimum length of the filename should be 1 excluding the + * @param libraryName file name to upload. Minimum length of the filename should be 1 excluding the * extension length. - * @param options - The options parameters. + * @param options The options parameters. */ - async get(libraryName: string, options?: LibraryGetOptionalParams): Promise { - return tracingClient.withSpan("ArtifactsClient.get", options ?? {}, async (updatedOptions) => { - return this.client.sendOperationRequest( - { libraryName, updatedOptions }, - getOperationSpec, - ) as Promise; - }); + async get( + libraryName: string, + options?: LibraryGetOptionalParams, + ): Promise { + return tracingClient.withSpan( + "ArtifactsClient.get", + options ?? {}, + async (options) => { + return this.client.sendOperationRequest( + { libraryName, options }, + getOperationSpec, + ) as Promise; + }, + ); } /** * Creates a library with the library name. - * @param libraryName - file name to upload. Minimum length of the filename should be 1 excluding the + * @param libraryName file name to upload. Minimum length of the filename should be 1 excluding the * extension length. - * @param options - The options parameters. + * @param options The options parameters. */ async beginCreate( libraryName: string, @@ -473,22 +343,20 @@ export class LibraryImpl implements Library { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ): Promise => { - return tracingClient.withSpan("ArtifactsClient.beginCreate", options ?? {}, async () => { - return this.client.sendOperationRequest(args, spec) as Promise; - }); + return tracingClient.withSpan( + "ArtifactsClient.beginCreate", + options ?? {}, + async () => { + return this.client.sendOperationRequest(args, spec) as Promise; + }, + ); }; const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, - ): Promise<{ - flatResponse: void; - rawResponse: { - statusCode: number; - body: any; - headers: coreRestPipeline.RawHttpHeaders; - }; - }> => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -530,9 +398,9 @@ export class LibraryImpl implements Library { /** * Creates a library with the library name. - * @param libraryName - file name to upload. Minimum length of the filename should be 1 excluding the + * @param libraryName file name to upload. Minimum length of the filename should be 1 excluding the * extension length. - * @param options - The options parameters. + * @param options The options parameters. */ async beginCreateAndWait( libraryName: string, @@ -545,10 +413,10 @@ export class LibraryImpl implements Library { /** * Append the content to the library resource created using the create operation. The maximum content * size is 4MiB. Content larger than 4MiB must be appended in 4MiB chunks - * @param libraryName - file name to upload. Minimum length of the filename should be 1 excluding the + * @param libraryName file name to upload. Minimum length of the filename should be 1 excluding the * extension length. - * @param content - Library file chunk. - * @param options - The options parameters. + * @param content Library file chunk. + * @param options The options parameters. */ async append( libraryName: string, @@ -558,9 +426,9 @@ export class LibraryImpl implements Library { return tracingClient.withSpan( "ArtifactsClient.append", options ?? {}, - async (updatedOptions) => { + async (options) => { return this.client.sendOperationRequest( - { libraryName, content, updatedOptions }, + { libraryName, content, options }, appendOperationSpec, ) as Promise; }, @@ -569,8 +437,8 @@ export class LibraryImpl implements Library { /** * ListNext - * @param nextLink - The nextLink from the previous successful call to the List method. - * @param options - The options parameters. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. */ private async _listNext( nextLink: string, @@ -579,12 +447,153 @@ export class LibraryImpl implements Library { return tracingClient.withSpan( "ArtifactsClient._listNext", options ?? {}, - async (updatedOptions) => { + async (options) => { return this.client.sendOperationRequest( - { nextLink, updatedOptions }, + { nextLink, options }, listNextOperationSpec, ) as Promise; }, ); } } +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: "/libraries", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.LibraryListResponse, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [Parameters.endpoint], + headerParameters: [Parameters.accept], + serializer, +}; +const flushOperationSpec: coreClient.OperationSpec = { + path: "/libraries/{libraryName}/flush", + httpMethod: "POST", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [Parameters.endpoint, Parameters.libraryName], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationResultOperationSpec: coreClient.OperationSpec = { + path: "/libraryOperationResults/{operationId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.LibraryResource, + }, + 202: { + bodyMapper: Mappers.OperationResult, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [Parameters.endpoint, Parameters.operationId], + headerParameters: [Parameters.accept], + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/libraries/{libraryName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [Parameters.endpoint, Parameters.libraryName], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/libraries/{libraryName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.LibraryResource, + }, + 304: {}, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [Parameters.endpoint, Parameters.libraryName], + headerParameters: [Parameters.accept], + serializer, +}; +const createOperationSpec: coreClient.OperationSpec = { + path: "/libraries/{libraryName}", + httpMethod: "PUT", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [Parameters.endpoint, Parameters.libraryName], + headerParameters: [Parameters.accept], + serializer, +}; +const appendOperationSpec: coreClient.OperationSpec = { + path: "/libraries/{libraryName}", + httpMethod: "PUT", + responses: { + 201: {}, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + requestBody: Parameters.content, + queryParameters: [Parameters.apiVersion5, Parameters.comp], + urlParameters: [Parameters.endpoint, Parameters.libraryName], + headerParameters: [ + Parameters.contentType1, + Parameters.accept1, + Parameters.blobConditionAppendPosition, + ], + mediaType: "binary", + serializer, +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.LibraryListResponse, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + urlParameters: [Parameters.endpoint, Parameters.nextLink], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/synapse/synapse-artifacts/src/operations/linkConnectionOperations.ts b/sdk/synapse/synapse-artifacts/src/operations/linkConnectionOperations.ts index 65cc439df29a..f8f5bb1d59fe 100644 --- a/sdk/synapse/synapse-artifacts/src/operations/linkConnectionOperations.ts +++ b/sdk/synapse/synapse-artifacts/src/operations/linkConnectionOperations.ts @@ -42,235 +42,14 @@ import type { LinkConnectionListByWorkspaceNextResponse, } from "../models/index.js"; -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listByWorkspaceOperationSpec: coreClient.OperationSpec = { - path: "/linkconnections", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.LinkConnectionListResponse, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [Parameters.endpoint], - headerParameters: [Parameters.accept], - serializer, -}; -const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: "/linkconnections/{linkConnectionName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.LinkConnectionResource, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - requestBody: Parameters.linkConnection, - queryParameters: [Parameters.apiVersion], - urlParameters: [Parameters.endpoint, Parameters.linkConnectionName], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const getOperationSpec: coreClient.OperationSpec = { - path: "/linkconnections/{linkConnectionName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.LinkConnectionResource, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [Parameters.endpoint, Parameters.linkConnectionName], - headerParameters: [Parameters.accept], - serializer, -}; -const deleteOperationSpec: coreClient.OperationSpec = { - path: "/linkconnections/{linkConnectionName}", - httpMethod: "DELETE", - responses: { - 200: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [Parameters.endpoint, Parameters.linkConnectionName], - headerParameters: [Parameters.accept], - serializer, -}; -const editTablesOperationSpec: coreClient.OperationSpec = { - path: "/linkconnections/{linkConnectionName}/edittables", - httpMethod: "POST", - responses: { - 200: {}, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - requestBody: Parameters.editTablesRequest, - queryParameters: [Parameters.apiVersion], - urlParameters: [Parameters.endpoint, Parameters.linkConnectionName], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const startOperationSpec: coreClient.OperationSpec = { - path: "/linkconnections/{linkConnectionName}/start", - httpMethod: "POST", - responses: { - 200: {}, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [Parameters.endpoint, Parameters.linkConnectionName], - headerParameters: [Parameters.accept], - serializer, -}; -const stopOperationSpec: coreClient.OperationSpec = { - path: "/linkconnections/{linkConnectionName}/stop", - httpMethod: "POST", - responses: { - 200: {}, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [Parameters.endpoint, Parameters.linkConnectionName], - headerParameters: [Parameters.accept], - serializer, -}; -const getDetailedStatusOperationSpec: coreClient.OperationSpec = { - path: "/linkconnections/{linkConnectionName}/detailedstatus", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.LinkConnectionDetailedStatus, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [Parameters.endpoint, Parameters.linkConnectionName], - headerParameters: [Parameters.accept], - serializer, -}; -const listLinkTablesOperationSpec: coreClient.OperationSpec = { - path: "/linkconnections/{linkConnectionName}/linktables", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.LinkTableListResponse, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [Parameters.endpoint, Parameters.linkConnectionName], - headerParameters: [Parameters.accept], - serializer, -}; -const queryTableStatusOperationSpec: coreClient.OperationSpec = { - path: "/linkconnections/{linkConnectionName}/querytablestatus", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.LinkConnectionQueryTableStatus, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - requestBody: Parameters.queryTableStatusRequest, - queryParameters: [Parameters.apiVersion], - urlParameters: [Parameters.endpoint, Parameters.linkConnectionName], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const updateLandingZoneCredentialOperationSpec: coreClient.OperationSpec = { - path: "/linkconnections/{linkConnectionName}/updateLandingZoneCredential", - httpMethod: "POST", - responses: { - 200: {}, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - requestBody: Parameters.updateLandingZoneCredentialRequest, - queryParameters: [Parameters.apiVersion], - urlParameters: [Parameters.endpoint, Parameters.linkConnectionName], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const pauseOperationSpec: coreClient.OperationSpec = { - path: "/linkconnections/{linkConnectionName}/pause", - httpMethod: "POST", - responses: { - 200: {}, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [Parameters.endpoint, Parameters.linkConnectionName], - headerParameters: [Parameters.accept], - serializer, -}; -const resumeOperationSpec: coreClient.OperationSpec = { - path: "/linkconnections/{linkConnectionName}/resume", - httpMethod: "POST", - responses: { - 200: {}, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [Parameters.endpoint, Parameters.linkConnectionName], - headerParameters: [Parameters.accept], - serializer, -}; -const listByWorkspaceNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.LinkConnectionListResponse, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - urlParameters: [Parameters.endpoint, Parameters.nextLink], - headerParameters: [Parameters.accept], - serializer, -}; - +/// /** Class containing LinkConnectionOperations operations. */ export class LinkConnectionOperationsImpl implements LinkConnectionOperations { private readonly client: ArtifactsClient; /** * Initialize a new instance of the class LinkConnectionOperations class. - * @param client - Reference to the service client + * @param client Reference to the service client */ constructor(client: ArtifactsClient) { this.client = client; @@ -278,7 +57,7 @@ export class LinkConnectionOperationsImpl implements LinkConnectionOperations { /** * List link connections - * @param options - The options parameters. + * @param options The options parameters. */ public listByWorkspace( options?: LinkConnectionListByWorkspaceOptionalParams, @@ -332,7 +111,7 @@ export class LinkConnectionOperationsImpl implements LinkConnectionOperations { /** * List link connections - * @param options - The options parameters. + * @param options The options parameters. */ private async _listByWorkspace( options?: LinkConnectionListByWorkspaceOptionalParams, @@ -340,9 +119,9 @@ export class LinkConnectionOperationsImpl implements LinkConnectionOperations { return tracingClient.withSpan( "ArtifactsClient._listByWorkspace", options ?? {}, - async (updatedOptions) => { + async (options) => { return this.client.sendOperationRequest( - { updatedOptions }, + { options }, listByWorkspaceOperationSpec, ) as Promise; }, @@ -351,9 +130,9 @@ export class LinkConnectionOperationsImpl implements LinkConnectionOperations { /** * Creates or updates a link connection - * @param linkConnectionName - The link connection name - * @param linkConnection - Link connection resource definition - * @param options - The options parameters. + * @param linkConnectionName The link connection name + * @param linkConnection Link connection resource definition + * @param options The options parameters. */ async createOrUpdate( linkConnectionName: string, @@ -363,9 +142,9 @@ export class LinkConnectionOperationsImpl implements LinkConnectionOperations { return tracingClient.withSpan( "ArtifactsClient.createOrUpdate", options ?? {}, - async (updatedOptions) => { + async (options) => { return this.client.sendOperationRequest( - { linkConnectionName, linkConnection, updatedOptions }, + { linkConnectionName, linkConnection, options }, createOrUpdateOperationSpec, ) as Promise; }, @@ -374,25 +153,29 @@ export class LinkConnectionOperationsImpl implements LinkConnectionOperations { /** * Get a link connection - * @param linkConnectionName - The link connection name - * @param options - The options parameters. + * @param linkConnectionName The link connection name + * @param options The options parameters. */ async get( linkConnectionName: string, options?: LinkConnectionGetOptionalParams, ): Promise { - return tracingClient.withSpan("ArtifactsClient.get", options ?? {}, async (updatedOptions) => { - return this.client.sendOperationRequest( - { linkConnectionName, updatedOptions }, - getOperationSpec, - ) as Promise; - }); + return tracingClient.withSpan( + "ArtifactsClient.get", + options ?? {}, + async (options) => { + return this.client.sendOperationRequest( + { linkConnectionName, options }, + getOperationSpec, + ) as Promise; + }, + ); } /** * Delete a link connection - * @param linkConnectionName - The link connection name - * @param options - The options parameters. + * @param linkConnectionName The link connection name + * @param options The options parameters. */ async delete( linkConnectionName: string, @@ -401,9 +184,9 @@ export class LinkConnectionOperationsImpl implements LinkConnectionOperations { return tracingClient.withSpan( "ArtifactsClient.delete", options ?? {}, - async (updatedOptions) => { + async (options) => { return this.client.sendOperationRequest( - { linkConnectionName, updatedOptions }, + { linkConnectionName, options }, deleteOperationSpec, ) as Promise; }, @@ -412,9 +195,9 @@ export class LinkConnectionOperationsImpl implements LinkConnectionOperations { /** * Edit tables for a link connection - * @param linkConnectionName - The link connection name - * @param editTablesRequest - Edit tables request - * @param options - The options parameters. + * @param linkConnectionName The link connection name + * @param editTablesRequest Edit tables request + * @param options The options parameters. */ async editTables( linkConnectionName: string, @@ -424,9 +207,9 @@ export class LinkConnectionOperationsImpl implements LinkConnectionOperations { return tracingClient.withSpan( "ArtifactsClient.editTables", options ?? {}, - async (updatedOptions) => { + async (options) => { return this.client.sendOperationRequest( - { linkConnectionName, editTablesRequest, updatedOptions }, + { linkConnectionName, editTablesRequest, options }, editTablesOperationSpec, ) as Promise; }, @@ -436,8 +219,8 @@ export class LinkConnectionOperationsImpl implements LinkConnectionOperations { /** * Start a link connection. It may take a few minutes from Starting to Running, monitor the status with * LinkConnection_GetDetailedStatus. - * @param linkConnectionName - The link connection name - * @param options - The options parameters. + * @param linkConnectionName The link connection name + * @param options The options parameters. */ async start( linkConnectionName: string, @@ -446,9 +229,9 @@ export class LinkConnectionOperationsImpl implements LinkConnectionOperations { return tracingClient.withSpan( "ArtifactsClient.start", options ?? {}, - async (updatedOptions) => { + async (options) => { return this.client.sendOperationRequest( - { linkConnectionName, updatedOptions }, + { linkConnectionName, options }, startOperationSpec, ) as Promise; }, @@ -458,25 +241,29 @@ export class LinkConnectionOperationsImpl implements LinkConnectionOperations { /** * Stop a link connection. It may take a few minutes from Stopping to stopped, monitor the status with * LinkConnection_GetDetailedStatus. - * @param linkConnectionName - The link connection name - * @param options - The options parameters. + * @param linkConnectionName The link connection name + * @param options The options parameters. */ async stop( linkConnectionName: string, options?: LinkConnectionStopOptionalParams, ): Promise { - return tracingClient.withSpan("ArtifactsClient.stop", options ?? {}, async (updatedOptions) => { - return this.client.sendOperationRequest( - { linkConnectionName, updatedOptions }, - stopOperationSpec, - ) as Promise; - }); + return tracingClient.withSpan( + "ArtifactsClient.stop", + options ?? {}, + async (options) => { + return this.client.sendOperationRequest( + { linkConnectionName, options }, + stopOperationSpec, + ) as Promise; + }, + ); } /** * Get the detailed status of a link connection - * @param linkConnectionName - The link connection name - * @param options - The options parameters. + * @param linkConnectionName The link connection name + * @param options The options parameters. */ async getDetailedStatus( linkConnectionName: string, @@ -485,9 +272,9 @@ export class LinkConnectionOperationsImpl implements LinkConnectionOperations { return tracingClient.withSpan( "ArtifactsClient.getDetailedStatus", options ?? {}, - async (updatedOptions) => { + async (options) => { return this.client.sendOperationRequest( - { linkConnectionName, updatedOptions }, + { linkConnectionName, options }, getDetailedStatusOperationSpec, ) as Promise; }, @@ -496,8 +283,8 @@ export class LinkConnectionOperationsImpl implements LinkConnectionOperations { /** * List the link tables of a link connection - * @param linkConnectionName - The link connection name - * @param options - The options parameters. + * @param linkConnectionName The link connection name + * @param options The options parameters. */ async listLinkTables( linkConnectionName: string, @@ -506,9 +293,9 @@ export class LinkConnectionOperationsImpl implements LinkConnectionOperations { return tracingClient.withSpan( "ArtifactsClient.listLinkTables", options ?? {}, - async (updatedOptions) => { + async (options) => { return this.client.sendOperationRequest( - { linkConnectionName, updatedOptions }, + { linkConnectionName, options }, listLinkTablesOperationSpec, ) as Promise; }, @@ -517,9 +304,9 @@ export class LinkConnectionOperationsImpl implements LinkConnectionOperations { /** * Query the link table status of a link connection - * @param linkConnectionName - The link connection name - * @param queryTableStatusRequest - Query table status request - * @param options - The options parameters. + * @param linkConnectionName The link connection name + * @param queryTableStatusRequest Query table status request + * @param options The options parameters. */ async queryTableStatus( linkConnectionName: string, @@ -529,9 +316,9 @@ export class LinkConnectionOperationsImpl implements LinkConnectionOperations { return tracingClient.withSpan( "ArtifactsClient.queryTableStatus", options ?? {}, - async (updatedOptions) => { + async (options) => { return this.client.sendOperationRequest( - { linkConnectionName, queryTableStatusRequest, updatedOptions }, + { linkConnectionName, queryTableStatusRequest, options }, queryTableStatusOperationSpec, ) as Promise; }, @@ -540,9 +327,9 @@ export class LinkConnectionOperationsImpl implements LinkConnectionOperations { /** * Update landing zone credential of a link connection - * @param linkConnectionName - The link connection name - * @param updateLandingZoneCredentialRequest - update landing zone credential request - * @param options - The options parameters. + * @param linkConnectionName The link connection name + * @param updateLandingZoneCredentialRequest update landing zone credential request + * @param options The options parameters. */ async updateLandingZoneCredential( linkConnectionName: string, @@ -552,9 +339,9 @@ export class LinkConnectionOperationsImpl implements LinkConnectionOperations { return tracingClient.withSpan( "ArtifactsClient.updateLandingZoneCredential", options ?? {}, - async (updatedOptions) => { + async (options) => { return this.client.sendOperationRequest( - { linkConnectionName, updateLandingZoneCredentialRequest, updatedOptions }, + { linkConnectionName, updateLandingZoneCredentialRequest, options }, updateLandingZoneCredentialOperationSpec, ) as Promise; }, @@ -564,8 +351,8 @@ export class LinkConnectionOperationsImpl implements LinkConnectionOperations { /** * Pause a link connection. It may take a few minutes from Pausing to Paused, monitor the status with * LinkConnection_GetDetailedStatus. - * @param linkConnectionName - The link connection name - * @param options - The options parameters. + * @param linkConnectionName The link connection name + * @param options The options parameters. */ async pause( linkConnectionName: string, @@ -574,9 +361,9 @@ export class LinkConnectionOperationsImpl implements LinkConnectionOperations { return tracingClient.withSpan( "ArtifactsClient.pause", options ?? {}, - async (updatedOptions) => { + async (options) => { return this.client.sendOperationRequest( - { linkConnectionName, updatedOptions }, + { linkConnectionName, options }, pauseOperationSpec, ) as Promise; }, @@ -586,8 +373,8 @@ export class LinkConnectionOperationsImpl implements LinkConnectionOperations { /** * Resume a link connection. It may take a few minutes from Resuming to Running, monitor the status * with LinkConnection_GetDetailedStatus. - * @param linkConnectionName - The link connection name - * @param options - The options parameters. + * @param linkConnectionName The link connection name + * @param options The options parameters. */ async resume( linkConnectionName: string, @@ -596,9 +383,9 @@ export class LinkConnectionOperationsImpl implements LinkConnectionOperations { return tracingClient.withSpan( "ArtifactsClient.resume", options ?? {}, - async (updatedOptions) => { + async (options) => { return this.client.sendOperationRequest( - { linkConnectionName, updatedOptions }, + { linkConnectionName, options }, resumeOperationSpec, ) as Promise; }, @@ -607,8 +394,8 @@ export class LinkConnectionOperationsImpl implements LinkConnectionOperations { /** * ListByWorkspaceNext - * @param nextLink - The nextLink from the previous successful call to the ListByWorkspace method. - * @param options - The options parameters. + * @param nextLink The nextLink from the previous successful call to the ListByWorkspace method. + * @param options The options parameters. */ private async _listByWorkspaceNext( nextLink: string, @@ -617,12 +404,233 @@ export class LinkConnectionOperationsImpl implements LinkConnectionOperations { return tracingClient.withSpan( "ArtifactsClient._listByWorkspaceNext", options ?? {}, - async (updatedOptions) => { + async (options) => { return this.client.sendOperationRequest( - { nextLink, updatedOptions }, + { nextLink, options }, listByWorkspaceNextOperationSpec, ) as Promise; }, ); } } +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByWorkspaceOperationSpec: coreClient.OperationSpec = { + path: "/linkconnections", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.LinkConnectionListResponse, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.endpoint], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/linkconnections/{linkConnectionName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.LinkConnectionResource, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + requestBody: Parameters.linkConnection, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.endpoint, Parameters.linkConnectionName], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/linkconnections/{linkConnectionName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.LinkConnectionResource, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.endpoint, Parameters.linkConnectionName], + headerParameters: [Parameters.accept], + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/linkconnections/{linkConnectionName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.endpoint, Parameters.linkConnectionName], + headerParameters: [Parameters.accept], + serializer, +}; +const editTablesOperationSpec: coreClient.OperationSpec = { + path: "/linkconnections/{linkConnectionName}/edittables", + httpMethod: "POST", + responses: { + 200: {}, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + requestBody: Parameters.editTablesRequest, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.endpoint, Parameters.linkConnectionName], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const startOperationSpec: coreClient.OperationSpec = { + path: "/linkconnections/{linkConnectionName}/start", + httpMethod: "POST", + responses: { + 200: {}, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.endpoint, Parameters.linkConnectionName], + headerParameters: [Parameters.accept], + serializer, +}; +const stopOperationSpec: coreClient.OperationSpec = { + path: "/linkconnections/{linkConnectionName}/stop", + httpMethod: "POST", + responses: { + 200: {}, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.endpoint, Parameters.linkConnectionName], + headerParameters: [Parameters.accept], + serializer, +}; +const getDetailedStatusOperationSpec: coreClient.OperationSpec = { + path: "/linkconnections/{linkConnectionName}/detailedstatus", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.LinkConnectionDetailedStatus, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.endpoint, Parameters.linkConnectionName], + headerParameters: [Parameters.accept], + serializer, +}; +const listLinkTablesOperationSpec: coreClient.OperationSpec = { + path: "/linkconnections/{linkConnectionName}/linktables", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.LinkTableListResponse, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.endpoint, Parameters.linkConnectionName], + headerParameters: [Parameters.accept], + serializer, +}; +const queryTableStatusOperationSpec: coreClient.OperationSpec = { + path: "/linkconnections/{linkConnectionName}/querytablestatus", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.LinkConnectionQueryTableStatus, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + requestBody: Parameters.queryTableStatusRequest, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.endpoint, Parameters.linkConnectionName], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const updateLandingZoneCredentialOperationSpec: coreClient.OperationSpec = { + path: "/linkconnections/{linkConnectionName}/updateLandingZoneCredential", + httpMethod: "POST", + responses: { + 200: {}, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + requestBody: Parameters.updateLandingZoneCredentialRequest, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.endpoint, Parameters.linkConnectionName], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const pauseOperationSpec: coreClient.OperationSpec = { + path: "/linkconnections/{linkConnectionName}/pause", + httpMethod: "POST", + responses: { + 200: {}, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.endpoint, Parameters.linkConnectionName], + headerParameters: [Parameters.accept], + serializer, +}; +const resumeOperationSpec: coreClient.OperationSpec = { + path: "/linkconnections/{linkConnectionName}/resume", + httpMethod: "POST", + responses: { + 200: {}, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.endpoint, Parameters.linkConnectionName], + headerParameters: [Parameters.accept], + serializer, +}; +const listByWorkspaceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.LinkConnectionListResponse, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + urlParameters: [Parameters.endpoint, Parameters.nextLink], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/synapse/synapse-artifacts/src/operations/linkedServiceOperations.ts b/sdk/synapse/synapse-artifacts/src/operations/linkedServiceOperations.ts index 1db5f654469e..2e16c5461c08 100644 --- a/sdk/synapse/synapse-artifacts/src/operations/linkedServiceOperations.ts +++ b/sdk/synapse/synapse-artifacts/src/operations/linkedServiceOperations.ts @@ -14,8 +14,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers.js"; import * as Parameters from "../models/parameters.js"; import type { ArtifactsClient } from "../artifactsClient.js"; -import type { SimplePollerLike, OperationState } from "@azure/core-lro"; -import { createHttpPoller } from "@azure/core-lro"; +import type { + SimplePollerLike, + OperationState} from "@azure/core-lro"; +import { + createHttpPoller, +} from "@azure/core-lro"; import { createLroSpec } from "../lroImpl.js"; import type { LinkedServiceResource, @@ -31,130 +35,15 @@ import type { LinkedServiceRenameLinkedServiceOptionalParams, LinkedServiceGetLinkedServicesByWorkspaceNextResponse, } from "../models/index.js"; -import type { RawHttpHeaders } from "@azure/core-rest-pipeline"; - -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const getLinkedServicesByWorkspaceOperationSpec: coreClient.OperationSpec = { - path: "/linkedservices", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.LinkedServiceListResponse, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion5], - urlParameters: [Parameters.endpoint], - headerParameters: [Parameters.accept], - serializer, -}; -const createOrUpdateLinkedServiceOperationSpec: coreClient.OperationSpec = { - path: "/linkedservices/{linkedServiceName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.LinkedServiceResource, - }, - 201: { - bodyMapper: Mappers.LinkedServiceResource, - }, - 202: { - bodyMapper: Mappers.LinkedServiceResource, - }, - 204: { - bodyMapper: Mappers.LinkedServiceResource, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - requestBody: Parameters.linkedService, - queryParameters: [Parameters.apiVersion5], - urlParameters: [Parameters.endpoint, Parameters.linkedServiceName], - headerParameters: [Parameters.accept, Parameters.contentType, Parameters.ifMatch], - mediaType: "json", - serializer, -}; -const getLinkedServiceOperationSpec: coreClient.OperationSpec = { - path: "/linkedservices/{linkedServiceName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.LinkedServiceResource, - }, - 304: {}, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion5], - urlParameters: [Parameters.endpoint, Parameters.linkedServiceName], - headerParameters: [Parameters.accept, Parameters.ifNoneMatch], - serializer, -}; -const deleteLinkedServiceOperationSpec: coreClient.OperationSpec = { - path: "/linkedservices/{linkedServiceName}", - httpMethod: "DELETE", - responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion5], - urlParameters: [Parameters.endpoint, Parameters.linkedServiceName], - headerParameters: [Parameters.accept], - serializer, -}; -const renameLinkedServiceOperationSpec: coreClient.OperationSpec = { - path: "/linkedservices/{linkedServiceName}/rename", - httpMethod: "POST", - responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - requestBody: Parameters.request, - queryParameters: [Parameters.apiVersion5], - urlParameters: [Parameters.endpoint, Parameters.linkedServiceName], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const getLinkedServicesByWorkspaceNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.LinkedServiceListResponse, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - urlParameters: [Parameters.endpoint, Parameters.nextLink], - headerParameters: [Parameters.accept], - serializer, -}; +/// /** Class containing LinkedServiceOperations operations. */ export class LinkedServiceOperationsImpl implements LinkedServiceOperations { private readonly client: ArtifactsClient; /** * Initialize a new instance of the class LinkedServiceOperations class. - * @param client - Reference to the service client + * @param client Reference to the service client */ constructor(client: ArtifactsClient) { this.client = client; @@ -162,7 +51,7 @@ export class LinkedServiceOperationsImpl implements LinkedServiceOperations { /** * Lists linked services. - * @param options - The options parameters. + * @param options The options parameters. */ public listLinkedServicesByWorkspace( options?: LinkedServiceGetLinkedServicesByWorkspaceOptionalParams, @@ -198,7 +87,10 @@ export class LinkedServiceOperationsImpl implements LinkedServiceOperations { yield page; } while (continuationToken) { - result = await this._getLinkedServicesByWorkspaceNext(continuationToken, options); + result = await this._getLinkedServicesByWorkspaceNext( + continuationToken, + options, + ); continuationToken = result.nextLink; const page = result.value || []; setContinuationToken(page, continuationToken); @@ -209,14 +101,16 @@ export class LinkedServiceOperationsImpl implements LinkedServiceOperations { private async *getLinkedServicesByWorkspacePagingAll( options?: LinkedServiceGetLinkedServicesByWorkspaceOptionalParams, ): AsyncIterableIterator { - for await (const page of this.getLinkedServicesByWorkspacePagingPage(options)) { + for await (const page of this.getLinkedServicesByWorkspacePagingPage( + options, + )) { yield* page; } } /** * Lists linked services. - * @param options - The options parameters. + * @param options The options parameters. */ private async _getLinkedServicesByWorkspace( options?: LinkedServiceGetLinkedServicesByWorkspaceOptionalParams, @@ -224,9 +118,9 @@ export class LinkedServiceOperationsImpl implements LinkedServiceOperations { return tracingClient.withSpan( "ArtifactsClient._getLinkedServicesByWorkspace", options ?? {}, - async (updatedOptions) => { + async (options) => { return this.client.sendOperationRequest( - { updatedOptions }, + { options }, getLinkedServicesByWorkspaceOperationSpec, ) as Promise; }, @@ -235,9 +129,9 @@ export class LinkedServiceOperationsImpl implements LinkedServiceOperations { /** * Creates or updates a linked service. - * @param linkedServiceName - The linked service name. - * @param linkedService - Linked service resource definition. - * @param options - The options parameters. + * @param linkedServiceName The linked service name. + * @param linkedService Linked service resource definition. + * @param options The options parameters. */ async beginCreateOrUpdateLinkedService( linkedServiceName: string, @@ -267,15 +161,9 @@ export class LinkedServiceOperationsImpl implements LinkedServiceOperations { const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, - ): Promise<{ - flatResponse: LinkedServiceResource; - rawResponse: { - statusCode: number; - body: any; - headers: RawHttpHeaders; - }; - }> => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -320,9 +208,9 @@ export class LinkedServiceOperationsImpl implements LinkedServiceOperations { /** * Creates or updates a linked service. - * @param linkedServiceName - The linked service name. - * @param linkedService - Linked service resource definition. - * @param options - The options parameters. + * @param linkedServiceName The linked service name. + * @param linkedService Linked service resource definition. + * @param options The options parameters. */ async beginCreateOrUpdateLinkedServiceAndWait( linkedServiceName: string, @@ -339,8 +227,8 @@ export class LinkedServiceOperationsImpl implements LinkedServiceOperations { /** * Gets a linked service. - * @param linkedServiceName - The linked service name. - * @param options - The options parameters. + * @param linkedServiceName The linked service name. + * @param options The options parameters. */ async getLinkedService( linkedServiceName: string, @@ -349,9 +237,9 @@ export class LinkedServiceOperationsImpl implements LinkedServiceOperations { return tracingClient.withSpan( "ArtifactsClient.getLinkedService", options ?? {}, - async (updatedOptions) => { + async (options) => { return this.client.sendOperationRequest( - { linkedServiceName, updatedOptions }, + { linkedServiceName, options }, getLinkedServiceOperationSpec, ) as Promise; }, @@ -360,8 +248,8 @@ export class LinkedServiceOperationsImpl implements LinkedServiceOperations { /** * Deletes a linked service. - * @param linkedServiceName - The linked service name. - * @param options - The options parameters. + * @param linkedServiceName The linked service name. + * @param options The options parameters. */ async beginDeleteLinkedService( linkedServiceName: string, @@ -382,15 +270,9 @@ export class LinkedServiceOperationsImpl implements LinkedServiceOperations { const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, - ): Promise<{ - flatResponse: void; - rawResponse: { - statusCode: number; - body: any; - headers: RawHttpHeaders; - }; - }> => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -432,22 +314,25 @@ export class LinkedServiceOperationsImpl implements LinkedServiceOperations { /** * Deletes a linked service. - * @param linkedServiceName - The linked service name. - * @param options - The options parameters. + * @param linkedServiceName The linked service name. + * @param options The options parameters. */ async beginDeleteLinkedServiceAndWait( linkedServiceName: string, options?: LinkedServiceDeleteLinkedServiceOptionalParams, ): Promise { - const poller = await this.beginDeleteLinkedService(linkedServiceName, options); + const poller = await this.beginDeleteLinkedService( + linkedServiceName, + options, + ); return poller.pollUntilDone(); } /** * Renames a linked service. - * @param linkedServiceName - The linked service name. - * @param request - proposed new name. - * @param options - The options parameters. + * @param linkedServiceName The linked service name. + * @param request proposed new name. + * @param options The options parameters. */ async beginRenameLinkedService( linkedServiceName: string, @@ -469,15 +354,9 @@ export class LinkedServiceOperationsImpl implements LinkedServiceOperations { const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, - ): Promise<{ - flatResponse: void; - rawResponse: { - statusCode: number; - body: any; - headers: RawHttpHeaders; - }; - }> => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -519,24 +398,28 @@ export class LinkedServiceOperationsImpl implements LinkedServiceOperations { /** * Renames a linked service. - * @param linkedServiceName - The linked service name. - * @param request - proposed new name. - * @param options - The options parameters. + * @param linkedServiceName The linked service name. + * @param request proposed new name. + * @param options The options parameters. */ async beginRenameLinkedServiceAndWait( linkedServiceName: string, request: ArtifactRenameRequest, options?: LinkedServiceRenameLinkedServiceOptionalParams, ): Promise { - const poller = await this.beginRenameLinkedService(linkedServiceName, request, options); + const poller = await this.beginRenameLinkedService( + linkedServiceName, + request, + options, + ); return poller.pollUntilDone(); } /** * GetLinkedServicesByWorkspaceNext - * @param nextLink - The nextLink from the previous successful call to the GetLinkedServicesByWorkspace + * @param nextLink The nextLink from the previous successful call to the GetLinkedServicesByWorkspace * method. - * @param options - The options parameters. + * @param options The options parameters. */ private async _getLinkedServicesByWorkspaceNext( nextLink: string, @@ -545,12 +428,131 @@ export class LinkedServiceOperationsImpl implements LinkedServiceOperations { return tracingClient.withSpan( "ArtifactsClient._getLinkedServicesByWorkspaceNext", options ?? {}, - async (updatedOptions) => { + async (options) => { return this.client.sendOperationRequest( - { nextLink, updatedOptions }, + { nextLink, options }, getLinkedServicesByWorkspaceNextOperationSpec, ) as Promise; }, ); } } +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getLinkedServicesByWorkspaceOperationSpec: coreClient.OperationSpec = { + path: "/linkedservices", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.LinkedServiceListResponse, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [Parameters.endpoint], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateLinkedServiceOperationSpec: coreClient.OperationSpec = { + path: "/linkedservices/{linkedServiceName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.LinkedServiceResource, + }, + 201: { + bodyMapper: Mappers.LinkedServiceResource, + }, + 202: { + bodyMapper: Mappers.LinkedServiceResource, + }, + 204: { + bodyMapper: Mappers.LinkedServiceResource, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + requestBody: Parameters.linkedService, + queryParameters: [Parameters.apiVersion5], + urlParameters: [Parameters.endpoint, Parameters.linkedServiceName], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + ], + mediaType: "json", + serializer, +}; +const getLinkedServiceOperationSpec: coreClient.OperationSpec = { + path: "/linkedservices/{linkedServiceName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.LinkedServiceResource, + }, + 304: {}, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [Parameters.endpoint, Parameters.linkedServiceName], + headerParameters: [Parameters.accept, Parameters.ifNoneMatch], + serializer, +}; +const deleteLinkedServiceOperationSpec: coreClient.OperationSpec = { + path: "/linkedservices/{linkedServiceName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [Parameters.endpoint, Parameters.linkedServiceName], + headerParameters: [Parameters.accept], + serializer, +}; +const renameLinkedServiceOperationSpec: coreClient.OperationSpec = { + path: "/linkedservices/{linkedServiceName}/rename", + httpMethod: "POST", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + requestBody: Parameters.request, + queryParameters: [Parameters.apiVersion5], + urlParameters: [Parameters.endpoint, Parameters.linkedServiceName], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const getLinkedServicesByWorkspaceNextOperationSpec: coreClient.OperationSpec = + { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.LinkedServiceListResponse, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + urlParameters: [Parameters.endpoint, Parameters.nextLink], + headerParameters: [Parameters.accept], + serializer, + }; diff --git a/sdk/synapse/synapse-artifacts/src/operations/metastore.ts b/sdk/synapse/synapse-artifacts/src/operations/metastore.ts index 94d35a2e16ff..35fd1b6fdffa 100644 --- a/sdk/synapse/synapse-artifacts/src/operations/metastore.ts +++ b/sdk/synapse/synapse-artifacts/src/operations/metastore.ts @@ -24,83 +24,13 @@ import type { MetastoreDeleteOptionalParams, } from "../models/index.js"; -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const registerOperationSpec: coreClient.OperationSpec = { - path: "/metastore/create-database-operations/{id}", - httpMethod: "PUT", - responses: { - 201: { - bodyMapper: Mappers.MetastoreRegistrationResponse, - }, - default: { - bodyMapper: Mappers.ErrorContract, - }, - }, - requestBody: Parameters.registerBody, - queryParameters: [Parameters.apiVersion3], - urlParameters: [Parameters.endpoint, Parameters.id], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const getDatabaseOperationsOperationSpec: coreClient.OperationSpec = { - path: "/metastore/create-database-operations/{id}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.MetastoreRequestSuccessResponse, - }, - default: { - bodyMapper: Mappers.ErrorContract, - }, - }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [Parameters.endpoint, Parameters.id], - headerParameters: [Parameters.accept], - serializer, -}; -const updateOperationSpec: coreClient.OperationSpec = { - path: "/metastore/update-database-operations/{id}", - httpMethod: "PUT", - responses: { - 201: { - bodyMapper: Mappers.MetastoreUpdationResponse, - }, - default: { - bodyMapper: Mappers.ErrorContract, - }, - }, - requestBody: Parameters.updateBody, - queryParameters: [Parameters.apiVersion3], - urlParameters: [Parameters.endpoint, Parameters.id], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const deleteOperationSpec: coreClient.OperationSpec = { - path: "/metastore/databases/{id}", - httpMethod: "DELETE", - responses: { - 204: {}, - default: { - bodyMapper: Mappers.ErrorContract, - }, - }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [Parameters.endpoint, Parameters.id], - headerParameters: [Parameters.accept], - serializer, -}; - /** Class containing Metastore operations. */ export class MetastoreImpl implements Metastore { private readonly client: ArtifactsClient; /** * Initialize a new instance of the class Metastore class. - * @param client - Reference to the service client + * @param client Reference to the service client */ constructor(client: ArtifactsClient) { this.client = client; @@ -108,10 +38,10 @@ export class MetastoreImpl implements Metastore { /** * Register files in Syms - * @param id - The name of the database to be created. The name can contain only alphanumeric characters + * @param id The name of the database to be created. The name can contain only alphanumeric characters * and should not exceed 24 characters - * @param registerBody - The body for the register request - * @param options - The options parameters. + * @param registerBody The body for the register request + * @param options The options parameters. */ async register( id: string, @@ -121,9 +51,9 @@ export class MetastoreImpl implements Metastore { return tracingClient.withSpan( "ArtifactsClient.register", options ?? {}, - async (updatedOptions) => { + async (options) => { return this.client.sendOperationRequest( - { id, registerBody, updatedOptions }, + { id, registerBody, options }, registerOperationSpec, ) as Promise; }, @@ -132,8 +62,8 @@ export class MetastoreImpl implements Metastore { /** * Gets status of the database - * @param id - the name of the database. - * @param options - The options parameters. + * @param id + * @param options The options parameters. */ async getDatabaseOperations( id: string, @@ -142,9 +72,9 @@ export class MetastoreImpl implements Metastore { return tracingClient.withSpan( "ArtifactsClient.getDatabaseOperations", options ?? {}, - async (updatedOptions) => { + async (options) => { return this.client.sendOperationRequest( - { id, updatedOptions }, + { id, options }, getDatabaseOperationsOperationSpec, ) as Promise; }, @@ -153,9 +83,9 @@ export class MetastoreImpl implements Metastore { /** * Update files in Syms - * @param id - The name of the database to be updated - * @param updateBody - The body for the update request - * @param options - The options parameters. + * @param id The name of the database to be updated + * @param updateBody The body for the update request + * @param options The options parameters. */ async update( id: string, @@ -165,9 +95,9 @@ export class MetastoreImpl implements Metastore { return tracingClient.withSpan( "ArtifactsClient.update", options ?? {}, - async (updatedOptions) => { + async (options) => { return this.client.sendOperationRequest( - { id, updateBody, updatedOptions }, + { id, updateBody, options }, updateOperationSpec, ) as Promise; }, @@ -176,19 +106,91 @@ export class MetastoreImpl implements Metastore { /** * Remove files in Syms - * @param id - The name of the database to be deleted - * @param options - The options parameters. + * @param id + * @param options The options parameters. */ - async delete(id: string, options?: MetastoreDeleteOptionalParams): Promise { + async delete( + id: string, + options?: MetastoreDeleteOptionalParams, + ): Promise { return tracingClient.withSpan( "ArtifactsClient.delete", options ?? {}, - async (updatedOptions) => { + async (options) => { return this.client.sendOperationRequest( - { id, updatedOptions }, + { id, options }, deleteOperationSpec, ) as Promise; }, ); } } +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const registerOperationSpec: coreClient.OperationSpec = { + path: "/metastore/create-database-operations/{id}", + httpMethod: "PUT", + responses: { + 201: { + bodyMapper: Mappers.MetastoreRegistrationResponse, + }, + default: { + bodyMapper: Mappers.ErrorContract, + }, + }, + requestBody: Parameters.registerBody, + queryParameters: [Parameters.apiVersion3], + urlParameters: [Parameters.endpoint, Parameters.id], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const getDatabaseOperationsOperationSpec: coreClient.OperationSpec = { + path: "/metastore/create-database-operations/{id}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.MetastoreRequestSuccessResponse, + }, + default: { + bodyMapper: Mappers.ErrorContract, + }, + }, + queryParameters: [Parameters.apiVersion3], + urlParameters: [Parameters.endpoint, Parameters.id], + headerParameters: [Parameters.accept], + serializer, +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: "/metastore/update-database-operations/{id}", + httpMethod: "PUT", + responses: { + 201: { + bodyMapper: Mappers.MetastoreUpdationResponse, + }, + default: { + bodyMapper: Mappers.ErrorContract, + }, + }, + requestBody: Parameters.updateBody, + queryParameters: [Parameters.apiVersion3], + urlParameters: [Parameters.endpoint, Parameters.id], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/metastore/databases/{id}", + httpMethod: "DELETE", + responses: { + 204: {}, + default: { + bodyMapper: Mappers.ErrorContract, + }, + }, + queryParameters: [Parameters.apiVersion3], + urlParameters: [Parameters.endpoint, Parameters.id], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/synapse/synapse-artifacts/src/operations/notebookOperationResult.ts b/sdk/synapse/synapse-artifacts/src/operations/notebookOperationResult.ts index e49ee4ee2bbd..cc091313d183 100644 --- a/sdk/synapse/synapse-artifacts/src/operations/notebookOperationResult.ts +++ b/sdk/synapse/synapse-artifacts/src/operations/notebookOperationResult.ts @@ -14,34 +14,13 @@ import * as Parameters from "../models/parameters.js"; import type { ArtifactsClient } from "../artifactsClient.js"; import type { NotebookOperationResultGetOptionalParams } from "../models/index.js"; -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const getOperationSpec: coreClient.OperationSpec = { - path: "/notebookOperationResults/{operationId}", - httpMethod: "GET", - responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.ErrorContract, - }, - }, - queryParameters: [Parameters.apiVersion5], - urlParameters: [Parameters.endpoint, Parameters.operationId], - headerParameters: [Parameters.accept], - serializer, -}; - /** Class containing NotebookOperationResult operations. */ export class NotebookOperationResultImpl implements NotebookOperationResult { private readonly client: ArtifactsClient; /** * Initialize a new instance of the class NotebookOperationResult class. - * @param client - Reference to the service client + * @param client Reference to the service client */ constructor(client: ArtifactsClient) { this.client = client; @@ -49,18 +28,42 @@ export class NotebookOperationResultImpl implements NotebookOperationResult { /** * Get notebook operation result - * @param operationId - Operation ID. - * @param options - The options parameters. + * @param operationId Operation ID. + * @param options The options parameters. */ async get( operationId: string, options?: NotebookOperationResultGetOptionalParams, ): Promise { - return tracingClient.withSpan("ArtifactsClient.get", options ?? {}, async (updatedOptions) => { - return this.client.sendOperationRequest( - { operationId, updatedOptions }, - getOperationSpec, - ) as Promise; - }); + return tracingClient.withSpan( + "ArtifactsClient.get", + options ?? {}, + async (options) => { + return this.client.sendOperationRequest( + { operationId, options }, + getOperationSpec, + ) as Promise; + }, + ); } } +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: "/notebookOperationResults/{operationId}", + httpMethod: "GET", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorContract, + }, + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [Parameters.endpoint, Parameters.operationId], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/synapse/synapse-artifacts/src/operations/notebookOperations.ts b/sdk/synapse/synapse-artifacts/src/operations/notebookOperations.ts index 370141ff3051..d4d428bc43c2 100644 --- a/sdk/synapse/synapse-artifacts/src/operations/notebookOperations.ts +++ b/sdk/synapse/synapse-artifacts/src/operations/notebookOperations.ts @@ -14,8 +14,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers.js"; import * as Parameters from "../models/parameters.js"; import type { ArtifactsClient } from "../artifactsClient.js"; -import type { SimplePollerLike, OperationState } from "@azure/core-lro"; -import { createHttpPoller } from "@azure/core-lro"; +import type { + SimplePollerLike, + OperationState} from "@azure/core-lro"; +import { + createHttpPoller, +} from "@azure/core-lro"; import { createLroSpec } from "../lroImpl.js"; import type { NotebookResource, @@ -35,161 +39,15 @@ import type { NotebookGetNotebooksByWorkspaceNextResponse, NotebookGetNotebookSummaryByWorkSpaceNextResponse, } from "../models/index.js"; -import type { RawHttpHeaders } from "@azure/core-rest-pipeline"; - -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const getNotebooksByWorkspaceOperationSpec: coreClient.OperationSpec = { - path: "/notebooks", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.NotebookListResponse, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion5], - urlParameters: [Parameters.endpoint], - headerParameters: [Parameters.accept], - serializer, -}; -const getNotebookSummaryByWorkSpaceOperationSpec: coreClient.OperationSpec = { - path: "/notebooksSummary", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.NotebookListResponse, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion5], - urlParameters: [Parameters.endpoint], - headerParameters: [Parameters.accept], - serializer, -}; -const createOrUpdateNotebookOperationSpec: coreClient.OperationSpec = { - path: "/notebooks/{notebookName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.NotebookResource, - }, - 201: { - bodyMapper: Mappers.NotebookResource, - }, - 202: { - bodyMapper: Mappers.NotebookResource, - }, - 204: { - bodyMapper: Mappers.NotebookResource, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - requestBody: Parameters.notebook, - queryParameters: [Parameters.apiVersion5], - urlParameters: [Parameters.endpoint, Parameters.notebookName], - headerParameters: [Parameters.accept, Parameters.contentType, Parameters.ifMatch], - mediaType: "json", - serializer, -}; -const getNotebookOperationSpec: coreClient.OperationSpec = { - path: "/notebooks/{notebookName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.NotebookResource, - }, - 304: {}, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion5], - urlParameters: [Parameters.endpoint, Parameters.notebookName], - headerParameters: [Parameters.accept, Parameters.ifNoneMatch], - serializer, -}; -const deleteNotebookOperationSpec: coreClient.OperationSpec = { - path: "/notebooks/{notebookName}", - httpMethod: "DELETE", - responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion5], - urlParameters: [Parameters.endpoint, Parameters.notebookName], - headerParameters: [Parameters.accept], - serializer, -}; -const renameNotebookOperationSpec: coreClient.OperationSpec = { - path: "/notebooks/{notebookName}/rename", - httpMethod: "POST", - responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - requestBody: Parameters.request, - queryParameters: [Parameters.apiVersion5], - urlParameters: [Parameters.endpoint, Parameters.notebookName], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const getNotebooksByWorkspaceNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.NotebookListResponse, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - urlParameters: [Parameters.endpoint, Parameters.nextLink], - headerParameters: [Parameters.accept], - serializer, -}; -const getNotebookSummaryByWorkSpaceNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.NotebookListResponse, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - urlParameters: [Parameters.endpoint, Parameters.nextLink], - headerParameters: [Parameters.accept], - serializer, -}; +/// /** Class containing NotebookOperations operations. */ export class NotebookOperationsImpl implements NotebookOperations { private readonly client: ArtifactsClient; /** * Initialize a new instance of the class NotebookOperations class. - * @param client - Reference to the service client + * @param client Reference to the service client */ constructor(client: ArtifactsClient) { this.client = client; @@ -197,7 +55,7 @@ export class NotebookOperationsImpl implements NotebookOperations { /** * Lists Notebooks. - * @param options - The options parameters. + * @param options The options parameters. */ public listNotebooksByWorkspace( options?: NotebookGetNotebooksByWorkspaceOptionalParams, @@ -233,7 +91,10 @@ export class NotebookOperationsImpl implements NotebookOperations { yield page; } while (continuationToken) { - result = await this._getNotebooksByWorkspaceNext(continuationToken, options); + result = await this._getNotebooksByWorkspaceNext( + continuationToken, + options, + ); continuationToken = result.nextLink; const page = result.value || []; setContinuationToken(page, continuationToken); @@ -251,7 +112,7 @@ export class NotebookOperationsImpl implements NotebookOperations { /** * Lists a summary of Notebooks. - * @param options - The options parameters. + * @param options The options parameters. */ public listNotebookSummaryByWorkSpace( options?: NotebookGetNotebookSummaryByWorkSpaceOptionalParams, @@ -287,7 +148,10 @@ export class NotebookOperationsImpl implements NotebookOperations { yield page; } while (continuationToken) { - result = await this._getNotebookSummaryByWorkSpaceNext(continuationToken, options); + result = await this._getNotebookSummaryByWorkSpaceNext( + continuationToken, + options, + ); continuationToken = result.nextLink; const page = result.value || []; setContinuationToken(page, continuationToken); @@ -298,14 +162,16 @@ export class NotebookOperationsImpl implements NotebookOperations { private async *getNotebookSummaryByWorkSpacePagingAll( options?: NotebookGetNotebookSummaryByWorkSpaceOptionalParams, ): AsyncIterableIterator { - for await (const page of this.getNotebookSummaryByWorkSpacePagingPage(options)) { + for await (const page of this.getNotebookSummaryByWorkSpacePagingPage( + options, + )) { yield* page; } } /** * Lists Notebooks. - * @param options - The options parameters. + * @param options The options parameters. */ private async _getNotebooksByWorkspace( options?: NotebookGetNotebooksByWorkspaceOptionalParams, @@ -313,9 +179,9 @@ export class NotebookOperationsImpl implements NotebookOperations { return tracingClient.withSpan( "ArtifactsClient._getNotebooksByWorkspace", options ?? {}, - async (updatedOptions) => { + async (options) => { return this.client.sendOperationRequest( - { updatedOptions }, + { options }, getNotebooksByWorkspaceOperationSpec, ) as Promise; }, @@ -324,7 +190,7 @@ export class NotebookOperationsImpl implements NotebookOperations { /** * Lists a summary of Notebooks. - * @param options - The options parameters. + * @param options The options parameters. */ private async _getNotebookSummaryByWorkSpace( options?: NotebookGetNotebookSummaryByWorkSpaceOptionalParams, @@ -332,9 +198,9 @@ export class NotebookOperationsImpl implements NotebookOperations { return tracingClient.withSpan( "ArtifactsClient._getNotebookSummaryByWorkSpace", options ?? {}, - async (updatedOptions) => { + async (options) => { return this.client.sendOperationRequest( - { updatedOptions }, + { options }, getNotebookSummaryByWorkSpaceOperationSpec, ) as Promise; }, @@ -343,9 +209,9 @@ export class NotebookOperationsImpl implements NotebookOperations { /** * Creates or updates a Note Book. - * @param notebookName - - The notebook name. - * @param notebook - - Note book resource definition. - * @param options - The options parameters. + * @param notebookName The notebook name. + * @param notebook Note book resource definition. + * @param options The options parameters. */ async beginCreateOrUpdateNotebook( notebookName: string, @@ -375,15 +241,9 @@ export class NotebookOperationsImpl implements NotebookOperations { const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, - ): Promise<{ - flatResponse: NotebookResource; - rawResponse: { - statusCode: number; - body: any; - headers: RawHttpHeaders; - }; - }> => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -428,23 +288,27 @@ export class NotebookOperationsImpl implements NotebookOperations { /** * Creates or updates a Note Book. - * @param notebookName - The notebook name. - * @param notebook - Note book resource definition. - * @param options - The options parameters. + * @param notebookName The notebook name. + * @param notebook Note book resource definition. + * @param options The options parameters. */ async beginCreateOrUpdateNotebookAndWait( notebookName: string, notebook: NotebookResource, options?: NotebookCreateOrUpdateNotebookOptionalParams, ): Promise { - const poller = await this.beginCreateOrUpdateNotebook(notebookName, notebook, options); + const poller = await this.beginCreateOrUpdateNotebook( + notebookName, + notebook, + options, + ); return poller.pollUntilDone(); } /** * Gets a Note Book. - * @param notebookName - The notebook name. - * @param options - The options parameters. + * @param notebookName The notebook name. + * @param options The options parameters. */ async getNotebook( notebookName: string, @@ -453,9 +317,9 @@ export class NotebookOperationsImpl implements NotebookOperations { return tracingClient.withSpan( "ArtifactsClient.getNotebook", options ?? {}, - async (updatedOptions) => { + async (options) => { return this.client.sendOperationRequest( - { notebookName, updatedOptions }, + { notebookName, options }, getNotebookOperationSpec, ) as Promise; }, @@ -464,8 +328,8 @@ export class NotebookOperationsImpl implements NotebookOperations { /** * Deletes a Note book. - * @param notebookName - The notebook name. - * @param options - The options parameters. + * @param notebookName The notebook name. + * @param options The options parameters. */ async beginDeleteNotebook( notebookName: string, @@ -486,15 +350,9 @@ export class NotebookOperationsImpl implements NotebookOperations { const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, - ): Promise<{ - flatResponse: void; - rawResponse: { - statusCode: number; - body: any; - headers: RawHttpHeaders; - }; - }> => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -536,8 +394,8 @@ export class NotebookOperationsImpl implements NotebookOperations { /** * Deletes a Note book. - * @param notebookName - The notebook name. - * @param options - The options parameters. + * @param notebookName The notebook name. + * @param options The options parameters. */ async beginDeleteNotebookAndWait( notebookName: string, @@ -549,9 +407,9 @@ export class NotebookOperationsImpl implements NotebookOperations { /** * Renames a notebook. - * @param notebookName - The notebook name. - * @param request - proposed new name. - * @param options - The options parameters. + * @param notebookName The notebook name. + * @param request proposed new name. + * @param options The options parameters. */ async beginRenameNotebook( notebookName: string, @@ -573,15 +431,9 @@ export class NotebookOperationsImpl implements NotebookOperations { const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, - ): Promise<{ - flatResponse: void; - rawResponse: { - statusCode: number; - body: any; - headers: RawHttpHeaders; - }; - }> => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -623,24 +475,28 @@ export class NotebookOperationsImpl implements NotebookOperations { /** * Renames a notebook. - * @param notebookName - The notebook name. - * @param request - proposed new name. - * @param options - The options parameters. + * @param notebookName The notebook name. + * @param request proposed new name. + * @param options The options parameters. */ async beginRenameNotebookAndWait( notebookName: string, request: ArtifactRenameRequest, options?: NotebookRenameNotebookOptionalParams, ): Promise { - const poller = await this.beginRenameNotebook(notebookName, request, options); + const poller = await this.beginRenameNotebook( + notebookName, + request, + options, + ); return poller.pollUntilDone(); } /** * GetNotebooksByWorkspaceNext - * @param nextLink - The nextLink from the previous successful call to the GetNotebooksByWorkspace + * @param nextLink The nextLink from the previous successful call to the GetNotebooksByWorkspace * method. - * @param options - The options parameters. + * @param options The options parameters. */ private async _getNotebooksByWorkspaceNext( nextLink: string, @@ -649,9 +505,9 @@ export class NotebookOperationsImpl implements NotebookOperations { return tracingClient.withSpan( "ArtifactsClient._getNotebooksByWorkspaceNext", options ?? {}, - async (updatedOptions) => { + async (options) => { return this.client.sendOperationRequest( - { nextLink, updatedOptions }, + { nextLink, options }, getNotebooksByWorkspaceNextOperationSpec, ) as Promise; }, @@ -660,9 +516,9 @@ export class NotebookOperationsImpl implements NotebookOperations { /** * GetNotebookSummaryByWorkSpaceNext - * @param nextLink - The nextLink from the previous successful call to the GetNotebookSummaryByWorkSpace + * @param nextLink The nextLink from the previous successful call to the GetNotebookSummaryByWorkSpace * method. - * @param options - The options parameters. + * @param options The options parameters. */ private async _getNotebookSummaryByWorkSpaceNext( nextLink: string, @@ -671,12 +527,162 @@ export class NotebookOperationsImpl implements NotebookOperations { return tracingClient.withSpan( "ArtifactsClient._getNotebookSummaryByWorkSpaceNext", options ?? {}, - async (updatedOptions) => { + async (options) => { return this.client.sendOperationRequest( - { nextLink, updatedOptions }, + { nextLink, options }, getNotebookSummaryByWorkSpaceNextOperationSpec, ) as Promise; }, ); } } +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getNotebooksByWorkspaceOperationSpec: coreClient.OperationSpec = { + path: "/notebooks", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NotebookListResponse, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [Parameters.endpoint], + headerParameters: [Parameters.accept], + serializer, +}; +const getNotebookSummaryByWorkSpaceOperationSpec: coreClient.OperationSpec = { + path: "/notebooksSummary", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NotebookListResponse, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [Parameters.endpoint], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateNotebookOperationSpec: coreClient.OperationSpec = { + path: "/notebooks/{notebookName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.NotebookResource, + }, + 201: { + bodyMapper: Mappers.NotebookResource, + }, + 202: { + bodyMapper: Mappers.NotebookResource, + }, + 204: { + bodyMapper: Mappers.NotebookResource, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + requestBody: Parameters.notebook, + queryParameters: [Parameters.apiVersion5], + urlParameters: [Parameters.endpoint, Parameters.notebookName], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + ], + mediaType: "json", + serializer, +}; +const getNotebookOperationSpec: coreClient.OperationSpec = { + path: "/notebooks/{notebookName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NotebookResource, + }, + 304: {}, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [Parameters.endpoint, Parameters.notebookName], + headerParameters: [Parameters.accept, Parameters.ifNoneMatch], + serializer, +}; +const deleteNotebookOperationSpec: coreClient.OperationSpec = { + path: "/notebooks/{notebookName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [Parameters.endpoint, Parameters.notebookName], + headerParameters: [Parameters.accept], + serializer, +}; +const renameNotebookOperationSpec: coreClient.OperationSpec = { + path: "/notebooks/{notebookName}/rename", + httpMethod: "POST", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + requestBody: Parameters.request, + queryParameters: [Parameters.apiVersion5], + urlParameters: [Parameters.endpoint, Parameters.notebookName], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const getNotebooksByWorkspaceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NotebookListResponse, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + urlParameters: [Parameters.endpoint, Parameters.nextLink], + headerParameters: [Parameters.accept], + serializer, +}; +const getNotebookSummaryByWorkSpaceNextOperationSpec: coreClient.OperationSpec = + { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NotebookListResponse, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + urlParameters: [Parameters.endpoint, Parameters.nextLink], + headerParameters: [Parameters.accept], + serializer, + }; diff --git a/sdk/synapse/synapse-artifacts/src/operations/pipelineOperations.ts b/sdk/synapse/synapse-artifacts/src/operations/pipelineOperations.ts index f71ca7388f2e..5e5bf463a780 100644 --- a/sdk/synapse/synapse-artifacts/src/operations/pipelineOperations.ts +++ b/sdk/synapse/synapse-artifacts/src/operations/pipelineOperations.ts @@ -14,8 +14,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers.js"; import * as Parameters from "../models/parameters.js"; import type { ArtifactsClient } from "../artifactsClient.js"; -import type { SimplePollerLike, OperationState } from "@azure/core-lro"; -import { createHttpPoller } from "@azure/core-lro"; +import type { + SimplePollerLike, + OperationState} from "@azure/core-lro"; +import { + createHttpPoller, +} from "@azure/core-lro"; import { createLroSpec } from "../lroImpl.js"; import type { PipelineResource, @@ -33,153 +37,15 @@ import type { PipelineCreatePipelineRunResponse, PipelineGetPipelinesByWorkspaceNextResponse, } from "../models/index.js"; -import type { RawHttpHeaders } from "@azure/core-rest-pipeline"; - -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const getPipelinesByWorkspaceOperationSpec: coreClient.OperationSpec = { - path: "/pipelines", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.PipelineListResponse, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion5], - urlParameters: [Parameters.endpoint], - headerParameters: [Parameters.accept], - serializer, -}; -const createOrUpdatePipelineOperationSpec: coreClient.OperationSpec = { - path: "/pipelines/{pipelineName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.PipelineResource, - }, - 201: { - bodyMapper: Mappers.PipelineResource, - }, - 202: { - bodyMapper: Mappers.PipelineResource, - }, - 204: { - bodyMapper: Mappers.PipelineResource, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - requestBody: Parameters.pipeline, - queryParameters: [Parameters.apiVersion5], - urlParameters: [Parameters.endpoint, Parameters.pipelineName], - headerParameters: [Parameters.accept, Parameters.contentType, Parameters.ifMatch], - mediaType: "json", - serializer, -}; -const getPipelineOperationSpec: coreClient.OperationSpec = { - path: "/pipelines/{pipelineName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.PipelineResource, - }, - 304: {}, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion5], - urlParameters: [Parameters.endpoint, Parameters.pipelineName], - headerParameters: [Parameters.accept, Parameters.ifNoneMatch], - serializer, -}; -const deletePipelineOperationSpec: coreClient.OperationSpec = { - path: "/pipelines/{pipelineName}", - httpMethod: "DELETE", - responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion5], - urlParameters: [Parameters.endpoint, Parameters.pipelineName], - headerParameters: [Parameters.accept], - serializer, -}; -const renamePipelineOperationSpec: coreClient.OperationSpec = { - path: "/pipelines/{pipelineName}/rename", - httpMethod: "POST", - responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - requestBody: Parameters.request, - queryParameters: [Parameters.apiVersion5], - urlParameters: [Parameters.endpoint, Parameters.pipelineName], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const createPipelineRunOperationSpec: coreClient.OperationSpec = { - path: "/pipelines/{pipelineName}/createRun", - httpMethod: "POST", - responses: { - 202: { - bodyMapper: Mappers.CreateRunResponse, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - requestBody: Parameters.parameters, - queryParameters: [ - Parameters.apiVersion5, - Parameters.referencePipelineRunId, - Parameters.isRecovery, - Parameters.startActivityName, - ], - urlParameters: [Parameters.endpoint, Parameters.pipelineName], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const getPipelinesByWorkspaceNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.PipelineListResponse, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - urlParameters: [Parameters.endpoint, Parameters.nextLink], - headerParameters: [Parameters.accept], - serializer, -}; +/// /** Class containing PipelineOperations operations. */ export class PipelineOperationsImpl implements PipelineOperations { private readonly client: ArtifactsClient; /** * Initialize a new instance of the class PipelineOperations class. - * @param client - Reference to the service client + * @param client Reference to the service client */ constructor(client: ArtifactsClient) { this.client = client; @@ -187,7 +53,7 @@ export class PipelineOperationsImpl implements PipelineOperations { /** * Lists pipelines. - * @param options - The options parameters. + * @param options The options parameters. */ public listPipelinesByWorkspace( options?: PipelineGetPipelinesByWorkspaceOptionalParams, @@ -223,7 +89,10 @@ export class PipelineOperationsImpl implements PipelineOperations { yield page; } while (continuationToken) { - result = await this._getPipelinesByWorkspaceNext(continuationToken, options); + result = await this._getPipelinesByWorkspaceNext( + continuationToken, + options, + ); continuationToken = result.nextLink; const page = result.value || []; setContinuationToken(page, continuationToken); @@ -241,7 +110,7 @@ export class PipelineOperationsImpl implements PipelineOperations { /** * Lists pipelines. - * @param options - The options parameters. + * @param options The options parameters. */ private async _getPipelinesByWorkspace( options?: PipelineGetPipelinesByWorkspaceOptionalParams, @@ -249,9 +118,9 @@ export class PipelineOperationsImpl implements PipelineOperations { return tracingClient.withSpan( "ArtifactsClient._getPipelinesByWorkspace", options ?? {}, - async (updatedOptions) => { + async (options) => { return this.client.sendOperationRequest( - { updatedOptions }, + { options }, getPipelinesByWorkspaceOperationSpec, ) as Promise; }, @@ -260,9 +129,9 @@ export class PipelineOperationsImpl implements PipelineOperations { /** * Creates or updates a pipeline. - * @param pipelineName - The pipeline name. - * @param pipeline - Pipeline resource definition. - * @param options - The options parameters. + * @param pipelineName The pipeline name. + * @param pipeline Pipeline resource definition. + * @param options The options parameters. */ async beginCreateOrUpdatePipeline( pipelineName: string, @@ -292,15 +161,9 @@ export class PipelineOperationsImpl implements PipelineOperations { const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, - ): Promise<{ - flatResponse: PipelineResource; - rawResponse: { - statusCode: number; - body: any; - headers: RawHttpHeaders; - }; - }> => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -345,23 +208,27 @@ export class PipelineOperationsImpl implements PipelineOperations { /** * Creates or updates a pipeline. - * @param pipelineName - The pipeline name. - * @param pipeline - Pipeline resource definition. - * @param options - The options parameters. + * @param pipelineName The pipeline name. + * @param pipeline Pipeline resource definition. + * @param options The options parameters. */ async beginCreateOrUpdatePipelineAndWait( pipelineName: string, pipeline: PipelineResource, options?: PipelineCreateOrUpdatePipelineOptionalParams, ): Promise { - const poller = await this.beginCreateOrUpdatePipeline(pipelineName, pipeline, options); + const poller = await this.beginCreateOrUpdatePipeline( + pipelineName, + pipeline, + options, + ); return poller.pollUntilDone(); } /** * Gets a pipeline. - * @param pipelineName - The pipeline name. - * @param options - The options parameters. + * @param pipelineName The pipeline name. + * @param options The options parameters. */ async getPipeline( pipelineName: string, @@ -370,9 +237,9 @@ export class PipelineOperationsImpl implements PipelineOperations { return tracingClient.withSpan( "ArtifactsClient.getPipeline", options ?? {}, - async (updatedOptions) => { + async (options) => { return this.client.sendOperationRequest( - { pipelineName, updatedOptions }, + { pipelineName, options }, getPipelineOperationSpec, ) as Promise; }, @@ -381,8 +248,8 @@ export class PipelineOperationsImpl implements PipelineOperations { /** * Deletes a pipeline. - * @param pipelineName - The pipeline name. - * @param options - The options parameters. + * @param pipelineName The pipeline name. + * @param options The options parameters. */ async beginDeletePipeline( pipelineName: string, @@ -403,15 +270,9 @@ export class PipelineOperationsImpl implements PipelineOperations { const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, - ): Promise<{ - flatResponse: void; - rawResponse: { - statusCode: number; - body: any; - headers: RawHttpHeaders; - }; - }> => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -453,8 +314,8 @@ export class PipelineOperationsImpl implements PipelineOperations { /** * Deletes a pipeline. - * @param pipelineName - The pipeline name. - * @param options - The options parameters. + * @param pipelineName The pipeline name. + * @param options The options parameters. */ async beginDeletePipelineAndWait( pipelineName: string, @@ -466,9 +327,9 @@ export class PipelineOperationsImpl implements PipelineOperations { /** * Renames a pipeline. - * @param pipelineName - The pipeline name. - * @param request - proposed new name. - * @param options - The options parameters. + * @param pipelineName The pipeline name. + * @param request proposed new name. + * @param options The options parameters. */ async beginRenamePipeline( pipelineName: string, @@ -490,15 +351,9 @@ export class PipelineOperationsImpl implements PipelineOperations { const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, - ): Promise<{ - flatResponse: void; - rawResponse: { - statusCode: number; - body: any; - headers: RawHttpHeaders; - }; - }> => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -540,23 +395,27 @@ export class PipelineOperationsImpl implements PipelineOperations { /** * Renames a pipeline. - * @param pipelineName - The pipeline name. - * @param request - proposed new name. - * @param options - The options parameters. + * @param pipelineName The pipeline name. + * @param request proposed new name. + * @param options The options parameters. */ async beginRenamePipelineAndWait( pipelineName: string, request: ArtifactRenameRequest, options?: PipelineRenamePipelineOptionalParams, ): Promise { - const poller = await this.beginRenamePipeline(pipelineName, request, options); + const poller = await this.beginRenamePipeline( + pipelineName, + request, + options, + ); return poller.pollUntilDone(); } /** * Creates a run of a pipeline. - * @param pipelineName - The pipeline name. - * @param options - The options parameters. + * @param pipelineName The pipeline name. + * @param options The options parameters. */ async createPipelineRun( pipelineName: string, @@ -565,9 +424,9 @@ export class PipelineOperationsImpl implements PipelineOperations { return tracingClient.withSpan( "ArtifactsClient.createPipelineRun", options ?? {}, - async (updatedOptions) => { + async (options) => { return this.client.sendOperationRequest( - { pipelineName, updatedOptions }, + { pipelineName, options }, createPipelineRunOperationSpec, ) as Promise; }, @@ -576,9 +435,9 @@ export class PipelineOperationsImpl implements PipelineOperations { /** * GetPipelinesByWorkspaceNext - * @param nextLink - The nextLink from the previous successful call to the GetPipelinesByWorkspace + * @param nextLink The nextLink from the previous successful call to the GetPipelinesByWorkspace * method. - * @param options - The options parameters. + * @param options The options parameters. */ private async _getPipelinesByWorkspaceNext( nextLink: string, @@ -587,12 +446,153 @@ export class PipelineOperationsImpl implements PipelineOperations { return tracingClient.withSpan( "ArtifactsClient._getPipelinesByWorkspaceNext", options ?? {}, - async (updatedOptions) => { + async (options) => { return this.client.sendOperationRequest( - { nextLink, updatedOptions }, + { nextLink, options }, getPipelinesByWorkspaceNextOperationSpec, ) as Promise; }, ); } } +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getPipelinesByWorkspaceOperationSpec: coreClient.OperationSpec = { + path: "/pipelines", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PipelineListResponse, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [Parameters.endpoint], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdatePipelineOperationSpec: coreClient.OperationSpec = { + path: "/pipelines/{pipelineName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.PipelineResource, + }, + 201: { + bodyMapper: Mappers.PipelineResource, + }, + 202: { + bodyMapper: Mappers.PipelineResource, + }, + 204: { + bodyMapper: Mappers.PipelineResource, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + requestBody: Parameters.pipeline, + queryParameters: [Parameters.apiVersion5], + urlParameters: [Parameters.endpoint, Parameters.pipelineName], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + ], + mediaType: "json", + serializer, +}; +const getPipelineOperationSpec: coreClient.OperationSpec = { + path: "/pipelines/{pipelineName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PipelineResource, + }, + 304: {}, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [Parameters.endpoint, Parameters.pipelineName], + headerParameters: [Parameters.accept, Parameters.ifNoneMatch], + serializer, +}; +const deletePipelineOperationSpec: coreClient.OperationSpec = { + path: "/pipelines/{pipelineName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [Parameters.endpoint, Parameters.pipelineName], + headerParameters: [Parameters.accept], + serializer, +}; +const renamePipelineOperationSpec: coreClient.OperationSpec = { + path: "/pipelines/{pipelineName}/rename", + httpMethod: "POST", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + requestBody: Parameters.request, + queryParameters: [Parameters.apiVersion5], + urlParameters: [Parameters.endpoint, Parameters.pipelineName], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const createPipelineRunOperationSpec: coreClient.OperationSpec = { + path: "/pipelines/{pipelineName}/createRun", + httpMethod: "POST", + responses: { + 202: { + bodyMapper: Mappers.CreateRunResponse, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + requestBody: Parameters.parameters, + queryParameters: [ + Parameters.apiVersion5, + Parameters.referencePipelineRunId, + Parameters.isRecovery, + Parameters.startActivityName, + ], + urlParameters: [Parameters.endpoint, Parameters.pipelineName], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const getPipelinesByWorkspaceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PipelineListResponse, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + urlParameters: [Parameters.endpoint, Parameters.nextLink], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/synapse/synapse-artifacts/src/operations/pipelineRunOperations.ts b/sdk/synapse/synapse-artifacts/src/operations/pipelineRunOperations.ts index e80460f2e46b..258362b8c41c 100644 --- a/sdk/synapse/synapse-artifacts/src/operations/pipelineRunOperations.ts +++ b/sdk/synapse/synapse-artifacts/src/operations/pipelineRunOperations.ts @@ -23,83 +23,13 @@ import type { PipelineRunCancelPipelineRunOptionalParams, } from "../models/index.js"; -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const queryPipelineRunsByWorkspaceOperationSpec: coreClient.OperationSpec = { - path: "/queryPipelineRuns", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.PipelineRunsQueryResponse, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - requestBody: Parameters.filterParameters, - queryParameters: [Parameters.apiVersion5], - urlParameters: [Parameters.endpoint], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const getPipelineRunOperationSpec: coreClient.OperationSpec = { - path: "/pipelineruns/{runId}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.PipelineRun, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion5], - urlParameters: [Parameters.endpoint, Parameters.runId1], - headerParameters: [Parameters.accept], - serializer, -}; -const queryActivityRunsOperationSpec: coreClient.OperationSpec = { - path: "/pipelines/{pipelineName}/pipelineruns/{runId}/queryActivityruns", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.ActivityRunsQueryResponse, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - requestBody: Parameters.filterParameters, - queryParameters: [Parameters.apiVersion5], - urlParameters: [Parameters.endpoint, Parameters.pipelineName, Parameters.runId1], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const cancelPipelineRunOperationSpec: coreClient.OperationSpec = { - path: "/pipelineruns/{runId}/cancel", - httpMethod: "POST", - responses: { - 200: {}, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion5, Parameters.isRecursive], - urlParameters: [Parameters.endpoint, Parameters.runId1], - headerParameters: [Parameters.accept], - serializer, -}; - /** Class containing PipelineRunOperations operations. */ export class PipelineRunOperationsImpl implements PipelineRunOperations { private readonly client: ArtifactsClient; /** * Initialize a new instance of the class PipelineRunOperations class. - * @param client - Reference to the service client + * @param client Reference to the service client */ constructor(client: ArtifactsClient) { this.client = client; @@ -107,8 +37,8 @@ export class PipelineRunOperationsImpl implements PipelineRunOperations { /** * Query pipeline runs in the workspace based on input filter conditions. - * @param filterParameters - Parameters to filter the pipeline run. - * @param options - The options parameters. + * @param filterParameters Parameters to filter the pipeline run. + * @param options The options parameters. */ async queryPipelineRunsByWorkspace( filterParameters: RunFilterParameters, @@ -117,9 +47,9 @@ export class PipelineRunOperationsImpl implements PipelineRunOperations { return tracingClient.withSpan( "ArtifactsClient.queryPipelineRunsByWorkspace", options ?? {}, - async (updatedOptions) => { + async (options) => { return this.client.sendOperationRequest( - { filterParameters, updatedOptions }, + { filterParameters, options }, queryPipelineRunsByWorkspaceOperationSpec, ) as Promise; }, @@ -128,8 +58,8 @@ export class PipelineRunOperationsImpl implements PipelineRunOperations { /** * Get a pipeline run by its run ID. - * @param runId - The pipeline run identifier. - * @param options - The options parameters. + * @param runId The pipeline run identifier. + * @param options The options parameters. */ async getPipelineRun( runId: string, @@ -138,9 +68,9 @@ export class PipelineRunOperationsImpl implements PipelineRunOperations { return tracingClient.withSpan( "ArtifactsClient.getPipelineRun", options ?? {}, - async (updatedOptions) => { + async (options) => { return this.client.sendOperationRequest( - { runId, updatedOptions }, + { runId, options }, getPipelineRunOperationSpec, ) as Promise; }, @@ -149,10 +79,10 @@ export class PipelineRunOperationsImpl implements PipelineRunOperations { /** * Query activity runs based on input filter conditions. - * @param pipelineName - The pipeline name. - * @param runId - The pipeline run identifier. - * @param filterParameters - Parameters to filter the activity runs. - * @param options - The options parameters. + * @param pipelineName The pipeline name. + * @param runId The pipeline run identifier. + * @param filterParameters Parameters to filter the activity runs. + * @param options The options parameters. */ async queryActivityRuns( pipelineName: string, @@ -163,9 +93,9 @@ export class PipelineRunOperationsImpl implements PipelineRunOperations { return tracingClient.withSpan( "ArtifactsClient.queryActivityRuns", options ?? {}, - async (updatedOptions) => { + async (options) => { return this.client.sendOperationRequest( - { pipelineName, runId, filterParameters, updatedOptions }, + { pipelineName, runId, filterParameters, options }, queryActivityRunsOperationSpec, ) as Promise; }, @@ -174,8 +104,8 @@ export class PipelineRunOperationsImpl implements PipelineRunOperations { /** * Cancel a pipeline run by its run ID. - * @param runId - The pipeline run identifier. - * @param options - The options parameters. + * @param runId The pipeline run identifier. + * @param options The options parameters. */ async cancelPipelineRun( runId: string, @@ -184,12 +114,85 @@ export class PipelineRunOperationsImpl implements PipelineRunOperations { return tracingClient.withSpan( "ArtifactsClient.cancelPipelineRun", options ?? {}, - async (updatedOptions) => { + async (options) => { return this.client.sendOperationRequest( - { runId, updatedOptions }, + { runId, options }, cancelPipelineRunOperationSpec, ) as Promise; }, ); } } +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const queryPipelineRunsByWorkspaceOperationSpec: coreClient.OperationSpec = { + path: "/queryPipelineRuns", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.PipelineRunsQueryResponse, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + requestBody: Parameters.filterParameters, + queryParameters: [Parameters.apiVersion5], + urlParameters: [Parameters.endpoint], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const getPipelineRunOperationSpec: coreClient.OperationSpec = { + path: "/pipelineruns/{runId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PipelineRun, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [Parameters.endpoint, Parameters.runId1], + headerParameters: [Parameters.accept], + serializer, +}; +const queryActivityRunsOperationSpec: coreClient.OperationSpec = { + path: "/pipelines/{pipelineName}/pipelineruns/{runId}/queryActivityruns", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.ActivityRunsQueryResponse, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + requestBody: Parameters.filterParameters, + queryParameters: [Parameters.apiVersion5], + urlParameters: [ + Parameters.endpoint, + Parameters.pipelineName, + Parameters.runId1, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const cancelPipelineRunOperationSpec: coreClient.OperationSpec = { + path: "/pipelineruns/{runId}/cancel", + httpMethod: "POST", + responses: { + 200: {}, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion5, Parameters.isRecursive], + urlParameters: [Parameters.endpoint, Parameters.runId1], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/synapse/synapse-artifacts/src/operations/runNotebook.ts b/sdk/synapse/synapse-artifacts/src/operations/runNotebook.ts index c2be44e61f3d..77c3dc9cd991 100644 --- a/sdk/synapse/synapse-artifacts/src/operations/runNotebook.ts +++ b/sdk/synapse/synapse-artifacts/src/operations/runNotebook.ts @@ -12,8 +12,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers.js"; import * as Parameters from "../models/parameters.js"; import type { ArtifactsClient } from "../artifactsClient.js"; -import type { SimplePollerLike, OperationState } from "@azure/core-lro"; -import { createHttpPoller } from "@azure/core-lro"; +import type { + SimplePollerLike, + OperationState} from "@azure/core-lro"; +import { + createHttpPoller, +} from "@azure/core-lro"; import { createLroSpec } from "../lroImpl.js"; import type { RunNotebookRequest, @@ -26,94 +30,6 @@ import type { RunNotebookGetSnapshotOptionalParams, RunNotebookGetSnapshotResponse, } from "../models/index.js"; -import type { RawHttpHeaders } from "@azure/core-rest-pipeline"; - -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const createRunOperationSpec: coreClient.OperationSpec = { - path: "/notebooks/runs/{runId}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.RunNotebookResponse, - headersMapper: Mappers.RunNotebookCreateRunHeaders, - }, - 201: { - bodyMapper: Mappers.RunNotebookResponse, - headersMapper: Mappers.RunNotebookCreateRunHeaders, - }, - 202: { - bodyMapper: Mappers.RunNotebookResponse, - headersMapper: Mappers.RunNotebookCreateRunHeaders, - }, - 204: { - bodyMapper: Mappers.RunNotebookResponse, - headersMapper: Mappers.RunNotebookCreateRunHeaders, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - requestBody: Parameters.runNotebookRequest, - queryParameters: [Parameters.apiVersion1], - urlParameters: [Parameters.endpoint, Parameters.runId], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const getStatusOperationSpec: coreClient.OperationSpec = { - path: "/notebooks/runs/{runId}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.RunNotebookResponse, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion1], - urlParameters: [Parameters.endpoint, Parameters.runId], - headerParameters: [Parameters.accept], - serializer, -}; -const cancelRunOperationSpec: coreClient.OperationSpec = { - path: "/notebooks/runs/{runId}/cancel", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.RunNotebookResponse, - }, - 409: { - bodyMapper: Mappers.RunNotebookResponse, - isError: true, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion1], - urlParameters: [Parameters.endpoint, Parameters.runId], - headerParameters: [Parameters.accept], - serializer, -}; -const getSnapshotOperationSpec: coreClient.OperationSpec = { - path: "/notebooks/runs/{runId}/snapshot", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.RunNotebookSnapshotResponse, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion1], - urlParameters: [Parameters.endpoint, Parameters.runId], - headerParameters: [Parameters.accept], - serializer, -}; /** Class containing RunNotebook operations. */ export class RunNotebookImpl implements RunNotebook { @@ -121,7 +37,7 @@ export class RunNotebookImpl implements RunNotebook { /** * Initialize a new instance of the class RunNotebook class. - * @param client - Reference to the service client + * @param client Reference to the service client */ constructor(client: ArtifactsClient) { this.client = client; @@ -129,40 +45,42 @@ export class RunNotebookImpl implements RunNotebook { /** * Run notebook - * @param runId - Notebook run id. - * @param runNotebookRequest - Run notebook request payload. - * @param options - The options parameters. + * @param runId Notebook run id. For Create Run, you can generate a new GUID and use it here. For other + * actions, this is the same ID used in Create Run. + * @param runNotebookRequest Run notebook request payload. + * @param options The options parameters. */ async beginCreateRun( runId: string, runNotebookRequest: RunNotebookRequest, options?: RunNotebookCreateRunOptionalParams, ): Promise< - SimplePollerLike, RunNotebookCreateRunResponse> + SimplePollerLike< + OperationState, + RunNotebookCreateRunResponse + > > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ): Promise => { - return tracingClient.withSpan("ArtifactsClient.beginCreateRun", options ?? {}, async () => { - return this.client.sendOperationRequest( - args, - spec, - ) as Promise; - }); + return tracingClient.withSpan( + "ArtifactsClient.beginCreateRun", + options ?? {}, + async () => { + return this.client.sendOperationRequest( + args, + spec, + ) as Promise; + }, + ); }; const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, - ): Promise<{ - flatResponse: RunNotebookCreateRunResponse; - rawResponse: { - statusCode: number; - body: any; - headers: RawHttpHeaders; - }; - }> => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -207,23 +125,29 @@ export class RunNotebookImpl implements RunNotebook { /** * Run notebook - * @param runId - Notebook run id. - * @param runNotebookRequest - Run notebook request payload. - * @param options - The options parameters. + * @param runId Notebook run id. For Create Run, you can generate a new GUID and use it here. For other + * actions, this is the same ID used in Create Run. + * @param runNotebookRequest Run notebook request payload. + * @param options The options parameters. */ async beginCreateRunAndWait( runId: string, runNotebookRequest: RunNotebookRequest, options?: RunNotebookCreateRunOptionalParams, ): Promise { - const poller = await this.beginCreateRun(runId, runNotebookRequest, options); + const poller = await this.beginCreateRun( + runId, + runNotebookRequest, + options, + ); return poller.pollUntilDone(); } /** * Get RunNotebook Status for run id. - * @param runId - Notebook run id. - * @param options - The options parameters. + * @param runId Notebook run id. For Create Run, you can generate a new GUID and use it here. For other + * actions, this is the same ID used in Create Run. + * @param options The options parameters. */ async getStatus( runId: string, @@ -232,9 +156,9 @@ export class RunNotebookImpl implements RunNotebook { return tracingClient.withSpan( "ArtifactsClient.getStatus", options ?? {}, - async (updatedOptions) => { + async (options) => { return this.client.sendOperationRequest( - { runId, updatedOptions }, + { runId, options }, getStatusOperationSpec, ) as Promise; }, @@ -243,8 +167,9 @@ export class RunNotebookImpl implements RunNotebook { /** * Cancel notebook run. - * @param runId - Notebook run id. - * @param options - The options parameters. + * @param runId Notebook run id. For Create Run, you can generate a new GUID and use it here. For other + * actions, this is the same ID used in Create Run. + * @param options The options parameters. */ async cancelRun( runId: string, @@ -253,9 +178,9 @@ export class RunNotebookImpl implements RunNotebook { return tracingClient.withSpan( "ArtifactsClient.cancelRun", options ?? {}, - async (updatedOptions) => { + async (options) => { return this.client.sendOperationRequest( - { runId, updatedOptions }, + { runId, options }, cancelRunOperationSpec, ) as Promise; }, @@ -264,8 +189,9 @@ export class RunNotebookImpl implements RunNotebook { /** * Get RunNotebook Snapshot for run id. - * @param runId - Notebook run id. - * @param options - The options parameters. + * @param runId Notebook run id. For Create Run, you can generate a new GUID and use it here. For other + * actions, this is the same ID used in Create Run. + * @param options The options parameters. */ async getSnapshot( runId: string, @@ -274,12 +200,98 @@ export class RunNotebookImpl implements RunNotebook { return tracingClient.withSpan( "ArtifactsClient.getSnapshot", options ?? {}, - async (updatedOptions) => { + async (options) => { return this.client.sendOperationRequest( - { runId, updatedOptions }, + { runId, options }, getSnapshotOperationSpec, ) as Promise; }, ); } } +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const createRunOperationSpec: coreClient.OperationSpec = { + path: "/notebooks/runs/{runId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.RunNotebookResponse, + headersMapper: Mappers.RunNotebookCreateRunHeaders, + }, + 201: { + bodyMapper: Mappers.RunNotebookResponse, + headersMapper: Mappers.RunNotebookCreateRunHeaders, + }, + 202: { + bodyMapper: Mappers.RunNotebookResponse, + headersMapper: Mappers.RunNotebookCreateRunHeaders, + }, + 204: { + bodyMapper: Mappers.RunNotebookResponse, + headersMapper: Mappers.RunNotebookCreateRunHeaders, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + requestBody: Parameters.runNotebookRequest, + queryParameters: [Parameters.apiVersion1], + urlParameters: [Parameters.endpoint, Parameters.runId], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const getStatusOperationSpec: coreClient.OperationSpec = { + path: "/notebooks/runs/{runId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.RunNotebookResponse, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [Parameters.endpoint, Parameters.runId], + headerParameters: [Parameters.accept], + serializer, +}; +const cancelRunOperationSpec: coreClient.OperationSpec = { + path: "/notebooks/runs/{runId}/cancel", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.RunNotebookResponse, + }, + 409: { + bodyMapper: Mappers.RunNotebookResponse, + isError: true, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [Parameters.endpoint, Parameters.runId], + headerParameters: [Parameters.accept], + serializer, +}; +const getSnapshotOperationSpec: coreClient.OperationSpec = { + path: "/notebooks/runs/{runId}/snapshot", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.RunNotebookSnapshotResponse, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [Parameters.endpoint, Parameters.runId], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/synapse/synapse-artifacts/src/operations/sparkConfigurationOperations.ts b/sdk/synapse/synapse-artifacts/src/operations/sparkConfigurationOperations.ts index 2a04a17d47a9..f6d0ffb833cb 100644 --- a/sdk/synapse/synapse-artifacts/src/operations/sparkConfigurationOperations.ts +++ b/sdk/synapse/synapse-artifacts/src/operations/sparkConfigurationOperations.ts @@ -14,8 +14,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers.js"; import * as Parameters from "../models/parameters.js"; import type { ArtifactsClient } from "../artifactsClient.js"; -import type { SimplePollerLike, OperationState } from "@azure/core-lro"; -import { createHttpPoller } from "@azure/core-lro"; +import type { + SimplePollerLike, + OperationState} from "@azure/core-lro"; +import { + createHttpPoller, +} from "@azure/core-lro"; import { createLroSpec } from "../lroImpl.js"; import type { SparkConfigurationResource, @@ -31,130 +35,17 @@ import type { SparkConfigurationRenameSparkConfigurationOptionalParams, SparkConfigurationGetSparkConfigurationsByWorkspaceNextResponse, } from "../models/index.js"; -import type { RawHttpHeaders } from "@azure/core-rest-pipeline"; - -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const getSparkConfigurationsByWorkspaceOperationSpec: coreClient.OperationSpec = { - path: "/sparkconfigurations", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.SparkConfigurationListResponse, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion4], - urlParameters: [Parameters.endpoint], - headerParameters: [Parameters.accept], - serializer, -}; -const createOrUpdateSparkConfigurationOperationSpec: coreClient.OperationSpec = { - path: "/sparkconfigurations/{sparkConfigurationName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.SparkConfigurationResource, - }, - 201: { - bodyMapper: Mappers.SparkConfigurationResource, - }, - 202: { - bodyMapper: Mappers.SparkConfigurationResource, - }, - 204: { - bodyMapper: Mappers.SparkConfigurationResource, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - requestBody: Parameters.sparkConfiguration, - queryParameters: [Parameters.apiVersion4], - urlParameters: [Parameters.endpoint, Parameters.sparkConfigurationName], - headerParameters: [Parameters.accept, Parameters.contentType, Parameters.ifMatch], - mediaType: "json", - serializer, -}; -const getSparkConfigurationOperationSpec: coreClient.OperationSpec = { - path: "/sparkconfigurations/{sparkConfigurationName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.SparkConfigurationResource, - }, - 304: {}, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion4], - urlParameters: [Parameters.endpoint, Parameters.sparkConfigurationName], - headerParameters: [Parameters.accept, Parameters.ifNoneMatch], - serializer, -}; -const deleteSparkConfigurationOperationSpec: coreClient.OperationSpec = { - path: "/sparkconfigurations/{sparkConfigurationName}", - httpMethod: "DELETE", - responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion4], - urlParameters: [Parameters.endpoint, Parameters.sparkConfigurationName], - headerParameters: [Parameters.accept], - serializer, -}; -const renameSparkConfigurationOperationSpec: coreClient.OperationSpec = { - path: "/sparkconfigurations/{sparkConfigurationName}/rename", - httpMethod: "POST", - responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - requestBody: Parameters.request, - queryParameters: [Parameters.apiVersion4], - urlParameters: [Parameters.endpoint, Parameters.sparkConfigurationName], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const getSparkConfigurationsByWorkspaceNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.SparkConfigurationListResponse, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - urlParameters: [Parameters.endpoint, Parameters.nextLink], - headerParameters: [Parameters.accept], - serializer, -}; +/// /** Class containing SparkConfigurationOperations operations. */ -export class SparkConfigurationOperationsImpl implements SparkConfigurationOperations { +export class SparkConfigurationOperationsImpl + implements SparkConfigurationOperations +{ private readonly client: ArtifactsClient; /** * Initialize a new instance of the class SparkConfigurationOperations class. - * @param client - Reference to the service client + * @param client Reference to the service client */ constructor(client: ArtifactsClient) { this.client = client; @@ -162,7 +53,7 @@ export class SparkConfigurationOperationsImpl implements SparkConfigurationOpera /** * Lists sparkconfigurations. - * @param options - The options parameters. + * @param options The options parameters. */ public listSparkConfigurationsByWorkspace( options?: SparkConfigurationGetSparkConfigurationsByWorkspaceOptionalParams, @@ -179,7 +70,10 @@ export class SparkConfigurationOperationsImpl implements SparkConfigurationOpera if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.getSparkConfigurationsByWorkspacePagingPage(options, settings); + return this.getSparkConfigurationsByWorkspacePagingPage( + options, + settings, + ); }, }; } @@ -198,7 +92,10 @@ export class SparkConfigurationOperationsImpl implements SparkConfigurationOpera yield page; } while (continuationToken) { - result = await this._getSparkConfigurationsByWorkspaceNext(continuationToken, options); + result = await this._getSparkConfigurationsByWorkspaceNext( + continuationToken, + options, + ); continuationToken = result.nextLink; const page = result.value || []; setContinuationToken(page, continuationToken); @@ -209,14 +106,16 @@ export class SparkConfigurationOperationsImpl implements SparkConfigurationOpera private async *getSparkConfigurationsByWorkspacePagingAll( options?: SparkConfigurationGetSparkConfigurationsByWorkspaceOptionalParams, ): AsyncIterableIterator { - for await (const page of this.getSparkConfigurationsByWorkspacePagingPage(options)) { + for await (const page of this.getSparkConfigurationsByWorkspacePagingPage( + options, + )) { yield* page; } } /** * Lists sparkconfigurations. - * @param options - The options parameters. + * @param options The options parameters. */ private async _getSparkConfigurationsByWorkspace( options?: SparkConfigurationGetSparkConfigurationsByWorkspaceOptionalParams, @@ -224,9 +123,9 @@ export class SparkConfigurationOperationsImpl implements SparkConfigurationOpera return tracingClient.withSpan( "ArtifactsClient._getSparkConfigurationsByWorkspace", options ?? {}, - async (updatedOptions) => { + async (options) => { return this.client.sendOperationRequest( - { updatedOptions }, + { options }, getSparkConfigurationsByWorkspaceOperationSpec, ) as Promise; }, @@ -235,9 +134,9 @@ export class SparkConfigurationOperationsImpl implements SparkConfigurationOpera /** * Creates or updates a sparkconfiguration. - * @param sparkConfigurationName - The spark Configuration name. - * @param sparkConfiguration - SparkConfiguration resource definition. - * @param options - The options parameters. + * @param sparkConfigurationName The spark Configuration name. + * @param sparkConfiguration SparkConfiguration resource definition. + * @param options The options parameters. */ async beginCreateOrUpdateSparkConfiguration( sparkConfigurationName: string, @@ -267,15 +166,9 @@ export class SparkConfigurationOperationsImpl implements SparkConfigurationOpera const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, - ): Promise<{ - flatResponse: SparkConfigurationResource; - rawResponse: { - statusCode: number; - body: any; - headers: RawHttpHeaders; - }; - }> => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -320,9 +213,9 @@ export class SparkConfigurationOperationsImpl implements SparkConfigurationOpera /** * Creates or updates a sparkconfiguration. - * @param sparkConfigurationName - The spark Configuration name. - * @param sparkConfiguration - SparkConfiguration resource definition. - * @param options - The options parameters. + * @param sparkConfigurationName The spark Configuration name. + * @param sparkConfiguration SparkConfiguration resource definition. + * @param options The options parameters. */ async beginCreateOrUpdateSparkConfigurationAndWait( sparkConfigurationName: string, @@ -339,8 +232,8 @@ export class SparkConfigurationOperationsImpl implements SparkConfigurationOpera /** * Gets a sparkConfiguration. - * @param sparkConfigurationName - The spark Configuration name. - * @param options - The options parameters. + * @param sparkConfigurationName The spark Configuration name. + * @param options The options parameters. */ async getSparkConfiguration( sparkConfigurationName: string, @@ -349,9 +242,9 @@ export class SparkConfigurationOperationsImpl implements SparkConfigurationOpera return tracingClient.withSpan( "ArtifactsClient.getSparkConfiguration", options ?? {}, - async (updatedOptions) => { + async (options) => { return this.client.sendOperationRequest( - { sparkConfigurationName, updatedOptions }, + { sparkConfigurationName, options }, getSparkConfigurationOperationSpec, ) as Promise; }, @@ -360,8 +253,8 @@ export class SparkConfigurationOperationsImpl implements SparkConfigurationOpera /** * Deletes a sparkConfiguration. - * @param sparkConfigurationName - The spark Configuration name. - * @param options - The options parameters. + * @param sparkConfigurationName The spark Configuration name. + * @param options The options parameters. */ async beginDeleteSparkConfiguration( sparkConfigurationName: string, @@ -382,15 +275,9 @@ export class SparkConfigurationOperationsImpl implements SparkConfigurationOpera const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, - ): Promise<{ - flatResponse: void; - rawResponse: { - statusCode: number; - body: any; - headers: RawHttpHeaders; - }; - }> => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -432,22 +319,25 @@ export class SparkConfigurationOperationsImpl implements SparkConfigurationOpera /** * Deletes a sparkConfiguration. - * @param sparkConfigurationName - The spark Configuration name. - * @param options - The options parameters. + * @param sparkConfigurationName The spark Configuration name. + * @param options The options parameters. */ async beginDeleteSparkConfigurationAndWait( sparkConfigurationName: string, options?: SparkConfigurationDeleteSparkConfigurationOptionalParams, ): Promise { - const poller = await this.beginDeleteSparkConfiguration(sparkConfigurationName, options); + const poller = await this.beginDeleteSparkConfiguration( + sparkConfigurationName, + options, + ); return poller.pollUntilDone(); } /** * Renames a sparkConfiguration. - * @param sparkConfigurationName - The spark Configuration name. - * @param request - proposed new name. - * @param options - The options parameters. + * @param sparkConfigurationName The spark Configuration name. + * @param request proposed new name. + * @param options The options parameters. */ async beginRenameSparkConfiguration( sparkConfigurationName: string, @@ -469,15 +359,9 @@ export class SparkConfigurationOperationsImpl implements SparkConfigurationOpera const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, - ): Promise<{ - flatResponse: void; - rawResponse: { - statusCode: number; - body: any; - headers: RawHttpHeaders; - }; - }> => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -519,9 +403,9 @@ export class SparkConfigurationOperationsImpl implements SparkConfigurationOpera /** * Renames a sparkConfiguration. - * @param sparkConfigurationName - The spark Configuration name. - * @param request - proposed new name. - * @param options - The options parameters. + * @param sparkConfigurationName The spark Configuration name. + * @param request proposed new name. + * @param options The options parameters. */ async beginRenameSparkConfigurationAndWait( sparkConfigurationName: string, @@ -538,9 +422,9 @@ export class SparkConfigurationOperationsImpl implements SparkConfigurationOpera /** * GetSparkConfigurationsByWorkspaceNext - * @param nextLink - The nextLink from the previous successful call to the + * @param nextLink The nextLink from the previous successful call to the * GetSparkConfigurationsByWorkspace method. - * @param options - The options parameters. + * @param options The options parameters. */ private async _getSparkConfigurationsByWorkspaceNext( nextLink: string, @@ -549,12 +433,133 @@ export class SparkConfigurationOperationsImpl implements SparkConfigurationOpera return tracingClient.withSpan( "ArtifactsClient._getSparkConfigurationsByWorkspaceNext", options ?? {}, - async (updatedOptions) => { + async (options) => { return this.client.sendOperationRequest( - { nextLink, updatedOptions }, + { nextLink, options }, getSparkConfigurationsByWorkspaceNextOperationSpec, ) as Promise; }, ); } } +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getSparkConfigurationsByWorkspaceOperationSpec: coreClient.OperationSpec = + { + path: "/sparkconfigurations", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SparkConfigurationListResponse, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion4], + urlParameters: [Parameters.endpoint], + headerParameters: [Parameters.accept], + serializer, + }; +const createOrUpdateSparkConfigurationOperationSpec: coreClient.OperationSpec = + { + path: "/sparkconfigurations/{sparkConfigurationName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.SparkConfigurationResource, + }, + 201: { + bodyMapper: Mappers.SparkConfigurationResource, + }, + 202: { + bodyMapper: Mappers.SparkConfigurationResource, + }, + 204: { + bodyMapper: Mappers.SparkConfigurationResource, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + requestBody: Parameters.sparkConfiguration, + queryParameters: [Parameters.apiVersion4], + urlParameters: [Parameters.endpoint, Parameters.sparkConfigurationName], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + ], + mediaType: "json", + serializer, + }; +const getSparkConfigurationOperationSpec: coreClient.OperationSpec = { + path: "/sparkconfigurations/{sparkConfigurationName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SparkConfigurationResource, + }, + 304: {}, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion4], + urlParameters: [Parameters.endpoint, Parameters.sparkConfigurationName], + headerParameters: [Parameters.accept, Parameters.ifNoneMatch], + serializer, +}; +const deleteSparkConfigurationOperationSpec: coreClient.OperationSpec = { + path: "/sparkconfigurations/{sparkConfigurationName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion4], + urlParameters: [Parameters.endpoint, Parameters.sparkConfigurationName], + headerParameters: [Parameters.accept], + serializer, +}; +const renameSparkConfigurationOperationSpec: coreClient.OperationSpec = { + path: "/sparkconfigurations/{sparkConfigurationName}/rename", + httpMethod: "POST", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + requestBody: Parameters.request, + queryParameters: [Parameters.apiVersion4], + urlParameters: [Parameters.endpoint, Parameters.sparkConfigurationName], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const getSparkConfigurationsByWorkspaceNextOperationSpec: coreClient.OperationSpec = + { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SparkConfigurationListResponse, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + urlParameters: [Parameters.endpoint, Parameters.nextLink], + headerParameters: [Parameters.accept], + serializer, + }; diff --git a/sdk/synapse/synapse-artifacts/src/operations/sparkJobDefinitionOperations.ts b/sdk/synapse/synapse-artifacts/src/operations/sparkJobDefinitionOperations.ts index e307b76a22b9..9a0957890fdf 100644 --- a/sdk/synapse/synapse-artifacts/src/operations/sparkJobDefinitionOperations.ts +++ b/sdk/synapse/synapse-artifacts/src/operations/sparkJobDefinitionOperations.ts @@ -14,8 +14,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers.js"; import * as Parameters from "../models/parameters.js"; import type { ArtifactsClient } from "../artifactsClient.js"; -import type { SimplePollerLike, OperationState } from "@azure/core-lro"; -import { createHttpPoller } from "@azure/core-lro"; +import type { + SimplePollerLike, + OperationState} from "@azure/core-lro"; +import { + createHttpPoller, +} from "@azure/core-lro"; import { createLroSpec } from "../lroImpl.js"; import type { SparkJobDefinitionResource, @@ -34,193 +38,26 @@ import type { SparkJobDefinitionDebugSparkJobDefinitionOptionalParams, SparkJobDefinitionDebugSparkJobDefinitionResponse, SparkJobDefinitionGetSparkJobDefinitionsByWorkspaceNextResponse, - SparkBatchJob, } from "../models/index.js"; -import type { RawHttpHeaders } from "@azure/core-rest-pipeline"; - -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const getSparkJobDefinitionsByWorkspaceOperationSpec: coreClient.OperationSpec = { - path: "/sparkJobDefinitions", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.SparkJobDefinitionsListResponse, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion5], - urlParameters: [Parameters.endpoint], - headerParameters: [Parameters.accept], - serializer, -}; -const createOrUpdateSparkJobDefinitionOperationSpec: coreClient.OperationSpec = { - path: "/sparkJobDefinitions/{sparkJobDefinitionName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.SparkJobDefinitionResource, - }, - 201: { - bodyMapper: Mappers.SparkJobDefinitionResource, - }, - 202: { - bodyMapper: Mappers.SparkJobDefinitionResource, - }, - 204: { - bodyMapper: Mappers.SparkJobDefinitionResource, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - requestBody: Parameters.sparkJobDefinition, - queryParameters: [Parameters.apiVersion5], - urlParameters: [Parameters.endpoint, Parameters.sparkJobDefinitionName], - headerParameters: [Parameters.accept, Parameters.contentType, Parameters.ifMatch], - mediaType: "json", - serializer, -}; -const getSparkJobDefinitionOperationSpec: coreClient.OperationSpec = { - path: "/sparkJobDefinitions/{sparkJobDefinitionName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.SparkJobDefinitionResource, - }, - 304: {}, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion5], - urlParameters: [Parameters.endpoint, Parameters.sparkJobDefinitionName], - headerParameters: [Parameters.accept, Parameters.ifNoneMatch], - serializer, -}; -const deleteSparkJobDefinitionOperationSpec: coreClient.OperationSpec = { - path: "/sparkJobDefinitions/{sparkJobDefinitionName}", - httpMethod: "DELETE", - responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion5], - urlParameters: [Parameters.endpoint, Parameters.sparkJobDefinitionName], - headerParameters: [Parameters.accept], - serializer, -}; -const executeSparkJobDefinitionOperationSpec: coreClient.OperationSpec = { - path: "/sparkJobDefinitions/{sparkJobDefinitionName}/execute", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.SparkBatchJob, - }, - 201: { - bodyMapper: Mappers.SparkBatchJob, - }, - 202: { - bodyMapper: Mappers.SparkBatchJob, - }, - 204: { - bodyMapper: Mappers.SparkBatchJob, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion5], - urlParameters: [Parameters.endpoint, Parameters.sparkJobDefinitionName], - headerParameters: [Parameters.accept], - serializer, -}; -const renameSparkJobDefinitionOperationSpec: coreClient.OperationSpec = { - path: "/sparkJobDefinitions/{sparkJobDefinitionName}/rename", - httpMethod: "POST", - responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - requestBody: Parameters.request, - queryParameters: [Parameters.apiVersion5], - urlParameters: [Parameters.endpoint, Parameters.sparkJobDefinitionName], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const debugSparkJobDefinitionOperationSpec: coreClient.OperationSpec = { - path: "/debugSparkJobDefinition", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.SparkBatchJob, - }, - 201: { - bodyMapper: Mappers.SparkBatchJob, - }, - 202: { - bodyMapper: Mappers.SparkBatchJob, - }, - 204: { - bodyMapper: Mappers.SparkBatchJob, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - requestBody: Parameters.sparkJobDefinitionAzureResource, - queryParameters: [Parameters.apiVersion5], - urlParameters: [Parameters.endpoint], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const getSparkJobDefinitionsByWorkspaceNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.SparkJobDefinitionsListResponse, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - urlParameters: [Parameters.endpoint, Parameters.nextLink], - headerParameters: [Parameters.accept], - serializer, -}; +/// /** Class containing SparkJobDefinitionOperations operations. */ -export class SparkJobDefinitionOperationsImpl implements SparkJobDefinitionOperations { +export class SparkJobDefinitionOperationsImpl + implements SparkJobDefinitionOperations +{ private readonly client: ArtifactsClient; /** * Initialize a new instance of the class SparkJobDefinitionOperations class. - * @param client - Reference to the service client + * @param client Reference to the service client */ - // eslint-disable-next-line @azure/azure-sdk/ts-use-interface-parameters constructor(client: ArtifactsClient) { this.client = client; } /** * Lists spark job definitions. - * @param options - The options parameters. + * @param options The options parameters. */ public listSparkJobDefinitionsByWorkspace( options?: SparkJobDefinitionGetSparkJobDefinitionsByWorkspaceOptionalParams, @@ -237,7 +74,10 @@ export class SparkJobDefinitionOperationsImpl implements SparkJobDefinitionOpera if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.getSparkJobDefinitionsByWorkspacePagingPage(options, settings); + return this.getSparkJobDefinitionsByWorkspacePagingPage( + options, + settings, + ); }, }; } @@ -256,7 +96,10 @@ export class SparkJobDefinitionOperationsImpl implements SparkJobDefinitionOpera yield page; } while (continuationToken) { - result = await this._getSparkJobDefinitionsByWorkspaceNext(continuationToken, options); + result = await this._getSparkJobDefinitionsByWorkspaceNext( + continuationToken, + options, + ); continuationToken = result.nextLink; const page = result.value || []; setContinuationToken(page, continuationToken); @@ -267,14 +110,16 @@ export class SparkJobDefinitionOperationsImpl implements SparkJobDefinitionOpera private async *getSparkJobDefinitionsByWorkspacePagingAll( options?: SparkJobDefinitionGetSparkJobDefinitionsByWorkspaceOptionalParams, ): AsyncIterableIterator { - for await (const page of this.getSparkJobDefinitionsByWorkspacePagingPage(options)) { + for await (const page of this.getSparkJobDefinitionsByWorkspacePagingPage( + options, + )) { yield* page; } } /** * Lists spark job definitions. - * @param options - The options parameters. + * @param options The options parameters. */ private async _getSparkJobDefinitionsByWorkspace( options?: SparkJobDefinitionGetSparkJobDefinitionsByWorkspaceOptionalParams, @@ -282,9 +127,9 @@ export class SparkJobDefinitionOperationsImpl implements SparkJobDefinitionOpera return tracingClient.withSpan( "ArtifactsClient._getSparkJobDefinitionsByWorkspace", options ?? {}, - async (updatedOptions) => { + async (options) => { return this.client.sendOperationRequest( - { updatedOptions }, + { options }, getSparkJobDefinitionsByWorkspaceOperationSpec, ) as Promise; }, @@ -293,9 +138,9 @@ export class SparkJobDefinitionOperationsImpl implements SparkJobDefinitionOpera /** * Creates or updates a Spark Job Definition. - * @param sparkJobDefinitionName - The spark job definition name. - * @param sparkJobDefinition - Spark Job Definition resource definition. - * @param options - The options parameters. + * @param sparkJobDefinitionName The spark job definition name. + * @param sparkJobDefinition Spark Job Definition resource definition. + * @param options The options parameters. */ async beginCreateOrUpdateSparkJobDefinition( sparkJobDefinitionName: string, @@ -325,15 +170,9 @@ export class SparkJobDefinitionOperationsImpl implements SparkJobDefinitionOpera const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, - ): Promise<{ - flatResponse: SparkJobDefinitionResource; - rawResponse: { - statusCode: number; - body: any; - headers: RawHttpHeaders; - }; - }> => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -378,9 +217,9 @@ export class SparkJobDefinitionOperationsImpl implements SparkJobDefinitionOpera /** * Creates or updates a Spark Job Definition. - * @param sparkJobDefinitionName - The spark job definition name. - * @param sparkJobDefinition - Spark Job Definition resource definition. - * @param options - The options parameters. + * @param sparkJobDefinitionName The spark job definition name. + * @param sparkJobDefinition Spark Job Definition resource definition. + * @param options The options parameters. */ async beginCreateOrUpdateSparkJobDefinitionAndWait( sparkJobDefinitionName: string, @@ -397,8 +236,8 @@ export class SparkJobDefinitionOperationsImpl implements SparkJobDefinitionOpera /** * Gets a Spark Job Definition. - * @param sparkJobDefinitionName - The spark job definition name. - * @param options - The options parameters. + * @param sparkJobDefinitionName The spark job definition name. + * @param options The options parameters. */ async getSparkJobDefinition( sparkJobDefinitionName: string, @@ -407,9 +246,9 @@ export class SparkJobDefinitionOperationsImpl implements SparkJobDefinitionOpera return tracingClient.withSpan( "ArtifactsClient.getSparkJobDefinition", options ?? {}, - async (updatedOptions) => { + async (options) => { return this.client.sendOperationRequest( - { sparkJobDefinitionName, updatedOptions }, + { sparkJobDefinitionName, options }, getSparkJobDefinitionOperationSpec, ) as Promise; }, @@ -418,8 +257,8 @@ export class SparkJobDefinitionOperationsImpl implements SparkJobDefinitionOpera /** * Deletes a Spark Job Definition. - * @param sparkJobDefinitionName - The spark job definition name. - * @param options - The options parameters. + * @param sparkJobDefinitionName The spark job definition name. + * @param options The options parameters. */ async beginDeleteSparkJobDefinition( sparkJobDefinitionName: string, @@ -440,15 +279,9 @@ export class SparkJobDefinitionOperationsImpl implements SparkJobDefinitionOpera const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, - ): Promise<{ - flatResponse: void; - rawResponse: { - statusCode: number; - body: any; - headers: RawHttpHeaders; - }; - }> => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -490,21 +323,24 @@ export class SparkJobDefinitionOperationsImpl implements SparkJobDefinitionOpera /** * Deletes a Spark Job Definition. - * @param sparkJobDefinitionName - The spark job definition name. - * @param options - The options parameters. + * @param sparkJobDefinitionName The spark job definition name. + * @param options The options parameters. */ async beginDeleteSparkJobDefinitionAndWait( sparkJobDefinitionName: string, options?: SparkJobDefinitionDeleteSparkJobDefinitionOptionalParams, ): Promise { - const poller = await this.beginDeleteSparkJobDefinition(sparkJobDefinitionName, options); + const poller = await this.beginDeleteSparkJobDefinition( + sparkJobDefinitionName, + options, + ); return poller.pollUntilDone(); } /** * Executes the spark job definition. - * @param sparkJobDefinitionName - The spark job definition name. - * @param options - The options parameters. + * @param sparkJobDefinitionName The spark job definition name. + * @param options The options parameters. */ async beginExecuteSparkJobDefinition( sparkJobDefinitionName: string, @@ -533,15 +369,9 @@ export class SparkJobDefinitionOperationsImpl implements SparkJobDefinitionOpera const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, - ): Promise<{ - flatResponse: SparkBatchJob; - rawResponse: { - statusCode: number; - body: any; - headers: RawHttpHeaders; - }; - }> => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -587,22 +417,25 @@ export class SparkJobDefinitionOperationsImpl implements SparkJobDefinitionOpera /** * Executes the spark job definition. - * @param sparkJobDefinitionName - The spark job definition name. - * @param options - The options parameters. + * @param sparkJobDefinitionName The spark job definition name. + * @param options The options parameters. */ async beginExecuteSparkJobDefinitionAndWait( sparkJobDefinitionName: string, options?: SparkJobDefinitionExecuteSparkJobDefinitionOptionalParams, ): Promise { - const poller = await this.beginExecuteSparkJobDefinition(sparkJobDefinitionName, options); + const poller = await this.beginExecuteSparkJobDefinition( + sparkJobDefinitionName, + options, + ); return poller.pollUntilDone(); } /** * Renames a sparkJobDefinition. - * @param sparkJobDefinitionName - The spark job definition name. - * @param request - proposed new name. - * @param options - The options parameters. + * @param sparkJobDefinitionName The spark job definition name. + * @param request proposed new name. + * @param options The options parameters. */ async beginRenameSparkJobDefinition( sparkJobDefinitionName: string, @@ -624,15 +457,9 @@ export class SparkJobDefinitionOperationsImpl implements SparkJobDefinitionOpera const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, - ): Promise<{ - flatResponse: void; - rawResponse: { - statusCode: number; - body: any; - headers: RawHttpHeaders; - }; - }> => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -674,9 +501,9 @@ export class SparkJobDefinitionOperationsImpl implements SparkJobDefinitionOpera /** * Renames a sparkJobDefinition. - * @param sparkJobDefinitionName - The spark job definition name. - * @param request - proposed new name. - * @param options - The options parameters. + * @param sparkJobDefinitionName The spark job definition name. + * @param request proposed new name. + * @param options The options parameters. */ async beginRenameSparkJobDefinitionAndWait( sparkJobDefinitionName: string, @@ -693,8 +520,8 @@ export class SparkJobDefinitionOperationsImpl implements SparkJobDefinitionOpera /** * Debug the spark job definition. - * @param sparkJobDefinitionAzureResource - Spark Job Definition resource definition. - * @param options - The options parameters. + * @param sparkJobDefinitionAzureResource Spark Job Definition resource definition. + * @param options The options parameters. */ async beginDebugSparkJobDefinition( sparkJobDefinitionAzureResource: SparkJobDefinitionResource, @@ -723,15 +550,9 @@ export class SparkJobDefinitionOperationsImpl implements SparkJobDefinitionOpera const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, - ): Promise<{ - flatResponse: SparkBatchJob; - rawResponse: { - statusCode: number; - body: any; - headers: RawHttpHeaders; - }; - }> => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -777,8 +598,8 @@ export class SparkJobDefinitionOperationsImpl implements SparkJobDefinitionOpera /** * Debug the spark job definition. - * @param sparkJobDefinitionAzureResource - Spark Job Definition resource definition. - * @param options - The options parameters. + * @param sparkJobDefinitionAzureResource Spark Job Definition resource definition. + * @param options The options parameters. */ async beginDebugSparkJobDefinitionAndWait( sparkJobDefinitionAzureResource: SparkJobDefinitionResource, @@ -793,9 +614,9 @@ export class SparkJobDefinitionOperationsImpl implements SparkJobDefinitionOpera /** * GetSparkJobDefinitionsByWorkspaceNext - * @param nextLink - The nextLink from the previous successful call to the + * @param nextLink The nextLink from the previous successful call to the * GetSparkJobDefinitionsByWorkspace method. - * @param options - The options parameters. + * @param options The options parameters. */ private async _getSparkJobDefinitionsByWorkspaceNext( nextLink: string, @@ -804,12 +625,185 @@ export class SparkJobDefinitionOperationsImpl implements SparkJobDefinitionOpera return tracingClient.withSpan( "ArtifactsClient._getSparkJobDefinitionsByWorkspaceNext", options ?? {}, - async (updatedOptions) => { + async (options) => { return this.client.sendOperationRequest( - { nextLink, updatedOptions }, + { nextLink, options }, getSparkJobDefinitionsByWorkspaceNextOperationSpec, ) as Promise; }, ); } } +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getSparkJobDefinitionsByWorkspaceOperationSpec: coreClient.OperationSpec = + { + path: "/sparkJobDefinitions", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SparkJobDefinitionsListResponse, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [Parameters.endpoint], + headerParameters: [Parameters.accept], + serializer, + }; +const createOrUpdateSparkJobDefinitionOperationSpec: coreClient.OperationSpec = + { + path: "/sparkJobDefinitions/{sparkJobDefinitionName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.SparkJobDefinitionResource, + }, + 201: { + bodyMapper: Mappers.SparkJobDefinitionResource, + }, + 202: { + bodyMapper: Mappers.SparkJobDefinitionResource, + }, + 204: { + bodyMapper: Mappers.SparkJobDefinitionResource, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + requestBody: Parameters.sparkJobDefinition, + queryParameters: [Parameters.apiVersion5], + urlParameters: [Parameters.endpoint, Parameters.sparkJobDefinitionName], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + ], + mediaType: "json", + serializer, + }; +const getSparkJobDefinitionOperationSpec: coreClient.OperationSpec = { + path: "/sparkJobDefinitions/{sparkJobDefinitionName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SparkJobDefinitionResource, + }, + 304: {}, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [Parameters.endpoint, Parameters.sparkJobDefinitionName], + headerParameters: [Parameters.accept, Parameters.ifNoneMatch], + serializer, +}; +const deleteSparkJobDefinitionOperationSpec: coreClient.OperationSpec = { + path: "/sparkJobDefinitions/{sparkJobDefinitionName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [Parameters.endpoint, Parameters.sparkJobDefinitionName], + headerParameters: [Parameters.accept], + serializer, +}; +const executeSparkJobDefinitionOperationSpec: coreClient.OperationSpec = { + path: "/sparkJobDefinitions/{sparkJobDefinitionName}/execute", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.SparkBatchJob, + }, + 201: { + bodyMapper: Mappers.SparkBatchJob, + }, + 202: { + bodyMapper: Mappers.SparkBatchJob, + }, + 204: { + bodyMapper: Mappers.SparkBatchJob, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [Parameters.endpoint, Parameters.sparkJobDefinitionName], + headerParameters: [Parameters.accept], + serializer, +}; +const renameSparkJobDefinitionOperationSpec: coreClient.OperationSpec = { + path: "/sparkJobDefinitions/{sparkJobDefinitionName}/rename", + httpMethod: "POST", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + requestBody: Parameters.request, + queryParameters: [Parameters.apiVersion5], + urlParameters: [Parameters.endpoint, Parameters.sparkJobDefinitionName], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const debugSparkJobDefinitionOperationSpec: coreClient.OperationSpec = { + path: "/debugSparkJobDefinition", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.SparkBatchJob, + }, + 201: { + bodyMapper: Mappers.SparkBatchJob, + }, + 202: { + bodyMapper: Mappers.SparkBatchJob, + }, + 204: { + bodyMapper: Mappers.SparkBatchJob, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + requestBody: Parameters.sparkJobDefinitionAzureResource, + queryParameters: [Parameters.apiVersion5], + urlParameters: [Parameters.endpoint], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const getSparkJobDefinitionsByWorkspaceNextOperationSpec: coreClient.OperationSpec = + { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SparkJobDefinitionsListResponse, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + urlParameters: [Parameters.endpoint, Parameters.nextLink], + headerParameters: [Parameters.accept], + serializer, + }; diff --git a/sdk/synapse/synapse-artifacts/src/operations/sqlPools.ts b/sdk/synapse/synapse-artifacts/src/operations/sqlPools.ts index 6aa905a3f250..39bcc6fb6f96 100644 --- a/sdk/synapse/synapse-artifacts/src/operations/sqlPools.ts +++ b/sdk/synapse/synapse-artifacts/src/operations/sqlPools.ts @@ -19,6 +19,58 @@ import type { SqlPoolsGetResponse, } from "../models/index.js"; +/** Class containing SqlPools operations. */ +export class SqlPoolsImpl implements SqlPools { + private readonly client: ArtifactsClient; + + /** + * Initialize a new instance of the class SqlPools class. + * @param client Reference to the service client + */ + constructor(client: ArtifactsClient) { + this.client = client; + } + + /** + * List Sql Pools + * @param options The options parameters. + */ + async list( + options?: SqlPoolsListOptionalParams, + ): Promise { + return tracingClient.withSpan( + "ArtifactsClient.list", + options ?? {}, + async (options) => { + return this.client.sendOperationRequest( + { options }, + listOperationSpec, + ) as Promise; + }, + ); + } + + /** + * Get Sql Pool + * @param sqlPoolName The Sql Pool name + * @param options The options parameters. + */ + async get( + sqlPoolName: string, + options?: SqlPoolsGetOptionalParams, + ): Promise { + return tracingClient.withSpan( + "ArtifactsClient.get", + options ?? {}, + async (options) => { + return this.client.sendOperationRequest( + { sqlPoolName, options }, + getOperationSpec, + ) as Promise; + }, + ); + } +} // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); @@ -54,47 +106,3 @@ const getOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer, }; - -/** Class containing SqlPools operations. */ -export class SqlPoolsImpl implements SqlPools { - private readonly client: ArtifactsClient; - - /** - * Initialize a new instance of the class SqlPools class. - * @param client - Reference to the service client - */ - // eslint-disable-next-line @azure/azure-sdk/ts-use-interface-parameters - constructor(client: ArtifactsClient) { - this.client = client; - } - - /** - * List Sql Pools - * @param options - The options parameters. - */ - async list(options?: SqlPoolsListOptionalParams): Promise { - return tracingClient.withSpan("ArtifactsClient.list", options ?? {}, async (updatedOptions) => { - return this.client.sendOperationRequest( - { updatedOptions }, - listOperationSpec, - ) as Promise; - }); - } - - /** - * Get Sql Pool - * @param sqlPoolName - The Sql Pool name - * @param options - The options parameters. - */ - async get( - sqlPoolName: string, - options?: SqlPoolsGetOptionalParams, - ): Promise { - return tracingClient.withSpan("ArtifactsClient.get", options ?? {}, async (updatedOptions) => { - return this.client.sendOperationRequest( - { sqlPoolName, updatedOptions }, - getOperationSpec, - ) as Promise; - }); - } -} diff --git a/sdk/synapse/synapse-artifacts/src/operations/sqlScriptOperations.ts b/sdk/synapse/synapse-artifacts/src/operations/sqlScriptOperations.ts index d250ec874f8a..2d470fcc003d 100644 --- a/sdk/synapse/synapse-artifacts/src/operations/sqlScriptOperations.ts +++ b/sdk/synapse/synapse-artifacts/src/operations/sqlScriptOperations.ts @@ -14,8 +14,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers.js"; import * as Parameters from "../models/parameters.js"; import type { ArtifactsClient } from "../artifactsClient.js"; -import type { SimplePollerLike, OperationState } from "@azure/core-lro"; -import { createHttpPoller } from "@azure/core-lro"; +import type { + SimplePollerLike, + OperationState} from "@azure/core-lro"; +import { + createHttpPoller, +} from "@azure/core-lro"; import { createLroSpec } from "../lroImpl.js"; import type { SqlScriptResource, @@ -31,139 +35,23 @@ import type { SqlScriptRenameSqlScriptOptionalParams, SqlScriptGetSqlScriptsByWorkspaceNextResponse, } from "../models/index.js"; -import type { RawHttpHeaders } from "@azure/core-rest-pipeline"; - -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const getSqlScriptsByWorkspaceOperationSpec: coreClient.OperationSpec = { - path: "/sqlScripts", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.SqlScriptsListResponse, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion5], - urlParameters: [Parameters.endpoint], - headerParameters: [Parameters.accept], - serializer, -}; -const createOrUpdateSqlScriptOperationSpec: coreClient.OperationSpec = { - path: "/sqlScripts/{sqlScriptName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.SqlScriptResource, - }, - 201: { - bodyMapper: Mappers.SqlScriptResource, - }, - 202: { - bodyMapper: Mappers.SqlScriptResource, - }, - 204: { - bodyMapper: Mappers.SqlScriptResource, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - requestBody: Parameters.sqlScript, - queryParameters: [Parameters.apiVersion5], - urlParameters: [Parameters.endpoint, Parameters.sqlScriptName], - headerParameters: [Parameters.accept, Parameters.contentType, Parameters.ifMatch], - mediaType: "json", - serializer, -}; -const getSqlScriptOperationSpec: coreClient.OperationSpec = { - path: "/sqlScripts/{sqlScriptName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.SqlScriptResource, - }, - 304: {}, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion5], - urlParameters: [Parameters.endpoint, Parameters.sqlScriptName], - headerParameters: [Parameters.accept, Parameters.ifNoneMatch], - serializer, -}; -const deleteSqlScriptOperationSpec: coreClient.OperationSpec = { - path: "/sqlScripts/{sqlScriptName}", - httpMethod: "DELETE", - responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion5], - urlParameters: [Parameters.endpoint, Parameters.sqlScriptName], - headerParameters: [Parameters.accept], - serializer, -}; -const renameSqlScriptOperationSpec: coreClient.OperationSpec = { - path: "/sqlScripts/{sqlScriptName}/rename", - httpMethod: "POST", - responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - requestBody: Parameters.request, - queryParameters: [Parameters.apiVersion5], - urlParameters: [Parameters.endpoint, Parameters.sqlScriptName], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const getSqlScriptsByWorkspaceNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.SqlScriptsListResponse, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - urlParameters: [Parameters.endpoint, Parameters.nextLink], - headerParameters: [Parameters.accept], - serializer, -}; +/// /** Class containing SqlScriptOperations operations. */ export class SqlScriptOperationsImpl implements SqlScriptOperations { private readonly client: ArtifactsClient; /** * Initialize a new instance of the class SqlScriptOperations class. - * @param client - Reference to the service client + * @param client Reference to the service client */ - // eslint-disable-next-line @azure/azure-sdk/ts-use-interface-parameters constructor(client: ArtifactsClient) { this.client = client; } /** * Lists sql scripts. - * @param options - The options parameters. + * @param options The options parameters. */ public listSqlScriptsByWorkspace( options?: SqlScriptGetSqlScriptsByWorkspaceOptionalParams, @@ -199,7 +87,10 @@ export class SqlScriptOperationsImpl implements SqlScriptOperations { yield page; } while (continuationToken) { - result = await this._getSqlScriptsByWorkspaceNext(continuationToken, options); + result = await this._getSqlScriptsByWorkspaceNext( + continuationToken, + options, + ); continuationToken = result.nextLink; const page = result.value || []; setContinuationToken(page, continuationToken); @@ -217,7 +108,7 @@ export class SqlScriptOperationsImpl implements SqlScriptOperations { /** * Lists sql scripts. - * @param options - The options parameters. + * @param options The options parameters. */ private async _getSqlScriptsByWorkspace( options?: SqlScriptGetSqlScriptsByWorkspaceOptionalParams, @@ -225,9 +116,9 @@ export class SqlScriptOperationsImpl implements SqlScriptOperations { return tracingClient.withSpan( "ArtifactsClient._getSqlScriptsByWorkspace", options ?? {}, - async (updatedOptions) => { + async (options) => { return this.client.sendOperationRequest( - { updatedOptions }, + { options }, getSqlScriptsByWorkspaceOperationSpec, ) as Promise; }, @@ -236,9 +127,9 @@ export class SqlScriptOperationsImpl implements SqlScriptOperations { /** * Creates or updates a Sql Script. - * @param sqlScriptName - The sql script name. - * @param sqlScript - Sql Script resource definition. - * @param options - The options parameters. + * @param sqlScriptName The sql script name. + * @param sqlScript Sql Script resource definition. + * @param options The options parameters. */ async beginCreateOrUpdateSqlScript( sqlScriptName: string, @@ -268,15 +159,9 @@ export class SqlScriptOperationsImpl implements SqlScriptOperations { const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, - ): Promise<{ - flatResponse: SqlScriptResource; - rawResponse: { - statusCode: number; - body: any; - headers: RawHttpHeaders; - }; - }> => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -321,23 +206,27 @@ export class SqlScriptOperationsImpl implements SqlScriptOperations { /** * Creates or updates a Sql Script. - * @param sqlScriptName - The sql script name. - * @param sqlScript - Sql Script resource definition. - * @param options - The options parameters. + * @param sqlScriptName The sql script name. + * @param sqlScript Sql Script resource definition. + * @param options The options parameters. */ async beginCreateOrUpdateSqlScriptAndWait( sqlScriptName: string, sqlScript: SqlScriptResource, options?: SqlScriptCreateOrUpdateSqlScriptOptionalParams, ): Promise { - const poller = await this.beginCreateOrUpdateSqlScript(sqlScriptName, sqlScript, options); + const poller = await this.beginCreateOrUpdateSqlScript( + sqlScriptName, + sqlScript, + options, + ); return poller.pollUntilDone(); } /** * Gets a sql script. - * @param sqlScriptName - The sql script name. - * @param options - The options parameters. + * @param sqlScriptName The sql script name. + * @param options The options parameters. */ async getSqlScript( sqlScriptName: string, @@ -346,9 +235,9 @@ export class SqlScriptOperationsImpl implements SqlScriptOperations { return tracingClient.withSpan( "ArtifactsClient.getSqlScript", options ?? {}, - async (updatedOptions) => { + async (options) => { return this.client.sendOperationRequest( - { sqlScriptName, updatedOptions }, + { sqlScriptName, options }, getSqlScriptOperationSpec, ) as Promise; }, @@ -357,8 +246,8 @@ export class SqlScriptOperationsImpl implements SqlScriptOperations { /** * Deletes a Sql Script. - * @param sqlScriptName - The sql script name. - * @param options - The options parameters. + * @param sqlScriptName The sql script name. + * @param options The options parameters. */ async beginDeleteSqlScript( sqlScriptName: string, @@ -379,15 +268,9 @@ export class SqlScriptOperationsImpl implements SqlScriptOperations { const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, - ): Promise<{ - flatResponse: void; - rawResponse: { - statusCode: number; - body: any; - headers: RawHttpHeaders; - }; - }> => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -429,8 +312,8 @@ export class SqlScriptOperationsImpl implements SqlScriptOperations { /** * Deletes a Sql Script. - * @param sqlScriptName - The sql script name. - * @param options - The options parameters. + * @param sqlScriptName The sql script name. + * @param options The options parameters. */ async beginDeleteSqlScriptAndWait( sqlScriptName: string, @@ -442,9 +325,9 @@ export class SqlScriptOperationsImpl implements SqlScriptOperations { /** * Renames a sqlScript. - * @param sqlScriptName - The sql script name. - * @param request - proposed new name. - * @param options - The options parameters. + * @param sqlScriptName The sql script name. + * @param request proposed new name. + * @param options The options parameters. */ async beginRenameSqlScript( sqlScriptName: string, @@ -466,15 +349,9 @@ export class SqlScriptOperationsImpl implements SqlScriptOperations { const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, - ): Promise<{ - flatResponse: void; - rawResponse: { - statusCode: number; - body: any; - headers: RawHttpHeaders; - }; - }> => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -516,24 +393,28 @@ export class SqlScriptOperationsImpl implements SqlScriptOperations { /** * Renames a sqlScript. - * @param sqlScriptName - The sql script name. - * @param request - proposed new name. - * @param options - The options parameters. + * @param sqlScriptName The sql script name. + * @param request proposed new name. + * @param options The options parameters. */ async beginRenameSqlScriptAndWait( sqlScriptName: string, request: ArtifactRenameRequest, options?: SqlScriptRenameSqlScriptOptionalParams, ): Promise { - const poller = await this.beginRenameSqlScript(sqlScriptName, request, options); + const poller = await this.beginRenameSqlScript( + sqlScriptName, + request, + options, + ); return poller.pollUntilDone(); } /** * GetSqlScriptsByWorkspaceNext - * @param nextLink - The nextLink from the previous successful call to the GetSqlScriptsByWorkspace + * @param nextLink The nextLink from the previous successful call to the GetSqlScriptsByWorkspace * method. - * @param options - The options parameters. + * @param options The options parameters. */ private async _getSqlScriptsByWorkspaceNext( nextLink: string, @@ -542,12 +423,130 @@ export class SqlScriptOperationsImpl implements SqlScriptOperations { return tracingClient.withSpan( "ArtifactsClient._getSqlScriptsByWorkspaceNext", options ?? {}, - async (updatedOptions) => { + async (options) => { return this.client.sendOperationRequest( - { nextLink, updatedOptions }, + { nextLink, options }, getSqlScriptsByWorkspaceNextOperationSpec, ) as Promise; }, ); } } +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getSqlScriptsByWorkspaceOperationSpec: coreClient.OperationSpec = { + path: "/sqlScripts", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SqlScriptsListResponse, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [Parameters.endpoint], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateSqlScriptOperationSpec: coreClient.OperationSpec = { + path: "/sqlScripts/{sqlScriptName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.SqlScriptResource, + }, + 201: { + bodyMapper: Mappers.SqlScriptResource, + }, + 202: { + bodyMapper: Mappers.SqlScriptResource, + }, + 204: { + bodyMapper: Mappers.SqlScriptResource, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + requestBody: Parameters.sqlScript, + queryParameters: [Parameters.apiVersion5], + urlParameters: [Parameters.endpoint, Parameters.sqlScriptName], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + ], + mediaType: "json", + serializer, +}; +const getSqlScriptOperationSpec: coreClient.OperationSpec = { + path: "/sqlScripts/{sqlScriptName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SqlScriptResource, + }, + 304: {}, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [Parameters.endpoint, Parameters.sqlScriptName], + headerParameters: [Parameters.accept, Parameters.ifNoneMatch], + serializer, +}; +const deleteSqlScriptOperationSpec: coreClient.OperationSpec = { + path: "/sqlScripts/{sqlScriptName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [Parameters.endpoint, Parameters.sqlScriptName], + headerParameters: [Parameters.accept], + serializer, +}; +const renameSqlScriptOperationSpec: coreClient.OperationSpec = { + path: "/sqlScripts/{sqlScriptName}/rename", + httpMethod: "POST", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + requestBody: Parameters.request, + queryParameters: [Parameters.apiVersion5], + urlParameters: [Parameters.endpoint, Parameters.sqlScriptName], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const getSqlScriptsByWorkspaceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SqlScriptsListResponse, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + urlParameters: [Parameters.endpoint, Parameters.nextLink], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/synapse/synapse-artifacts/src/operations/triggerOperations.ts b/sdk/synapse/synapse-artifacts/src/operations/triggerOperations.ts index b8f2d96b7678..96094f425e14 100644 --- a/sdk/synapse/synapse-artifacts/src/operations/triggerOperations.ts +++ b/sdk/synapse/synapse-artifacts/src/operations/triggerOperations.ts @@ -14,8 +14,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers.js"; import * as Parameters from "../models/parameters.js"; import type { ArtifactsClient } from "../artifactsClient.js"; -import type { SimplePollerLike, OperationState } from "@azure/core-lro"; -import { createHttpPoller } from "@azure/core-lro"; +import type { + SimplePollerLike, + OperationState} from "@azure/core-lro"; +import { + createHttpPoller, +} from "@azure/core-lro"; import { createLroSpec } from "../lroImpl.js"; import type { TriggerResource, @@ -37,220 +41,23 @@ import type { TriggerStopTriggerOptionalParams, TriggerGetTriggersByWorkspaceNextResponse, } from "../models/index.js"; -import type { RawHttpHeaders } from "@azure/core-rest-pipeline"; - -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const getTriggersByWorkspaceOperationSpec: coreClient.OperationSpec = { - path: "/triggers", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.TriggerListResponse, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion5], - urlParameters: [Parameters.endpoint], - headerParameters: [Parameters.accept], - serializer, -}; -const createOrUpdateTriggerOperationSpec: coreClient.OperationSpec = { - path: "/triggers/{triggerName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.TriggerResource, - }, - 201: { - bodyMapper: Mappers.TriggerResource, - }, - 202: { - bodyMapper: Mappers.TriggerResource, - }, - 204: { - bodyMapper: Mappers.TriggerResource, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - requestBody: Parameters.trigger, - queryParameters: [Parameters.apiVersion5], - urlParameters: [Parameters.endpoint, Parameters.triggerName], - headerParameters: [Parameters.accept, Parameters.contentType, Parameters.ifMatch], - mediaType: "json", - serializer, -}; -const getTriggerOperationSpec: coreClient.OperationSpec = { - path: "/triggers/{triggerName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.TriggerResource, - }, - 304: {}, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion5], - urlParameters: [Parameters.endpoint, Parameters.triggerName], - headerParameters: [Parameters.accept, Parameters.ifNoneMatch], - serializer, -}; -const deleteTriggerOperationSpec: coreClient.OperationSpec = { - path: "/triggers/{triggerName}", - httpMethod: "DELETE", - responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion5], - urlParameters: [Parameters.endpoint, Parameters.triggerName], - headerParameters: [Parameters.accept], - serializer, -}; -const subscribeTriggerToEventsOperationSpec: coreClient.OperationSpec = { - path: "/triggers/{triggerName}/subscribeToEvents", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.TriggerSubscriptionOperationStatus, - }, - 201: { - bodyMapper: Mappers.TriggerSubscriptionOperationStatus, - }, - 202: { - bodyMapper: Mappers.TriggerSubscriptionOperationStatus, - }, - 204: { - bodyMapper: Mappers.TriggerSubscriptionOperationStatus, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion5], - urlParameters: [Parameters.endpoint, Parameters.triggerName], - headerParameters: [Parameters.accept], - serializer, -}; -const getEventSubscriptionStatusOperationSpec: coreClient.OperationSpec = { - path: "/triggers/{triggerName}/getEventSubscriptionStatus", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.TriggerSubscriptionOperationStatus, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion5], - urlParameters: [Parameters.endpoint, Parameters.triggerName], - headerParameters: [Parameters.accept], - serializer, -}; -const unsubscribeTriggerFromEventsOperationSpec: coreClient.OperationSpec = { - path: "/triggers/{triggerName}/unsubscribeFromEvents", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.TriggerSubscriptionOperationStatus, - }, - 201: { - bodyMapper: Mappers.TriggerSubscriptionOperationStatus, - }, - 202: { - bodyMapper: Mappers.TriggerSubscriptionOperationStatus, - }, - 204: { - bodyMapper: Mappers.TriggerSubscriptionOperationStatus, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion5], - urlParameters: [Parameters.endpoint, Parameters.triggerName], - headerParameters: [Parameters.accept], - serializer, -}; -const startTriggerOperationSpec: coreClient.OperationSpec = { - path: "/triggers/{triggerName}/start", - httpMethod: "POST", - responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion5], - urlParameters: [Parameters.endpoint, Parameters.triggerName], - headerParameters: [Parameters.accept], - serializer, -}; -const stopTriggerOperationSpec: coreClient.OperationSpec = { - path: "/triggers/{triggerName}/stop", - httpMethod: "POST", - responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion5], - urlParameters: [Parameters.endpoint, Parameters.triggerName], - headerParameters: [Parameters.accept], - serializer, -}; -const getTriggersByWorkspaceNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.TriggerListResponse, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - urlParameters: [Parameters.endpoint, Parameters.nextLink], - headerParameters: [Parameters.accept], - serializer, -}; +/// /** Class containing TriggerOperations operations. */ export class TriggerOperationsImpl implements TriggerOperations { private readonly client: ArtifactsClient; /** * Initialize a new instance of the class TriggerOperations class. - * @param client - Reference to the service client + * @param client Reference to the service client */ - // eslint-disable-next-line @azure/azure-sdk/ts-use-interface-parameters constructor(client: ArtifactsClient) { this.client = client; } /** * Lists triggers. - * @param options - The options parameters. + * @param options The options parameters. */ public listTriggersByWorkspace( options?: TriggerGetTriggersByWorkspaceOptionalParams, @@ -286,7 +93,10 @@ export class TriggerOperationsImpl implements TriggerOperations { yield page; } while (continuationToken) { - result = await this._getTriggersByWorkspaceNext(continuationToken, options); + result = await this._getTriggersByWorkspaceNext( + continuationToken, + options, + ); continuationToken = result.nextLink; const page = result.value || []; setContinuationToken(page, continuationToken); @@ -304,7 +114,7 @@ export class TriggerOperationsImpl implements TriggerOperations { /** * Lists triggers. - * @param options - The options parameters. + * @param options The options parameters. */ private async _getTriggersByWorkspace( options?: TriggerGetTriggersByWorkspaceOptionalParams, @@ -312,9 +122,9 @@ export class TriggerOperationsImpl implements TriggerOperations { return tracingClient.withSpan( "ArtifactsClient._getTriggersByWorkspace", options ?? {}, - async (updatedOptions) => { + async (options) => { return this.client.sendOperationRequest( - { updatedOptions }, + { options }, getTriggersByWorkspaceOperationSpec, ) as Promise; }, @@ -323,9 +133,9 @@ export class TriggerOperationsImpl implements TriggerOperations { /** * Creates or updates a trigger. - * @param triggerName - The trigger name. - * @param trigger - Trigger resource definition. - * @param options - The options parameters. + * @param triggerName The trigger name. + * @param trigger Trigger resource definition. + * @param options The options parameters. */ async beginCreateOrUpdateTrigger( triggerName: string, @@ -355,15 +165,9 @@ export class TriggerOperationsImpl implements TriggerOperations { const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, - ): Promise<{ - flatResponse: TriggerResource; - rawResponse: { - statusCode: number; - body: any; - headers: RawHttpHeaders; - }; - }> => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -408,23 +212,27 @@ export class TriggerOperationsImpl implements TriggerOperations { /** * Creates or updates a trigger. - * @param triggerName - The trigger name. - * @param trigger - Trigger resource definition. - * @param options - The options parameters. + * @param triggerName The trigger name. + * @param trigger Trigger resource definition. + * @param options The options parameters. */ async beginCreateOrUpdateTriggerAndWait( triggerName: string, trigger: TriggerResource, options?: TriggerCreateOrUpdateTriggerOptionalParams, ): Promise { - const poller = await this.beginCreateOrUpdateTrigger(triggerName, trigger, options); + const poller = await this.beginCreateOrUpdateTrigger( + triggerName, + trigger, + options, + ); return poller.pollUntilDone(); } /** * Gets a trigger. - * @param triggerName - The trigger name. - * @param options - The options parameters. + * @param triggerName The trigger name. + * @param options The options parameters. */ async getTrigger( triggerName: string, @@ -433,9 +241,9 @@ export class TriggerOperationsImpl implements TriggerOperations { return tracingClient.withSpan( "ArtifactsClient.getTrigger", options ?? {}, - async (updatedOptions) => { + async (options) => { return this.client.sendOperationRequest( - { triggerName, updatedOptions }, + { triggerName, options }, getTriggerOperationSpec, ) as Promise; }, @@ -444,8 +252,8 @@ export class TriggerOperationsImpl implements TriggerOperations { /** * Deletes a trigger. - * @param triggerName - The trigger name. - * @param options - The options parameters. + * @param triggerName The trigger name. + * @param options The options parameters. */ async beginDeleteTrigger( triggerName: string, @@ -466,15 +274,9 @@ export class TriggerOperationsImpl implements TriggerOperations { const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, - ): Promise<{ - flatResponse: void; - rawResponse: { - statusCode: number; - body: any; - headers: RawHttpHeaders; - }; - }> => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -516,8 +318,8 @@ export class TriggerOperationsImpl implements TriggerOperations { /** * Deletes a trigger. - * @param triggerName - The trigger name. - * @param options - The options parameters. + * @param triggerName The trigger name. + * @param options The options parameters. */ async beginDeleteTriggerAndWait( triggerName: string, @@ -529,8 +331,8 @@ export class TriggerOperationsImpl implements TriggerOperations { /** * Subscribe event trigger to events. - * @param triggerName - The trigger name. - * @param options - The options parameters. + * @param triggerName The trigger name. + * @param options The options parameters. */ async beginSubscribeTriggerToEvents( triggerName: string, @@ -560,7 +362,8 @@ export class TriggerOperationsImpl implements TriggerOperations { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -605,21 +408,24 @@ export class TriggerOperationsImpl implements TriggerOperations { /** * Subscribe event trigger to events. - * @param triggerName - The trigger name. - * @param options - The options parameters. + * @param triggerName The trigger name. + * @param options The options parameters. */ async beginSubscribeTriggerToEventsAndWait( triggerName: string, options?: TriggerSubscribeTriggerToEventsOptionalParams, ): Promise { - const poller = await this.beginSubscribeTriggerToEvents(triggerName, options); + const poller = await this.beginSubscribeTriggerToEvents( + triggerName, + options, + ); return poller.pollUntilDone(); } /** * Get a trigger's event subscription status. - * @param triggerName - The trigger name. - * @param options - The options parameters. + * @param triggerName The trigger name. + * @param options The options parameters. */ async getEventSubscriptionStatus( triggerName: string, @@ -628,9 +434,9 @@ export class TriggerOperationsImpl implements TriggerOperations { return tracingClient.withSpan( "ArtifactsClient.getEventSubscriptionStatus", options ?? {}, - async (updatedOptions) => { + async (options) => { return this.client.sendOperationRequest( - { triggerName, updatedOptions }, + { triggerName, options }, getEventSubscriptionStatusOperationSpec, ) as Promise; }, @@ -639,8 +445,8 @@ export class TriggerOperationsImpl implements TriggerOperations { /** * Unsubscribe event trigger from events. - * @param triggerName - The trigger name. - * @param options - The options parameters. + * @param triggerName The trigger name. + * @param options The options parameters. */ async beginUnsubscribeTriggerFromEvents( triggerName: string, @@ -670,7 +476,8 @@ export class TriggerOperationsImpl implements TriggerOperations { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -715,21 +522,24 @@ export class TriggerOperationsImpl implements TriggerOperations { /** * Unsubscribe event trigger from events. - * @param triggerName - The trigger name. - * @param options - The options parameters. + * @param triggerName The trigger name. + * @param options The options parameters. */ async beginUnsubscribeTriggerFromEventsAndWait( triggerName: string, options?: TriggerUnsubscribeTriggerFromEventsOptionalParams, ): Promise { - const poller = await this.beginUnsubscribeTriggerFromEvents(triggerName, options); + const poller = await this.beginUnsubscribeTriggerFromEvents( + triggerName, + options, + ); return poller.pollUntilDone(); } /** * Starts a trigger. - * @param triggerName - The trigger name. - * @param options - The options parameters. + * @param triggerName The trigger name. + * @param options The options parameters. */ async beginStartTrigger( triggerName: string, @@ -750,15 +560,9 @@ export class TriggerOperationsImpl implements TriggerOperations { const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, - ): Promise<{ - flatResponse: void; - rawResponse: { - statusCode: number; - body: any; - headers: RawHttpHeaders; - }; - }> => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -800,8 +604,8 @@ export class TriggerOperationsImpl implements TriggerOperations { /** * Starts a trigger. - * @param triggerName - The trigger name. - * @param options - The options parameters. + * @param triggerName The trigger name. + * @param options The options parameters. */ async beginStartTriggerAndWait( triggerName: string, @@ -813,8 +617,8 @@ export class TriggerOperationsImpl implements TriggerOperations { /** * Stops a trigger. - * @param triggerName - The trigger name. - * @param options - The options parameters. + * @param triggerName The trigger name. + * @param options The options parameters. */ async beginStopTrigger( triggerName: string, @@ -824,22 +628,20 @@ export class TriggerOperationsImpl implements TriggerOperations { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ): Promise => { - return tracingClient.withSpan("ArtifactsClient.beginStopTrigger", options ?? {}, async () => { - return this.client.sendOperationRequest(args, spec) as Promise; - }); + return tracingClient.withSpan( + "ArtifactsClient.beginStopTrigger", + options ?? {}, + async () => { + return this.client.sendOperationRequest(args, spec) as Promise; + }, + ); }; const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, - ): Promise<{ - flatResponse: void; - rawResponse: { - statusCode: number; - body: any; - headers: RawHttpHeaders; - }; - }> => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -881,8 +683,8 @@ export class TriggerOperationsImpl implements TriggerOperations { /** * Stops a trigger. - * @param triggerName - The trigger name. - * @param options - The options parameters. + * @param triggerName The trigger name. + * @param options The options parameters. */ async beginStopTriggerAndWait( triggerName: string, @@ -894,8 +696,8 @@ export class TriggerOperationsImpl implements TriggerOperations { /** * GetTriggersByWorkspaceNext - * @param nextLink - The nextLink from the previous successful call to the GetTriggersByWorkspace method. - * @param options - The options parameters. + * @param nextLink The nextLink from the previous successful call to the GetTriggersByWorkspace method. + * @param options The options parameters. */ private async _getTriggersByWorkspaceNext( nextLink: string, @@ -904,12 +706,211 @@ export class TriggerOperationsImpl implements TriggerOperations { return tracingClient.withSpan( "ArtifactsClient._getTriggersByWorkspaceNext", options ?? {}, - async (updatedOptions) => { + async (options) => { return this.client.sendOperationRequest( - { nextLink, updatedOptions }, + { nextLink, options }, getTriggersByWorkspaceNextOperationSpec, ) as Promise; }, ); } } +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getTriggersByWorkspaceOperationSpec: coreClient.OperationSpec = { + path: "/triggers", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TriggerListResponse, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [Parameters.endpoint], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateTriggerOperationSpec: coreClient.OperationSpec = { + path: "/triggers/{triggerName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.TriggerResource, + }, + 201: { + bodyMapper: Mappers.TriggerResource, + }, + 202: { + bodyMapper: Mappers.TriggerResource, + }, + 204: { + bodyMapper: Mappers.TriggerResource, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + requestBody: Parameters.trigger, + queryParameters: [Parameters.apiVersion5], + urlParameters: [Parameters.endpoint, Parameters.triggerName], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + ], + mediaType: "json", + serializer, +}; +const getTriggerOperationSpec: coreClient.OperationSpec = { + path: "/triggers/{triggerName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TriggerResource, + }, + 304: {}, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [Parameters.endpoint, Parameters.triggerName], + headerParameters: [Parameters.accept, Parameters.ifNoneMatch], + serializer, +}; +const deleteTriggerOperationSpec: coreClient.OperationSpec = { + path: "/triggers/{triggerName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [Parameters.endpoint, Parameters.triggerName], + headerParameters: [Parameters.accept], + serializer, +}; +const subscribeTriggerToEventsOperationSpec: coreClient.OperationSpec = { + path: "/triggers/{triggerName}/subscribeToEvents", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.TriggerSubscriptionOperationStatus, + }, + 201: { + bodyMapper: Mappers.TriggerSubscriptionOperationStatus, + }, + 202: { + bodyMapper: Mappers.TriggerSubscriptionOperationStatus, + }, + 204: { + bodyMapper: Mappers.TriggerSubscriptionOperationStatus, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [Parameters.endpoint, Parameters.triggerName], + headerParameters: [Parameters.accept], + serializer, +}; +const getEventSubscriptionStatusOperationSpec: coreClient.OperationSpec = { + path: "/triggers/{triggerName}/getEventSubscriptionStatus", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.TriggerSubscriptionOperationStatus, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [Parameters.endpoint, Parameters.triggerName], + headerParameters: [Parameters.accept], + serializer, +}; +const unsubscribeTriggerFromEventsOperationSpec: coreClient.OperationSpec = { + path: "/triggers/{triggerName}/unsubscribeFromEvents", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.TriggerSubscriptionOperationStatus, + }, + 201: { + bodyMapper: Mappers.TriggerSubscriptionOperationStatus, + }, + 202: { + bodyMapper: Mappers.TriggerSubscriptionOperationStatus, + }, + 204: { + bodyMapper: Mappers.TriggerSubscriptionOperationStatus, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [Parameters.endpoint, Parameters.triggerName], + headerParameters: [Parameters.accept], + serializer, +}; +const startTriggerOperationSpec: coreClient.OperationSpec = { + path: "/triggers/{triggerName}/start", + httpMethod: "POST", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [Parameters.endpoint, Parameters.triggerName], + headerParameters: [Parameters.accept], + serializer, +}; +const stopTriggerOperationSpec: coreClient.OperationSpec = { + path: "/triggers/{triggerName}/stop", + httpMethod: "POST", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [Parameters.endpoint, Parameters.triggerName], + headerParameters: [Parameters.accept], + serializer, +}; +const getTriggersByWorkspaceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TriggerListResponse, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + urlParameters: [Parameters.endpoint, Parameters.nextLink], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/synapse/synapse-artifacts/src/operations/triggerRunOperations.ts b/sdk/synapse/synapse-artifacts/src/operations/triggerRunOperations.ts index 07722b273324..f321cece1d84 100644 --- a/sdk/synapse/synapse-artifacts/src/operations/triggerRunOperations.ts +++ b/sdk/synapse/synapse-artifacts/src/operations/triggerRunOperations.ts @@ -20,74 +20,23 @@ import type { TriggerRunQueryTriggerRunsByWorkspaceResponse, } from "../models/index.js"; -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const rerunTriggerInstanceOperationSpec: coreClient.OperationSpec = { - path: "/triggers/{triggerName}/triggerRuns/{runId}/rerun", - httpMethod: "POST", - responses: { - 200: {}, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion5], - urlParameters: [Parameters.endpoint, Parameters.runId1, Parameters.triggerName], - headerParameters: [Parameters.accept], - serializer, -}; -const cancelTriggerInstanceOperationSpec: coreClient.OperationSpec = { - path: "/triggers/{triggerName}/triggerRuns/{runId}/cancel", - httpMethod: "POST", - responses: { - 200: {}, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion5], - urlParameters: [Parameters.endpoint, Parameters.runId1, Parameters.triggerName], - headerParameters: [Parameters.accept], - serializer, -}; -const queryTriggerRunsByWorkspaceOperationSpec: coreClient.OperationSpec = { - path: "/queryTriggerRuns", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.TriggerRunsQueryResponse, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - requestBody: Parameters.filterParameters, - queryParameters: [Parameters.apiVersion5], - urlParameters: [Parameters.endpoint], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; - /** Class containing TriggerRunOperations operations. */ export class TriggerRunOperationsImpl implements TriggerRunOperations { private readonly client: ArtifactsClient; /** * Initialize a new instance of the class TriggerRunOperations class. - * @param client - Reference to the service client + * @param client Reference to the service client */ - // eslint-disable-next-line @azure/azure-sdk/ts-use-interface-parameters constructor(client: ArtifactsClient) { this.client = client; } /** * Rerun single trigger instance by runId. - * @param triggerName - The trigger name. - * @param runId - The pipeline run identifier. - * @param options - The options parameters. + * @param triggerName The trigger name. + * @param runId The pipeline run identifier. + * @param options The options parameters. */ async rerunTriggerInstance( triggerName: string, @@ -97,9 +46,9 @@ export class TriggerRunOperationsImpl implements TriggerRunOperations { return tracingClient.withSpan( "ArtifactsClient.rerunTriggerInstance", options ?? {}, - async (updatedOptions) => { + async (options) => { return this.client.sendOperationRequest( - { triggerName, runId, updatedOptions }, + { triggerName, runId, options }, rerunTriggerInstanceOperationSpec, ) as Promise; }, @@ -108,9 +57,9 @@ export class TriggerRunOperationsImpl implements TriggerRunOperations { /** * Cancel single trigger instance by runId. - * @param triggerName - The trigger name. - * @param runId - The pipeline run identifier. - * @param options - The options parameters. + * @param triggerName The trigger name. + * @param runId The pipeline run identifier. + * @param options The options parameters. */ async cancelTriggerInstance( triggerName: string, @@ -120,9 +69,9 @@ export class TriggerRunOperationsImpl implements TriggerRunOperations { return tracingClient.withSpan( "ArtifactsClient.cancelTriggerInstance", options ?? {}, - async (updatedOptions) => { + async (options) => { return this.client.sendOperationRequest( - { triggerName, runId, updatedOptions }, + { triggerName, runId, options }, cancelTriggerInstanceOperationSpec, ) as Promise; }, @@ -131,8 +80,8 @@ export class TriggerRunOperationsImpl implements TriggerRunOperations { /** * Query trigger runs. - * @param filterParameters - Parameters to filter the pipeline run. - * @param options - The options parameters. + * @param filterParameters Parameters to filter the pipeline run. + * @param options The options parameters. */ async queryTriggerRunsByWorkspace( filterParameters: RunFilterParameters, @@ -141,12 +90,69 @@ export class TriggerRunOperationsImpl implements TriggerRunOperations { return tracingClient.withSpan( "ArtifactsClient.queryTriggerRunsByWorkspace", options ?? {}, - async (updatedOptions) => { + async (options) => { return this.client.sendOperationRequest( - { filterParameters, updatedOptions }, + { filterParameters, options }, queryTriggerRunsByWorkspaceOperationSpec, ) as Promise; }, ); } } +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const rerunTriggerInstanceOperationSpec: coreClient.OperationSpec = { + path: "/triggers/{triggerName}/triggerRuns/{runId}/rerun", + httpMethod: "POST", + responses: { + 200: {}, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [ + Parameters.endpoint, + Parameters.runId1, + Parameters.triggerName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const cancelTriggerInstanceOperationSpec: coreClient.OperationSpec = { + path: "/triggers/{triggerName}/triggerRuns/{runId}/cancel", + httpMethod: "POST", + responses: { + 200: {}, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [ + Parameters.endpoint, + Parameters.runId1, + Parameters.triggerName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const queryTriggerRunsByWorkspaceOperationSpec: coreClient.OperationSpec = { + path: "/queryTriggerRuns", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.TriggerRunsQueryResponse, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + requestBody: Parameters.filterParameters, + queryParameters: [Parameters.apiVersion5], + urlParameters: [Parameters.endpoint], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; diff --git a/sdk/synapse/synapse-artifacts/src/operations/workspaceGitRepoManagement.ts b/sdk/synapse/synapse-artifacts/src/operations/workspaceGitRepoManagement.ts index 0bb6305de73c..3195875bde9c 100644 --- a/sdk/synapse/synapse-artifacts/src/operations/workspaceGitRepoManagement.ts +++ b/sdk/synapse/synapse-artifacts/src/operations/workspaceGitRepoManagement.ts @@ -18,42 +18,24 @@ import type { WorkspaceGitRepoManagementGetGitHubAccessTokenResponse, } from "../models/index.js"; -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const getGitHubAccessTokenOperationSpec: coreClient.OperationSpec = { - path: "/getGitHubAccessToken", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.GitHubAccessTokenResponse, - }, - }, - requestBody: Parameters.gitHubAccessTokenRequest, - queryParameters: [Parameters.apiVersion5], - urlParameters: [Parameters.endpoint], - headerParameters: [Parameters.accept, Parameters.contentType, Parameters.clientRequestId], - mediaType: "json", - serializer, -}; - /** Class containing WorkspaceGitRepoManagement operations. */ -export class WorkspaceGitRepoManagementImpl implements WorkspaceGitRepoManagement { +export class WorkspaceGitRepoManagementImpl + implements WorkspaceGitRepoManagement +{ private readonly client: ArtifactsClient; /** * Initialize a new instance of the class WorkspaceGitRepoManagement class. - * @param client - Reference to the service client + * @param client Reference to the service client */ - // eslint-disable-next-line @azure/azure-sdk/ts-use-interface-parameters constructor(client: ArtifactsClient) { this.client = client; } /** * Get the GitHub access token. - * @param gitHubAccessTokenRequest - The GitHub access token request - * @param options - The options parameters. + * @param gitHubAccessTokenRequest + * @param options The options parameters. */ async getGitHubAccessToken( gitHubAccessTokenRequest: GitHubAccessTokenRequest, @@ -62,12 +44,34 @@ export class WorkspaceGitRepoManagementImpl implements WorkspaceGitRepoManagemen return tracingClient.withSpan( "ArtifactsClient.getGitHubAccessToken", options ?? {}, - async (updatedOptions) => { + async (options) => { return this.client.sendOperationRequest( - { gitHubAccessTokenRequest, updatedOptions }, + { gitHubAccessTokenRequest, options }, getGitHubAccessTokenOperationSpec, ) as Promise; }, ); } } +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getGitHubAccessTokenOperationSpec: coreClient.OperationSpec = { + path: "/getGitHubAccessToken", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.GitHubAccessTokenResponse, + }, + }, + requestBody: Parameters.gitHubAccessTokenRequest, + queryParameters: [Parameters.apiVersion5], + urlParameters: [Parameters.endpoint], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.clientRequestId, + ], + mediaType: "json", + serializer, +}; diff --git a/sdk/synapse/synapse-artifacts/src/operations/workspaceOperations.ts b/sdk/synapse/synapse-artifacts/src/operations/workspaceOperations.ts index 472cfa8b6c96..6aeb7d77cc96 100644 --- a/sdk/synapse/synapse-artifacts/src/operations/workspaceOperations.ts +++ b/sdk/synapse/synapse-artifacts/src/operations/workspaceOperations.ts @@ -12,8 +12,42 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers.js"; import * as Parameters from "../models/parameters.js"; import type { ArtifactsClient } from "../artifactsClient.js"; -import type { WorkspaceGetOptionalParams, WorkspaceGetResponse } from "../models/index.js"; +import type { + WorkspaceGetOptionalParams, + WorkspaceGetResponse, +} from "../models/index.js"; +/** Class containing WorkspaceOperations operations. */ +export class WorkspaceOperationsImpl implements WorkspaceOperations { + private readonly client: ArtifactsClient; + + /** + * Initialize a new instance of the class WorkspaceOperations class. + * @param client Reference to the service client + */ + constructor(client: ArtifactsClient) { + this.client = client; + } + + /** + * Get Workspace + * @param options The options parameters. + */ + async get( + options?: WorkspaceGetOptionalParams, + ): Promise { + return tracingClient.withSpan( + "ArtifactsClient.get", + options ?? {}, + async (options) => { + return this.client.sendOperationRequest( + { options }, + getOperationSpec, + ) as Promise; + }, + ); + } +} // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); @@ -33,30 +67,3 @@ const getOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer, }; - -/** Class containing WorkspaceOperations operations. */ -export class WorkspaceOperationsImpl implements WorkspaceOperations { - private readonly client: ArtifactsClient; - - /** - * Initialize a new instance of the class WorkspaceOperations class. - * @param client - Reference to the service client - */ - // eslint-disable-next-line @azure/azure-sdk/ts-use-interface-parameters - constructor(client: ArtifactsClient) { - this.client = client; - } - - /** - * Get Workspace - * @param options - The options parameters. - */ - async get(options?: WorkspaceGetOptionalParams): Promise { - return tracingClient.withSpan("ArtifactsClient.get", options ?? {}, async (updatedOptions) => { - return this.client.sendOperationRequest( - { updatedOptions }, - getOperationSpec, - ) as Promise; - }); - } -} diff --git a/sdk/synapse/synapse-artifacts/src/operationsInterfaces/bigDataPools.ts b/sdk/synapse/synapse-artifacts/src/operationsInterfaces/bigDataPools.ts index 5ced22dd0f26..71eec060f7a2 100644 --- a/sdk/synapse/synapse-artifacts/src/operationsInterfaces/bigDataPools.ts +++ b/sdk/synapse/synapse-artifacts/src/operationsInterfaces/bigDataPools.ts @@ -17,13 +17,15 @@ import type { export interface BigDataPools { /** * List Big Data Pools - * @param options - The options parameters. + * @param options The options parameters. */ - list(options?: BigDataPoolsListOptionalParams): Promise; + list( + options?: BigDataPoolsListOptionalParams, + ): Promise; /** * Get Big Data Pool - * @param bigDataPoolName - The Big Data Pool name - * @param options - The options parameters. + * @param bigDataPoolName The Big Data Pool name + * @param options The options parameters. */ get( bigDataPoolName: string, diff --git a/sdk/synapse/synapse-artifacts/src/operationsInterfaces/dataFlowDebugSession.ts b/sdk/synapse/synapse-artifacts/src/operationsInterfaces/dataFlowDebugSession.ts index 902e20640e3a..ab9986b0d8c8 100644 --- a/sdk/synapse/synapse-artifacts/src/operationsInterfaces/dataFlowDebugSession.ts +++ b/sdk/synapse/synapse-artifacts/src/operationsInterfaces/dataFlowDebugSession.ts @@ -29,15 +29,15 @@ import type { export interface DataFlowDebugSession { /** * Query all active data flow debug sessions. - * @param options - The options parameters. + * @param options The options parameters. */ listQueryDataFlowDebugSessionsByWorkspace( options?: DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceOptionalParams, ): PagedAsyncIterableIterator; /** * Creates a data flow debug session. - * @param request - Data flow debug session definition - * @param options - The options parameters. + * @param request Data flow debug session definition + * @param options The options parameters. */ beginCreateDataFlowDebugSession( request: CreateDataFlowDebugSessionRequest, @@ -50,8 +50,8 @@ export interface DataFlowDebugSession { >; /** * Creates a data flow debug session. - * @param request - Data flow debug session definition - * @param options - The options parameters. + * @param request Data flow debug session definition + * @param options The options parameters. */ beginCreateDataFlowDebugSessionAndWait( request: CreateDataFlowDebugSessionRequest, @@ -59,8 +59,8 @@ export interface DataFlowDebugSession { ): Promise; /** * Add a data flow into debug session. - * @param request - Data flow debug session definition with debug content. - * @param options - The options parameters. + * @param request Data flow debug session definition with debug content. + * @param options The options parameters. */ addDataFlow( request: DataFlowDebugPackage, @@ -68,8 +68,8 @@ export interface DataFlowDebugSession { ): Promise; /** * Deletes a data flow debug session. - * @param request - Data flow debug session definition for deletion - * @param options - The options parameters. + * @param request Data flow debug session definition for deletion + * @param options The options parameters. */ deleteDataFlowDebugSession( request: DeleteDataFlowDebugSessionRequest, @@ -77,8 +77,8 @@ export interface DataFlowDebugSession { ): Promise; /** * Execute a data flow debug command. - * @param request - Data flow debug command definition. - * @param options - The options parameters. + * @param request Data flow debug command definition. + * @param options The options parameters. */ beginExecuteCommand( request: DataFlowDebugCommandRequest, @@ -91,8 +91,8 @@ export interface DataFlowDebugSession { >; /** * Execute a data flow debug command. - * @param request - Data flow debug command definition. - * @param options - The options parameters. + * @param request Data flow debug command definition. + * @param options The options parameters. */ beginExecuteCommandAndWait( request: DataFlowDebugCommandRequest, diff --git a/sdk/synapse/synapse-artifacts/src/operationsInterfaces/dataFlowOperations.ts b/sdk/synapse/synapse-artifacts/src/operationsInterfaces/dataFlowOperations.ts index cba5543079df..7104da71b1c4 100644 --- a/sdk/synapse/synapse-artifacts/src/operationsInterfaces/dataFlowOperations.ts +++ b/sdk/synapse/synapse-artifacts/src/operationsInterfaces/dataFlowOperations.ts @@ -20,20 +20,21 @@ import type { DataFlowRenameDataFlowOptionalParams, } from "../models/index.js"; +/// /** Interface representing a DataFlowOperations. */ export interface DataFlowOperations { /** * Lists data flows. - * @param options - The options parameters. + * @param options The options parameters. */ listDataFlowsByWorkspace( options?: DataFlowGetDataFlowsByWorkspaceOptionalParams, ): PagedAsyncIterableIterator; /** * Creates or updates a data flow. - * @param dataFlowName - The data flow name. - * @param dataFlow - Data flow resource definition. - * @param options - The options parameters. + * @param dataFlowName The data flow name. + * @param dataFlow Data flow resource definition. + * @param options The options parameters. */ beginCreateOrUpdateDataFlow( dataFlowName: string, @@ -47,9 +48,9 @@ export interface DataFlowOperations { >; /** * Creates or updates a data flow. - * @param dataFlowName - The data flow name. - * @param dataFlow - Data flow resource definition. - * @param options - The options parameters. + * @param dataFlowName The data flow name. + * @param dataFlow Data flow resource definition. + * @param options The options parameters. */ beginCreateOrUpdateDataFlowAndWait( dataFlowName: string, @@ -58,8 +59,8 @@ export interface DataFlowOperations { ): Promise; /** * Gets a data flow. - * @param dataFlowName - The data flow name. - * @param options - The options parameters. + * @param dataFlowName The data flow name. + * @param options The options parameters. */ getDataFlow( dataFlowName: string, @@ -67,8 +68,8 @@ export interface DataFlowOperations { ): Promise; /** * Deletes a data flow. - * @param dataFlowName - The data flow name. - * @param options - The options parameters. + * @param dataFlowName The data flow name. + * @param options The options parameters. */ beginDeleteDataFlow( dataFlowName: string, @@ -76,8 +77,8 @@ export interface DataFlowOperations { ): Promise, void>>; /** * Deletes a data flow. - * @param dataFlowName - The data flow name. - * @param options - The options parameters. + * @param dataFlowName The data flow name. + * @param options The options parameters. */ beginDeleteDataFlowAndWait( dataFlowName: string, @@ -85,9 +86,9 @@ export interface DataFlowOperations { ): Promise; /** * Renames a dataflow. - * @param dataFlowName - The data flow name. - * @param request - proposed new name. - * @param options - The options parameters. + * @param dataFlowName The data flow name. + * @param request proposed new name. + * @param options The options parameters. */ beginRenameDataFlow( dataFlowName: string, @@ -96,9 +97,9 @@ export interface DataFlowOperations { ): Promise, void>>; /** * Renames a dataflow. - * @param dataFlowName - The data flow name. - * @param request - proposed new name. - * @param options - The options parameters. + * @param dataFlowName The data flow name. + * @param request proposed new name. + * @param options The options parameters. */ beginRenameDataFlowAndWait( dataFlowName: string, diff --git a/sdk/synapse/synapse-artifacts/src/operationsInterfaces/datasetOperations.ts b/sdk/synapse/synapse-artifacts/src/operationsInterfaces/datasetOperations.ts index b5393e09af56..70540939c0d1 100644 --- a/sdk/synapse/synapse-artifacts/src/operationsInterfaces/datasetOperations.ts +++ b/sdk/synapse/synapse-artifacts/src/operationsInterfaces/datasetOperations.ts @@ -20,20 +20,21 @@ import type { DatasetRenameDatasetOptionalParams, } from "../models/index.js"; +/// /** Interface representing a DatasetOperations. */ export interface DatasetOperations { /** * Lists datasets. - * @param options - The options parameters. + * @param options The options parameters. */ listDatasetsByWorkspace( options?: DatasetGetDatasetsByWorkspaceOptionalParams, ): PagedAsyncIterableIterator; /** * Creates or updates a dataset. - * @param datasetName - The dataset name. - * @param dataset - Dataset resource definition. - * @param options - The options parameters. + * @param datasetName The dataset name. + * @param dataset Dataset resource definition. + * @param options The options parameters. */ beginCreateOrUpdateDataset( datasetName: string, @@ -47,9 +48,9 @@ export interface DatasetOperations { >; /** * Creates or updates a dataset. - * @param datasetName - The dataset name. - * @param dataset - Dataset resource definition. - * @param options - The options parameters. + * @param datasetName The dataset name. + * @param dataset Dataset resource definition. + * @param options The options parameters. */ beginCreateOrUpdateDatasetAndWait( datasetName: string, @@ -58,8 +59,8 @@ export interface DatasetOperations { ): Promise; /** * Gets a dataset. - * @param datasetName - The dataset name. - * @param options - The options parameters. + * @param datasetName The dataset name. + * @param options The options parameters. */ getDataset( datasetName: string, @@ -67,8 +68,8 @@ export interface DatasetOperations { ): Promise; /** * Deletes a dataset. - * @param datasetName - The dataset name. - * @param options - The options parameters. + * @param datasetName The dataset name. + * @param options The options parameters. */ beginDeleteDataset( datasetName: string, @@ -76,8 +77,8 @@ export interface DatasetOperations { ): Promise, void>>; /** * Deletes a dataset. - * @param datasetName - The dataset name. - * @param options - The options parameters. + * @param datasetName The dataset name. + * @param options The options parameters. */ beginDeleteDatasetAndWait( datasetName: string, @@ -85,9 +86,9 @@ export interface DatasetOperations { ): Promise; /** * Renames a dataset. - * @param datasetName - The dataset name. - * @param request - proposed new name. - * @param options - The options parameters. + * @param datasetName The dataset name. + * @param request proposed new name. + * @param options The options parameters. */ beginRenameDataset( datasetName: string, @@ -96,9 +97,9 @@ export interface DatasetOperations { ): Promise, void>>; /** * Renames a dataset. - * @param datasetName - The dataset name. - * @param request - proposed new name. - * @param options - The options parameters. + * @param datasetName The dataset name. + * @param request proposed new name. + * @param options The options parameters. */ beginRenameDatasetAndWait( datasetName: string, diff --git a/sdk/synapse/synapse-artifacts/src/operationsInterfaces/integrationRuntimes.ts b/sdk/synapse/synapse-artifacts/src/operationsInterfaces/integrationRuntimes.ts index 54345006aaeb..9d22406768a4 100644 --- a/sdk/synapse/synapse-artifacts/src/operationsInterfaces/integrationRuntimes.ts +++ b/sdk/synapse/synapse-artifacts/src/operationsInterfaces/integrationRuntimes.ts @@ -17,13 +17,15 @@ import type { export interface IntegrationRuntimes { /** * List Integration Runtimes - * @param options - The options parameters. + * @param options The options parameters. */ - list(options?: IntegrationRuntimesListOptionalParams): Promise; + list( + options?: IntegrationRuntimesListOptionalParams, + ): Promise; /** * Get Integration Runtime - * @param integrationRuntimeName - The Integration Runtime name - * @param options - The options parameters. + * @param integrationRuntimeName The Integration Runtime name + * @param options The options parameters. */ get( integrationRuntimeName: string, diff --git a/sdk/synapse/synapse-artifacts/src/operationsInterfaces/kqlScriptOperations.ts b/sdk/synapse/synapse-artifacts/src/operationsInterfaces/kqlScriptOperations.ts index 46bdddef6937..cec68a726a20 100644 --- a/sdk/synapse/synapse-artifacts/src/operationsInterfaces/kqlScriptOperations.ts +++ b/sdk/synapse/synapse-artifacts/src/operationsInterfaces/kqlScriptOperations.ts @@ -22,9 +22,9 @@ import type { export interface KqlScriptOperations { /** * Creates or updates a KQL Script - * @param kqlScriptName - KQL script name - * @param kqlScript - KQL script - * @param options - The options parameters. + * @param kqlScriptName KQL script name + * @param kqlScript KQL script + * @param options The options parameters. */ beginCreateOrUpdate( kqlScriptName: string, @@ -38,9 +38,9 @@ export interface KqlScriptOperations { >; /** * Creates or updates a KQL Script - * @param kqlScriptName - KQL script name - * @param kqlScript - KQL script - * @param options - The options parameters. + * @param kqlScriptName KQL script name + * @param kqlScript KQL script + * @param options The options parameters. */ beginCreateOrUpdateAndWait( kqlScriptName: string, @@ -49,8 +49,8 @@ export interface KqlScriptOperations { ): Promise; /** * Get KQL script by name - * @param kqlScriptName - KQL script name - * @param options - The options parameters. + * @param kqlScriptName KQL script name + * @param options The options parameters. */ getByName( kqlScriptName: string, @@ -58,8 +58,8 @@ export interface KqlScriptOperations { ): Promise; /** * Delete KQL script by name - * @param kqlScriptName - KQL script name - * @param options - The options parameters. + * @param kqlScriptName KQL script name + * @param options The options parameters. */ beginDeleteByName( kqlScriptName: string, @@ -67,8 +67,8 @@ export interface KqlScriptOperations { ): Promise, void>>; /** * Delete KQL script by name - * @param kqlScriptName - KQL script name - * @param options - The options parameters. + * @param kqlScriptName KQL script name + * @param options The options parameters. */ beginDeleteByNameAndWait( kqlScriptName: string, @@ -76,9 +76,9 @@ export interface KqlScriptOperations { ): Promise; /** * Rename KQL script - * @param kqlScriptName - KQL script name - * @param renameRequest - Rename request - * @param options - The options parameters. + * @param kqlScriptName KQL script name + * @param renameRequest Rename request + * @param options The options parameters. */ beginRename( kqlScriptName: string, @@ -87,9 +87,9 @@ export interface KqlScriptOperations { ): Promise, void>>; /** * Rename KQL script - * @param kqlScriptName - KQL script name - * @param renameRequest - Rename request - * @param options - The options parameters. + * @param kqlScriptName KQL script name + * @param renameRequest Rename request + * @param options The options parameters. */ beginRenameAndWait( kqlScriptName: string, diff --git a/sdk/synapse/synapse-artifacts/src/operationsInterfaces/kqlScripts.ts b/sdk/synapse/synapse-artifacts/src/operationsInterfaces/kqlScripts.ts index 2df962e613e3..0ce4f0658ffa 100644 --- a/sdk/synapse/synapse-artifacts/src/operationsInterfaces/kqlScripts.ts +++ b/sdk/synapse/synapse-artifacts/src/operationsInterfaces/kqlScripts.ts @@ -7,13 +7,19 @@ */ import type { PagedAsyncIterableIterator } from "@azure/core-paging"; -import type { KqlScriptResource, KqlScriptsGetAllOptionalParams } from "../models/index.js"; +import type { + KqlScriptResource, + KqlScriptsGetAllOptionalParams, +} from "../models/index.js"; +/// /** Interface representing a KqlScripts. */ export interface KqlScripts { /** * Get all KQL scripts - * @param options - The options parameters. + * @param options The options parameters. */ - listAll(options?: KqlScriptsGetAllOptionalParams): PagedAsyncIterableIterator; + listAll( + options?: KqlScriptsGetAllOptionalParams, + ): PagedAsyncIterableIterator; } diff --git a/sdk/synapse/synapse-artifacts/src/operationsInterfaces/library.ts b/sdk/synapse/synapse-artifacts/src/operationsInterfaces/library.ts index 9d6d915addaf..ccfeaac3741b 100644 --- a/sdk/synapse/synapse-artifacts/src/operationsInterfaces/library.ts +++ b/sdk/synapse/synapse-artifacts/src/operationsInterfaces/library.ts @@ -27,14 +27,16 @@ import type { export interface Library { /** * Lists Library. - * @param options - The options parameters. + * @param options The options parameters. */ - list(options?: LibraryListOptionalParams): PagedAsyncIterableIterator; + list( + options?: LibraryListOptionalParams, + ): PagedAsyncIterableIterator; /** * Flush Library - * @param libraryName - file name to upload. Minimum length of the filename should be 1 excluding the + * @param libraryName file name to upload. Minimum length of the filename should be 1 excluding the * extension length. - * @param options - The options parameters. + * @param options The options parameters. */ beginFlush( libraryName: string, @@ -42,15 +44,18 @@ export interface Library { ): Promise, void>>; /** * Flush Library - * @param libraryName - file name to upload. Minimum length of the filename should be 1 excluding the + * @param libraryName file name to upload. Minimum length of the filename should be 1 excluding the * extension length. - * @param options - The options parameters. + * @param options The options parameters. */ - beginFlushAndWait(libraryName: string, options?: LibraryFlushOptionalParams): Promise; + beginFlushAndWait( + libraryName: string, + options?: LibraryFlushOptionalParams, + ): Promise; /** * Get Operation result for Library - * @param operationId - operation id for which status is requested - * @param options - The options parameters. + * @param operationId operation id for which status is requested + * @param options The options parameters. */ getOperationResult( operationId: string, @@ -58,9 +63,9 @@ export interface Library { ): Promise; /** * Delete Library - * @param libraryName - file name to upload. Minimum length of the filename should be 1 excluding the + * @param libraryName file name to upload. Minimum length of the filename should be 1 excluding the * extension length. - * @param options - The options parameters. + * @param options The options parameters. */ beginDelete( libraryName: string, @@ -68,23 +73,29 @@ export interface Library { ): Promise, void>>; /** * Delete Library - * @param libraryName - file name to upload. Minimum length of the filename should be 1 excluding the + * @param libraryName file name to upload. Minimum length of the filename should be 1 excluding the * extension length. - * @param options - The options parameters. + * @param options The options parameters. */ - beginDeleteAndWait(libraryName: string, options?: LibraryDeleteOptionalParams): Promise; + beginDeleteAndWait( + libraryName: string, + options?: LibraryDeleteOptionalParams, + ): Promise; /** * Get Library - * @param libraryName - file name to upload. Minimum length of the filename should be 1 excluding the + * @param libraryName file name to upload. Minimum length of the filename should be 1 excluding the * extension length. - * @param options - The options parameters. + * @param options The options parameters. */ - get(libraryName: string, options?: LibraryGetOptionalParams): Promise; + get( + libraryName: string, + options?: LibraryGetOptionalParams, + ): Promise; /** * Creates a library with the library name. - * @param libraryName - file name to upload. Minimum length of the filename should be 1 excluding the + * @param libraryName file name to upload. Minimum length of the filename should be 1 excluding the * extension length. - * @param options - The options parameters. + * @param options The options parameters. */ beginCreate( libraryName: string, @@ -92,18 +103,21 @@ export interface Library { ): Promise, void>>; /** * Creates a library with the library name. - * @param libraryName - file name to upload. Minimum length of the filename should be 1 excluding the + * @param libraryName file name to upload. Minimum length of the filename should be 1 excluding the * extension length. - * @param options - The options parameters. + * @param options The options parameters. */ - beginCreateAndWait(libraryName: string, options?: LibraryCreateOptionalParams): Promise; + beginCreateAndWait( + libraryName: string, + options?: LibraryCreateOptionalParams, + ): Promise; /** * Append the content to the library resource created using the create operation. The maximum content * size is 4MiB. Content larger than 4MiB must be appended in 4MiB chunks - * @param libraryName - file name to upload. Minimum length of the filename should be 1 excluding the + * @param libraryName file name to upload. Minimum length of the filename should be 1 excluding the * extension length. - * @param content - Library file chunk. - * @param options - The options parameters. + * @param content Library file chunk. + * @param options The options parameters. */ append( libraryName: string, diff --git a/sdk/synapse/synapse-artifacts/src/operationsInterfaces/linkConnectionOperations.ts b/sdk/synapse/synapse-artifacts/src/operationsInterfaces/linkConnectionOperations.ts index 04639bea8067..c37e1d1345d4 100644 --- a/sdk/synapse/synapse-artifacts/src/operationsInterfaces/linkConnectionOperations.ts +++ b/sdk/synapse/synapse-artifacts/src/operationsInterfaces/linkConnectionOperations.ts @@ -32,20 +32,21 @@ import type { LinkConnectionResumeOptionalParams, } from "../models/index.js"; +/// /** Interface representing a LinkConnectionOperations. */ export interface LinkConnectionOperations { /** * List link connections - * @param options - The options parameters. + * @param options The options parameters. */ listByWorkspace( options?: LinkConnectionListByWorkspaceOptionalParams, ): PagedAsyncIterableIterator; /** * Creates or updates a link connection - * @param linkConnectionName - The link connection name - * @param linkConnection - Link connection resource definition - * @param options - The options parameters. + * @param linkConnectionName The link connection name + * @param linkConnection Link connection resource definition + * @param options The options parameters. */ createOrUpdate( linkConnectionName: string, @@ -54,8 +55,8 @@ export interface LinkConnectionOperations { ): Promise; /** * Get a link connection - * @param linkConnectionName - The link connection name - * @param options - The options parameters. + * @param linkConnectionName The link connection name + * @param options The options parameters. */ get( linkConnectionName: string, @@ -63,15 +64,18 @@ export interface LinkConnectionOperations { ): Promise; /** * Delete a link connection - * @param linkConnectionName - The link connection name - * @param options - The options parameters. + * @param linkConnectionName The link connection name + * @param options The options parameters. */ - delete(linkConnectionName: string, options?: LinkConnectionDeleteOptionalParams): Promise; + delete( + linkConnectionName: string, + options?: LinkConnectionDeleteOptionalParams, + ): Promise; /** * Edit tables for a link connection - * @param linkConnectionName - The link connection name - * @param editTablesRequest - Edit tables request - * @param options - The options parameters. + * @param linkConnectionName The link connection name + * @param editTablesRequest Edit tables request + * @param options The options parameters. */ editTables( linkConnectionName: string, @@ -81,21 +85,27 @@ export interface LinkConnectionOperations { /** * Start a link connection. It may take a few minutes from Starting to Running, monitor the status with * LinkConnection_GetDetailedStatus. - * @param linkConnectionName - The link connection name - * @param options - The options parameters. + * @param linkConnectionName The link connection name + * @param options The options parameters. */ - start(linkConnectionName: string, options?: LinkConnectionStartOptionalParams): Promise; + start( + linkConnectionName: string, + options?: LinkConnectionStartOptionalParams, + ): Promise; /** * Stop a link connection. It may take a few minutes from Stopping to stopped, monitor the status with * LinkConnection_GetDetailedStatus. - * @param linkConnectionName - The link connection name - * @param options - The options parameters. + * @param linkConnectionName The link connection name + * @param options The options parameters. */ - stop(linkConnectionName: string, options?: LinkConnectionStopOptionalParams): Promise; + stop( + linkConnectionName: string, + options?: LinkConnectionStopOptionalParams, + ): Promise; /** * Get the detailed status of a link connection - * @param linkConnectionName - The link connection name - * @param options - The options parameters. + * @param linkConnectionName The link connection name + * @param options The options parameters. */ getDetailedStatus( linkConnectionName: string, @@ -103,8 +113,8 @@ export interface LinkConnectionOperations { ): Promise; /** * List the link tables of a link connection - * @param linkConnectionName - The link connection name - * @param options - The options parameters. + * @param linkConnectionName The link connection name + * @param options The options parameters. */ listLinkTables( linkConnectionName: string, @@ -112,9 +122,9 @@ export interface LinkConnectionOperations { ): Promise; /** * Query the link table status of a link connection - * @param linkConnectionName - The link connection name - * @param queryTableStatusRequest - Query table status request - * @param options - The options parameters. + * @param linkConnectionName The link connection name + * @param queryTableStatusRequest Query table status request + * @param options The options parameters. */ queryTableStatus( linkConnectionName: string, @@ -123,9 +133,9 @@ export interface LinkConnectionOperations { ): Promise; /** * Update landing zone credential of a link connection - * @param linkConnectionName - The link connection name - * @param updateLandingZoneCredentialRequest - update landing zone credential request - * @param options - The options parameters. + * @param linkConnectionName The link connection name + * @param updateLandingZoneCredentialRequest update landing zone credential request + * @param options The options parameters. */ updateLandingZoneCredential( linkConnectionName: string, @@ -135,15 +145,21 @@ export interface LinkConnectionOperations { /** * Pause a link connection. It may take a few minutes from Pausing to Paused, monitor the status with * LinkConnection_GetDetailedStatus. - * @param linkConnectionName - The link connection name - * @param options - The options parameters. + * @param linkConnectionName The link connection name + * @param options The options parameters. */ - pause(linkConnectionName: string, options?: LinkConnectionPauseOptionalParams): Promise; + pause( + linkConnectionName: string, + options?: LinkConnectionPauseOptionalParams, + ): Promise; /** * Resume a link connection. It may take a few minutes from Resuming to Running, monitor the status * with LinkConnection_GetDetailedStatus. - * @param linkConnectionName - The link connection name - * @param options - The options parameters. + * @param linkConnectionName The link connection name + * @param options The options parameters. */ - resume(linkConnectionName: string, options?: LinkConnectionResumeOptionalParams): Promise; + resume( + linkConnectionName: string, + options?: LinkConnectionResumeOptionalParams, + ): Promise; } diff --git a/sdk/synapse/synapse-artifacts/src/operationsInterfaces/linkedServiceOperations.ts b/sdk/synapse/synapse-artifacts/src/operationsInterfaces/linkedServiceOperations.ts index 6133d2d554f9..28909f9441b6 100644 --- a/sdk/synapse/synapse-artifacts/src/operationsInterfaces/linkedServiceOperations.ts +++ b/sdk/synapse/synapse-artifacts/src/operationsInterfaces/linkedServiceOperations.ts @@ -25,16 +25,16 @@ import type { export interface LinkedServiceOperations { /** * Lists linked services. - * @param options - The options parameters. + * @param options The options parameters. */ listLinkedServicesByWorkspace( options?: LinkedServiceGetLinkedServicesByWorkspaceOptionalParams, ): PagedAsyncIterableIterator; /** * Creates or updates a linked service. - * @param linkedServiceName - The linked service name. - * @param linkedService - Linked service resource definition. - * @param options - The options parameters. + * @param linkedServiceName The linked service name. + * @param linkedService Linked service resource definition. + * @param options The options parameters. */ beginCreateOrUpdateLinkedService( linkedServiceName: string, @@ -48,9 +48,9 @@ export interface LinkedServiceOperations { >; /** * Creates or updates a linked service. - * @param linkedServiceName - The linked service name. - * @param linkedService - Linked service resource definition. - * @param options - The options parameters. + * @param linkedServiceName The linked service name. + * @param linkedService Linked service resource definition. + * @param options The options parameters. */ beginCreateOrUpdateLinkedServiceAndWait( linkedServiceName: string, @@ -59,8 +59,8 @@ export interface LinkedServiceOperations { ): Promise; /** * Gets a linked service. - * @param linkedServiceName - The linked service name. - * @param options - The options parameters. + * @param linkedServiceName The linked service name. + * @param options The options parameters. */ getLinkedService( linkedServiceName: string, @@ -68,8 +68,8 @@ export interface LinkedServiceOperations { ): Promise; /** * Deletes a linked service. - * @param linkedServiceName - The linked service name. - * @param options - The options parameters. + * @param linkedServiceName The linked service name. + * @param options The options parameters. */ beginDeleteLinkedService( linkedServiceName: string, @@ -77,8 +77,8 @@ export interface LinkedServiceOperations { ): Promise, void>>; /** * Deletes a linked service. - * @param linkedServiceName - The linked service name. - * @param options - The options parameters. + * @param linkedServiceName The linked service name. + * @param options The options parameters. */ beginDeleteLinkedServiceAndWait( linkedServiceName: string, @@ -86,9 +86,9 @@ export interface LinkedServiceOperations { ): Promise; /** * Renames a linked service. - * @param linkedServiceName - The linked service name. - * @param request - proposed new name. - * @param options - The options parameters. + * @param linkedServiceName The linked service name. + * @param request proposed new name. + * @param options The options parameters. */ beginRenameLinkedService( linkedServiceName: string, @@ -97,9 +97,9 @@ export interface LinkedServiceOperations { ): Promise, void>>; /** * Renames a linked service. - * @param linkedServiceName - The linked service name. - * @param request - proposed new name. - * @param options - The options parameters. + * @param linkedServiceName The linked service name. + * @param request proposed new name. + * @param options The options parameters. */ beginRenameLinkedServiceAndWait( linkedServiceName: string, diff --git a/sdk/synapse/synapse-artifacts/src/operationsInterfaces/metastore.ts b/sdk/synapse/synapse-artifacts/src/operationsInterfaces/metastore.ts index 458cd2237319..d8e0063c8fcb 100644 --- a/sdk/synapse/synapse-artifacts/src/operationsInterfaces/metastore.ts +++ b/sdk/synapse/synapse-artifacts/src/operationsInterfaces/metastore.ts @@ -22,10 +22,10 @@ import type { export interface Metastore { /** * Register files in Syms - * @param id - The name of the database to be created. The name can contain only alphanumeric characters + * @param id The name of the database to be created. The name can contain only alphanumeric characters * and should not exceed 24 characters - * @param registerBody - The body for the register request - * @param options - The options parameters. + * @param registerBody The body for the register request + * @param options The options parameters. */ register( id: string, @@ -34,8 +34,8 @@ export interface Metastore { ): Promise; /** * Gets status of the database - * @param id - The name of the database to be fetched - * @param options - The options parameters. + * @param id + * @param options The options parameters. */ getDatabaseOperations( id: string, @@ -43,9 +43,9 @@ export interface Metastore { ): Promise; /** * Update files in Syms - * @param id - The name of the database to be updated - * @param updateBody - The body for the update request - * @param options - The options parameters. + * @param id The name of the database to be updated + * @param updateBody The body for the update request + * @param options The options parameters. */ update( id: string, @@ -54,8 +54,8 @@ export interface Metastore { ): Promise; /** * Remove files in Syms - * @param id - The name of the database to be updated - * @param options - The options parameters. + * @param id + * @param options The options parameters. */ delete(id: string, options?: MetastoreDeleteOptionalParams): Promise; } diff --git a/sdk/synapse/synapse-artifacts/src/operationsInterfaces/notebookOperationResult.ts b/sdk/synapse/synapse-artifacts/src/operationsInterfaces/notebookOperationResult.ts index a979194aa45b..77caec26f7ea 100644 --- a/sdk/synapse/synapse-artifacts/src/operationsInterfaces/notebookOperationResult.ts +++ b/sdk/synapse/synapse-artifacts/src/operationsInterfaces/notebookOperationResult.ts @@ -12,8 +12,11 @@ import type { NotebookOperationResultGetOptionalParams } from "../models/index.j export interface NotebookOperationResult { /** * Get notebook operation result - * @param operationId - Operation ID. - * @param options - The options parameters. + * @param operationId Operation ID. + * @param options The options parameters. */ - get(operationId: string, options?: NotebookOperationResultGetOptionalParams): Promise; + get( + operationId: string, + options?: NotebookOperationResultGetOptionalParams, + ): Promise; } diff --git a/sdk/synapse/synapse-artifacts/src/operationsInterfaces/notebookOperations.ts b/sdk/synapse/synapse-artifacts/src/operationsInterfaces/notebookOperations.ts index 876f3e2696a3..6e503b51d844 100644 --- a/sdk/synapse/synapse-artifacts/src/operationsInterfaces/notebookOperations.ts +++ b/sdk/synapse/synapse-artifacts/src/operationsInterfaces/notebookOperations.ts @@ -26,23 +26,23 @@ import type { export interface NotebookOperations { /** * Lists Notebooks. - * @param options - The options parameters. + * @param options The options parameters. */ listNotebooksByWorkspace( options?: NotebookGetNotebooksByWorkspaceOptionalParams, ): PagedAsyncIterableIterator; /** * Lists a summary of Notebooks. - * @param options - The options parameters. + * @param options The options parameters. */ listNotebookSummaryByWorkSpace( options?: NotebookGetNotebookSummaryByWorkSpaceOptionalParams, ): PagedAsyncIterableIterator; /** * Creates or updates a Note Book. - * @param notebookName - The notebook name. - * @param notebook - Note book resource definition. - * @param options - The options parameters. + * @param notebookName The notebook name. + * @param notebook Note book resource definition. + * @param options The options parameters. */ beginCreateOrUpdateNotebook( notebookName: string, @@ -56,9 +56,9 @@ export interface NotebookOperations { >; /** * Creates or updates a Note Book. - * @param notebookName - The notebook name. - * @param notebook - Note book resource definition. - * @param options - The options parameters. + * @param notebookName The notebook name. + * @param notebook Note book resource definition. + * @param options The options parameters. */ beginCreateOrUpdateNotebookAndWait( notebookName: string, @@ -67,8 +67,8 @@ export interface NotebookOperations { ): Promise; /** * Gets a Note Book. - * @param notebookName - The notebook name. - * @param options - The options parameters. + * @param notebookName The notebook name. + * @param options The options parameters. */ getNotebook( notebookName: string, @@ -76,8 +76,8 @@ export interface NotebookOperations { ): Promise; /** * Deletes a Note book. - * @param notebookName - The notebook name. - * @param options - The options parameters. + * @param notebookName The notebook name. + * @param options The options parameters. */ beginDeleteNotebook( notebookName: string, @@ -85,8 +85,8 @@ export interface NotebookOperations { ): Promise, void>>; /** * Deletes a Note book. - * @param notebookName - The notebook name. - * @param options - The options parameters. + * @param notebookName The notebook name. + * @param options The options parameters. */ beginDeleteNotebookAndWait( notebookName: string, @@ -94,9 +94,9 @@ export interface NotebookOperations { ): Promise; /** * Renames a notebook. - * @param notebookName - The notebook name. - * @param request - proposed new name. - * @param options - The options parameters. + * @param notebookName The notebook name. + * @param request proposed new name. + * @param options The options parameters. */ beginRenameNotebook( notebookName: string, @@ -105,9 +105,9 @@ export interface NotebookOperations { ): Promise, void>>; /** * Renames a notebook. - * @param notebookName - The notebook name. - * @param request - proposed new name. - * @param options - The options parameters. + * @param notebookName The notebook name. + * @param request proposed new name. + * @param options The options parameters. */ beginRenameNotebookAndWait( notebookName: string, diff --git a/sdk/synapse/synapse-artifacts/src/operationsInterfaces/pipelineOperations.ts b/sdk/synapse/synapse-artifacts/src/operationsInterfaces/pipelineOperations.ts index e99d205e88db..f280f561c373 100644 --- a/sdk/synapse/synapse-artifacts/src/operationsInterfaces/pipelineOperations.ts +++ b/sdk/synapse/synapse-artifacts/src/operationsInterfaces/pipelineOperations.ts @@ -22,20 +22,21 @@ import type { PipelineCreatePipelineRunResponse, } from "../models/index.js"; +/// /** Interface representing a PipelineOperations. */ export interface PipelineOperations { /** * Lists pipelines. - * @param options - The options parameters. + * @param options The options parameters. */ listPipelinesByWorkspace( options?: PipelineGetPipelinesByWorkspaceOptionalParams, ): PagedAsyncIterableIterator; /** * Creates or updates a pipeline. - * @param pipelineName - The pipeline name. - * @param pipeline - Pipeline resource definition. - * @param options - The options parameters. + * @param pipelineName The pipeline name. + * @param pipeline Pipeline resource definition. + * @param options The options parameters. */ beginCreateOrUpdatePipeline( pipelineName: string, @@ -49,9 +50,9 @@ export interface PipelineOperations { >; /** * Creates or updates a pipeline. - * @param pipelineName - The pipeline name. - * @param pipeline - Pipeline resource definition. - * @param options - The options parameters. + * @param pipelineName The pipeline name. + * @param pipeline Pipeline resource definition. + * @param options The options parameters. */ beginCreateOrUpdatePipelineAndWait( pipelineName: string, @@ -60,8 +61,8 @@ export interface PipelineOperations { ): Promise; /** * Gets a pipeline. - * @param pipelineName - The pipeline name. - * @param options - The options parameters. + * @param pipelineName The pipeline name. + * @param options The options parameters. */ getPipeline( pipelineName: string, @@ -69,8 +70,8 @@ export interface PipelineOperations { ): Promise; /** * Deletes a pipeline. - * @param pipelineName - The pipeline name. - * @param options - The options parameters. + * @param pipelineName The pipeline name. + * @param options The options parameters. */ beginDeletePipeline( pipelineName: string, @@ -78,8 +79,8 @@ export interface PipelineOperations { ): Promise, void>>; /** * Deletes a pipeline. - * @param pipelineName - The pipeline name. - * @param options - The options parameters. + * @param pipelineName The pipeline name. + * @param options The options parameters. */ beginDeletePipelineAndWait( pipelineName: string, @@ -87,9 +88,9 @@ export interface PipelineOperations { ): Promise; /** * Renames a pipeline. - * @param pipelineName - The pipeline name. - * @param request - proposed new name. - * @param options - The options parameters. + * @param pipelineName The pipeline name. + * @param request proposed new name. + * @param options The options parameters. */ beginRenamePipeline( pipelineName: string, @@ -98,9 +99,9 @@ export interface PipelineOperations { ): Promise, void>>; /** * Renames a pipeline. - * @param pipelineName - The pipeline name. - * @param request - proposed new name. - * @param options - The options parameters. + * @param pipelineName The pipeline name. + * @param request proposed new name. + * @param options The options parameters. */ beginRenamePipelineAndWait( pipelineName: string, @@ -109,8 +110,8 @@ export interface PipelineOperations { ): Promise; /** * Creates a run of a pipeline. - * @param pipelineName - The pipeline name. - * @param options - The options parameters. + * @param pipelineName The pipeline name. + * @param options The options parameters. */ createPipelineRun( pipelineName: string, diff --git a/sdk/synapse/synapse-artifacts/src/operationsInterfaces/pipelineRunOperations.ts b/sdk/synapse/synapse-artifacts/src/operationsInterfaces/pipelineRunOperations.ts index 2c447b36f00e..74a66eb108a6 100644 --- a/sdk/synapse/synapse-artifacts/src/operationsInterfaces/pipelineRunOperations.ts +++ b/sdk/synapse/synapse-artifacts/src/operationsInterfaces/pipelineRunOperations.ts @@ -21,8 +21,8 @@ import type { export interface PipelineRunOperations { /** * Query pipeline runs in the workspace based on input filter conditions. - * @param filterParameters - Parameters to filter the pipeline run. - * @param options - The options parameters. + * @param filterParameters Parameters to filter the pipeline run. + * @param options The options parameters. */ queryPipelineRunsByWorkspace( filterParameters: RunFilterParameters, @@ -30,8 +30,8 @@ export interface PipelineRunOperations { ): Promise; /** * Get a pipeline run by its run ID. - * @param runId - The pipeline run identifier. - * @param options - The options parameters. + * @param runId The pipeline run identifier. + * @param options The options parameters. */ getPipelineRun( runId: string, @@ -39,10 +39,10 @@ export interface PipelineRunOperations { ): Promise; /** * Query activity runs based on input filter conditions. - * @param pipelineName - The pipeline name. - * @param runId - The pipeline run identifier. - * @param filterParameters - Parameters to filter the activity runs. - * @param options - The options parameters. + * @param pipelineName The pipeline name. + * @param runId The pipeline run identifier. + * @param filterParameters Parameters to filter the activity runs. + * @param options The options parameters. */ queryActivityRuns( pipelineName: string, @@ -52,8 +52,8 @@ export interface PipelineRunOperations { ): Promise; /** * Cancel a pipeline run by its run ID. - * @param runId - The pipeline run identifier. - * @param options - The options parameters. + * @param runId The pipeline run identifier. + * @param options The options parameters. */ cancelPipelineRun( runId: string, diff --git a/sdk/synapse/synapse-artifacts/src/operationsInterfaces/runNotebook.ts b/sdk/synapse/synapse-artifacts/src/operationsInterfaces/runNotebook.ts index 539a896941ba..cb52783a6182 100644 --- a/sdk/synapse/synapse-artifacts/src/operationsInterfaces/runNotebook.ts +++ b/sdk/synapse/synapse-artifacts/src/operationsInterfaces/runNotebook.ts @@ -23,22 +23,27 @@ import type { export interface RunNotebook { /** * Run notebook - * @param runId - Notebook run id. - * @param runNotebookRequest - Run notebook request payload. - * @param options - The options parameters. + * @param runId Notebook run id. For Create Run, you can generate a new GUID and use it here. For other + * actions, this is the same ID used in Create Run. + * @param runNotebookRequest Run notebook request payload. + * @param options The options parameters. */ beginCreateRun( runId: string, runNotebookRequest: RunNotebookRequest, options?: RunNotebookCreateRunOptionalParams, ): Promise< - SimplePollerLike, RunNotebookCreateRunResponse> + SimplePollerLike< + OperationState, + RunNotebookCreateRunResponse + > >; /** * Run notebook - * @param runId - Notebook run id. - * @param runNotebookRequest - Run notebook request payload. - * @param options - The options parameters. + * @param runId Notebook run id. For Create Run, you can generate a new GUID and use it here. For other + * actions, this is the same ID used in Create Run. + * @param runNotebookRequest Run notebook request payload. + * @param options The options parameters. */ beginCreateRunAndWait( runId: string, @@ -47,8 +52,9 @@ export interface RunNotebook { ): Promise; /** * Get RunNotebook Status for run id. - * @param runId - Notebook run id. - * @param options - The options parameters. + * @param runId Notebook run id. For Create Run, you can generate a new GUID and use it here. For other + * actions, this is the same ID used in Create Run. + * @param options The options parameters. */ getStatus( runId: string, @@ -56,8 +62,9 @@ export interface RunNotebook { ): Promise; /** * Cancel notebook run. - * @param runId - Notebook run id. - * @param options - The options parameters. + * @param runId Notebook run id. For Create Run, you can generate a new GUID and use it here. For other + * actions, this is the same ID used in Create Run. + * @param options The options parameters. */ cancelRun( runId: string, @@ -65,8 +72,9 @@ export interface RunNotebook { ): Promise; /** * Get RunNotebook Snapshot for run id. - * @param runId - Notebook run id. - * @param options - The options parameters. + * @param runId Notebook run id. For Create Run, you can generate a new GUID and use it here. For other + * actions, this is the same ID used in Create Run. + * @param options The options parameters. */ getSnapshot( runId: string, diff --git a/sdk/synapse/synapse-artifacts/src/operationsInterfaces/sparkConfigurationOperations.ts b/sdk/synapse/synapse-artifacts/src/operationsInterfaces/sparkConfigurationOperations.ts index 3ed2385f07dc..92daed9444cd 100644 --- a/sdk/synapse/synapse-artifacts/src/operationsInterfaces/sparkConfigurationOperations.ts +++ b/sdk/synapse/synapse-artifacts/src/operationsInterfaces/sparkConfigurationOperations.ts @@ -25,16 +25,16 @@ import type { export interface SparkConfigurationOperations { /** * Lists sparkconfigurations. - * @param options - The options parameters. + * @param options The options parameters. */ listSparkConfigurationsByWorkspace( options?: SparkConfigurationGetSparkConfigurationsByWorkspaceOptionalParams, ): PagedAsyncIterableIterator; /** * Creates or updates a sparkconfiguration. - * @param sparkConfigurationName - The spark Configuration name. - * @param sparkConfiguration - SparkConfiguration resource definition. - * @param options - The options parameters. + * @param sparkConfigurationName The spark Configuration name. + * @param sparkConfiguration SparkConfiguration resource definition. + * @param options The options parameters. */ beginCreateOrUpdateSparkConfiguration( sparkConfigurationName: string, @@ -48,9 +48,9 @@ export interface SparkConfigurationOperations { >; /** * Creates or updates a sparkconfiguration. - * @param sparkConfigurationName - The spark Configuration name. - * @param sparkConfiguration - SparkConfiguration resource definition. - * @param options - The options parameters. + * @param sparkConfigurationName The spark Configuration name. + * @param sparkConfiguration SparkConfiguration resource definition. + * @param options The options parameters. */ beginCreateOrUpdateSparkConfigurationAndWait( sparkConfigurationName: string, @@ -59,8 +59,8 @@ export interface SparkConfigurationOperations { ): Promise; /** * Gets a sparkConfiguration. - * @param sparkConfigurationName - The spark Configuration name. - * @param options - The options parameters. + * @param sparkConfigurationName The spark Configuration name. + * @param options The options parameters. */ getSparkConfiguration( sparkConfigurationName: string, @@ -68,8 +68,8 @@ export interface SparkConfigurationOperations { ): Promise; /** * Deletes a sparkConfiguration. - * @param sparkConfigurationName - The spark Configuration name. - * @param options - The options parameters. + * @param sparkConfigurationName The spark Configuration name. + * @param options The options parameters. */ beginDeleteSparkConfiguration( sparkConfigurationName: string, @@ -77,8 +77,8 @@ export interface SparkConfigurationOperations { ): Promise, void>>; /** * Deletes a sparkConfiguration. - * @param sparkConfigurationName - The spark Configuration name. - * @param options - The options parameters. + * @param sparkConfigurationName The spark Configuration name. + * @param options The options parameters. */ beginDeleteSparkConfigurationAndWait( sparkConfigurationName: string, @@ -86,9 +86,9 @@ export interface SparkConfigurationOperations { ): Promise; /** * Renames a sparkConfiguration. - * @param sparkConfigurationName - The spark Configuration name. - * @param request - proposed new name. - * @param options - The options parameters. + * @param sparkConfigurationName The spark Configuration name. + * @param request proposed new name. + * @param options The options parameters. */ beginRenameSparkConfiguration( sparkConfigurationName: string, @@ -97,9 +97,9 @@ export interface SparkConfigurationOperations { ): Promise, void>>; /** * Renames a sparkConfiguration. - * @param sparkConfigurationName - The spark Configuration name. - * @param request - proposed new name. - * @param options - The options parameters. + * @param sparkConfigurationName The spark Configuration name. + * @param request proposed new name. + * @param options The options parameters. */ beginRenameSparkConfigurationAndWait( sparkConfigurationName: string, diff --git a/sdk/synapse/synapse-artifacts/src/operationsInterfaces/sparkJobDefinitionOperations.ts b/sdk/synapse/synapse-artifacts/src/operationsInterfaces/sparkJobDefinitionOperations.ts index db3a92f8a533..36562e679e45 100644 --- a/sdk/synapse/synapse-artifacts/src/operationsInterfaces/sparkJobDefinitionOperations.ts +++ b/sdk/synapse/synapse-artifacts/src/operationsInterfaces/sparkJobDefinitionOperations.ts @@ -29,16 +29,16 @@ import type { export interface SparkJobDefinitionOperations { /** * Lists spark job definitions. - * @param options - The options parameters. + * @param options The options parameters. */ listSparkJobDefinitionsByWorkspace( options?: SparkJobDefinitionGetSparkJobDefinitionsByWorkspaceOptionalParams, ): PagedAsyncIterableIterator; /** * Creates or updates a Spark Job Definition. - * @param sparkJobDefinitionName - The spark job definition name. - * @param sparkJobDefinition - Spark Job Definition resource definition. - * @param options - The options parameters. + * @param sparkJobDefinitionName The spark job definition name. + * @param sparkJobDefinition Spark Job Definition resource definition. + * @param options The options parameters. */ beginCreateOrUpdateSparkJobDefinition( sparkJobDefinitionName: string, @@ -52,9 +52,9 @@ export interface SparkJobDefinitionOperations { >; /** * Creates or updates a Spark Job Definition. - * @param sparkJobDefinitionName - The spark job definition name. - * @param sparkJobDefinition - Spark Job Definition resource definition. - * @param options - The options parameters. + * @param sparkJobDefinitionName The spark job definition name. + * @param sparkJobDefinition Spark Job Definition resource definition. + * @param options The options parameters. */ beginCreateOrUpdateSparkJobDefinitionAndWait( sparkJobDefinitionName: string, @@ -63,8 +63,8 @@ export interface SparkJobDefinitionOperations { ): Promise; /** * Gets a Spark Job Definition. - * @param sparkJobDefinitionName - The spark job definition name. - * @param options - The options parameters. + * @param sparkJobDefinitionName The spark job definition name. + * @param options The options parameters. */ getSparkJobDefinition( sparkJobDefinitionName: string, @@ -72,8 +72,8 @@ export interface SparkJobDefinitionOperations { ): Promise; /** * Deletes a Spark Job Definition. - * @param sparkJobDefinitionName - The spark job definition name. - * @param options - The options parameters. + * @param sparkJobDefinitionName The spark job definition name. + * @param options The options parameters. */ beginDeleteSparkJobDefinition( sparkJobDefinitionName: string, @@ -81,8 +81,8 @@ export interface SparkJobDefinitionOperations { ): Promise, void>>; /** * Deletes a Spark Job Definition. - * @param sparkJobDefinitionName - The spark job definition name. - * @param options - The options parameters. + * @param sparkJobDefinitionName The spark job definition name. + * @param options The options parameters. */ beginDeleteSparkJobDefinitionAndWait( sparkJobDefinitionName: string, @@ -90,8 +90,8 @@ export interface SparkJobDefinitionOperations { ): Promise; /** * Executes the spark job definition. - * @param sparkJobDefinitionName - The spark job definition name. - * @param options - The options parameters. + * @param sparkJobDefinitionName The spark job definition name. + * @param options The options parameters. */ beginExecuteSparkJobDefinition( sparkJobDefinitionName: string, @@ -104,8 +104,8 @@ export interface SparkJobDefinitionOperations { >; /** * Executes the spark job definition. - * @param sparkJobDefinitionName - The spark job definition name. - * @param options - The options parameters. + * @param sparkJobDefinitionName The spark job definition name. + * @param options The options parameters. */ beginExecuteSparkJobDefinitionAndWait( sparkJobDefinitionName: string, @@ -113,9 +113,9 @@ export interface SparkJobDefinitionOperations { ): Promise; /** * Renames a sparkJobDefinition. - * @param sparkJobDefinitionName - The spark job definition name. - * @param request - proposed new name. - * @param options - The options parameters. + * @param sparkJobDefinitionName The spark job definition name. + * @param request proposed new name. + * @param options The options parameters. */ beginRenameSparkJobDefinition( sparkJobDefinitionName: string, @@ -124,9 +124,9 @@ export interface SparkJobDefinitionOperations { ): Promise, void>>; /** * Renames a sparkJobDefinition. - * @param sparkJobDefinitionName - The spark job definition name. - * @param request - proposed new name. - * @param options - The options parameters. + * @param sparkJobDefinitionName The spark job definition name. + * @param request proposed new name. + * @param options The options parameters. */ beginRenameSparkJobDefinitionAndWait( sparkJobDefinitionName: string, @@ -135,8 +135,8 @@ export interface SparkJobDefinitionOperations { ): Promise; /** * Debug the spark job definition. - * @param sparkJobDefinitionAzureResource - Spark Job Definition resource definition. - * @param options - The options parameters. + * @param sparkJobDefinitionAzureResource Spark Job Definition resource definition. + * @param options The options parameters. */ beginDebugSparkJobDefinition( sparkJobDefinitionAzureResource: SparkJobDefinitionResource, @@ -149,8 +149,8 @@ export interface SparkJobDefinitionOperations { >; /** * Debug the spark job definition. - * @param sparkJobDefinitionAzureResource - Spark Job Definition resource definition. - * @param options - The options parameters. + * @param sparkJobDefinitionAzureResource Spark Job Definition resource definition. + * @param options The options parameters. */ beginDebugSparkJobDefinitionAndWait( sparkJobDefinitionAzureResource: SparkJobDefinitionResource, diff --git a/sdk/synapse/synapse-artifacts/src/operationsInterfaces/sqlPools.ts b/sdk/synapse/synapse-artifacts/src/operationsInterfaces/sqlPools.ts index b28279b93b57..d2108691efc0 100644 --- a/sdk/synapse/synapse-artifacts/src/operationsInterfaces/sqlPools.ts +++ b/sdk/synapse/synapse-artifacts/src/operationsInterfaces/sqlPools.ts @@ -17,13 +17,16 @@ import type { export interface SqlPools { /** * List Sql Pools - * @param options - The options parameters. + * @param options The options parameters. */ list(options?: SqlPoolsListOptionalParams): Promise; /** * Get Sql Pool - * @param sqlPoolName - The Sql Pool name - * @param options - The options parameters. + * @param sqlPoolName The Sql Pool name + * @param options The options parameters. */ - get(sqlPoolName: string, options?: SqlPoolsGetOptionalParams): Promise; + get( + sqlPoolName: string, + options?: SqlPoolsGetOptionalParams, + ): Promise; } diff --git a/sdk/synapse/synapse-artifacts/src/operationsInterfaces/sqlScriptOperations.ts b/sdk/synapse/synapse-artifacts/src/operationsInterfaces/sqlScriptOperations.ts index fbdfda0c7101..848f2c042feb 100644 --- a/sdk/synapse/synapse-artifacts/src/operationsInterfaces/sqlScriptOperations.ts +++ b/sdk/synapse/synapse-artifacts/src/operationsInterfaces/sqlScriptOperations.ts @@ -20,20 +20,21 @@ import type { SqlScriptRenameSqlScriptOptionalParams, } from "../models/index.js"; +/// /** Interface representing a SqlScriptOperations. */ export interface SqlScriptOperations { /** * Lists sql scripts. - * @param options - The options parameters. + * @param options The options parameters. */ listSqlScriptsByWorkspace( options?: SqlScriptGetSqlScriptsByWorkspaceOptionalParams, ): PagedAsyncIterableIterator; /** * Creates or updates a Sql Script. - * @param sqlScriptName - The sql script name. - * @param sqlScript - Sql Script resource definition. - * @param options - The options parameters. + * @param sqlScriptName The sql script name. + * @param sqlScript Sql Script resource definition. + * @param options The options parameters. */ beginCreateOrUpdateSqlScript( sqlScriptName: string, @@ -47,9 +48,9 @@ export interface SqlScriptOperations { >; /** * Creates or updates a Sql Script. - * @param sqlScriptName - The sql script name. - * @param sqlScript - Sql Script resource definition. - * @param options - The options parameters. + * @param sqlScriptName The sql script name. + * @param sqlScript Sql Script resource definition. + * @param options The options parameters. */ beginCreateOrUpdateSqlScriptAndWait( sqlScriptName: string, @@ -58,8 +59,8 @@ export interface SqlScriptOperations { ): Promise; /** * Gets a sql script. - * @param sqlScriptName - The sql script name. - * @param options - The options parameters. + * @param sqlScriptName The sql script name. + * @param options The options parameters. */ getSqlScript( sqlScriptName: string, @@ -67,8 +68,8 @@ export interface SqlScriptOperations { ): Promise; /** * Deletes a Sql Script. - * @param sqlScriptName - The sql script name. - * @param options - The options parameters. + * @param sqlScriptName The sql script name. + * @param options The options parameters. */ beginDeleteSqlScript( sqlScriptName: string, @@ -76,8 +77,8 @@ export interface SqlScriptOperations { ): Promise, void>>; /** * Deletes a Sql Script. - * @param sqlScriptName - The sql script name. - * @param options - The options parameters. + * @param sqlScriptName The sql script name. + * @param options The options parameters. */ beginDeleteSqlScriptAndWait( sqlScriptName: string, @@ -85,9 +86,9 @@ export interface SqlScriptOperations { ): Promise; /** * Renames a sqlScript. - * @param sqlScriptName - The sql script name. - * @param request - proposed new name. - * @param options - The options parameters. + * @param sqlScriptName The sql script name. + * @param request proposed new name. + * @param options The options parameters. */ beginRenameSqlScript( sqlScriptName: string, @@ -96,9 +97,9 @@ export interface SqlScriptOperations { ): Promise, void>>; /** * Renames a sqlScript. - * @param sqlScriptName - The sql script name. - * @param request - proposed new name. - * @param options - The options parameters. + * @param sqlScriptName The sql script name. + * @param request proposed new name. + * @param options The options parameters. */ beginRenameSqlScriptAndWait( sqlScriptName: string, diff --git a/sdk/synapse/synapse-artifacts/src/operationsInterfaces/triggerOperations.ts b/sdk/synapse/synapse-artifacts/src/operationsInterfaces/triggerOperations.ts index b39dd0274221..4a6745b306a5 100644 --- a/sdk/synapse/synapse-artifacts/src/operationsInterfaces/triggerOperations.ts +++ b/sdk/synapse/synapse-artifacts/src/operationsInterfaces/triggerOperations.ts @@ -26,20 +26,21 @@ import type { TriggerStopTriggerOptionalParams, } from "../models/index.js"; +/// /** Interface representing a TriggerOperations. */ export interface TriggerOperations { /** * Lists triggers. - * @param options - The options parameters. + * @param options The options parameters. */ listTriggersByWorkspace( options?: TriggerGetTriggersByWorkspaceOptionalParams, ): PagedAsyncIterableIterator; /** * Creates or updates a trigger. - * @param triggerName - The trigger name. - * @param trigger - Trigger resource definition. - * @param options - The options parameters. + * @param triggerName The trigger name. + * @param trigger Trigger resource definition. + * @param options The options parameters. */ beginCreateOrUpdateTrigger( triggerName: string, @@ -53,9 +54,9 @@ export interface TriggerOperations { >; /** * Creates or updates a trigger. - * @param triggerName - The trigger name. - * @param trigger - Trigger resource definition. - * @param options - The options parameters. + * @param triggerName The trigger name. + * @param trigger Trigger resource definition. + * @param options The options parameters. */ beginCreateOrUpdateTriggerAndWait( triggerName: string, @@ -64,8 +65,8 @@ export interface TriggerOperations { ): Promise; /** * Gets a trigger. - * @param triggerName - The trigger name. - * @param options - The options parameters. + * @param triggerName The trigger name. + * @param options The options parameters. */ getTrigger( triggerName: string, @@ -73,8 +74,8 @@ export interface TriggerOperations { ): Promise; /** * Deletes a trigger. - * @param triggerName - The trigger name. - * @param options - The options parameters. + * @param triggerName The trigger name. + * @param options The options parameters. */ beginDeleteTrigger( triggerName: string, @@ -82,8 +83,8 @@ export interface TriggerOperations { ): Promise, void>>; /** * Deletes a trigger. - * @param triggerName - The trigger name. - * @param options - The options parameters. + * @param triggerName The trigger name. + * @param options The options parameters. */ beginDeleteTriggerAndWait( triggerName: string, @@ -91,8 +92,8 @@ export interface TriggerOperations { ): Promise; /** * Subscribe event trigger to events. - * @param triggerName - The trigger name. - * @param options - The options parameters. + * @param triggerName The trigger name. + * @param options The options parameters. */ beginSubscribeTriggerToEvents( triggerName: string, @@ -105,8 +106,8 @@ export interface TriggerOperations { >; /** * Subscribe event trigger to events. - * @param triggerName - The trigger name. - * @param options - The options parameters. + * @param triggerName The trigger name. + * @param options The options parameters. */ beginSubscribeTriggerToEventsAndWait( triggerName: string, @@ -114,8 +115,8 @@ export interface TriggerOperations { ): Promise; /** * Get a trigger's event subscription status. - * @param triggerName - The trigger name. - * @param options - The options parameters. + * @param triggerName The trigger name. + * @param options The options parameters. */ getEventSubscriptionStatus( triggerName: string, @@ -123,8 +124,8 @@ export interface TriggerOperations { ): Promise; /** * Unsubscribe event trigger from events. - * @param triggerName - The trigger name. - * @param options - The options parameters. + * @param triggerName The trigger name. + * @param options The options parameters. */ beginUnsubscribeTriggerFromEvents( triggerName: string, @@ -137,8 +138,8 @@ export interface TriggerOperations { >; /** * Unsubscribe event trigger from events. - * @param triggerName - The trigger name. - * @param options - The options parameters. + * @param triggerName The trigger name. + * @param options The options parameters. */ beginUnsubscribeTriggerFromEventsAndWait( triggerName: string, @@ -146,8 +147,8 @@ export interface TriggerOperations { ): Promise; /** * Starts a trigger. - * @param triggerName - The trigger name. - * @param options - The options parameters. + * @param triggerName The trigger name. + * @param options The options parameters. */ beginStartTrigger( triggerName: string, @@ -155,8 +156,8 @@ export interface TriggerOperations { ): Promise, void>>; /** * Starts a trigger. - * @param triggerName - The trigger name. - * @param options - The options parameters. + * @param triggerName The trigger name. + * @param options The options parameters. */ beginStartTriggerAndWait( triggerName: string, @@ -164,8 +165,8 @@ export interface TriggerOperations { ): Promise; /** * Stops a trigger. - * @param triggerName - The trigger name. - * @param options - The options parameters. + * @param triggerName The trigger name. + * @param options The options parameters. */ beginStopTrigger( triggerName: string, @@ -173,8 +174,8 @@ export interface TriggerOperations { ): Promise, void>>; /** * Stops a trigger. - * @param triggerName - The trigger name. - * @param options - The options parameters. + * @param triggerName The trigger name. + * @param options The options parameters. */ beginStopTriggerAndWait( triggerName: string, diff --git a/sdk/synapse/synapse-artifacts/src/operationsInterfaces/triggerRunOperations.ts b/sdk/synapse/synapse-artifacts/src/operationsInterfaces/triggerRunOperations.ts index 500badf70459..b72a67c56b17 100644 --- a/sdk/synapse/synapse-artifacts/src/operationsInterfaces/triggerRunOperations.ts +++ b/sdk/synapse/synapse-artifacts/src/operationsInterfaces/triggerRunOperations.ts @@ -18,9 +18,9 @@ import type { export interface TriggerRunOperations { /** * Rerun single trigger instance by runId. - * @param triggerName - The trigger name. - * @param runId - The pipeline run identifier. - * @param options - The options parameters. + * @param triggerName The trigger name. + * @param runId The pipeline run identifier. + * @param options The options parameters. */ rerunTriggerInstance( triggerName: string, @@ -29,9 +29,9 @@ export interface TriggerRunOperations { ): Promise; /** * Cancel single trigger instance by runId. - * @param triggerName - The trigger name. - * @param runId - The pipeline run identifier. - * @param options - The options parameters. + * @param triggerName The trigger name. + * @param runId The pipeline run identifier. + * @param options The options parameters. */ cancelTriggerInstance( triggerName: string, @@ -40,8 +40,8 @@ export interface TriggerRunOperations { ): Promise; /** * Query trigger runs. - * @param filterParameters - Parameters to filter the pipeline run. - * @param options - The options parameters. + * @param filterParameters Parameters to filter the pipeline run. + * @param options The options parameters. */ queryTriggerRunsByWorkspace( filterParameters: RunFilterParameters, diff --git a/sdk/synapse/synapse-artifacts/src/operationsInterfaces/workspaceGitRepoManagement.ts b/sdk/synapse/synapse-artifacts/src/operationsInterfaces/workspaceGitRepoManagement.ts index d459020855d1..00f80fa17caf 100644 --- a/sdk/synapse/synapse-artifacts/src/operationsInterfaces/workspaceGitRepoManagement.ts +++ b/sdk/synapse/synapse-artifacts/src/operationsInterfaces/workspaceGitRepoManagement.ts @@ -16,8 +16,8 @@ import type { export interface WorkspaceGitRepoManagement { /** * Get the GitHub access token. - * @param gitHubAccessTokenRequest - The GitHub access token request - * @param options - The options parameters. + * @param gitHubAccessTokenRequest + * @param options The options parameters. */ getGitHubAccessToken( gitHubAccessTokenRequest: GitHubAccessTokenRequest, diff --git a/sdk/synapse/synapse-artifacts/src/operationsInterfaces/workspaceOperations.ts b/sdk/synapse/synapse-artifacts/src/operationsInterfaces/workspaceOperations.ts index b350669c6dc6..15fe2d77f1a9 100644 --- a/sdk/synapse/synapse-artifacts/src/operationsInterfaces/workspaceOperations.ts +++ b/sdk/synapse/synapse-artifacts/src/operationsInterfaces/workspaceOperations.ts @@ -6,13 +6,16 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import type { WorkspaceGetOptionalParams, WorkspaceGetResponse } from "../models/index.js"; +import type { + WorkspaceGetOptionalParams, + WorkspaceGetResponse, +} from "../models/index.js"; /** Interface representing a WorkspaceOperations. */ export interface WorkspaceOperations { /** * Get Workspace - * @param options - The options parameters. + * @param options The options parameters. */ get(options?: WorkspaceGetOptionalParams): Promise; } diff --git a/sdk/synapse/synapse-artifacts/src/pagingHelper.ts b/sdk/synapse/synapse-artifacts/src/pagingHelper.ts index a37cb5626f6a..205cccc26592 100644 --- a/sdk/synapse/synapse-artifacts/src/pagingHelper.ts +++ b/sdk/synapse/synapse-artifacts/src/pagingHelper.ts @@ -16,7 +16,7 @@ const pageMap = new WeakMap(); * Given the last `.value` produced by the `byPage` iterator, * returns a continuation token that can be used to begin paging from * that point later. - * @param page - An object from accessing `value` on the IteratorResult from a `byPage` iterator. + * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator. * @returns The continuation token that can be passed into byPage() during future calls. */ export function getContinuationToken(page: unknown): string | undefined { @@ -26,7 +26,10 @@ export function getContinuationToken(page: unknown): string | undefined { return pageMap.get(page)?.continuationToken; } -export function setContinuationToken(page: unknown, continuationToken: string | undefined): void { +export function setContinuationToken( + page: unknown, + continuationToken: string | undefined, +): void { if (typeof page !== "object" || page === null || !continuationToken) { return; } diff --git a/sdk/synapse/synapse-artifacts/swagger/README.md b/sdk/synapse/synapse-artifacts/swagger/README.md index 84810aa0b32b..6d4c5971d874 100644 --- a/sdk/synapse/synapse-artifacts/swagger/README.md +++ b/sdk/synapse/synapse-artifacts/swagger/README.md @@ -18,7 +18,7 @@ clear-output-folder: false tracing-info: namespace: "Azure.Synapse.Artifacts" packagePrefix: "Microsoft.Synapse" -require: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/0da14ec4f475435b9d7d0ba06e49f05a5daac226/specification/synapse/data-plane/readme.md +require: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/222af3670e36c5083cb0dc8a9c2677a8f77f8958/specification/synapse/data-plane/readme.md use-extension: "@autorest/typescript": "6.0.34" tag: package-artifacts-composite-v7