public interface Projects extends Service, ProjectsTypes
Projects interface provides methods for managing the lifecycle of
Harbor project that stores and distributes container repositories and images.ProjectsTypes.ConfigStatus, ProjectsTypes.CreateSpec, ProjectsTypes.Info, ProjectsTypes.Scope, ProjectsTypes.Summary_VAPI_SERVICE_ID| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
create(java.lang.String registry,
ProjectsTypes.CreateSpec spec)
Creates a project in a Harbor registry using the supplied specification.
|
void |
create(java.lang.String registry,
ProjectsTypes.CreateSpec spec,
AsyncCallback<java.lang.String> asyncCallback)
Creates a project in a Harbor registry using the supplied specification.
|
void |
create(java.lang.String registry,
ProjectsTypes.CreateSpec spec,
AsyncCallback<java.lang.String> asyncCallback,
InvocationConfig invocationConfig)
Creates a project in a Harbor registry using the supplied specification.
|
java.lang.String |
create(java.lang.String registry,
ProjectsTypes.CreateSpec spec,
InvocationConfig invocationConfig)
Creates a project in a Harbor registry using the supplied specification.
|
void |
delete(java.lang.String registry,
java.lang.String project)
Deletes the specified project from Harbor registry.
|
void |
delete(java.lang.String registry,
java.lang.String project,
AsyncCallback<java.lang.Void> asyncCallback)
Deletes the specified project from Harbor registry.
|
void |
delete(java.lang.String registry,
java.lang.String project,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Deletes the specified project from Harbor registry.
|
void |
delete(java.lang.String registry,
java.lang.String project,
InvocationConfig invocationConfig)
Deletes the specified project from Harbor registry.
|
ProjectsTypes.Info |
get(java.lang.String registry,
java.lang.String project)
Returns detailed information about the specified Harbor project.
|
void |
get(java.lang.String registry,
java.lang.String project,
AsyncCallback<ProjectsTypes.Info> asyncCallback)
Returns detailed information about the specified Harbor project.
|
void |
get(java.lang.String registry,
java.lang.String project,
AsyncCallback<ProjectsTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Returns detailed information about the specified Harbor project.
|
ProjectsTypes.Info |
get(java.lang.String registry,
java.lang.String project,
InvocationConfig invocationConfig)
Returns detailed information about the specified Harbor project.
|
java.util.List<ProjectsTypes.Summary> |
list(java.lang.String registry)
Returns basic information of all projects in a Harbor registry.
|
void |
list(java.lang.String registry,
AsyncCallback<java.util.List<ProjectsTypes.Summary>> asyncCallback)
Returns basic information of all projects in a Harbor registry.
|
void |
list(java.lang.String registry,
AsyncCallback<java.util.List<ProjectsTypes.Summary>> asyncCallback,
InvocationConfig invocationConfig)
Returns basic information of all projects in a Harbor registry.
|
java.util.List<ProjectsTypes.Summary> |
list(java.lang.String registry,
InvocationConfig invocationConfig)
Returns basic information of all projects in a Harbor registry.
|
void |
purge(java.lang.String registry,
java.lang.String project)
Remove all repositories, images and members in the project.
|
void |
purge(java.lang.String registry,
java.lang.String project,
AsyncCallback<java.lang.Void> asyncCallback)
Remove all repositories, images and members in the project.
|
void |
purge(java.lang.String registry,
java.lang.String project,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Remove all repositories, images and members in the project.
|
void |
purge(java.lang.String registry,
java.lang.String project,
InvocationConfig invocationConfig)
Remove all repositories, images and members in the project.
|
java.lang.String create(java.lang.String registry,
ProjectsTypes.CreateSpec spec)
Synchronous method overload. Result of the invocation will be reported as a method return value.
registry - Identifier of the Registry.
The parameter must be an identifier for the resource type: com.vmware.vcenter.content.Registry.spec - Information used to create the Harbor project.com.vmware.vcenter.content.Registry.Harbor.Project.InvalidArgument - if spec contains any error.NotAllowedInCurrentState - if Harbor registry is being deleted.NotFound - if a registry specified by registry could not be found.AlreadyExists - if a project with the same name already exists in the registry. In vSphere 7.0,
the existing project could have been created automatically when a namespace with
the same name is created.Error - if the system reports an error while responding to the request.Unauthenticated - if the user can not be authenticated.Unauthorized - if the user does not have ContentLibrary.ManageRegistryProject privilege.java.lang.String create(java.lang.String registry,
ProjectsTypes.CreateSpec spec,
InvocationConfig invocationConfig)
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig to specify configuration for this particular invocation.
registry - Identifier of the Registry.
The parameter must be an identifier for the resource type: com.vmware.vcenter.content.Registry.spec - Information used to create the Harbor project.invocationConfig - Configuration for the method invocation.com.vmware.vcenter.content.Registry.Harbor.Project.InvalidArgument - if spec contains any error.NotAllowedInCurrentState - if Harbor registry is being deleted.NotFound - if a registry specified by registry could not be found.AlreadyExists - if a project with the same name already exists in the registry. In vSphere 7.0,
the existing project could have been created automatically when a namespace with
the same name is created.Error - if the system reports an error while responding to the request.Unauthenticated - if the user can not be authenticated.Unauthorized - if the user does not have ContentLibrary.ManageRegistryProject privilege.void create(java.lang.String registry,
ProjectsTypes.CreateSpec spec,
AsyncCallback<java.lang.String> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Invocation Result:
Identifier of the newly created Harbor project.
The return value will be an identifier for the resource type: com.vmware.vcenter.content.Registry.Harbor.Project.
Operation Errors:
InvalidArgument - if spec contains any error.
NotAllowedInCurrentState - if Harbor registry is being deleted.
NotFound - if a registry specified by registry could not be found.
AlreadyExists - if a project with the same name already exists in the registry. In vSphere 7.0,
the existing project could have been created automatically when a namespace with
the same name is created.
Error - if the system reports an error while responding to the request.
Unauthenticated - if the user can not be authenticated.
Unauthorized - if the user does not have ContentLibrary.ManageRegistryProject privilege.
registry - Identifier of the Registry.
The parameter must be an identifier for the resource type: com.vmware.vcenter.content.Registry.spec - Information used to create the Harbor project.asyncCallback - Receives the status (progress, result or error) of the operation invocation.void create(java.lang.String registry,
ProjectsTypes.CreateSpec spec,
AsyncCallback<java.lang.String> asyncCallback,
InvocationConfig invocationConfig)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Use invocationConfig to specify configuration for this particular invocation.
Invocation Result:
Identifier of the newly created Harbor project.
The return value will be an identifier for the resource type: com.vmware.vcenter.content.Registry.Harbor.Project.
Operation Errors:
InvalidArgument - if spec contains any error.
NotAllowedInCurrentState - if Harbor registry is being deleted.
NotFound - if a registry specified by registry could not be found.
AlreadyExists - if a project with the same name already exists in the registry. In vSphere 7.0,
the existing project could have been created automatically when a namespace with
the same name is created.
Error - if the system reports an error while responding to the request.
Unauthenticated - if the user can not be authenticated.
Unauthorized - if the user does not have ContentLibrary.ManageRegistryProject privilege.
registry - Identifier of the Registry.
The parameter must be an identifier for the resource type: com.vmware.vcenter.content.Registry.spec - Information used to create the Harbor project.asyncCallback - Receives the status (progress, result or error) of the operation invocation.invocationConfig - Configuration for the method invocation.void delete(java.lang.String registry,
java.lang.String project)
Synchronous method overload. Result of the invocation will be reported as a method return value.
registry - Identifier of the registry.
The parameter must be an identifier for the resource type: com.vmware.vcenter.content.Registry.project - Identifier of the Harbor project.
The parameter must be an identifier for the resource type: com.vmware.vcenter.content.Registry.Harbor.Project.NotAllowedInCurrentState - if Harbor registry is being deleted.NotFound - if registry or project cannot be found. In vSphere 7.0, the
existing project could have been deleted automatically when a namespace with the
same name is deleted.Error - if the system reports an error while responding to the request.Unauthenticated - if the user can not be authenticated.Unauthorized - if the user does not have ContentLibrary.ManageRegistryProject privilege.void delete(java.lang.String registry,
java.lang.String project,
InvocationConfig invocationConfig)
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig to specify configuration for this particular invocation.
registry - Identifier of the registry.
The parameter must be an identifier for the resource type: com.vmware.vcenter.content.Registry.project - Identifier of the Harbor project.
The parameter must be an identifier for the resource type: com.vmware.vcenter.content.Registry.Harbor.Project.invocationConfig - Configuration for the method invocation.NotAllowedInCurrentState - if Harbor registry is being deleted.NotFound - if registry or project cannot be found. In vSphere 7.0, the
existing project could have been deleted automatically when a namespace with the
same name is deleted.Error - if the system reports an error while responding to the request.Unauthenticated - if the user can not be authenticated.Unauthorized - if the user does not have ContentLibrary.ManageRegistryProject privilege.void delete(java.lang.String registry,
java.lang.String project,
AsyncCallback<java.lang.Void> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Operation Errors:
NotAllowedInCurrentState - if Harbor registry is being deleted.
NotFound - if registry or project cannot be found. In vSphere 7.0, the
existing project could have been deleted automatically when a namespace with the
same name is deleted.
Error - if the system reports an error while responding to the request.
Unauthenticated - if the user can not be authenticated.
Unauthorized - if the user does not have ContentLibrary.ManageRegistryProject privilege.
registry - Identifier of the registry.
The parameter must be an identifier for the resource type: com.vmware.vcenter.content.Registry.project - Identifier of the Harbor project.
The parameter must be an identifier for the resource type: com.vmware.vcenter.content.Registry.Harbor.Project.asyncCallback - Receives the status (progress, result or error) of the operation invocation.void delete(java.lang.String registry,
java.lang.String project,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Use invocationConfig to specify configuration for this particular invocation.
Operation Errors:
NotAllowedInCurrentState - if Harbor registry is being deleted.
NotFound - if registry or project cannot be found. In vSphere 7.0, the
existing project could have been deleted automatically when a namespace with the
same name is deleted.
Error - if the system reports an error while responding to the request.
Unauthenticated - if the user can not be authenticated.
Unauthorized - if the user does not have ContentLibrary.ManageRegistryProject privilege.
registry - Identifier of the registry.
The parameter must be an identifier for the resource type: com.vmware.vcenter.content.Registry.project - Identifier of the Harbor project.
The parameter must be an identifier for the resource type: com.vmware.vcenter.content.Registry.Harbor.Project.asyncCallback - Receives the status (progress, result or error) of the operation invocation.invocationConfig - Configuration for the method invocation.ProjectsTypes.Info get(java.lang.String registry, java.lang.String project)
Synchronous method overload. Result of the invocation will be reported as a method return value.
registry - Identifier of the registry.
The parameter must be an identifier for the resource type: com.vmware.vcenter.content.Registry.project - Identifier of the Harbor project.
The parameter must be an identifier for the resource type: com.vmware.vcenter.content.Registry.Harbor.Project.NotFound - if registry or project cannot be found.Error - if the system reports an error while responding to the request.Unauthenticated - if the user can not be authenticated.Unauthorized - if the user does not have System.Read privilege.ProjectsTypes.Info get(java.lang.String registry, java.lang.String project, InvocationConfig invocationConfig)
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig to specify configuration for this particular invocation.
registry - Identifier of the registry.
The parameter must be an identifier for the resource type: com.vmware.vcenter.content.Registry.project - Identifier of the Harbor project.
The parameter must be an identifier for the resource type: com.vmware.vcenter.content.Registry.Harbor.Project.invocationConfig - Configuration for the method invocation.NotFound - if registry or project cannot be found.Error - if the system reports an error while responding to the request.Unauthenticated - if the user can not be authenticated.Unauthorized - if the user does not have System.Read privilege.void get(java.lang.String registry,
java.lang.String project,
AsyncCallback<ProjectsTypes.Info> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Invocation Result:
Detailed information about the specified Harbor project.
Operation Errors:
NotFound - if registry or project cannot be found.
Error - if the system reports an error while responding to the request.
Unauthenticated - if the user can not be authenticated.
Unauthorized - if the user does not have System.Read privilege.
registry - Identifier of the registry.
The parameter must be an identifier for the resource type: com.vmware.vcenter.content.Registry.project - Identifier of the Harbor project.
The parameter must be an identifier for the resource type: com.vmware.vcenter.content.Registry.Harbor.Project.asyncCallback - Receives the status (progress, result or error) of the operation invocation.void get(java.lang.String registry,
java.lang.String project,
AsyncCallback<ProjectsTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Use invocationConfig to specify configuration for this particular invocation.
Invocation Result:
Detailed information about the specified Harbor project.
Operation Errors:
NotFound - if registry or project cannot be found.
Error - if the system reports an error while responding to the request.
Unauthenticated - if the user can not be authenticated.
Unauthorized - if the user does not have System.Read privilege.
registry - Identifier of the registry.
The parameter must be an identifier for the resource type: com.vmware.vcenter.content.Registry.project - Identifier of the Harbor project.
The parameter must be an identifier for the resource type: com.vmware.vcenter.content.Registry.Harbor.Project.asyncCallback - Receives the status (progress, result or error) of the operation invocation.invocationConfig - Configuration for the method invocation.java.util.List<ProjectsTypes.Summary> list(java.lang.String registry)
Synchronous method overload. Result of the invocation will be reported as a method return value.
registry - Identifier of the registry.
The parameter must be an identifier for the resource type: com.vmware.vcenter.content.Registry.NotFound - if registry cannot be found.Error - if the system reports an error while responding to the request.Unauthenticated - if the user can not be authenticated.Unauthorized - if the user does not have System.Read privilege.java.util.List<ProjectsTypes.Summary> list(java.lang.String registry, InvocationConfig invocationConfig)
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig to specify configuration for this particular invocation.
registry - Identifier of the registry.
The parameter must be an identifier for the resource type: com.vmware.vcenter.content.Registry.invocationConfig - Configuration for the method invocation.NotFound - if registry cannot be found.Error - if the system reports an error while responding to the request.Unauthenticated - if the user can not be authenticated.Unauthorized - if the user does not have System.Read privilege.void list(java.lang.String registry,
AsyncCallback<java.util.List<ProjectsTypes.Summary>> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Invocation Result:
The list of summary information of all Harbor projects.
Operation Errors:
NotFound - if registry cannot be found.
Error - if the system reports an error while responding to the request.
Unauthenticated - if the user can not be authenticated.
Unauthorized - if the user does not have System.Read privilege.
registry - Identifier of the registry.
The parameter must be an identifier for the resource type: com.vmware.vcenter.content.Registry.asyncCallback - Receives the status (progress, result or error) of the operation invocation.void list(java.lang.String registry,
AsyncCallback<java.util.List<ProjectsTypes.Summary>> asyncCallback,
InvocationConfig invocationConfig)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Use invocationConfig to specify configuration for this particular invocation.
Invocation Result:
The list of summary information of all Harbor projects.
Operation Errors:
NotFound - if registry cannot be found.
Error - if the system reports an error while responding to the request.
Unauthenticated - if the user can not be authenticated.
Unauthorized - if the user does not have System.Read privilege.
registry - Identifier of the registry.
The parameter must be an identifier for the resource type: com.vmware.vcenter.content.Registry.asyncCallback - Receives the status (progress, result or error) of the operation invocation.invocationConfig - Configuration for the method invocation.void purge(java.lang.String registry,
java.lang.String project)
Synchronous method overload. Result of the invocation will be reported as a method return value.
registry - Registry identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.content.Registry.project - Identifier of the Harbor project.
The parameter must be an identifier for the resource type: com.vmware.vcenter.content.Registry.Harbor.Project.NotFound - if registry or project cannot be found.NotAllowedInCurrentState - if Harbor registry is being deleted or the project is not in ProjectsTypes.ConfigStatus.READY
status.Error - if the system reports an error while responding to the request.Unauthenticated - if the user can not be authenticated.Unauthorized - if the user does not have ContentLibrary.ManageRegistryProject privilege.void purge(java.lang.String registry,
java.lang.String project,
InvocationConfig invocationConfig)
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig to specify configuration for this particular invocation.
registry - Registry identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.content.Registry.project - Identifier of the Harbor project.
The parameter must be an identifier for the resource type: com.vmware.vcenter.content.Registry.Harbor.Project.invocationConfig - Configuration for the method invocation.NotFound - if registry or project cannot be found.NotAllowedInCurrentState - if Harbor registry is being deleted or the project is not in ProjectsTypes.ConfigStatus.READY
status.Error - if the system reports an error while responding to the request.Unauthenticated - if the user can not be authenticated.Unauthorized - if the user does not have ContentLibrary.ManageRegistryProject privilege.void purge(java.lang.String registry,
java.lang.String project,
AsyncCallback<java.lang.Void> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Operation Errors:
NotFound - if registry or project cannot be found.
NotAllowedInCurrentState - if Harbor registry is being deleted or the project is not in ProjectsTypes.ConfigStatus.READY
status.
Error - if the system reports an error while responding to the request.
Unauthenticated - if the user can not be authenticated.
Unauthorized - if the user does not have ContentLibrary.ManageRegistryProject privilege.
registry - Registry identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.content.Registry.project - Identifier of the Harbor project.
The parameter must be an identifier for the resource type: com.vmware.vcenter.content.Registry.Harbor.Project.asyncCallback - Receives the status (progress, result or error) of the operation invocation.void purge(java.lang.String registry,
java.lang.String project,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Use invocationConfig to specify configuration for this particular invocation.
Operation Errors:
NotFound - if registry or project cannot be found.
NotAllowedInCurrentState - if Harbor registry is being deleted or the project is not in ProjectsTypes.ConfigStatus.READY
status.
Error - if the system reports an error while responding to the request.
Unauthenticated - if the user can not be authenticated.
Unauthorized - if the user does not have ContentLibrary.ManageRegistryProject privilege.
registry - Registry identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.content.Registry.project - Identifier of the Harbor project.
The parameter must be an identifier for the resource type: com.vmware.vcenter.content.Registry.Harbor.Project.asyncCallback - Receives the status (progress, result or error) of the operation invocation.invocationConfig - Configuration for the method invocation.