Exemplo n.º 1
0
 public Task <ProgramDetails> CreateAsync(ProgramDetails program)
 {
     return(api.PostAsync <ProgramDetails>(
                path: $"/programs",
                data: program
                ));
 }
Exemplo n.º 2
0
 public Task <EnvironmentDetails> CreateAsync(EnvironmentDetails record)
 {
     return(api.PostAsync <EnvironmentDetails>(
                path: $"/environments",
                data: record
                ));
 }
Exemplo n.º 3
0
        public Task <ExceptionDetails> CreateAsync(ExceptionDetails exception)
        {
            Ensure.NotNull(exception);

            return(api.PostAsync <ExceptionDetails>(
                       path: $"/exceptions",
                       data: exception
                       ));
        }
Exemplo n.º 4
0
        public Task <DomainDetails> CreateAsync(DomainDetails domain)
        {
            Ensure.NotNull(domain, nameof(domain));

            if (domain.Name == null)
            {
                throw new ArgumentNullException(nameof(domain.Name));
            }


            return(api.PostAsync <DomainDetails>(
                       path: $"/domains",
                       data: domain
                       ));
        }
Exemplo n.º 5
0
 public Task <RepositoryDetails> CreateAsync(RepositoryDetails repository)
 {
     return(api.PostAsync <RepositoryDetails>($"/repositories", repository));
 }
Exemplo n.º 6
0
        public Task <DeploymentDetails> CreateAsync(DeploymentDetails deployment)
        {
            Ensure.NotNull(deployment, nameof(deployment));

            return(api.PostAsync <DeploymentDetails>($"/deployments", deployment));
        }
Exemplo n.º 7
0
        public Task <ClusterDetails> CreateAsync(ClusterDetails cluster)
        {
            Ensure.NotNull(cluster, nameof(cluster));

            return(api.PostAsync <ClusterDetails>($"/clusters", cluster));
        }
Exemplo n.º 8
0
 public Task <EventDetails> CreateAsync(EventDetails record)
 {
     return(api.PostAsync <EventDetails>($"/events", record));
 }
Exemplo n.º 9
0
 public Task <UserDetails> CreateAsync(UserDetails user)
 {
     return(api.PostAsync <UserDetails>($"/users", user));
 }