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

[artifact-manager,vra-ng] (#207) Remove regional content support from vra-ng projects #452

Merged
merged 15 commits into from
Nov 1, 2024
Merged
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
2 changes: 1 addition & 1 deletion common/artifact-manager/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
<value>COVEREDRATIO</value>
<!-- This controls what the minimum amount for code
coverage is. Raise this as we raise the coverage -->
<minimum>0.25</minimum>
<minimum>0.20</minimum>
</limit>
</limits>
</rule>
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,15 @@
import com.vmware.pscoe.iac.artifact.model.PackageContent;

/**
* This class extends the PackageContent class and provides a list of content types specific to VraNg.
* This class extends the PackageContent class and provides a list of content
* types specific to VraNg.
*/
public class VraNgPackageContent extends PackageContent<VraNgPackageContent.ContentType> {

/**
* This enum represents the various content types that a VraNgPackage can have.
*/
public enum ContentType implements PackageContent.ContentType {
public enum ContentType implements PackageContent.ContentType {
/**
* Content type for blueprints.
*/
Expand All @@ -35,22 +36,6 @@ public enum ContentType implements PackageContent.ContentType {
* Content type for subscriptions.
*/
SUBSCRIPTION("subscription"),
/**
* Content type for flavor mappings.
*/
FLAVOR_MAPPING("flavor-mapping"),
/**
* Content type for image mappings.
*/
IMAGE_MAPPING("image-mapping"),
/**
* Content type for storage profiles.
*/
STORAGE_PROFILE("storage-profile"),
/**
* Content type for region mappings.
*/
REGION_MAPPING("region-mapping"),
/**
* Content type for catalog entitlement.
*/
Expand Down Expand Up @@ -103,53 +88,53 @@ public enum ContentType implements PackageContent.ContentType {
* Content type for approval policies.
*/
APPROVAL_POLICY("approval");

/**
* PackageContent type.
*/
private final String type;


/**
/**
* Constructor for ContentType.
*
* @param type the type of the content.
* @param type the type of the content.
*/
ContentType(String type) {
this.type = type;
}
/**

/**
* Gets the type value.
*
* @return the type value.
*/
public String getTypeValue() {
public String getTypeValue() {
return this.type;
}
/**

/**
* Returns the ContentType instance corresponding to the given type.
*
* @param type the type of the content.
* @param type the type of the content.
* @return the ContentType instance.
*/
public static ContentType getInstance(String type) {
for (ContentType ct: ContentType.values()) {
public static ContentType getInstance(String type) {
for (ContentType ct : ContentType.values()) {
if (ct.getTypeValue().equalsIgnoreCase(type)) {
return ct;
}
}
return null;
}

}

/**
/**
* Constructor for VraNgPackageContent.
*
* @param content the content of the package.
* @param content the content of the package.
*/
public VraNgPackageContent(List<Content<ContentType>> content) {
public VraNgPackageContent(List<Content<ContentType>> content) {
super(content);
}

Expand Down
Loading
Loading