Skip to content

Commit

Permalink
Merge pull request #57 from yunionio/billing-manager
Browse files Browse the repository at this point in the history
feat: add resource_order_sets api
  • Loading branch information
zexi authored Dec 27, 2023
2 parents 8c5f582 + e991530 commit 60187f0
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>com.yunionyun.mcp</groupId>
<artifactId>mcclient</artifactId>
<version>3.2.13</version>
<version>3.2.14</version>
<packaging>jar</packaging>

<name>${project.groupId}:${project.artifactId}</name>
Expand Down
Original file line number Diff line number Diff line change
@@ -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);
}
}
Original file line number Diff line number Diff line change
@@ -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[]{});
}
}
Original file line number Diff line number Diff line change
@@ -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[]{});
}
}

0 comments on commit 60187f0

Please sign in to comment.