stigg-api-client 2.179.0__py3-none-any.whl → 2.184.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of stigg-api-client might be problematic. Click here for more details.

stigg/generated/schema.py CHANGED
@@ -490,6 +490,11 @@ class SubscriptionStatus(sgqlc.types.Enum):
490
490
  __choices__ = ('ACTIVE', 'CANCELED', 'EXPIRED', 'IN_TRIAL', 'NOT_STARTED', 'PAYMENT_PENDING')
491
491
 
492
492
 
493
+ class SubscriptionUpdateUsageCutoffBehavior(sgqlc.types.Enum):
494
+ __schema__ = schema
495
+ __choices__ = ('ALWAYS_RESET', 'BILLING_PERIOD_CHANGE', 'NEVER_RESET')
496
+
497
+
493
498
  class SyncStatus(sgqlc.types.Enum):
494
499
  __schema__ = schema
495
500
  __choices__ = ('ERROR', 'NO_SYNC_REQUIRED', 'PENDING', 'SUCCESS')
@@ -520,6 +525,11 @@ class UnitTransformationRound(sgqlc.types.Enum):
520
525
  __choices__ = ('DOWN', 'UP')
521
526
 
522
527
 
528
+ class UsageMarkerType(sgqlc.types.Enum):
529
+ __schema__ = schema
530
+ __choices__ = ('PERIODIC_RESET', 'SUBSCRIPTION_CHANGE_RESET')
531
+
532
+
523
533
  class UsageMeasurementSortFields(sgqlc.types.Enum):
524
534
  __schema__ = schema
525
535
  __choices__ = ('createdAt', 'environmentId', 'id')
@@ -1152,7 +1162,7 @@ class CreateOneProductInput(sgqlc.types.Input):
1152
1162
 
1153
1163
  class CreateOrUpdateAwsMarketplaceProductInput(sgqlc.types.Input):
1154
1164
  __schema__ = schema
1155
- __field_names__ = ('additional_meta_data', 'auto_cancellation_rules', 'aws_dimensions_mapping', 'aws_product_id', 'description', 'display_name', 'environment_id', 'multiple_subscriptions', 'product_id', 'product_settings', 'ref_id')
1165
+ __field_names__ = ('additional_meta_data', 'auto_cancellation_rules', 'aws_dimensions_mapping', 'aws_product_id', 'description', 'display_name', 'environment_id', 'multiple_subscriptions', 'product_id', 'product_settings', 'ref_id', 'usage_reset_cutoff_rule')
1156
1166
  additional_meta_data = sgqlc.types.Field(JSON, graphql_name='additionalMetaData')
1157
1167
  auto_cancellation_rules = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(AutoCancellationRuleInput)), graphql_name='autoCancellationRules')
1158
1168
  aws_dimensions_mapping = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null('DimensionsMappingInput'))), graphql_name='awsDimensionsMapping')
@@ -1164,6 +1174,7 @@ class CreateOrUpdateAwsMarketplaceProductInput(sgqlc.types.Input):
1164
1174
  product_id = sgqlc.types.Field(String, graphql_name='productId')
1165
1175
  product_settings = sgqlc.types.Field('ProductSettingsInput', graphql_name='productSettings')
1166
1176
  ref_id = sgqlc.types.Field(String, graphql_name='refId')
1177
+ usage_reset_cutoff_rule = sgqlc.types.Field('SubscriptionUpdateUsageResetCutoffRuleInput', graphql_name='usageResetCutoffRule')
1167
1178
 
1168
1179
 
1169
1180
  class CreatePackageGroup(sgqlc.types.Input):
@@ -3031,13 +3042,14 @@ class ProductSort(sgqlc.types.Input):
3031
3042
 
3032
3043
  class ProductUpdateInput(sgqlc.types.Input):
3033
3044
  __schema__ = schema
3034
- __field_names__ = ('additional_meta_data', 'auto_cancellation_rules', 'description', 'display_name', 'multiple_subscriptions', 'product_settings')
3045
+ __field_names__ = ('additional_meta_data', 'auto_cancellation_rules', 'description', 'display_name', 'multiple_subscriptions', 'product_settings', 'usage_reset_cutoff_rule')
3035
3046
  additional_meta_data = sgqlc.types.Field(JSON, graphql_name='additionalMetaData')
3036
3047
  auto_cancellation_rules = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(AutoCancellationRuleInput)), graphql_name='autoCancellationRules')
3037
3048
  description = sgqlc.types.Field(String, graphql_name='description')
