From e991530de1ecfccfe3eedb80a02d72a2650cf557 Mon Sep 17 00:00:00 2001 From: Zexi Li Date: Wed, 27 Dec 2023 15:26:05 +0800 Subject: [PATCH] feat: add resource_order_sets api --- pom.xml | 2 +- .../mcp/mcclient/managers/BillingManager.java | 14 ++++++++++++++ .../impl/billing/ResourceOrderManager.java | 19 +++++++++++++++++++ .../impl/billing/ResourceOrderSetManager.java | 19 +++++++++++++++++++ 4 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 src/main/java/com/yunionyun/mcp/mcclient/managers/BillingManager.java create mode 100644 src/main/java/com/yunionyun/mcp/mcclient/managers/impl/billing/ResourceOrderManager.java create mode 100644 src/main/java/com/yunionyun/mcp/mcclient/managers/impl/billing/ResourceOrderSetManager.java diff --git a/pom.xml b/pom.xml index 476ae54..c130c06 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.yunionyun.mcp mcclient - 3.2.13 + 3.2.14 jar ${project.groupId}:${project.artifactId} diff --git a/src/main/java/com/yunionyun/mcp/mcclient/managers/BillingManager.java b/src/main/java/com/yunionyun/mcp/mcclient/managers/BillingManager.java new file mode 100644 index 0000000..c04b802 --- /dev/null +++ b/src/main/java/com/yunionyun/mcp/mcclient/managers/BillingManager.java @@ -0,0 +1,14 @@ +package com.yunionyun.mcp.mcclient.managers; + +import com.yunionyun.mcp.mcclient.EndpointType; + +public class BillingManager extends ResourceManager { + public BillingManager( + String keyword, + String keywordPlural, + EndpointType endpointType, + String[] columns, + String[] adminColumns) { + super("billing", endpointType, null, columns, adminColumns, keyword, keywordPlural, null); + } +} diff --git a/src/main/java/com/yunionyun/mcp/mcclient/managers/impl/billing/ResourceOrderManager.java b/src/main/java/com/yunionyun/mcp/mcclient/managers/impl/billing/ResourceOrderManager.java new file mode 100644 index 0000000..5d8812a --- /dev/null +++ b/src/main/java/com/yunionyun/mcp/mcclient/managers/impl/billing/ResourceOrderManager.java @@ -0,0 +1,19 @@ +package com.yunionyun.mcp.mcclient.managers.impl.billing; + +import com.yunionyun.mcp.mcclient.EndpointType; +import com.yunionyun.mcp.mcclient.managers.BillingManager; + +public class ResourceOrderManager extends BillingManager { + public ResourceOrderManager() { + this(EndpointType.InternalURL); + } + + public ResourceOrderManager(EndpointType endpointType) { + super( + "resource_order", + "resource_orders", + endpointType, + new String[]{}, + new String[]{}); + } +} diff --git a/src/main/java/com/yunionyun/mcp/mcclient/managers/impl/billing/ResourceOrderSetManager.java b/src/main/java/com/yunionyun/mcp/mcclient/managers/impl/billing/ResourceOrderSetManager.java new file mode 100644 index 0000000..ca554a1 --- /dev/null +++ b/src/main/java/com/yunionyun/mcp/mcclient/managers/impl/billing/ResourceOrderSetManager.java @@ -0,0 +1,19 @@ +package com.yunionyun.mcp.mcclient.managers.impl.billing; + +import com.yunionyun.mcp.mcclient.EndpointType; +import com.yunionyun.mcp.mcclient.managers.BillingManager; + +public class ResourceOrderSetManager extends BillingManager { + public ResourceOrderSetManager() { + this(EndpointType.InternalURL); + } + + public ResourceOrderSetManager(EndpointType endpointType) { + super( + "resource_order_set", + "resource_order_sets", + endpointType, + new String[]{}, + new String[]{}); + } +}