stigg-sidecar-sdk 2.112.1 → 2.156.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/stigg/sidecar/v1/sidecar_pb.rb +1 -1
- data/lib/stigg_sidecar_sdk/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: daa46986f68b93a65f61969177c1ad473d2d377ff0f20bbdff55f6b5b35ad881
|
4
|
+
data.tar.gz: 66178cb1920314df56a4d4b3fcb7bfb80c1e7fe3f341d9bcce9d7495022bb761
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 31212941fc6b30847dd66e6f51bbdb1e429982014d80be1043f3a9ab5e9fecaee83b69d3ce9aff243eeb1c7190787fafa4664e7c6272cf55189f5e817d496d4d
|
7
|
+
data.tar.gz: 9511af0433d8e6d96297095816d7db0b1c3e58d9a0860d55a4931230fee8307c9c5ad47e4d17a5b32731fff17ecd5fe79b9064cc86b64a24c40057d78fa2dc10
|
data/Gemfile.lock
CHANGED
@@ -8,7 +8,7 @@ require 'google/protobuf/empty_pb'
|
|
8
8
|
require 'google/protobuf/timestamp_pb'
|
9
9
|
|
10
10
|
|
11
|
-
descriptor_data = "\n\x1estigg/sidecar/v1/sidecar.proto\x12\x10stigg.sidecar.v1\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x9f\x02\n\x12\x45ntitlementFeature\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12@\n\x0c\x66\x65\x61ture_type\x18\x02 \x01(\x0e\x32\x1d.stigg.sidecar.v1.FeatureTypeR\x0b\x66\x65\x61tureType\x12\x19\n\x05units\x18\x03 \x01(\tH\x00R\x05units\x88\x01\x01\x12&\n\x0cunits_plural\x18\x04 \x01(\tH\x01R\x0bunitsPlural\x88\x01\x01\x12:\n\nmeter_type\x18\x05 \x01(\x0e\x32\x1b.stigg.sidecar.v1.MeterTypeR\tmeterType\x12\x1d\n\nis_metered\x18\x06 \x01(\x08R\tisMeteredB\x08\n\x06_unitsB\x0f\n\r_units_plural\"e\n\x12\x42ooleanEntitlement\x12\x43\n\x07\x66\x65\x61ture\x18\x04 \x01(\x0b\x32$.stigg.sidecar.v1.EntitlementFeatureH\x00R\x07\x66\x65\x61ture\x88\x01\x01\x42\n\n\x08_feature\"\xad\x01\n\x12NumericEntitlement\x12\x43\n\x07\x66\x65\x61ture\x18\x04 \x01(\x0b\x32$.stigg.sidecar.v1.EntitlementFeatureH\x00R\x07\x66\x65\x61ture\x88\x01\x01\x12\x19\n\x05value\x18\x05 \x01(\x05H\x01R\x05value\x88\x01\x01\x12!\n\x0cis_unlimited\x18\x06 \x01(\x08R\x0bisUnlimitedB\n\n\x08_featureB\x08\n\x06_value\"\xa3\x03\n\x12MeteredEntitlement\x12\x43\n\x07\x66\x65\x61ture\x18\x04 \x01(\x0b\x32$.stigg.sidecar.v1.EntitlementFeatureH\x00R\x07\x66\x65\x61ture\x88\x01\x01\x12$\n\x0busage_limit\x18\x05 \x01(\x01H\x01R\nusageLimit\x88\x01\x01\x12!\n\x0cis_unlimited\x18\x06 \x01(\x08R\x0bisUnlimited\x12#\n\rcurrent_usage\x18\x07 \x01(\x01R\x0c\x63urrentUsage\x12P\n\x0creset_period\x18\t \x01(\x0e\x32(.stigg.sidecar.v1.EntitlementResetPeriodH\x02R\x0bresetPeriod\x88\x01\x01\x12G\n\x0fnext_reset_date\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x03R\rnextResetDate\x88\x01\x01\x42\n\n\x08_featureB\x0e\n\x0c_usage_limitB\x0f\n\r_reset_periodB\x12\n\x10_next_reset_date\"\xe2\x01\n\x0b\x45ntitlement\x12@\n\x07\x62oolean\x18\x01 \x01(\x0b\x32$.stigg.sidecar.v1.BooleanEntitlementH\x00R\x07\x62oolean\x12@\n\x07numeric\x18\x02 \x01(\x0b\x32$.stigg.sidecar.v1.NumericEntitlementH\x00R\x07numeric\x12@\n\x07metered\x18\x03 \x01(\x0b\x32$.stigg.sidecar.v1.MeteredEntitlementH\x00R\x07meteredB\r\n\x0b\x65ntitlement\"o\n\x16GetEntitlementsRequest\x12\x1f\n\x0b\x63ustomer_id\x18\x01 \x01(\tR\ncustomerId\x12$\n\x0bresource_id\x18\x02 \x01(\tH\x00R\nresourceId\x88\x01\x01\x42\x0e\n\x0c_resource_id\"\\\n\x17GetEntitlementsResponse\x12\x41\n\x0c\x65ntitlements\x18\x01 \x03(\x0b\x32\x1d.stigg.sidecar.v1.EntitlementR\x0c\x65ntitlements\";\n\x1a\x42ooleanEntitlementFallback\x12\x1d\n\nhas_access\x18\x01 \x01(\x08R\thasAccess\"w\n\x19\x42ooleanEntitlementOptions\x12M\n\x08\x66\x61llback\x18\x01 \x01(\x0b\x32,.stigg.sidecar.v1.BooleanEntitlementFallbackH\x00R\x08\x66\x61llback\x88\x01\x01\x42\x0b\n\t_fallback\"\xec\x01\n\x1cGetBooleanEntitlementRequest\x12\x1f\n\x0b\x63ustomer_id\x18\x01 \x01(\tR\ncustomerId\x12\x1d\n\nfeature_id\x18\x02 \x01(\tR\tfeatureId\x12$\n\x0bresource_id\x18\x03 \x01(\tH\x00R\nresourceId\x88\x01\x01\x12J\n\x07options\x18\x04 \x01(\x0b\x32+.stigg.sidecar.v1.BooleanEntitlementOptionsH\x01R\x07options\x88\x01\x01\x42\x0e\n\x0c_resource_idB\n\n\x08_options\"\x9d\x02\n\x1dGetBooleanEntitlementResponse\x12\x1d\n\nhas_access\x18\x01 \x01(\x08R\thasAccess\x12\x1f\n\x0bis_fallback\x18\x02 \x01(\x08R\nisFallback\x12[\n\x14\x61\x63\x63\x65ss_denied_reason\x18\x03 \x01(\x0e\x32$.stigg.sidecar.v1.AccessDeniedReasonH\x00R\x12\x61\x63\x63\x65ssDeniedReason\x88\x01\x01\x12\x46\n\x0b\x65ntitlement\x18\x04 \x01(\x0b\x32$.stigg.sidecar.v1.BooleanEntitlementR\x0b\x65ntitlementB\x17\n\x15_access_denied_reason\"\x99\x01\n\x1aNumericEntitlementFallback\x12\x1d\n\nhas_access\x18\x01 \x01(\x08R\thasAccess\x12\x19\n\x05value\x18\x02 \x01(\x05H\x00R\x05value\x88\x01\x01\x12&\n\x0cis_unlimited\x18\x03 \x01(\x08H\x01R\x0bisUnlimited\x88\x01\x01\x42\x08\n\x06_valueB\x0f\n\r_is_unlimited\"w\n\x19NumericEntitlementOptions\x12M\n\x08\x66\x61llback\x18\x01 \x01(\x0b\x32,.stigg.sidecar.v1.NumericEntitlementFallbackH\x00R\x08\x66\x61llback\x88\x01\x01\x42\x0b\n\t_fallback\"\xec\x01\n\x1cGetNumericEntitlementRequest\x12\x1f\n\x0b\x63ustomer_id\x18\x01 \x01(\tR\ncustomerId\x12\x1d\n\nfeature_id\x18\x02 \x01(\tR\tfeatureId\x12$\n\x0bresource_id\x18\x03 \x01(\tH\x00R\nresourceId\x88\x01\x01\x12J\n\x07options\x18\x04 \x01(\x0b\x32+.stigg.sidecar.v1.NumericEntitlementOptionsH\x01R\x07options\x88\x01\x01\x42\x0e\n\x0c_resource_idB\n\n\x08_options\"\x9d\x02\n\x1dGetNumericEntitlementResponse\x12\x1d\n\nhas_access\x18\x01 \x01(\x08R\thasAccess\x12\x1f\n\x0bis_fallback\x18\x02 \x01(\x08R\nisFallback\x12[\n\x14\x61\x63\x63\x65ss_denied_reason\x18\x03 \x01(\x0e\x32$.stigg.sidecar.v1.AccessDeniedReasonH\x00R\x12\x61\x63\x63\x65ssDeniedReason\x88\x01\x01\x12\x46\n\x0b\x65ntitlement\x18\x04 \x01(\x0b\x32$.stigg.sidecar.v1.NumericEntitlementR\x0b\x65ntitlementB\x17\n\x15_access_denied_reason\"\xaa\x01\n\x1aMeteredEntitlementFallback\x12\x1d\n\nhas_access\x18\x01 \x01(\x08R\thasAccess\x12$\n\x0busage_limit\x18\x02 \x01(\x01H\x00R\nusageLimit\x88\x01\x01\x12&\n\x0cis_unlimited\x18\x03 \x01(\x08H\x01R\x0bisUnlimited\x88\x01\x01\x42\x0e\n\x0c_usage_limitB\x0f\n\r_is_unlimited\"\xb9\x01\n\x19MeteredEntitlementOptions\x12,\n\x0frequested_usage\x18\x01 \x01(\x01H\x00R\x0erequestedUsage\x88\x01\x01\x12M\n\x08\x66\x61llback\x18\x02 \x01(\x0b\x32,.stigg.sidecar.v1.MeteredEntitlementFallbackH\x01R\x08\x66\x61llback\x88\x01\x01\x42\x12\n\x10_requested_usageB\x0b\n\t_fallback\"\xec\x01\n\x1cGetMeteredEntitlementRequest\x12\x1f\n\x0b\x63ustomer_id\x18\x01 \x01(\tR\ncustomerId\x12\x1d\n\nfeature_id\x18\x02 \x01(\tR\tfeatureId\x12$\n\x0bresource_id\x18\x03 \x01(\tH\x00R\nresourceId\x88\x01\x01\x12J\n\x07options\x18\x04 \x01(\x0b\x32+.stigg.sidecar.v1.MeteredEntitlementOptionsH\x01R\x07options\x88\x01\x01\x42\x0e\n\x0c_resource_idB\n\n\x08_options\"\xc6\x02\n\x1dGetMeteredEntitlementResponse\x12\x1d\n\nhas_access\x18\x01 \x01(\x08R\thasAccess\x12\x1f\n\x0bis_fallback\x18\x02 \x01(\x08R\nisFallback\x12[\n\x14\x61\x63\x63\x65ss_denied_reason\x18\x03 \x01(\x0e\x32$.stigg.sidecar.v1.AccessDeniedReasonH\x00R\x12\x61\x63\x63\x65ssDeniedReason\x88\x01\x01\x12\'\n\x0frequested_usage\x18\x04 \x01(\x01R\x0erequestedUsage\x12\x46\n\x0b\x65ntitlement\x18\x05 \x01(\x0b\x32$.stigg.sidecar.v1.MeteredEntitlementR\x0b\x65ntitlementB\x17\n\x15_access_denied_reason\"\x98\x02\n\x0cRedisOptions\x12-\n\x12\x65nvironment_prefix\x18\x01 \x01(\tR\x11\x65nvironmentPrefix\x12\x17\n\x04host\x18\x02 \x01(\tH\x00R\x04host\x88\x01\x01\x12\x17\n\x04port\x18\x03 \x01(\x05H\x01R\x04port\x88\x01\x01\x12\x13\n\x02\x64\x62\x18\x04 \x01(\x05H\x02R\x02\x64\x62\x88\x01\x01\x12\x1f\n\x08username\x18\x05 \x01(\tH\x03R\x08username\x88\x01\x01\x12\x1f\n\x08password\x18\x06 \x01(\tH\x04R\x08password\x88\x01\x01\x12\x15\n\x03ttl\x18\x07 \x01(\x05H\x05R\x03ttl\x88\x01\x01\x42\x07\n\x05_hostB\x07\n\x05_portB\x05\n\x03_dbB\x0b\n\t_usernameB\x0b\n\t_passwordB\x06\n\x04_ttl\"\xff\x01\n\x13\x45ntitlementFallback\x12H\n\x07\x62oolean\x18\x01 \x01(\x0b\x32,.stigg.sidecar.v1.BooleanEntitlementFallbackH\x00R\x07\x62oolean\x12H\n\x07numeric\x18\x02 \x01(\x0b\x32,.stigg.sidecar.v1.NumericEntitlementFallbackH\x00R\x07numeric\x12H\n\x07metered\x18\x03 \x01(\x0b\x32,.stigg.sidecar.v1.MeteredEntitlementFallbackH\x00R\x07meteredB\n\n\x08\x66\x61llback\"\xbf\x01\n\tApiConfig\x12\x17\n\x07\x61pi_key\x18\x01 \x01(\tR\x06\x61piKey\x12\x1c\n\x07\x61pi_url\x18\x02 \x01(\tH\x00R\x06\x61piUrl\x88\x01\x01\x12&\n\x0c\x65\x64ge_enabled\x18\x03 \x01(\x08H\x01R\x0b\x65\x64geEnabled\x88\x01\x01\x12%\n\x0c\x65\x64ge_api_url\x18\x04 \x01(\tH\x02R\nedgeApiUrl\x88\x01\x01\x42\n\n\x08_api_urlB\x0f\n\r_edge_enabledB\x0f\n\r_edge_api_url\"\xe7\x03\n\x12LocalSidecarConfig\x12\"\n\nws_enabled\x18\x05 \x01(\x08H\x00R\twsEnabled\x88\x01\x01\x12\x1a\n\x06ws_url\x18\x06 \x01(\tH\x01R\x05wsUrl\x88\x01\x01\x12\x39\n\x05redis\x18\x07 \x01(\x0b\x32\x1e.stigg.sidecar.v1.RedisOptionsH\x02R\x05redis\x88\x01\x01\x12s\n\x15\x65ntitlements_fallback\x18\x08 \x03(\x0b\x32>.stigg.sidecar.v1.LocalSidecarConfig.EntitlementsFallbackEntryR\x14\x65ntitlementsFallback\x12\x34\n\x14\x63\x61\x63he_max_size_bytes\x18\t \x01(\x03H\x03R\x11\x63\x61\x63heMaxSizeBytes\x88\x01\x01\x1an\n\x19\x45ntitlementsFallbackEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12;\n\x05value\x18\x02 \x01(\x0b\x32%.stigg.sidecar.v1.EntitlementFallbackR\x05value:\x02\x38\x01\x42\r\n\x0b_ws_enabledB\t\n\x07_ws_urlB\x08\n\x06_redisB\x17\n\x15_cache_max_size_bytes\"\x89\x02\n\x12ReportUsageRequest\x12\x1f\n\x0b\x63ustomer_id\x18\x01 \x01(\tR\ncustomerId\x12$\n\x0bresource_id\x18\x02 \x01(\tH\x00R\nresourceId\x88\x01\x01\x12\x1d\n\nfeature_id\x18\x03 \x01(\tR\tfeatureId\x12\x14\n\x05value\x18\x04 \x01(\x01R\x05value\x12S\n\x0fupdate_behavior\x18\x05 \x01(\x0e\x32%.stigg.sidecar.v1.UsageUpdateBehaviorH\x01R\x0eupdateBehavior\x88\x01\x01\x42\x0e\n\x0c_resource_idB\x12\n\x10_update_behavior\"\x8f\x01\n\x13\x45ventDimensionValue\x12#\n\x0cstring_value\x18\x01 \x01(\tH\x00R\x0bstringValue\x12#\n\x0cnumber_value\x18\x02 \x01(\x01H\x00R\x0bnumberValue\x12%\n\rboolean_value\x18\x03 \x01(\x08H\x00R\x0c\x62ooleanValueB\x07\n\x05value\"\xa2\x03\n\x05\x45vent\x12\x1d\n\nevent_name\x18\x01 \x01(\tR\teventName\x12\x1f\n\x0b\x63ustomer_id\x18\x02 \x01(\tR\ncustomerId\x12\'\n\x0fidempotency_key\x18\x03 \x01(\tR\x0eidempotencyKey\x12$\n\x0bresource_id\x18\x04 \x01(\tH\x00R\nresourceId\x88\x01\x01\x12G\n\ndimensions\x18\x05 \x03(\x0b\x32\'.stigg.sidecar.v1.Event.DimensionsEntryR\ndimensions\x12=\n\ttimestamp\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x01R\ttimestamp\x88\x01\x01\x1a\x64\n\x0f\x44imensionsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12;\n\x05value\x18\x02 \x01(\x0b\x32%.stigg.sidecar.v1.EventDimensionValueR\x05value:\x02\x38\x01\x42\x0e\n\x0c_resource_idB\x0c\n\n_timestamp\"<\n\x13ReportUsageResponse\x12%\n\x0emeasurement_id\x18\x01 \x01(\tR\rmeasurementId\"F\n\x13ReportEventsRequest\x12/\n\x06\x65vents\x18\x01 \x03(\x0b\x32\x17.stigg.sidecar.v1.EventR\x06\x65vents\"r\n\x19ReloadEntitlementsRequest\x12\x1f\n\x0b\x63ustomer_id\x18\x01 \x01(\tR\ncustomerId\x12$\n\x0bresource_id\x18\x02 \x01(\tH\x00R\nresourceId\x88\x01\x01\x42\x0e\n\x0c_resource_id\"R\n\x1aReloadEntitlementsResponse\x12\x34\n\x16\x65ntitled_entity_exists\x18\x01 \x01(\x08R\x14\x65ntitledEntityExists*\xc6\x03\n\x12\x41\x63\x63\x65ssDeniedReason\x12$\n ACCESS_DENIED_REASON_UNSPECIFIED\x10\x00\x12 \n\x1c\x41\x43\x43\x45SS_DENIED_REASON_UNKNOWN\x10\x01\x12-\n)ACCESS_DENIED_REASON_CUSTOMER_IS_ARCHIVED\x10\x02\x12+\n\'ACCESS_DENIED_REASON_CUSTOMER_NOT_FOUND\x10\x03\x12\x34\n0ACCESS_DENIED_REASON_CUSTOMER_RESOURCE_NOT_FOUND\x10\x04\x12*\n&ACCESS_DENIED_REASON_FEATURE_NOT_FOUND\x10\x05\x12/\n+ACCESS_DENIED_REASON_NO_ACTIVE_SUBSCRIPTION\x10\x06\x12?\n;ACCESS_DENIED_REASON_NO_FEATURE_ENTITLEMENT_IN_SUBSCRIPTION\x10\x07\x12\x38\n4ACCESS_DENIED_REASON_REQUESTED_USAGE_EXCEEDING_LIMIT\x10\x08*^\n\x0b\x46\x65\x61tureType\x12\x1c\n\x18\x46\x45\x41TURE_TYPE_UNSPECIFIED\x10\x00\x12\x18\n\x14\x46\x45\x41TURE_TYPE_BOOLEAN\x10\x01\x12\x17\n\x13\x46\x45\x41TURE_TYPE_NUMBER\x10\x02*t\n\tMeterType\x12\x1a\n\x16METER_TYPE_UNSPECIFIED\x10\x00\x12\x13\n\x0fMETER_TYPE_NONE\x10\x01\x12\x1a\n\x16METER_TYPE_FLUCTUATING\x10\x02\x12\x1a\n\x16METER_TYPE_INCREMENTAL\x10\x03*\xf1\x01\n\x16\x45ntitlementResetPeriod\x12(\n$ENTITLEMENT_RESET_PERIOD_UNSPECIFIED\x10\x00\x12 \n\x1c\x45NTITLEMENT_RESET_PERIOD_DAY\x10\x01\x12!\n\x1d\x45NTITLEMENT_RESET_PERIOD_HOUR\x10\x02\x12\"\n\x1e\x45NTITLEMENT_RESET_PERIOD_MONTH\x10\x03\x12!\n\x1d\x45NTITLEMENT_RESET_PERIOD_WEEK\x10\x04\x12!\n\x1d\x45NTITLEMENT_RESET_PERIOD_YEAR\x10\x05*|\n\x13UsageUpdateBehavior\x12%\n!USAGE_UPDATE_BEHAVIOR_UNSPECIFIED\x10\x00\x12\x1f\n\x1bUSAGE_UPDATE_BEHAVIOR_DELTA\x10\x01\x12\x1d\n\x19USAGE_UPDATE_BEHAVIOR_SET\x10\x02\x32\x82\x06\n\x0eSidecarService\x12\x66\n\x0fGetEntitlements\x12(.stigg.sidecar.v1.GetEntitlementsRequest\x1a).stigg.sidecar.v1.GetEntitlementsResponse\x12x\n\x15GetBooleanEntitlement\x12..stigg.sidecar.v1.GetBooleanEntitlementRequest\x1a/.stigg.sidecar.v1.GetBooleanEntitlementResponse\x12x\n\x15GetNumericEntitlement\x12..stigg.sidecar.v1.GetNumericEntitlementRequest\x1a/.stigg.sidecar.v1.GetNumericEntitlementResponse\x12x\n\x15GetMeteredEntitlement\x12..stigg.sidecar.v1.GetMeteredEntitlementRequest\x1a/.stigg.sidecar.v1.GetMeteredEntitlementResponse\x12Z\n\x0bReportUsage\x12$.stigg.sidecar.v1.ReportUsageRequest\x1a%.stigg.sidecar.v1.ReportUsageResponse\x12M\n\x0cReportEvents\x12%.stigg.sidecar.v1.ReportEventsRequest\x1a\x16.google.protobuf.Empty\x12o\n\x12ReloadEntitlements\x12+.stigg.sidecar.v1.ReloadEntitlementsRequest\x1a,.stigg.sidecar.v1.ReloadEntitlementsResponseB\xd3\x01\n\x19io.stigg.sidecar.proto.v1B\x0cSidecarProtoP\x01ZFgithub.com/stiggio/sidecar-sdk-go/generated/stigg/sidecar/v1;sidecarv1\xa2\x02\x03SSX\xaa\x02\x10Stigg.Sidecar.V1\xca\x02\x10Stigg\\Sidecar\\V1\xe2\x02\x1cStigg\\Sidecar\\V1\\GPBMetadata\xea\x02\x12Stigg::Sidecar::V1b\x06proto3"
|
11
|
+
descriptor_data = "\n\x1estigg/sidecar/v1/sidecar.proto\x12\x10stigg.sidecar.v1\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x9f\x02\n\x12\x45ntitlementFeature\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12@\n\x0c\x66\x65\x61ture_type\x18\x02 \x01(\x0e\x32\x1d.stigg.sidecar.v1.FeatureTypeR\x0b\x66\x65\x61tureType\x12\x19\n\x05units\x18\x03 \x01(\tH\x00R\x05units\x88\x01\x01\x12&\n\x0cunits_plural\x18\x04 \x01(\tH\x01R\x0bunitsPlural\x88\x01\x01\x12:\n\nmeter_type\x18\x05 \x01(\x0e\x32\x1b.stigg.sidecar.v1.MeterTypeR\tmeterType\x12\x1d\n\nis_metered\x18\x06 \x01(\x08R\tisMeteredB\x08\n\x06_unitsB\x0f\n\r_units_plural\"e\n\x12\x42ooleanEntitlement\x12\x43\n\x07\x66\x65\x61ture\x18\x04 \x01(\x0b\x32$.stigg.sidecar.v1.EntitlementFeatureH\x00R\x07\x66\x65\x61ture\x88\x01\x01\x42\n\n\x08_feature\"\xad\x01\n\x12NumericEntitlement\x12\x43\n\x07\x66\x65\x61ture\x18\x04 \x01(\x0b\x32$.stigg.sidecar.v1.EntitlementFeatureH\x00R\x07\x66\x65\x61ture\x88\x01\x01\x12\x19\n\x05value\x18\x05 \x01(\x05H\x01R\x05value\x88\x01\x01\x12!\n\x0cis_unlimited\x18\x06 \x01(\x08R\x0bisUnlimitedB\n\n\x08_featureB\x08\n\x06_value\"\xd6\x05\n\x12MeteredEntitlement\x12\x43\n\x07\x66\x65\x61ture\x18\x04 \x01(\x0b\x32$.stigg.sidecar.v1.EntitlementFeatureH\x00R\x07\x66\x65\x61ture\x88\x01\x01\x12$\n\x0busage_limit\x18\x05 \x01(\x01H\x01R\nusageLimit\x88\x01\x01\x12!\n\x0cis_unlimited\x18\x06 \x01(\x08R\x0bisUnlimited\x12#\n\rcurrent_usage\x18\x07 \x01(\x01R\x0c\x63urrentUsage\x12P\n\x0creset_period\x18\t \x01(\x0e\x32(.stigg.sidecar.v1.EntitlementResetPeriodH\x02R\x0bresetPeriod\x88\x01\x01\x12K\n\x0fnext_reset_date\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x02\x18\x01H\x03R\rnextResetDate\x88\x01\x01\x12O\n\x13usage_period_anchor\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x04R\x11usagePeriodAnchor\x88\x01\x01\x12M\n\x12usage_period_start\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x05R\x10usagePeriodStart\x88\x01\x01\x12I\n\x10usage_period_end\x18\r \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x06R\x0eusagePeriodEnd\x88\x01\x01\x42\n\n\x08_featureB\x0e\n\x0c_usage_limitB\x0f\n\r_reset_periodB\x12\n\x10_next_reset_dateB\x16\n\x14_usage_period_anchorB\x15\n\x13_usage_period_startB\x13\n\x11_usage_period_end\"\xe2\x01\n\x0b\x45ntitlement\x12@\n\x07\x62oolean\x18\x01 \x01(\x0b\x32$.stigg.sidecar.v1.BooleanEntitlementH\x00R\x07\x62oolean\x12@\n\x07numeric\x18\x02 \x01(\x0b\x32$.stigg.sidecar.v1.NumericEntitlementH\x00R\x07numeric\x12@\n\x07metered\x18\x03 \x01(\x0b\x32$.stigg.sidecar.v1.MeteredEntitlementH\x00R\x07meteredB\r\n\x0b\x65ntitlement\"o\n\x16GetEntitlementsRequest\x12\x1f\n\x0b\x63ustomer_id\x18\x01 \x01(\tR\ncustomerId\x12$\n\x0bresource_id\x18\x02 \x01(\tH\x00R\nresourceId\x88\x01\x01\x42\x0e\n\x0c_resource_id\"\\\n\x17GetEntitlementsResponse\x12\x41\n\x0c\x65ntitlements\x18\x01 \x03(\x0b\x32\x1d.stigg.sidecar.v1.EntitlementR\x0c\x65ntitlements\";\n\x1a\x42ooleanEntitlementFallback\x12\x1d\n\nhas_access\x18\x01 \x01(\x08R\thasAccess\"w\n\x19\x42ooleanEntitlementOptions\x12M\n\x08\x66\x61llback\x18\x01 \x01(\x0b\x32,.stigg.sidecar.v1.BooleanEntitlementFallbackH\x00R\x08\x66\x61llback\x88\x01\x01\x42\x0b\n\t_fallback\"\xec\x01\n\x1cGetBooleanEntitlementRequest\x12\x1f\n\x0b\x63ustomer_id\x18\x01 \x01(\tR\ncustomerId\x12\x1d\n\nfeature_id\x18\x02 \x01(\tR\tfeatureId\x12$\n\x0bresource_id\x18\x03 \x01(\tH\x00R\nresourceId\x88\x01\x01\x12J\n\x07options\x18\x04 \x01(\x0b\x32+.stigg.sidecar.v1.BooleanEntitlementOptionsH\x01R\x07options\x88\x01\x01\x42\x0e\n\x0c_resource_idB\n\n\x08_options\"\x9d\x02\n\x1dGetBooleanEntitlementResponse\x12\x1d\n\nhas_access\x18\x01 \x01(\x08R\thasAccess\x12\x1f\n\x0bis_fallback\x18\x02 \x01(\x08R\nisFallback\x12[\n\x14\x61\x63\x63\x65ss_denied_reason\x18\x03 \x01(\x0e\x32$.stigg.sidecar.v1.AccessDeniedReasonH\x00R\x12\x61\x63\x63\x65ssDeniedReason\x88\x01\x01\x12\x46\n\x0b\x65ntitlement\x18\x04 \x01(\x0b\x32$.stigg.sidecar.v1.BooleanEntitlementR\x0b\x65ntitlementB\x17\n\x15_access_denied_reason\"\x99\x01\n\x1aNumericEntitlementFallback\x12\x1d\n\nhas_access\x18\x01 \x01(\x08R\thasAccess\x12\x19\n\x05value\x18\x02 \x01(\x05H\x00R\x05value\x88\x01\x01\x12&\n\x0cis_unlimited\x18\x03 \x01(\x08H\x01R\x0bisUnlimited\x88\x01\x01\x42\x08\n\x06_valueB\x0f\n\r_is_unlimited\"w\n\x19NumericEntitlementOptions\x12M\n\x08\x66\x61llback\x18\x01 \x01(\x0b\x32,.stigg.sidecar.v1.NumericEntitlementFallbackH\x00R\x08\x66\x61llback\x88\x01\x01\x42\x0b\n\t_fallback\"\xec\x01\n\x1cGetNumericEntitlementRequest\x12\x1f\n\x0b\x63ustomer_id\x18\x01 \x01(\tR\ncustomerId\x12\x1d\n\nfeature_id\x18\x02 \x01(\tR\tfeatureId\x12$\n\x0bresource_id\x18\x03 \x01(\tH\x00R\nresourceId\x88\x01\x01\x12J\n\x07options\x18\x04 \x01(\x0b\x32+.stigg.sidecar.v1.NumericEntitlementOptionsH\x01R\x07options\x88\x01\x01\x42\x0e\n\x0c_resource_idB\n\n\x08_options\"\x9d\x02\n\x1dGetNumericEntitlementResponse\x12\x1d\n\nhas_access\x18\x01 \x01(\x08R\thasAccess\x12\x1f\n\x0bis_fallback\x18\x02 \x01(\x08R\nisFallback\x12[\n\x14\x61\x63\x63\x65ss_denied_reason\x18\x03 \x01(\x0e\x32$.stigg.sidecar.v1.AccessDeniedReasonH\x00R\x12\x61\x63\x63\x65ssDeniedReason\x88\x01\x01\x12\x46\n\x0b\x65ntitlement\x18\x04 \x01(\x0b\x32$.stigg.sidecar.v1.NumericEntitlementR\x0b\x65ntitlementB\x17\n\x15_access_denied_reason\"\xaa\x01\n\x1aMeteredEntitlementFallback\x12\x1d\n\nhas_access\x18\x01 \x01(\x08R\thasAccess\x12$\n\x0busage_limit\x18\x02 \x01(\x01H\x00R\nusageLimit\x88\x01\x01\x12&\n\x0cis_unlimited\x18\x03 \x01(\x08H\x01R\x0bisUnlimited\x88\x01\x01\x42\x0e\n\x0c_usage_limitB\x0f\n\r_is_unlimited\"\xb9\x01\n\x19MeteredEntitlementOptions\x12,\n\x0frequested_usage\x18\x01 \x01(\x01H\x00R\x0erequestedUsage\x88\x01\x01\x12M\n\x08\x66\x61llback\x18\x02 \x01(\x0b\x32,.stigg.sidecar.v1.MeteredEntitlementFallbackH\x01R\x08\x66\x61llback\x88\x01\x01\x42\x12\n\x10_requested_usageB\x0b\n\t_fallback\"\xec\x01\n\x1cGetMeteredEntitlementRequest\x12\x1f\n\x0b\x63ustomer_id\x18\x01 \x01(\tR\ncustomerId\x12\x1d\n\nfeature_id\x18\x02 \x01(\tR\tfeatureId\x12$\n\x0bresource_id\x18\x03 \x01(\tH\x00R\nresourceId\x88\x01\x01\x12J\n\x07options\x18\x04 \x01(\x0b\x32+.stigg.sidecar.v1.MeteredEntitlementOptionsH\x01R\x07options\x88\x01\x01\x42\x0e\n\x0c_resource_idB\n\n\x08_options\"\xc6\x02\n\x1dGetMeteredEntitlementResponse\x12\x1d\n\nhas_access\x18\x01 \x01(\x08R\thasAccess\x12\x1f\n\x0bis_fallback\x18\x02 \x01(\x08R\nisFallback\x12[\n\x14\x61\x63\x63\x65ss_denied_reason\x18\x03 \x01(\x0e\x32$.stigg.sidecar.v1.AccessDeniedReasonH\x00R\x12\x61\x63\x63\x65ssDeniedReason\x88\x01\x01\x12\'\n\x0frequested_usage\x18\x04 \x01(\x01R\x0erequestedUsage\x12\x46\n\x0b\x65ntitlement\x18\x05 \x01(\x0b\x32$.stigg.sidecar.v1.MeteredEntitlementR\x0b\x65ntitlementB\x17\n\x15_access_denied_reason\"\x98\x02\n\x0cRedisOptions\x12-\n\x12\x65nvironment_prefix\x18\x01 \x01(\tR\x11\x65nvironmentPrefix\x12\x17\n\x04host\x18\x02 \x01(\tH\x00R\x04host\x88\x01\x01\x12\x17\n\x04port\x18\x03 \x01(\x05H\x01R\x04port\x88\x01\x01\x12\x13\n\x02\x64\x62\x18\x04 \x01(\x05H\x02R\x02\x64\x62\x88\x01\x01\x12\x1f\n\x08username\x18\x05 \x01(\tH\x03R\x08username\x88\x01\x01\x12\x1f\n\x08password\x18\x06 \x01(\tH\x04R\x08password\x88\x01\x01\x12\x15\n\x03ttl\x18\x07 \x01(\x05H\x05R\x03ttl\x88\x01\x01\x42\x07\n\x05_hostB\x07\n\x05_portB\x05\n\x03_dbB\x0b\n\t_usernameB\x0b\n\t_passwordB\x06\n\x04_ttl\"\xff\x01\n\x13\x45ntitlementFallback\x12H\n\x07\x62oolean\x18\x01 \x01(\x0b\x32,.stigg.sidecar.v1.BooleanEntitlementFallbackH\x00R\x07\x62oolean\x12H\n\x07numeric\x18\x02 \x01(\x0b\x32,.stigg.sidecar.v1.NumericEntitlementFallbackH\x00R\x07numeric\x12H\n\x07metered\x18\x03 \x01(\x0b\x32,.stigg.sidecar.v1.MeteredEntitlementFallbackH\x00R\x07meteredB\n\n\x08\x66\x61llback\"\xbf\x01\n\tApiConfig\x12\x17\n\x07\x61pi_key\x18\x01 \x01(\tR\x06\x61piKey\x12\x1c\n\x07\x61pi_url\x18\x02 \x01(\tH\x00R\x06\x61piUrl\x88\x01\x01\x12&\n\x0c\x65\x64ge_enabled\x18\x03 \x01(\x08H\x01R\x0b\x65\x64geEnabled\x88\x01\x01\x12%\n\x0c\x65\x64ge_api_url\x18\x04 \x01(\tH\x02R\nedgeApiUrl\x88\x01\x01\x42\n\n\x08_api_urlB\x0f\n\r_edge_enabledB\x0f\n\r_edge_api_url\"\xe7\x03\n\x12LocalSidecarConfig\x12\"\n\nws_enabled\x18\x05 \x01(\x08H\x00R\twsEnabled\x88\x01\x01\x12\x1a\n\x06ws_url\x18\x06 \x01(\tH\x01R\x05wsUrl\x88\x01\x01\x12\x39\n\x05redis\x18\x07 \x01(\x0b\x32\x1e.stigg.sidecar.v1.RedisOptionsH\x02R\x05redis\x88\x01\x01\x12s\n\x15\x65ntitlements_fallback\x18\x08 \x03(\x0b\x32>.stigg.sidecar.v1.LocalSidecarConfig.EntitlementsFallbackEntryR\x14\x65ntitlementsFallback\x12\x34\n\x14\x63\x61\x63he_max_size_bytes\x18\t \x01(\x03H\x03R\x11\x63\x61\x63heMaxSizeBytes\x88\x01\x01\x1an\n\x19\x45ntitlementsFallbackEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12;\n\x05value\x18\x02 \x01(\x0b\x32%.stigg.sidecar.v1.EntitlementFallbackR\x05value:\x02\x38\x01\x42\r\n\x0b_ws_enabledB\t\n\x07_ws_urlB\x08\n\x06_redisB\x17\n\x15_cache_max_size_bytes\"\x89\x02\n\x12ReportUsageRequest\x12\x1f\n\x0b\x63ustomer_id\x18\x01 \x01(\tR\ncustomerId\x12$\n\x0bresource_id\x18\x02 \x01(\tH\x00R\nresourceId\x88\x01\x01\x12\x1d\n\nfeature_id\x18\x03 \x01(\tR\tfeatureId\x12\x14\n\x05value\x18\x04 \x01(\x01R\x05value\x12S\n\x0fupdate_behavior\x18\x05 \x01(\x0e\x32%.stigg.sidecar.v1.UsageUpdateBehaviorH\x01R\x0eupdateBehavior\x88\x01\x01\x42\x0e\n\x0c_resource_idB\x12\n\x10_update_behavior\"\x8f\x01\n\x13\x45ventDimensionValue\x12#\n\x0cstring_value\x18\x01 \x01(\tH\x00R\x0bstringValue\x12#\n\x0cnumber_value\x18\x02 \x01(\x01H\x00R\x0bnumberValue\x12%\n\rboolean_value\x18\x03 \x01(\x08H\x00R\x0c\x62ooleanValueB\x07\n\x05value\"\xa2\x03\n\x05\x45vent\x12\x1d\n\nevent_name\x18\x01 \x01(\tR\teventName\x12\x1f\n\x0b\x63ustomer_id\x18\x02 \x01(\tR\ncustomerId\x12\'\n\x0fidempotency_key\x18\x03 \x01(\tR\x0eidempotencyKey\x12$\n\x0bresource_id\x18\x04 \x01(\tH\x00R\nresourceId\x88\x01\x01\x12G\n\ndimensions\x18\x05 \x03(\x0b\x32\'.stigg.sidecar.v1.Event.DimensionsEntryR\ndimensions\x12=\n\ttimestamp\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x01R\ttimestamp\x88\x01\x01\x1a\x64\n\x0f\x44imensionsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12;\n\x05value\x18\x02 \x01(\x0b\x32%.stigg.sidecar.v1.EventDimensionValueR\x05value:\x02\x38\x01\x42\x0e\n\x0c_resource_idB\x0c\n\n_timestamp\"<\n\x13ReportUsageResponse\x12%\n\x0emeasurement_id\x18\x01 \x01(\tR\rmeasurementId\"F\n\x13ReportEventsRequest\x12/\n\x06\x65vents\x18\x01 \x03(\x0b\x32\x17.stigg.sidecar.v1.EventR\x06\x65vents\"r\n\x19ReloadEntitlementsRequest\x12\x1f\n\x0b\x63ustomer_id\x18\x01 \x01(\tR\ncustomerId\x12$\n\x0bresource_id\x18\x02 \x01(\tH\x00R\nresourceId\x88\x01\x01\x42\x0e\n\x0c_resource_id\"R\n\x1aReloadEntitlementsResponse\x12\x34\n\x16\x65ntitled_entity_exists\x18\x01 \x01(\x08R\x14\x65ntitledEntityExists*\xc6\x03\n\x12\x41\x63\x63\x65ssDeniedReason\x12$\n ACCESS_DENIED_REASON_UNSPECIFIED\x10\x00\x12 \n\x1c\x41\x43\x43\x45SS_DENIED_REASON_UNKNOWN\x10\x01\x12-\n)ACCESS_DENIED_REASON_CUSTOMER_IS_ARCHIVED\x10\x02\x12+\n\'ACCESS_DENIED_REASON_CUSTOMER_NOT_FOUND\x10\x03\x12\x34\n0ACCESS_DENIED_REASON_CUSTOMER_RESOURCE_NOT_FOUND\x10\x04\x12*\n&ACCESS_DENIED_REASON_FEATURE_NOT_FOUND\x10\x05\x12/\n+ACCESS_DENIED_REASON_NO_ACTIVE_SUBSCRIPTION\x10\x06\x12?\n;ACCESS_DENIED_REASON_NO_FEATURE_ENTITLEMENT_IN_SUBSCRIPTION\x10\x07\x12\x38\n4ACCESS_DENIED_REASON_REQUESTED_USAGE_EXCEEDING_LIMIT\x10\x08*^\n\x0b\x46\x65\x61tureType\x12\x1c\n\x18\x46\x45\x41TURE_TYPE_UNSPECIFIED\x10\x00\x12\x18\n\x14\x46\x45\x41TURE_TYPE_BOOLEAN\x10\x01\x12\x17\n\x13\x46\x45\x41TURE_TYPE_NUMBER\x10\x02*t\n\tMeterType\x12\x1a\n\x16METER_TYPE_UNSPECIFIED\x10\x00\x12\x13\n\x0fMETER_TYPE_NONE\x10\x01\x12\x1a\n\x16METER_TYPE_FLUCTUATING\x10\x02\x12\x1a\n\x16METER_TYPE_INCREMENTAL\x10\x03*\xf1\x01\n\x16\x45ntitlementResetPeriod\x12(\n$ENTITLEMENT_RESET_PERIOD_UNSPECIFIED\x10\x00\x12 \n\x1c\x45NTITLEMENT_RESET_PERIOD_DAY\x10\x01\x12!\n\x1d\x45NTITLEMENT_RESET_PERIOD_HOUR\x10\x02\x12\"\n\x1e\x45NTITLEMENT_RESET_PERIOD_MONTH\x10\x03\x12!\n\x1d\x45NTITLEMENT_RESET_PERIOD_WEEK\x10\x04\x12!\n\x1d\x45NTITLEMENT_RESET_PERIOD_YEAR\x10\x05*|\n\x13UsageUpdateBehavior\x12%\n!USAGE_UPDATE_BEHAVIOR_UNSPECIFIED\x10\x00\x12\x1f\n\x1bUSAGE_UPDATE_BEHAVIOR_DELTA\x10\x01\x12\x1d\n\x19USAGE_UPDATE_BEHAVIOR_SET\x10\x02\x32\x82\x06\n\x0eSidecarService\x12\x66\n\x0fGetEntitlements\x12(.stigg.sidecar.v1.GetEntitlementsRequest\x1a).stigg.sidecar.v1.GetEntitlementsResponse\x12x\n\x15GetBooleanEntitlement\x12..stigg.sidecar.v1.GetBooleanEntitlementRequest\x1a/.stigg.sidecar.v1.GetBooleanEntitlementResponse\x12x\n\x15GetNumericEntitlement\x12..stigg.sidecar.v1.GetNumericEntitlementRequest\x1a/.stigg.sidecar.v1.GetNumericEntitlementResponse\x12x\n\x15GetMeteredEntitlement\x12..stigg.sidecar.v1.GetMeteredEntitlementRequest\x1a/.stigg.sidecar.v1.GetMeteredEntitlementResponse\x12Z\n\x0bReportUsage\x12$.stigg.sidecar.v1.ReportUsageRequest\x1a%.stigg.sidecar.v1.ReportUsageResponse\x12M\n\x0cReportEvents\x12%.stigg.sidecar.v1.ReportEventsRequest\x1a\x16.google.protobuf.Empty\x12o\n\x12ReloadEntitlements\x12+.stigg.sidecar.v1.ReloadEntitlementsRequest\x1a,.stigg.sidecar.v1.ReloadEntitlementsResponseB\xd3\x01\n\x19io.stigg.sidecar.proto.v1B\x0cSidecarProtoP\x01ZFgithub.com/stiggio/sidecar-sdk-go/generated/stigg/sidecar/v1;sidecarv1\xa2\x02\x03SSX\xaa\x02\x10Stigg.Sidecar.V1\xca\x02\x10Stigg\\Sidecar\\V1\xe2\x02\x1cStigg\\Sidecar\\V1\\GPBMetadata\xea\x02\x12Stigg::Sidecar::V1b\x06proto3"
|
12
12
|
|
13
13
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
14
14
|
pool.add_serialized_file(descriptor_data)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stigg-sidecar-sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.156.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stigg
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-09
|
11
|
+
date: 2024-10-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: grpc
|