3038
3049
  display_name = sgqlc.types.Field(String, graphql_name='displayName')
3039
3050
  multiple_subscriptions = sgqlc.types.Field(Boolean, graphql_name='multipleSubscriptions')
3040
3051
  product_settings = sgqlc.types.Field(ProductSettingsInput, graphql_name='productSettings')
3052
+ usage_reset_cutoff_rule = sgqlc.types.Field('SubscriptionUpdateUsageResetCutoffRuleInput', graphql_name='usageResetCutoffRule')
3041
3053
 
3042
3054
 
3043
3055
  class PromotionalEntitlementFilter(sgqlc.types.Input):
@@ -3875,6 +3887,12 @@ class SubscriptionUpdateScheduleCancellationInput(sgqlc.types.Input):
3875
3887
  subscription_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='subscriptionId')
3876
3888
 
3877
3889
 
3890
+ class SubscriptionUpdateUsageResetCutoffRuleInput(sgqlc.types.Input):
3891
+ __schema__ = schema
3892
+ __field_names__ = ('behavior',)
3893
+ behavior = sgqlc.types.Field(sgqlc.types.non_null(SubscriptionUpdateUsageCutoffBehavior), graphql_name='behavior')
3894
+
3895
+
3878
3896
  class SyncTaxRatesInput(sgqlc.types.Input):
3879
3897
  __schema__ = schema
3880
3898
  __field_names__ = ('environment_id',)
@@ -7970,7 +7988,7 @@ class PricingTypeChange(sgqlc.types.Type):
7970
7988
 
7971
7989
  class Product(sgqlc.types.Type):
7972
7990
  __schema__ = schema
7973
- __field_names__ = ('additional_meta_data', 'addons', 'auto_cancellation_rules', 'aws_marketplace_product_code', 'aws_marketplace_product_id', 'created_at', 'description', 'display_name', 'downgrade_plan', 'environment', 'environment_id', 'has_subscriptions', 'id', 'is_default_product', 'multiple_subscriptions', 'plans', 'product_settings', 'ref_id', 'subscription_start_plan', 'updated_at')
7991
+ __field_names__ = ('additional_meta_data', 'addons', 'auto_cancellation_rules', 'aws_marketplace_product_code', 'aws_marketplace_product_id', 'created_at', 'description', 'display_name', 'downgrade_plan', 'environment', 'environment_id', 'has_subscriptions', 'id', 'is_default_product', 'multiple_subscriptions', 'plans', 'product_settings', 'ref_id', 'subscription_start_plan', 'subscription_update_usage_reset_cutoff_rule', 'updated_at')
7974
7992
  additional_meta_data = sgqlc.types.Field(JSON, graphql_name='additionalMetaData')
7975
7993
  addons = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(Addon))), graphql_name='addons')
7976
7994
  auto_cancellation_rules = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(AutoCancellationRule))), graphql_name='autoCancellationRules')
@@ -7990,6 +8008,7 @@ class Product(sgqlc.types.Type):
7990
8008
  product_settings = sgqlc.types.Field(sgqlc.types.non_null('ProductSettings'), graphql_name='productSettings')
7991
8009
  ref_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='refId')
7992
8010
  subscription_start_plan = sgqlc.types.Field(Plan, graphql_name='subscriptionStartPlan')
8011
+ subscription_update_usage_reset_cutoff_rule = sgqlc.types.Field(sgqlc.types.non_null('SubscriptionUpdateUsageResetCutoffRule'), graphql_name='subscriptionUpdateUsageResetCutoffRule')
7993
8012
  updated_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name='updatedAt')
7994
8013
 
7995
8014
 
@@ -9268,6 +9287,12 @@ class SubscriptionScheduledUpdate(sgqlc.types.Type):
9268
9287
  target_package = sgqlc.types.Field(PackageDTO, graphql_name='targetPackage')
9269
9288
 
9270
9289
 
9290
+ class SubscriptionUpdateUsageResetCutoffRule(sgqlc.types.Type):
9291
+ __schema__ = schema
9292
+ __field_names__ = ('behavior',)
9293
+ behavior = sgqlc.types.Field(sgqlc.types.non_null(SubscriptionUpdateUsageCutoffBehavior), graphql_name='behavior')
9294
+
9295
+
9271
9296
  class SyncState(sgqlc.types.Type):
9272
9297
  __schema__ = schema
9273
9298
  __field_names__ = ('error', 'status', 'vendor_identifier')
