コード例 #1
0
 /// <summary>
 /// Create client object with mock implementation. This is for unit testing purpose.
 /// </summary>
 public static DatabricksClient CreateClient(IClustersApi clusterApi, IJobsApi jobsApi, IDbfsApi dbfsApi,
     ISecretsApi secretsApi, IGroupsApi groupsApi, ILibrariesApi librariesApi, ITokenApi tokenApi,
     IWorkspaceApi workspaceApi, IInstancePoolApi instancePoolApi)
 {
     return new DatabricksClient(clusterApi, jobsApi, dbfsApi, secretsApi, groupsApi, librariesApi, tokenApi,
         workspaceApi, instancePoolApi);
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DatabricksClient"/> class.
 /// </summary>
 /// <param name="clusterApi">The cluster API implementation.</param>
 /// <param name="jobsApi">The jobs API implementation.</param>
 /// <param name="dbfsApi">The dbfs API implementation.</param>
 /// <param name="secretsApi">The secrets API implementation.</param>
 /// <param name="groupsApi">The groups API implementation.</param>
 /// <param name="librariesApi">The libraries API implementation.</param>
 /// <param name="tokenApi">The token API implementation.</param>
 /// <param name="workspaceApi">The workspace API implementation.</param>
 ///
 private DatabricksClient(IClustersApi clusterApi, IJobsApi jobsApi, IDbfsApi dbfsApi, ISecretsApi secretsApi,
                          IGroupsApi groupsApi, ILibrariesApi librariesApi, ITokenApi tokenApi, IWorkspaceApi workspaceApi)
 {
     this.Clusters  = clusterApi;
     this.Jobs      = jobsApi;
     this.Dbfs      = dbfsApi;
     this.Secrets   = secretsApi;
     this.Groups    = groupsApi;
     this.Libraries = librariesApi;
     this.Token     = tokenApi;
     this.Workspace = workspaceApi;
 }