Skip to content

Commit

Permalink
add get freeformat
Browse files Browse the repository at this point in the history
  • Loading branch information
capoyon committed Nov 21, 2024
1 parent 89f0f37 commit 7f404e8
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 8 deletions.
18 changes: 17 additions & 1 deletion billing/v1/billing.proto
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,13 @@ service Billing {
};
}

// Get billing group free format item (miscellaneous)
rpc GetFreeFormat(GetFreeFormatRequest) returns (stream GetFreeFormatResponse) {
option (google.api.http) = {
get: "/v1/freeformat/{id}"
};
}

rpc GetTagsAddingSetting(GetTagsAddingSettingRequest) returns (stream TagsAddingSetting) {
option (google.api.http) = {
get: "/v1/{vendor}/tagsaddingsetting/{groupId}"
Expand Down Expand Up @@ -1527,6 +1534,15 @@ message DeleteFreeFormatRequest {
string vendor = 2;
}

message GetFreeFormatRequest {
string id = 1;
}

message GetFreeFormatResponse {
string vendor = 1;
FreeFormItem freeFormat = 2;
}

// BillingGroup tags adding setting
message UpdateTagsAddingSettingRequest {
string vendor = 1;
Expand All @@ -1543,4 +1559,4 @@ message TagsAddingSetting {
string groupId = 1;
string customerId = 2;
repeated string tagKeys = 3;
}
}
67 changes: 60 additions & 7 deletions openapiv2/apidocs.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -6302,7 +6302,7 @@
},
"/v1/customfield": {
"post": {
"summary": "WORK-IN-PROGRESS: Creates new customfield",
"summary": "Creates new customfield",
"operationId": "Billing_CreateCustomField",
"responses": {
"200": {
Expand Down Expand Up @@ -6335,7 +6335,7 @@
},
"/v1/customfield/{id}": {
"delete": {
"summary": "WORK-IN-PROGRESS: Deletes the customfield",
"summary": "Deletes the customfield",
"operationId": "Billing_DeleteCustomField",
"responses": {
"200": {
Expand Down Expand Up @@ -6365,7 +6365,7 @@
]
},
"put": {
"summary": "WORK-IN-PROGRESS: Update the `customField` specified id, modifying its key and description",
"summary": "Update the `customField` specified id, modifying its key and description",
"operationId": "Billing_UpdateCustomField",
"responses": {
"200": {
Expand Down Expand Up @@ -6404,7 +6404,7 @@
},
"/v1/customfield:read": {
"post": {
"summary": "WORK-IN-PROGRESS: Returns all registered customfields",
"summary": "Returns all registered customfields",
"operationId": "Billing_ListCustomField",
"responses": {
"200": {
Expand Down Expand Up @@ -6654,7 +6654,7 @@
},
"/v1/freeformat": {
"post": {
"summary": "WORK-IN-PROGRESS: Creates new billing group free format item (miscellaneous)",
"summary": "Creates new billing group free format item (miscellaneous)",
"operationId": "Billing_CreateFreeFormat",
"responses": {
"200": {
Expand Down Expand Up @@ -6691,8 +6691,46 @@
}
},
"/v1/freeformat/{id}": {
"get": {
"summary": "Get billing group free format item (miscellaneous)",
"operationId": "Billing_GetFreeFormat",
"responses": {
"200": {
"description": "A successful response.(streaming responses)",
"schema": {
"type": "object",
"properties": {
"result": {
"$ref": "#/definitions/v1GetFreeFormatResponse"
},
"error": {
"$ref": "#/definitions/googlerpcStatus"
}
},
"title": "Stream result of v1GetFreeFormatResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/googlerpcStatus"
}
}
},
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"tags": [
"Billing"
]
},
"delete": {
"summary": "WORK-IN-PROGRESS: Delete billing group free format item (miscellaneous)",
"summary": "Delete billing group free format item (miscellaneous)",
"operationId": "Billing_DeleteFreeFormat",
"responses": {
"200": {
Expand Down Expand Up @@ -9545,7 +9583,7 @@
},
"/v1/tags": {
"get": {
"summary": "WORK-IN-PROGRESS: Returns the customer details and its tags. \nPort for: m/ripple/tags/vendor/{vendor}?type={type}",
"summary": "Returns the customer details and its tags. \nPort for: m/ripple/tags/vendor/{vendor}?type={type}",
"operationId": "Billing_GetTags",
"responses": {
"200": {
Expand Down Expand Up @@ -23643,6 +23681,10 @@
"account": {
"type": "string",
"description": "Account id."
},
"serviceDiscounts": {
"$ref": "#/definitions/apiripplev1InvoiceServiceDiscounts",
"description": "service discount infomation."
}
},
"description": "Streaming response message for the AccountInvoiceServiceDiscounts rpc."
Expand Down Expand Up @@ -26982,6 +27024,17 @@
},
"description": "Response message for GetForecasts per billing group."
},
"v1GetFreeFormatResponse": {
"type": "object",
"properties": {
"vendor": {
"type": "string"
},
"freeFormat": {
"$ref": "#/definitions/v1FreeFormItem"
}
}
},
"v1GetInfoResponse": {
"type": "object",
"properties": {
Expand Down

0 comments on commit 7f404e8

Please sign in to comment.