diff --git a/HISTORY.rst b/HISTORY.rst
index b75b880..fea54b9 100644
--- a/HISTORY.rst
+++ b/HISTORY.rst
@@ -2,6 +2,27 @@
History
=======
+0.9.9 (2020-03-15)
+------------------
+
+* deprecate VCC-B legacy APIs
+
+0.9.8 (2019-02-15)
+------------------
+
+* New endpoint to get the product section properties for a vApp template. VappTemplateResource.getProductSectionProperties()
+
+0.9.7 (2018-11-13)
+------------------
+
+- New endpoint to get the product section properties for VM. VmResource.getProductSectionProperties()
+- New endpoint to update the product section properties for VM. VmResource.updateProductSectionProperties()
+
+0.9.6 (2018-11-02)
+------------------
+
+* Minor update and bug fixes
+
0.9.5 (2018-10-12)
------------------
diff --git a/README.rst b/README.rst
index 13483e0..e707b3b 100644
--- a/README.rst
+++ b/README.rst
@@ -2,11 +2,11 @@
iland cloud Java SDK
====================
-iland cloud Java SDK
+iland cloud Java SDK for iland cloud API 0.9
* Free software: BSD License
-* iland cloud API doc: https://api.ilandcloud.com.
-* Java doc: https://api.ilandcloud.com/java/apidocs/current/.
+* iland cloud API doc: https://api.ilandcloud.com/doc/0.9/apidocs/.
+* Java doc: https://api.ilandcloud.com/java/apidocs/0.9.9/.
* iland doc: http://doc.ilandcloud.com.
============
@@ -40,6 +40,6 @@ You can then add the iland cloud SDK as a dependency::
com.iland.core
iland-sdk
- 0.9.5
+ 0.9.9
diff --git a/examples/example-app/pom.xml b/examples/example-app/pom.xml
index 7d5e201..e3f67c9 100644
--- a/examples/example-app/pom.xml
+++ b/examples/example-app/pom.xml
@@ -14,7 +14,7 @@
com.iland.core
iland-sdk
- 0.9.5
+ 0.9.9
diff --git a/examples/example-app/src/main/java/com/ilandjavasdk/app/App.java b/examples/example-app/src/main/java/com/ilandjavasdk/app/App.java
index 6374328..0635f93 100644
--- a/examples/example-app/src/main/java/com/ilandjavasdk/app/App.java
+++ b/examples/example-app/src/main/java/com/ilandjavasdk/app/App.java
@@ -24,6 +24,7 @@
import com.iland.core.api.task.CoreTask;
import com.iland.core.api.vcd.CatalogUploadVappTemplateSpec;
import com.iland.core.api.vcd.FenceMode;
+import com.iland.core.api.vcd.ProductSectionProperty;
import com.iland.core.api.vcd.User;
import com.iland.core.api.vcd.Vapp;
import com.iland.core.api.vcd.VappSpec;
@@ -113,6 +114,7 @@ public static void main(String[] args) {
login();
final User user = userResource.getUser(property.getUsername());
getUsersInventoryAndPrintAllEntities(user);
+ printVmAndVappTemplateProductSections();
if (!catalogUuid.isEmpty() && !vdcUuid.isEmpty() && !vappTemplate.isEmpty()
&& !networkUuid.isEmpty()) {
final String vappUuid = createVapp();
@@ -192,6 +194,27 @@ private static void getUsersInventoryAndPrintAllEntities(final User user) {
}
}
+ /**
+ * Get the product section properties for a given vapp template and vm and prints them out.
+ *
+ */
+ private static void printVmAndVappTemplateProductSections() {
+ final String vappTemplateUuid = "";
+ final String vmUuid = "";
+ final List vmProductSectionProperties =
+ vmResource.getProductSectionProperties(vmUuid);
+ final List vappTemplateResourceProductSectionProperties =
+ vappTemplateResource.getProductSectionProperties(vappTemplateUuid);
+ for (final ProductSectionProperty productSectionProperty : vmProductSectionProperties) {
+ System.out.println("key: " + productSectionProperty.getKey() + " value: "
+ + productSectionProperty.getValue());
+ }
+ for (final ProductSectionProperty productSectionProperty : vappTemplateResourceProductSectionProperties) {
+ System.out.println("key: " + productSectionProperty.getKey() + " value: "
+ + productSectionProperty.getValue());
+ }
+ }
+
/**
* This function creates a vApp based on the entities we found from
* transversing the user's inventory in the previous method.