aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/yandex-cloud-api-protos/yandex/cloud/billing/v1/sku.proto
diff options
context:
space:
mode:
authoriddqd <iddqd@yandex-team.com>2024-06-11 10:12:13 +0300
committeriddqd <iddqd@yandex-team.com>2024-06-11 10:22:43 +0300
commit07f57e35443ab7f09471caf2dbf1afbcced4d9f7 (patch)
treea4a7b66ead62e83fa988a2ec2ce6576311c1f4b1 /contrib/libs/yandex-cloud-api-protos/yandex/cloud/billing/v1/sku.proto
parent6db3b8ca95e44179e48306a58656fb1f9317d9c3 (diff)
downloadydb-07f57e35443ab7f09471caf2dbf1afbcced4d9f7.tar.gz
add contrib/python/yandexcloud to import
03b7d3cad2237366b55b393e18d4dc5eb222798c
Diffstat (limited to 'contrib/libs/yandex-cloud-api-protos/yandex/cloud/billing/v1/sku.proto')
-rw-r--r--contrib/libs/yandex-cloud-api-protos/yandex/cloud/billing/v1/sku.proto85
1 files changed, 85 insertions, 0 deletions
diff --git a/contrib/libs/yandex-cloud-api-protos/yandex/cloud/billing/v1/sku.proto b/contrib/libs/yandex-cloud-api-protos/yandex/cloud/billing/v1/sku.proto
new file mode 100644
index 0000000000..d7b268ca5c
--- /dev/null
+++ b/contrib/libs/yandex-cloud-api-protos/yandex/cloud/billing/v1/sku.proto
@@ -0,0 +1,85 @@
+syntax = "proto3";
+package yandex.cloud.billing.v1;
+
+import "google/protobuf/timestamp.proto";
+
+option go_package = "github.com/yandex-cloud/go-genproto/yandex/cloud/billing/v1;billing";
+option java_package = "yandex.cloud.api.billing.v1";
+
+
+// A Stock keeping unit resource.
+message Sku {
+
+ // ID of the SKU.
+ string id = 1;
+
+ // Name of the SKU.
+ string name = 2;
+
+ // Description of the sku.
+ string description = 3;
+
+ // ID of the service that sku belongs to.
+ string service_id = 4;
+
+ // Pricing unit of the SKU, e.g. `core*hour`, `gbyte*hour`.
+ string pricing_unit = 5;
+
+ // List of pricing versions.
+ repeated PricingVersion pricing_versions = 6;
+}
+
+
+// Pricing version of the SKU.
+// Defines current and past prices for the sku.
+message PricingVersion {
+
+ // Type of the pricing version.
+ PricingVersionType type = 1;
+
+ // Timestamp pricing version is active since inclusive.
+ // The pricing version is active until next pricing version effective time exclusive.
+ google.protobuf.Timestamp effective_time = 2;
+
+ // List of pricing expressions.
+ repeated PricingExpression pricing_expressions = 3;
+}
+
+
+// Type of the pricing version.
+enum PricingVersionType {
+
+ PRICING_VERSION_TYPE_UNSPECIFIED = 0;
+
+ // Regular price.
+ STREET_PRICE = 1;
+
+ // Price is overridden by a contract. Defined in the scope of a billing account.
+ CONTRACT_PRICE = 2;
+}
+
+// Pricing expression of the pricing version.
+// Defines price for the sku.
+message PricingExpression {
+
+ // List of rates.
+ repeated Rate rates = 2;
+}
+
+// Rate of the pricing expression.
+// Define unit price for pricing quantity interval.
+message Rate {
+
+ // Start of the pricing quantity interval. The end of the interval is the start pricing quantity of the next rate.
+ string start_pricing_quantity = 1;
+
+ // Unit price for the pricing quantity interval.
+ string unit_price = 2;
+
+ // Currency of the unit price.
+ // Can be one of the following:
+ // * `RUB`
+ // * `USD`
+ // * `KZT`
+ string currency = 3;
+}