artifactCreateDataset
/projects/{projectId}/datasets
Usage and SDK Samples
curl -X POST "https://localhost:5000/vizier-db/api/v1/projects/{projectId}/datasets"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ArtifactApi;
import java.io.File;
import java.util.*;
public class ArtifactApiExample {
public static void main(String[] args) {
ArtifactApi apiInstance = new ArtifactApi();
Integer projectId = 56; // Integer |
Body_14 body = ; // Body_14 |
try {
apiInstance.artifactCreateDataset(projectId, body);
} catch (ApiException e) {
System.err.println("Exception when calling ArtifactApi#artifactCreateDataset");
e.printStackTrace();
}
}
}
import io.swagger.client.api.ArtifactApi;
public class ArtifactApiExample {
public static void main(String[] args) {
ArtifactApi apiInstance = new ArtifactApi();
Integer projectId = 56; // Integer |
Body_14 body = ; // Body_14 |
try {
apiInstance.artifactCreateDataset(projectId, body);
} catch (ApiException e) {
System.err.println("Exception when calling ArtifactApi#artifactCreateDataset");
e.printStackTrace();
}
}
}
Integer *projectId = 56; //
Body_14 *body = ; //
ArtifactApi *apiInstance = [[ArtifactApi alloc] init];
[apiInstance artifactCreateDatasetWith:projectId
body:body
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
var VizierDb = require('vizier_db');
var api = new VizierDb.ArtifactApi()
var projectId = 56; // {Integer}
var body = ; // {Body_14}
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.artifactCreateDataset(projectId, body, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class artifactCreateDatasetExample
{
public void main()
{
var apiInstance = new ArtifactApi();
var projectId = 56; // Integer |
var body = new Body_14(); // Body_14 |
try
{
apiInstance.artifactCreateDataset(projectId, body);
}
catch (Exception e)
{
Debug.Print("Exception when calling ArtifactApi.artifactCreateDataset: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\ArtifactApi();
$projectId = 56; // Integer |
$body = ; // Body_14 |
try {
$api_instance->artifactCreateDataset($projectId, $body);
} catch (Exception $e) {
echo 'Exception when calling ArtifactApi->artifactCreateDataset: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ArtifactApi;
my $api_instance = WWW::SwaggerClient::ArtifactApi->new();
my $projectId = 56; # Integer |
my $body = WWW::SwaggerClient::Object::Body_14->new(); # Body_14 |
eval {
$api_instance->artifactCreateDataset(projectId => $projectId, body => $body);
};
if ($@) {
warn "Exception when calling ArtifactApi->artifactCreateDataset: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.ArtifactApi()
projectId = 56 # Integer |
body = # Body_14 |
try:
api_instance.artifact_create_dataset(projectId, body)
except ApiException as e:
print("Exception when calling ArtifactApi->artifactCreateDataset: %s\n" % e)
Parameters
| Name | Description |
|---|---|
| projectId* |
Integer
Required
|
| Name | Description |
|---|---|
| body * |