Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add deployment freezes permissions #816

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ Octopus.Client
Task Delete(String, Object, Object)
Task Delete(String, CancellationToken)
Task Delete(String, Object, Object, CancellationToken)
Task<TResponse> Delete(String, Octopus.Client.TCommand, CancellationToken)
Task<TResponse> Do(Octopus.Server.MessageContracts.Base.ICommand<TCommand, TResponse>, CancellationToken)
Octopus.Client.IOctopusSpaceAsyncRepository ForSpace(Octopus.Client.Model.SpaceResource)
Octopus.Client.IOctopusSystemAsyncRepository ForSystem()
Expand Down Expand Up @@ -81,6 +82,7 @@ Octopus.Client
Task<TResource> Update(String, Octopus.Client.TResource, Object)
Task<TResource> Update(String, Octopus.Client.TResource, CancellationToken)
Task<TResource> Update(String, Octopus.Client.TResource, Object, CancellationToken)
Task<TResponse> Update(String, Octopus.Client.TCommand, Object, CancellationToken)
}
interface IOctopusAsyncRepository
Octopus.Client.IOctopusSpaceAsyncRepository
Expand All @@ -99,6 +101,7 @@ Octopus.Client
Octopus.Client.TResource Create(String, Octopus.Client.TResource, Object)
Octopus.Client.TResponse Create(String, Octopus.Client.TCommand, Object)
void Delete(String, Object, Object)
Octopus.Client.TResponse Delete(String, Octopus.Client.TCommand, Object)
Octopus.Client.TResponse Do(Octopus.Server.MessageContracts.Base.ICommand<TCommand, TResponse>, CancellationToken)
Octopus.Client.IOctopusSpaceRepository ForSpace(Octopus.Client.Model.SpaceResource)
Octopus.Client.IOctopusSystemRepository ForSystem()
Expand All @@ -120,6 +123,7 @@ Octopus.Client
void SignIn(Octopus.Client.Model.LoginCommand)
void SignOut()
Octopus.Client.TResource Update(String, Octopus.Client.TResource, Object)
Octopus.Client.TResponse Update(String, Octopus.Client.TCommand, Object)
}
interface IOctopusClientFactory
{
Expand Down Expand Up @@ -315,6 +319,7 @@ Octopus.Client
Task Delete(String, Object, Object)
Task Delete(String, CancellationToken)
Task Delete(String, Object, Object, CancellationToken)
Task<TResponse> Delete(String, Octopus.Client.TCommand, CancellationToken)
void Dispose()
Task<TResponse> Do(Octopus.Server.MessageContracts.Base.ICommand<TCommand, TResponse>, CancellationToken)
Octopus.Client.IOctopusSpaceAsyncRepository ForSpace(Octopus.Client.Model.SpaceResource)
Expand Down Expand Up @@ -360,6 +365,7 @@ Octopus.Client
Task<TResource> Update(String, Octopus.Client.TResource, Object)
Task<TResource> Update(String, Octopus.Client.TResource, CancellationToken)
Task<TResource> Update(String, Octopus.Client.TResource, Object, CancellationToken)
Task<TResponse> Update(String, Octopus.Client.TCommand, Object, CancellationToken)
}
class OctopusAsyncRepository
Octopus.Client.IOctopusAsyncRepository
Expand Down Expand Up @@ -457,6 +463,7 @@ Octopus.Client
Octopus.Client.TResource Create(String, Octopus.Client.TResource, Object)
Octopus.Client.TResponse Create(String, Octopus.Client.TCommand, Object)
void Delete(String, Object, Object)
Octopus.Client.TResponse Delete(String, Octopus.Client.TCommand, Object)
void Dispose()
Octopus.Client.TResponse Do(Octopus.Server.MessageContracts.Base.ICommand<TCommand, TResponse>, CancellationToken)
Octopus.Client.IOctopusSpaceRepository ForSpace(Octopus.Client.Model.SpaceResource)
Expand All @@ -480,6 +487,7 @@ Octopus.Client
void SignIn(Octopus.Client.Model.LoginCommand)
void SignOut()
Octopus.Client.TResource Update(String, Octopus.Client.TResource, Object)
Octopus.Client.TResponse Update(String, Octopus.Client.TCommand, Object)
}
class OctopusClientFactory
Octopus.Client.IOctopusClientFactory
Expand Down Expand Up @@ -4193,6 +4201,7 @@ Octopus.Client.Model
static Octopus.Client.Model.Permission DefectResolve
static Octopus.Client.Model.Permission DeploymentCreate
static Octopus.Client.Model.Permission DeploymentDelete
static Octopus.Client.Model.Permission DeploymentFreezeAdminister
static Octopus.Client.Model.Permission DeploymentView
static Octopus.Client.Model.Permission EnvironmentCreate
static Octopus.Client.Model.Permission EnvironmentDelete
Expand Down Expand Up @@ -6393,10 +6402,37 @@ Octopus.Client.Model.DeploymentFreezes
Dictionary<String, ReferenceCollection> ProjectEnvironmentScope { get; set; }
DateTimeOffset Start { get; set; }
}
class DeleteDeploymentFreezeCommand
{
.ctor()
String Id { get; set; }
}
class DeleteDeploymentFreezeResponse
{
.ctor()
}
abstract class DeploymentFreezeClientExtensions
{
static Octopus.Client.Model.DeploymentFreezes.CreateDeploymentFreezeResponse Create(Octopus.Client.IOctopusClient, Octopus.Client.Model.DeploymentFreezes.CreateDeploymentFreezeCommand)
}
class ModifyDeploymentFreezeCommand
{
.ctor()
DateTimeOffset End { get; set; }
String Id { get; set; }
String Name { get; set; }
Dictionary<String, ReferenceCollection> ProjectEnvironmentScope { get; set; }
DateTimeOffset Start { get; set; }
}
class ModifyDeploymentFreezeResponse
{
.ctor()
DateTimeOffset End { get; set; }
String Id { get; set; }
String Name { get; set; }
Dictionary<String, ReferenceCollection> ProjectEnvironmentScope { get; set; }
DateTimeOffset Start { get; set; }
}
}
Octopus.Client.Model.DeploymentProcess
{
Expand Down Expand Up @@ -7503,6 +7539,8 @@ Octopus.Client.Repositories
{
.ctor(Octopus.Client.IOctopusClient)
Octopus.Client.Model.DeploymentFreezes.CreateDeploymentFreezeResponse Create(Octopus.Client.Model.DeploymentFreezes.CreateDeploymentFreezeCommand)
Octopus.Client.Model.DeploymentFreezes.DeleteDeploymentFreezeResponse Delete(Octopus.Client.Model.DeploymentFreezes.DeleteDeploymentFreezeCommand)
Octopus.Client.Model.DeploymentFreezes.ModifyDeploymentFreezeResponse Modify(Octopus.Client.Model.DeploymentFreezes.ModifyDeploymentFreezeCommand)
}
interface IAccountRepository
Octopus.Client.Repositories.IResourceRepository
Expand Down Expand Up @@ -7662,6 +7700,8 @@ Octopus.Client.Repositories
interface IDeploymentFreezeRepository
{
Octopus.Client.Model.DeploymentFreezes.CreateDeploymentFreezeResponse Create(Octopus.Client.Model.DeploymentFreezes.CreateDeploymentFreezeCommand)
Octopus.Client.Model.DeploymentFreezes.DeleteDeploymentFreezeResponse Delete(Octopus.Client.Model.DeploymentFreezes.DeleteDeploymentFreezeCommand)
Octopus.Client.Model.DeploymentFreezes.ModifyDeploymentFreezeResponse Modify(Octopus.Client.Model.DeploymentFreezes.ModifyDeploymentFreezeCommand)
}
interface IDeploymentProcessRepository
Octopus.Client.Repositories.IGet<DeploymentProcessResource>
Expand Down Expand Up @@ -8239,6 +8279,8 @@ Octopus.Client.Repositories.Async
{
.ctor(Octopus.Client.IOctopusAsyncClient)
Task<CreateDeploymentFreezeResponse> Create(Octopus.Client.Model.DeploymentFreezes.CreateDeploymentFreezeCommand, CancellationToken)
Task<DeleteDeploymentFreezeResponse> Delete(Octopus.Client.Model.DeploymentFreezes.DeleteDeploymentFreezeCommand, CancellationToken)
Task<ModifyDeploymentFreezeResponse> Modify(Octopus.Client.Model.DeploymentFreezes.ModifyDeploymentFreezeCommand, CancellationToken)
}
interface IAccountRepository
Octopus.Client.Repositories.Async.IResourceRepository
Expand Down Expand Up @@ -8403,6 +8445,8 @@ Octopus.Client.Repositories.Async
interface IDeploymentFreezeRepository
{
Task<CreateDeploymentFreezeResponse> Create(Octopus.Client.Model.DeploymentFreezes.CreateDeploymentFreezeCommand, CancellationToken)
Task<DeleteDeploymentFreezeResponse> Delete(Octopus.Client.Model.DeploymentFreezes.DeleteDeploymentFreezeCommand, CancellationToken)
Task<ModifyDeploymentFreezeResponse> Modify(Octopus.Client.Model.DeploymentFreezes.ModifyDeploymentFreezeCommand, CancellationToken)
}
interface IDeploymentProcessRepository
Octopus.Client.Repositories.Async.IGet<DeploymentProcessResource>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ Octopus.Client
Task Delete(String, Object, Object)
Task Delete(String, CancellationToken)
Task Delete(String, Object, Object, CancellationToken)
Task<TResponse> Delete(String, Octopus.Client.TCommand, CancellationToken)
Task<TResponse> Do(Octopus.Server.MessageContracts.Base.ICommand<TCommand, TResponse>, CancellationToken)
Octopus.Client.IOctopusSpaceAsyncRepository ForSpace(Octopus.Client.Model.SpaceResource)
Octopus.Client.IOctopusSystemAsyncRepository ForSystem()
Expand Down Expand Up @@ -81,6 +82,7 @@ Octopus.Client
Task<TResource> Update(String, Octopus.Client.TResource, Object)
Task<TResource> Update(String, Octopus.Client.TResource, CancellationToken)
Task<TResource> Update(String, Octopus.Client.TResource, Object, CancellationToken)
Task<TResponse> Update(String, Octopus.Client.TCommand, Object, CancellationToken)
}
interface IOctopusAsyncRepository
Octopus.Client.IOctopusSpaceAsyncRepository
Expand All @@ -99,6 +101,7 @@ Octopus.Client
Octopus.Client.TResource Create(String, Octopus.Client.TResource, Object)
Octopus.Client.TResponse Create(String, Octopus.Client.TCommand, Object)
void Delete(String, Object, Object)
Octopus.Client.TResponse Delete(String, Octopus.Client.TCommand, Object)
Octopus.Client.TResponse Do(Octopus.Server.MessageContracts.Base.ICommand<TCommand, TResponse>, CancellationToken)
Octopus.Client.IOctopusSpaceRepository ForSpace(Octopus.Client.Model.SpaceResource)
Octopus.Client.IOctopusSystemRepository ForSystem()
Expand All @@ -120,6 +123,7 @@ Octopus.Client
void SignIn(Octopus.Client.Model.LoginCommand)
void SignOut()
Octopus.Client.TResource Update(String, Octopus.Client.TResource, Object)
Octopus.Client.TResponse Update(String, Octopus.Client.TCommand, Object)
}
interface IOctopusClientFactory
{
Expand Down Expand Up @@ -315,6 +319,7 @@ Octopus.Client
Task Delete(String, Object, Object)
Task Delete(String, CancellationToken)
Task Delete(String, Object, Object, CancellationToken)
Task<TResponse> Delete(String, Octopus.Client.TCommand, CancellationToken)
void Dispose()
Task<TResponse> Do(Octopus.Server.MessageContracts.Base.ICommand<TCommand, TResponse>, CancellationToken)
Octopus.Client.IOctopusSpaceAsyncRepository ForSpace(Octopus.Client.Model.SpaceResource)
Expand Down Expand Up @@ -360,6 +365,7 @@ Octopus.Client
Task<TResource> Update(String, Octopus.Client.TResource, Object)
Task<TResource> Update(String, Octopus.Client.TResource, CancellationToken)
Task<TResource> Update(String, Octopus.Client.TResource, Object, CancellationToken)
Task<TResponse> Update(String, Octopus.Client.TCommand, Object, CancellationToken)
}
class OctopusAsyncRepository
Octopus.Client.IOctopusAsyncRepository
Expand Down Expand Up @@ -457,6 +463,7 @@ Octopus.Client
Octopus.Client.TResource Create(String, Octopus.Client.TResource, Object)
Octopus.Client.TResponse Create(String, Octopus.Client.TCommand, Object)
void Delete(String, Object, Object)
Octopus.Client.TResponse Delete(String, Octopus.Client.TCommand, Object)
void Dispose()
Octopus.Client.TResponse Do(Octopus.Server.MessageContracts.Base.ICommand<TCommand, TResponse>, CancellationToken)
Octopus.Client.IOctopusSpaceRepository ForSpace(Octopus.Client.Model.SpaceResource)
Expand All @@ -480,6 +487,7 @@ Octopus.Client
void SignIn(Octopus.Client.Model.LoginCommand)
void SignOut()
Octopus.Client.TResource Update(String, Octopus.Client.TResource, Object)
Octopus.Client.TResponse Update(String, Octopus.Client.TCommand, Object)
}
class OctopusClientFactory
Octopus.Client.IOctopusClientFactory
Expand Down Expand Up @@ -4213,6 +4221,7 @@ Octopus.Client.Model
static Octopus.Client.Model.Permission DefectResolve
static Octopus.Client.Model.Permission DeploymentCreate
static Octopus.Client.Model.Permission DeploymentDelete
static Octopus.Client.Model.Permission DeploymentFreezeAdminister
static Octopus.Client.Model.Permission DeploymentView
static Octopus.Client.Model.Permission EnvironmentCreate
static Octopus.Client.Model.Permission EnvironmentDelete
Expand Down Expand Up @@ -6417,10 +6426,37 @@ Octopus.Client.Model.DeploymentFreezes
Dictionary<String, ReferenceCollection> ProjectEnvironmentScope { get; set; }
DateTimeOffset Start { get; set; }
}
class DeleteDeploymentFreezeCommand
{
.ctor()
String Id { get; set; }
}
class DeleteDeploymentFreezeResponse
{
.ctor()
}
abstract class DeploymentFreezeClientExtensions
{
static Octopus.Client.Model.DeploymentFreezes.CreateDeploymentFreezeResponse Create(Octopus.Client.IOctopusClient, Octopus.Client.Model.DeploymentFreezes.CreateDeploymentFreezeCommand)
}
class ModifyDeploymentFreezeCommand
{
.ctor()
DateTimeOffset End { get; set; }
String Id { get; set; }
String Name { get; set; }
Dictionary<String, ReferenceCollection> ProjectEnvironmentScope { get; set; }
DateTimeOffset Start { get; set; }
}
class ModifyDeploymentFreezeResponse
{
.ctor()
DateTimeOffset End { get; set; }
String Id { get; set; }
String Name { get; set; }
Dictionary<String, ReferenceCollection> ProjectEnvironmentScope { get; set; }
DateTimeOffset Start { get; set; }
}
}
Octopus.Client.Model.DeploymentProcess
{
Expand Down Expand Up @@ -7528,6 +7564,8 @@ Octopus.Client.Repositories
{
.ctor(Octopus.Client.IOctopusClient)
Octopus.Client.Model.DeploymentFreezes.CreateDeploymentFreezeResponse Create(Octopus.Client.Model.DeploymentFreezes.CreateDeploymentFreezeCommand)
Octopus.Client.Model.DeploymentFreezes.DeleteDeploymentFreezeResponse Delete(Octopus.Client.Model.DeploymentFreezes.DeleteDeploymentFreezeCommand)
Octopus.Client.Model.DeploymentFreezes.ModifyDeploymentFreezeResponse Modify(Octopus.Client.Model.DeploymentFreezes.ModifyDeploymentFreezeCommand)
}
interface IAccountRepository
Octopus.Client.Repositories.IResourceRepository
Expand Down Expand Up @@ -7687,6 +7725,8 @@ Octopus.Client.Repositories
interface IDeploymentFreezeRepository
{
Octopus.Client.Model.DeploymentFreezes.CreateDeploymentFreezeResponse Create(Octopus.Client.Model.DeploymentFreezes.CreateDeploymentFreezeCommand)
Octopus.Client.Model.DeploymentFreezes.DeleteDeploymentFreezeResponse Delete(Octopus.Client.Model.DeploymentFreezes.DeleteDeploymentFreezeCommand)
Octopus.Client.Model.DeploymentFreezes.ModifyDeploymentFreezeResponse Modify(Octopus.Client.Model.DeploymentFreezes.ModifyDeploymentFreezeCommand)
}
interface IDeploymentProcessRepository
Octopus.Client.Repositories.IGet<DeploymentProcessResource>
Expand Down Expand Up @@ -8264,6 +8304,8 @@ Octopus.Client.Repositories.Async
{
.ctor(Octopus.Client.IOctopusAsyncClient)
Task<CreateDeploymentFreezeResponse> Create(Octopus.Client.Model.DeploymentFreezes.CreateDeploymentFreezeCommand, CancellationToken)
Task<DeleteDeploymentFreezeResponse> Delete(Octopus.Client.Model.DeploymentFreezes.DeleteDeploymentFreezeCommand, CancellationToken)
Task<ModifyDeploymentFreezeResponse> Modify(Octopus.Client.Model.DeploymentFreezes.ModifyDeploymentFreezeCommand, CancellationToken)
}
interface IAccountRepository
Octopus.Client.Repositories.Async.IResourceRepository
Expand Down Expand Up @@ -8428,6 +8470,8 @@ Octopus.Client.Repositories.Async
interface IDeploymentFreezeRepository
{
Task<CreateDeploymentFreezeResponse> Create(Octopus.Client.Model.DeploymentFreezes.CreateDeploymentFreezeCommand, CancellationToken)
Task<DeleteDeploymentFreezeResponse> Delete(Octopus.Client.Model.DeploymentFreezes.DeleteDeploymentFreezeCommand, CancellationToken)
Task<ModifyDeploymentFreezeResponse> Modify(Octopus.Client.Model.DeploymentFreezes.ModifyDeploymentFreezeCommand, CancellationToken)
}
interface IDeploymentProcessRepository
Octopus.Client.Repositories.Async.IGet<DeploymentProcessResource>
Expand Down
Loading
Loading