This is an automated email from the ASF dual-hosted git repository.

dahn pushed a commit to branch 4.18
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/4.18 by this push:
     new 86444809c3a updated the api documentation for createNetworkOffering 
and updateNetworkOffering (#7545)
86444809c3a is described below

commit 86444809c3aeb4208ac9487abbe92fefbcaf80fb
Author: kiranchavala <[email protected]>
AuthorDate: Thu Nov 9 22:31:57 2023 +0530

    updated the api documentation for createNetworkOffering and 
updateNetworkOffering (#7545)
    
    Co-authored-by: Kiran Chavala <[email protected]>
    Co-authored-by: Wei Zhou <[email protected]>
    Co-authored-by: dahn <[email protected]>
---
 .../cloudstack/api/command/admin/network/CreateNetworkOfferingCmd.java | 3 ++-
 .../cloudstack/api/command/admin/network/UpdateNetworkOfferingCmd.java | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git 
a/api/src/main/java/org/apache/cloudstack/api/command/admin/network/CreateNetworkOfferingCmd.java
 
b/api/src/main/java/org/apache/cloudstack/api/command/admin/network/CreateNetworkOfferingCmd.java
index ac6dee1aea9..57b1428cabb 100644
--- 
a/api/src/main/java/org/apache/cloudstack/api/command/admin/network/CreateNetworkOfferingCmd.java
+++ 
b/api/src/main/java/org/apache/cloudstack/api/command/admin/network/CreateNetworkOfferingCmd.java
@@ -73,7 +73,8 @@ public class CreateNetworkOfferingCmd extends BaseCmd {
     @Parameter(name = ApiConstants.SPECIFY_VLAN, type = CommandType.BOOLEAN, 
description = "true if network offering supports vlans")
     private Boolean specifyVlan;
 
-    @Parameter(name = ApiConstants.AVAILABILITY, type = CommandType.STRING, 
description = "the availability of network offering. Default value is Optional")
+    @Parameter(name = ApiConstants.AVAILABILITY, type = CommandType.STRING, 
description = "the availability of network offering. The default value is 
Optional. "
+            + " Another value is Required, which will make it as the default 
network offering for new networks ")
     private String availability;
 
     @Parameter(name = ApiConstants.NETWORKRATE, type = CommandType.INTEGER, 
description = "data transfer rate in megabits per second allowed")
diff --git 
a/api/src/main/java/org/apache/cloudstack/api/command/admin/network/UpdateNetworkOfferingCmd.java
 
b/api/src/main/java/org/apache/cloudstack/api/command/admin/network/UpdateNetworkOfferingCmd.java
index 57c34822759..e8f9e5f8cfe 100644
--- 
a/api/src/main/java/org/apache/cloudstack/api/command/admin/network/UpdateNetworkOfferingCmd.java
+++ 
b/api/src/main/java/org/apache/cloudstack/api/command/admin/network/UpdateNetworkOfferingCmd.java
@@ -55,7 +55,7 @@ public class UpdateNetworkOfferingCmd extends BaseCmd {
     private String displayText;
 
     @Parameter(name = ApiConstants.AVAILABILITY, type = CommandType.STRING, 
description = "the availability of network offering."
-            + " Default value is Required for Guest Virtual network offering; 
Optional for Guest Direct network offering")
+            + " The value is Required makes this network offering default for 
Guest Virtual Networks. Only one network offering can have the value Required ")
     private String availability;
 
     @Parameter(name = ApiConstants.SORT_KEY, type = CommandType.INTEGER, 
description = "sort key of the network offering, integer")

Reply via email to