public class ProjectsStub extends com.vmware.vapi.internal.bindings.Stub implements Projects
Projects
API service.
WARNING: Internal class, subject to change in future versions.
ProjectsTypes.ConfigStatus, ProjectsTypes.CreateSpec, ProjectsTypes.Info, ProjectsTypes.Scope, ProjectsTypes.SummaryapiProvider, converter, ifaceId, retryPolicy, securityContext_VAPI_SERVICE_ID| Constructor and Description |
|---|
ProjectsStub(ApiProvider apiProvider,
StubConfigurationBase config) |
ProjectsStub(ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
StubConfigurationBase config) |
| 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.
|
public ProjectsStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public ProjectsStub(ApiProvider apiProvider, StubConfigurationBase config)
public java.lang.String create(java.lang.String registry,
ProjectsTypes.CreateSpec spec)
ProjectsSynchronous method overload. Result of the invocation will be reported as a method return value.
create in interface Projectsregistry - 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.public java.lang.String create(java.lang.String registry,
ProjectsTypes.CreateSpec spec,
InvocationConfig invocationConfig)
ProjectsSynchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig to specify configuration for this particular invocation.
create in interface Projectsregistry - 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.public void create(java.lang.String registry,
ProjectsTypes.CreateSpec spec,
AsyncCallback<java.lang.String> asyncCallback)
ProjectsAsynchronous 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.
create in interface Projectsregistry - 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.public void create(java.lang.String registry,
ProjectsTypes.CreateSpec spec,
AsyncCallback<java.lang.String> asyncCallback,
InvocationConfig invocationConfig)
ProjectsAsynchronous 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.
create in interface Projectsregistry - 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.public void delete(java.lang.String registry,
java.lang.String project)
ProjectsSynchronous method overload. Result of the invocation will be reported as a method return value.
delete in interface Projectsregistry - 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.public void delete(java.lang.String registry,
java.lang.String project,
InvocationConfig invocationConfig)
ProjectsSynchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig to specify configuration for this particular invocation.
delete in interface Projectsregistry - 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.public void delete(java.lang.String registry,
java.lang.String project,
AsyncCallback<java.lang.Void> asyncCallback)
ProjectsAsynchronous 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.
delete in interface Projectsregistry - 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.public void delete(java.lang.String registry,
java.lang.String project,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
ProjectsAsynchronous 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.
delete in interface Projectsregistry - 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.public ProjectsTypes.Info get(java.lang.String registry, java.lang.String project)
ProjectsSynchronous method overload. Result of the invocation will be reported as a method return value.
get in interface Projectsregistry - 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.public ProjectsTypes.Info get(java.lang.String registry, java.lang.String project, InvocationConfig invocationConfig)
ProjectsSynchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig to specify configuration for this particular invocation.
get in interface Projectsregistry - 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.public void get(java.lang.String registry,
java.lang.String project,
AsyncCallback<ProjectsTypes.Info> asyncCallback)
ProjectsAsynchronous 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.
get in interface Projectsregistry - 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.public void get(java.lang.String registry,
java.lang.String project,
AsyncCallback<ProjectsTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
ProjectsAsynchronous 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.
get in interface Projectsregistry - 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.public java.util.List<ProjectsTypes.Summary> list(java.lang.String registry)
ProjectsSynchronous method overload. Result of the invocation will be reported as a method return value.
public java.util.List<ProjectsTypes.Summary> list(java.lang.String registry, InvocationConfig invocationConfig)
ProjectsSynchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig to specify configuration for this particular invocation.
list in interface Projectsregistry - 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.public void list(java.lang.String registry,
AsyncCallback<java.util.List<ProjectsTypes.Summary>> asyncCallback)
ProjectsAsynchronous 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.
public void list(java.lang.String registry,
AsyncCallback<java.util.List<ProjectsTypes.Summary>> asyncCallback,
InvocationConfig invocationConfig)
ProjectsAsynchronous 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.
list in interface Projectsregistry - 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.public void purge(java.lang.String registry,
java.lang.String project)
ProjectsSynchronous method overload. Result of the invocation will be reported as a method return value.
purge in interface Projectsregistry - 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.public void purge(java.lang.String registry,
java.lang.String project,
InvocationConfig invocationConfig)
ProjectsSynchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig to specify configuration for this particular invocation.
purge in interface Projectsregistry - 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.public void purge(java.lang.String registry,
java.lang.String project,
AsyncCallback<java.lang.Void> asyncCallback)
ProjectsAsynchronous 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.
purge in interface Projectsregistry - 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.public void purge(java.lang.String registry,
java.lang.String project,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
ProjectsAsynchronous 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.
purge in interface Projectsregistry - 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.