@@ -9390,13 +9415,21 @@ class UsageEventsPreview(sgqlc.types.Type):
9390
9415
 
9391
9416
  class UsageHistory(sgqlc.types.Type):
9392
9417
  __schema__ = schema
9393
- __field_names__ = ('end_date', 'groups', 'start_date', 'usage_measurements')
9418
+ __field_names__ = ('end_date', 'groups', 'markers', 'start_date', 'usage_measurements')
9394
9419
  end_date = sgqlc.types.Field(DateTime, graphql_name='endDate')
9395
9420
  groups = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(GroupUsageHistory)), graphql_name='groups')
9421
+ markers = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null('UsageMarker'))), graphql_name='markers')
9396
9422
  start_date = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name='startDate')
9397
9423
  usage_measurements = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null('UsageMeasurementPoint'))), graphql_name='usageMeasurements')
9398
9424
 
9399
9425
 
9426
+ class UsageMarker(sgqlc.types.Type):
9427
+ __schema__ = schema
9428
+ __field_names__ = ('timestamp', 'type')
9429
+ timestamp = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name='timestamp')
9430
+ type = sgqlc.types.Field(sgqlc.types.non_null(UsageMarkerType), graphql_name='type')
9431
+
9432
+
9400
9433
  class UsageMeasurement(sgqlc.types.Type):
9401
9434
  __schema__ = schema
9402
9435
  __field_names__ = ('created_at', 'customer', 'customer_id', 'environment', 'environment_id', 'feature', 'feature_id', 'id', 'value')
@@ -9468,7 +9501,7 @@ class UsageMeasurementPoint(sgqlc.types.Type):
9468
9501
  __schema__ = schema
9469
9502
  __field_names__ = ('date', 'is_reset_point', 'value')
9470
9503
  date = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name='date')
9471
- is_reset_point = sgqlc.types.Field(Boolean, graphql_name='isResetPoint')
9504
+ is_reset_point = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name='isResetPoint')
9472
9505
  value = sgqlc.types.Field(sgqlc.types.non_null(Float), graphql_name='value')
9473
9506
 
9474
9507
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: stigg-api-client
3
- Version: 2.179.0
3
+ Version: 2.184.0
4
4
  Summary:
5
5
  License: STIGG SDK LICENSE
6
6
  Author: Stigg
@@ -2,8 +2,8 @@ stigg/__init__.py,sha256=uQeM3YjvH1X56xOPknIEQezw0yjNNS-m9gi3B0XlSOM,44
2
2
  stigg/client.py,sha256=z9u5SptafEM-tN_K0o_zGKYDy6VVS9LWvkH0ZBMO4jc,3721
3
3
  stigg/generated/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  stigg/generated/operations.py,sha256=x7H2wsUOsDAqhG08mn49x5aIte5LbZhA0nBq9ZvvyIY,75245
5
- stigg/generated/schema.py,sha256=NZwFBY8qG7_G0X_v9ZShtjh8USM-AtSl4gZLwy8wWAw,615167
6
- stigg_api_client-2.179.0.dist-info/LICENSE,sha256=yhOTQTha61N-7pgHWeRZ0TGF5uq0ifi5U8qU8nHvzME,5127
7
- stigg_api_client-2.179.0.dist-info/METADATA,sha256=inUhHVi4lSJmKqo0l0MpUm6GnRM0-vnhNIeQNZibwWc,3198
8
- stigg_api_client-2.179.0.dist-info/WHEEL,sha256=kLuE8m1WYU0Ig0_YEGrXyTtiJvKPpLpDEiChiNyei5Y,88
9
- stigg_api_client-2.179.0.dist-info/RECORD,,
5
+ stigg/generated/schema.py,sha256=fwzf614hOj_OjPFRJQk7SZjC5sjV9M8xmM77fHzACvo,616969
6
+ stigg_api_client-2.184.0.dist-info/LICENSE,sha256=yhOTQTha61N-7pgHWeRZ0TGF5uq0ifi5U8qU8nHvzME,5127
7
+ stigg_api_client-2.184.0.dist-info/METADATA,sha256=uDEaJto5neWHfnHhvtcdcV8wzwei--5pyCFXzjR6_ZU,3198
8
+ stigg_api_client-2.184.0.dist-info/WHEEL,sha256=kLuE8m1WYU0Ig0_YEGrXyTtiJvKPpLpDEiChiNyei5Y,88
9
+ stigg_api_client-2.184.0.dist-info/RECORD,,