togai_client 1.0.0 → 1.0.2
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.
- checksums.yaml +4 -4
- data/README.md +3 -4
- data/docs/Account.md +26 -2
- data/docs/AccountAlias.md +28 -0
- data/docs/AccountAliases.md +1 -3
- data/docs/AccountAliasesPaginatedResponse.md +20 -0
- data/docs/AccountSchedule.md +38 -0
- data/docs/AccountsApi.md +840 -124
- data/docs/AccountsBillingInformation.md +20 -0
- data/docs/ActivatePricePlanRequest.md +18 -0
- data/docs/AddAccountAliasesRequest.md +3 -1
- data/docs/AddOn.md +30 -0
- data/docs/AddOnPaginatedResponse.md +22 -0
- data/docs/AddOnType.md +15 -0
- data/docs/AddOnsApi.md +365 -0
- data/docs/Address.md +30 -0
- data/docs/Alert.md +40 -0
- data/docs/AlertStatus.md +15 -0
- data/docs/AlertTemplate.md +38 -0
- data/docs/AlertTemplatesPaginatedResponse.md +20 -0
- data/docs/AlertsApi.md +566 -0
- data/docs/AlertsPaginatedResponse.md +20 -0
- data/docs/AliasPaginatedResponse.md +20 -0
- data/docs/AliasesApi.md +291 -0
- data/docs/AssociatePricePlanRequest.md +4 -4
- data/docs/AssociationConfig.md +24 -0
- data/docs/Attribute.md +22 -0
- data/docs/AuthenticationApi.md +74 -0
- data/docs/BillingConfig.md +20 -0
- data/docs/BillingEntitlementRateCard.md +34 -0
- data/docs/BillingEntitlementRevenueSummary.md +18 -0
- data/docs/BulkRateCardOperationsRequest.md +18 -0
- data/docs/BulkRateCardOperationsResponse.md +18 -0
- data/docs/Bundle.md +22 -0
- data/docs/CalculateRevenueRequest.md +30 -0
- data/docs/CalculateRevenueResponse.md +24 -0
- data/docs/CalculateRevenueResponseV2.md +22 -0
- data/docs/Computation.md +5 -3
- data/docs/CreateAccountAliasRequest.md +22 -0
- data/docs/CreateAccountRequest.md +27 -5
- data/docs/CreateAccountRequestWithoutCustomerId.md +42 -0
- data/docs/CreateAddOnRequest.md +22 -0
- data/docs/CreateAlertRequest.md +32 -0
- data/docs/CreateAliasRequest.md +18 -0
- data/docs/CreateBulkAliasRequest.md +18 -0
- data/docs/CreateCreditRequest.md +18 -0
- data/docs/CreateCreditResponse.md +18 -0
- data/docs/CreateCustomInvoiceRequest.md +36 -0
- data/docs/CreateCustomerContactRequest.md +30 -0
- data/docs/CreateCustomerContactResponse.md +34 -0
- data/docs/CreateCustomerRequest.md +9 -7
- data/docs/CreateCustomerResponse.md +8 -2
- data/docs/CreateEntitySetting.md +26 -0
- data/docs/CreateEventSchemaRequest.md +7 -1
- data/docs/CreateFeatureRequest.md +22 -0
- data/docs/CreateInvoiceGroupRequest.md +28 -0
- data/docs/CreatePaymentRequest.md +30 -0
- data/docs/CreatePricePlanDetails.md +38 -0
- data/docs/CreatePricePlanDetailsOverride.md +34 -0
- data/docs/CreatePricePlanMigrationRequest.md +32 -0
- data/docs/CreatePricePlanRequest.md +6 -4
- data/docs/CreatePricePlanV2Request.md +30 -0
- data/docs/CreatePricingRule.md +28 -0
- data/docs/CreateProposalRequest.md +40 -0
- data/docs/CreatePurchaseRequest.md +38 -0
- data/docs/CreateUsageMeterRequest.md +12 -6
- data/docs/Credit.md +50 -0
- data/docs/CreditBalanceResponse.md +28 -0
- data/docs/CreditDetailsResponse.md +52 -0
- data/docs/CreditGrantRateCard.md +34 -0
- data/docs/CreditGrantRevenueSummary.md +18 -0
- data/docs/CreditGrantType.md +15 -0
- data/docs/CreditRateDetails.md +20 -0
- data/docs/CreditRequest.md +34 -0
- data/docs/CreditTransaction.md +30 -0
- data/docs/CreditsApi.md +369 -0
- data/docs/CurrencyConfig.md +22 -0
- data/docs/CurrencyRateValue.md +20 -0
- data/docs/CurrencySlabRateDetail.md +24 -0
- data/docs/CustomInvoiceLineItem.md +28 -0
- data/docs/Customer.md +6 -2
- data/docs/CustomerPortalApi.md +77 -0
- data/docs/CustomersApi.md +85 -13
- data/docs/Dependency.md +22 -0
- data/docs/EditAccountScheduleRequest.md +18 -0
- data/docs/EditPricingScheduleRequest.md +18 -0
- data/docs/EnrichedField.md +22 -0
- data/docs/EnrichmentDependency.md +24 -0
- data/docs/Enrichments.md +20 -0
- data/docs/EntitlementOverageConfig.md +22 -0
- data/docs/EntitlementOverageConfigLookupCycle.md +20 -0
- data/docs/EntitlementOverageEntry.md +20 -0
- data/docs/EntitlementOverageRateCard.md +32 -0
- data/docs/EntitlementOverageRevenueSummary.md +18 -0
- data/docs/EntitlementsApi.md +599 -0
- data/docs/Event.md +11 -11
- data/docs/EventCorrectionInfo.md +32 -0
- data/docs/EventCorrectionRequest.md +18 -0
- data/docs/EventIngestionApi.md +16 -15
- data/docs/EventManagementApi.md +95 -21
- data/docs/EventPipelineInfo.md +15 -3
- data/docs/EventPipelineInfoAccount.md +3 -1
- data/docs/EventPipelineInfoEnrichments.md +22 -0
- data/docs/EventPipelineInfoFeatureDetails.md +24 -0
- data/docs/EventPipelineInfoPricePlans.md +28 -0
- data/docs/EventPipelineInfoPricePlansInner.md +2 -0
- data/docs/EventPipelineInfoRevenueDetails.md +22 -0
- data/docs/EventPipelineInfoUsageMeters.md +26 -0
- data/docs/EventSchema.md +11 -1
- data/docs/EventSchemaListData.md +13 -3
- data/docs/EventSchemaListDataAllOf.md +2 -2
- data/docs/EventSchemasApi.md +82 -84
- data/docs/EventSchemasForFeature.md +20 -0
- data/docs/EventSource.md +20 -0
- data/docs/EventWithStatus.md +9 -1
- data/docs/EventWithStatusAndEventPipelineInfo.md +9 -1
- data/docs/EventsCorrectionResponse.md +18 -0
- data/docs/ExpiryType.md +15 -0
- data/docs/ExternalPaymentReference.md +26 -0
- data/docs/Feature.md +30 -0
- data/docs/FeatureApi.md +293 -0
- data/docs/FeatureConfig.md +22 -0
- data/docs/FeatureCreditEntry.md +32 -0
- data/docs/FeatureDetails.md +20 -0
- data/docs/FeatureListResponse.md +30 -0
- data/docs/FeaturePaginatedListData.md +22 -0
- data/docs/Field.md +26 -0
- data/docs/FileDownloadUrlResponse.md +18 -0
- data/docs/FileStorageApi.md +151 -0
- data/docs/FinalizeAccountSchedules.md +20 -0
- data/docs/FinalizePricePlanRequest.md +20 -0
- data/docs/FixedFeeRateCard.md +34 -0
- data/docs/FixedFeeRevenueSummary.md +18 -0
- data/docs/FixedFeeType.md +15 -0
- data/docs/GetCustomerPortalDelegateTokenRequest.md +24 -0
- data/docs/GetEntitlementValuesResponse.md +18 -0
- data/docs/GetEntitlementValuesResponseDataInner.md +20 -0
- data/docs/GetEventResponse.md +1 -1
- data/docs/GetFeatureCreditEntriesPaginatedResponse.md +20 -0
- data/docs/GetFeatureCreditsResponse.md +28 -0
- data/docs/GetJobResponse.md +36 -0
- data/docs/GetLicenseUpdatesResponse.md +20 -0
- data/docs/GetMetricsRequest.md +4 -4
- data/docs/GetProposalResponse.md +62 -0
- data/docs/GetPurchaseResponse.md +62 -0
- data/docs/GrantDetails.md +24 -0
- data/docs/Incident.md +36 -0
- data/docs/IncidentsPaginatedResponse.md +20 -0
- data/docs/IngestEventRequest.md +1 -1
- data/docs/IngestEventResponse.md +12 -2
- data/docs/Invoice.md +68 -0
- data/docs/InvoiceDetails.md +28 -0
- data/docs/InvoiceDetailsAccount.md +24 -0
- data/docs/InvoiceDetailsCustomer.md +24 -0
- data/docs/InvoiceDetailsInvoiceGroup.md +28 -0
- data/docs/InvoiceDetailsOrganization.md +24 -0
- data/docs/InvoiceGroupAccountsPaginatedResponse.md +40 -0
- data/docs/InvoiceGroupDetails.md +30 -0
- data/docs/InvoiceGroupPaginatedResponse.md +20 -0
- data/docs/InvoiceGroups.md +36 -0
- data/docs/InvoiceGroupsApi.md +358 -0
- data/docs/InvoiceInfoInner.md +20 -0
- data/docs/InvoiceLineItem.md +34 -0
- data/docs/InvoiceSummary.md +58 -0
- data/docs/InvoiceTiming.md +15 -0
- data/docs/InvoicesApi.md +751 -0
- data/docs/InvoicesClass.md +15 -0
- data/docs/InvoicesStatus.md +15 -0
- data/docs/InvoicesType.md +15 -0
- data/docs/JobEntriesPaginatedResponse.md +22 -0
- data/docs/JobEntriesResponse.md +26 -0
- data/docs/JobsApi.md +361 -0
- data/docs/JobsPaginatedResponse.md +22 -0
- data/docs/JobsWithoutStatusInfoResponse.md +24 -0
- data/docs/LicenseEntriesConfig.md +24 -0
- data/docs/LicenseEntriesConfigLookupCycle.md +20 -0
- data/docs/LicenseEntriesConfigLookupRange.md +22 -0
- data/docs/LicenseEntry.md +22 -0
- data/docs/LicenseEntryDetailsUpdateRequest.md +22 -0
- data/docs/LicenseRateCard.md +40 -0
- data/docs/LicenseRateCardConfig.md +20 -0
- data/docs/LicenseUpdate.md +26 -0
- data/docs/LicenseUpdateRequest.md +30 -0
- data/docs/LicenseUpdateResponse.md +28 -0
- data/docs/LicensesApi.md +300 -0
- data/docs/ListCreditsResponse.md +20 -0
- data/docs/ListInvoicesResponse.md +20 -0
- data/docs/ListPaymentResponse.md +20 -0
- data/docs/ManageMiscellaneousChargesRequest.md +18 -0
- data/docs/MaxQuantityBreachAction.md +15 -0
- data/docs/MetricQuery.md +7 -5
- data/docs/MetricQueryFilterEntry.md +1 -1
- data/docs/MetricQueryResponse.md +1 -1
- data/docs/MetricsApi.md +7 -7
- data/docs/MigrationMode.md +15 -0
- data/docs/MinimumCommitment.md +20 -0
- data/docs/MiscellaneousCharge.md +26 -0
- data/docs/MiscellaneousChargesResponse.md +18 -0
- data/docs/ModelAlias.md +20 -0
- data/docs/NamedLicenseEntriesConfig.md +24 -0
- data/docs/NamedLicenseEntriesConfigLookupCycle.md +20 -0
- data/docs/NamedLicenseEntriesConfigLookupRange.md +22 -0
- data/docs/NamedLicenseEntry.md +24 -0
- data/docs/NamedLicenseUpdate.md +32 -0
- data/docs/NamedLicenseUpdatesPaginatedResponse.md +20 -0
- data/docs/Payment.md +38 -0
- data/docs/PaymentLineItemRecord.md +24 -0
- data/docs/PaymentsApi.md +227 -0
- data/docs/PlanOverride.md +8 -2
- data/docs/PreAction.md +20 -0
- data/docs/PriceExperimentationApi.md +147 -0
- data/docs/PricePlan.md +4 -2
- data/docs/PricePlanDetails.md +42 -0
- data/docs/PricePlanDetailsConfig.md +28 -0
- data/docs/PricePlanDetailsOverride.md +34 -0
- data/docs/PricePlanInfo.md +20 -0
- data/docs/PricePlanListData.md +12 -6
- data/docs/PricePlanMigrationConfig.md +30 -0
- data/docs/PricePlanPaginatedResponse.md +1 -1
- data/docs/PricePlanType.md +15 -0
- data/docs/PricePlanV2.md +42 -0
- data/docs/PricePlanV2Api.md +953 -0
- data/docs/PricePlanV2PaginatedResponse.md +20 -0
- data/docs/PricePlansApi.md +202 -52
- data/docs/PriceType.md +15 -0
- data/docs/PricingCycleConfig.md +24 -0
- data/docs/{PricingCycleStartOffset.md → PricingCycleConfigStartOffset.md} +3 -3
- data/docs/PricingCycleInterval.md +15 -0
- data/docs/PricingModel.md +15 -0
- data/docs/PricingRule.md +32 -0
- data/docs/PricingRuleAction.md +26 -0
- data/docs/PricingRuleChangesLog.md +30 -0
- data/docs/PricingRuleInfo.md +24 -0
- data/docs/PricingRuleTiming.md +15 -0
- data/docs/PricingRulesApi.md +83 -0
- data/docs/PricingRulesLog.md +28 -0
- data/docs/PricingRulesLogsPaginatedResponse.md +18 -0
- data/docs/PricingRulesPaginatedResponse.md +18 -0
- data/docs/PricingRulesValues.md +20 -0
- data/docs/PricingSchedule.md +11 -3
- data/docs/PricingSchedulePaginatedResponse.md +22 -0
- data/docs/PricingScheduleWithPricePlanId.md +36 -0
- data/docs/Proposal.md +62 -0
- data/docs/ProposalsListResponse.md +40 -0
- data/docs/ProposalsPaginatedResponse.md +22 -0
- data/docs/ProratedRefundMode.md +15 -0
- data/docs/ProrationConfig.md +22 -0
- data/docs/ProrationConfigCustomConfig.md +22 -0
- data/docs/ProrationConfigLookupCycleConfig.md +22 -0
- data/docs/Purchase.md +58 -0
- data/docs/PurchaseFeatureDetails.md +30 -0
- data/docs/PurchaseListResponse.md +46 -0
- data/docs/PurchasePaginatedListData.md +22 -0
- data/docs/PurchasePlanOverride.md +22 -0
- data/docs/PurchaseStatus.md +15 -0
- data/docs/PurchaseType.md +15 -0
- data/docs/QueryColumn.md +26 -0
- data/docs/QueryFilter.md +22 -0
- data/docs/QueryFunction.md +20 -0
- data/docs/QueryInput.md +28 -0
- data/docs/QueryInputSortInner.md +20 -0
- data/docs/RateCard.md +23 -5
- data/docs/RateCardBundleAggregation.md +15 -0
- data/docs/RateCardData.md +28 -0
- data/docs/RateCardDetails.md +30 -0
- data/docs/RateCardOperation.md +22 -0
- data/docs/RateCardPaginatedResponse.md +20 -0
- data/docs/RateCardType.md +15 -0
- data/docs/RateConfigBundle.md +20 -0
- data/docs/RateConfigUsage.md +20 -0
- data/docs/RatePlan.md +20 -0
- data/docs/RateValue.md +22 -0
- data/docs/RecurrenceConfig.md +20 -0
- data/docs/RemoveAccountAliasRequest.md +20 -0
- data/docs/RemoveAccountAliasesRequest.md +4 -2
- data/docs/Report.md +38 -0
- data/docs/ReportStatus.md +15 -0
- data/docs/ReportType.md +15 -0
- data/docs/ReportsApi.md +83 -0
- data/docs/ReportsPaginatedResponse.md +20 -0
- data/docs/RevenueInfo.md +42 -0
- data/docs/RevenueInfoV2.md +32 -0
- data/docs/RevenueSummaryWithMetadata.md +24 -0
- data/docs/ScheduleInfo.md +22 -0
- data/docs/SchedulesApi.md +667 -0
- data/docs/SchedulesPaginatedResponse.md +22 -0
- data/docs/Setting.md +30 -0
- data/docs/SettingDataType.md +15 -0
- data/docs/SettingPaginatedResponse.md +22 -0
- data/docs/SettingsApi.md +301 -0
- data/docs/Slab.md +24 -0
- data/docs/SlabBundle.md +24 -0
- data/docs/SlabDetail.md +26 -0
- data/docs/SlabRate.md +22 -0
- data/docs/SlabRevenue.md +22 -0
- data/docs/SlabRevenueMetadata.md +22 -0
- data/docs/SlabRevenueSummary.md +24 -0
- data/docs/SlabRevenueWithMetadata.md +24 -0
- data/docs/{UsageStrategy.md → SlabUsage.md} +6 -2
- data/docs/TokenResponse.md +18 -0
- data/docs/TopupWalletRequest.md +18 -0
- data/docs/UpdateAccountRequest.md +18 -2
- data/docs/UpdateAccountScheduleV2Request.md +26 -0
- data/docs/UpdateAddOnRequest.md +20 -0
- data/docs/UpdateAlertRequest.md +26 -0
- data/docs/UpdateCustomerRequest.md +5 -5
- data/docs/UpdateEventSchemaRequest.md +9 -3
- data/docs/UpdateFeatureCreditsRequest.md +20 -0
- data/docs/UpdateFeatureRequest.md +22 -0
- data/docs/UpdateIncidentStatusRequest.md +18 -0
- data/docs/UpdateInvoiceGroupAccounts.md +18 -0
- data/docs/UpdateInvoiceRequest.md +26 -0
- data/docs/UpdatePricePlanRequest.md +8 -4
- data/docs/UpdatePricePlanV2Request.md +22 -0
- data/docs/UpdatePricingRulesRequest.md +18 -0
- data/docs/UpdatePricingScheduleRequest.md +30 -0
- data/docs/UpdatePricingScheduleRequestWithActions.md +32 -0
- data/docs/UpdatePricingScheduleResponse.md +22 -0
- data/docs/UpdateProposalStatus.md +18 -0
- data/docs/UpdateSettingRequest.md +22 -0
- data/docs/UpdateUsageMeterRequest.md +13 -5
- data/docs/UpdateWalletRequest.md +20 -0
- data/docs/UsageConfig.md +24 -0
- data/docs/UsageConfigLookupCycle.md +20 -0
- data/docs/UsageConfigLookupRange.md +22 -0
- data/docs/UsageCycleInterval.md +15 -0
- data/docs/UsageLookupRange.md +20 -0
- data/docs/UsageMeter.md +12 -2
- data/docs/UsageMeterAggregation.md +15 -0
- data/docs/UsageMeterFilterEntry.md +20 -0
- data/docs/UsageMetersApi.md +64 -74
- data/docs/UsageRateCard.md +28 -0
- data/docs/ValidateEntitlementValueRequest.md +18 -0
- data/docs/ValidatedEntityError.md +24 -0
- data/docs/ValidatedEntityErrorsPaginatedResponse.md +20 -0
- data/docs/VersionsToMigrate.md +15 -0
- data/docs/WalletApi.md +301 -0
- data/docs/WalletBalanceResponse.md +40 -0
- data/docs/WalletEntriesPaginatedResponse.md +20 -0
- data/docs/WalletEntry.md +34 -0
- data/docs/WalletStatus.md +15 -0
- data/docs/WalletTopupDetails.md +20 -0
- data/examples/example.rb +222 -0
- data/lib/togai_client/api/accounts_api.rb +881 -220
- data/lib/togai_client/api/add_ons_api.rb +372 -0
- data/lib/togai_client/api/alerts_api.rb +527 -0
- data/lib/togai_client/api/aliases_api.rb +279 -0
- data/lib/togai_client/api/authentication_api.rb +79 -0
- data/lib/togai_client/api/credits_api.rb +351 -0
- data/lib/togai_client/api/customer_portal_api.rb +90 -0
- data/lib/togai_client/api/customers_api.rb +96 -18
- data/lib/togai_client/api/entitlements_api.rb +655 -0
- data/lib/togai_client/api/event_ingestion_api.rb +15 -15
- data/lib/togai_client/api/event_management_api.rb +97 -21
- data/lib/togai_client/api/event_schemas_api.rb +104 -107
- data/lib/togai_client/api/feature_api.rb +298 -0
- data/lib/togai_client/api/file_storage_api.rb +151 -0
- data/lib/togai_client/api/invoice_groups_api.rb +370 -0
- data/lib/togai_client/api/invoices_api.rb +705 -0
- data/lib/togai_client/api/jobs_api.rb +337 -0
- data/lib/togai_client/api/licenses_api.rb +282 -0
- data/lib/togai_client/api/metrics_api.rb +6 -6
- data/lib/togai_client/api/payments_api.rb +215 -0
- data/lib/togai_client/api/price_experimentation_api.rb +158 -0
- data/lib/togai_client/api/price_plan_v2_api.rb +960 -0
- data/lib/togai_client/api/price_plans_api.rb +214 -62
- data/lib/togai_client/api/pricing_rules_api.rb +106 -0
- data/lib/togai_client/api/reports_api.rb +92 -0
- data/lib/togai_client/api/schedules_api.rb +685 -0
- data/lib/togai_client/api/settings_api.rb +302 -0
- data/lib/togai_client/api/usage_meters_api.rb +97 -153
- data/lib/togai_client/api/wallet_api.rb +310 -0
- data/lib/togai_client/api_client.rb +25 -23
- data/lib/togai_client/api_error.rb +2 -1
- data/lib/togai_client/configuration.rb +51 -18
- data/lib/togai_client/models/account.rb +260 -28
- data/lib/togai_client/models/account_alias.rb +329 -0
- data/lib/togai_client/models/account_aliases.rb +23 -67
- data/lib/togai_client/models/account_aliases_paginated_response.rb +233 -0
- data/lib/togai_client/models/account_paginated_response.rb +14 -19
- data/lib/togai_client/models/account_schedule.rb +375 -0
- data/lib/togai_client/models/accounts_billing_information.rb +228 -0
- data/lib/togai_client/models/activate_price_plan_request.rb +235 -0
- data/lib/togai_client/models/add_account_aliases_request.rb +64 -25
- data/lib/togai_client/models/add_on.rb +395 -0
- data/lib/togai_client/models/add_on_paginated_response.rb +241 -0
- data/lib/togai_client/models/add_on_type.rb +42 -0
- data/lib/togai_client/models/address.rb +276 -0
- data/lib/togai_client/models/alert.rb +391 -0
- data/lib/togai_client/models/alert_status.rb +40 -0
- data/lib/togai_client/models/alert_template.rb +343 -0
- data/lib/togai_client/models/alert_templates_paginated_response.rb +232 -0
- data/lib/togai_client/models/alerts_paginated_response.rb +232 -0
- data/lib/togai_client/models/alias_paginated_response.rb +226 -0
- data/lib/togai_client/models/associate_price_plan_request.rb +17 -7
- data/lib/togai_client/models/association_config.rb +244 -0
- data/lib/togai_client/models/attribute.rb +327 -0
- data/lib/togai_client/models/base_success_response.rb +16 -19
- data/lib/togai_client/models/billing_config.rb +225 -0
- data/lib/togai_client/models/billing_entitlement_rate_card.rb +370 -0
- data/lib/togai_client/models/billing_entitlement_revenue_summary.rb +221 -0
- data/lib/togai_client/models/bulk_rate_card_operations_request.rb +224 -0
- data/lib/togai_client/models/bulk_rate_card_operations_response.rb +224 -0
- data/lib/togai_client/models/{pricing_cycle_start_offset.rb → bundle.rb} +58 -25
- data/lib/togai_client/models/calculate_revenue_request.rb +297 -0
- data/lib/togai_client/models/calculate_revenue_response.rb +264 -0
- data/lib/togai_client/models/calculate_revenue_response_v2.rb +248 -0
- data/lib/togai_client/models/computation.rb +49 -27
- data/lib/togai_client/models/create_account_alias_request.rb +270 -0
- data/lib/togai_client/models/create_account_request.rb +306 -27
- data/lib/togai_client/models/create_account_request_without_customer_id.rb +551 -0
- data/lib/togai_client/models/create_add_on_request.rb +309 -0
- data/lib/togai_client/models/create_alert_request.rb +327 -0
- data/lib/togai_client/models/create_alias_request.rb +241 -0
- data/lib/togai_client/models/create_bulk_alias_request.rb +252 -0
- data/lib/togai_client/models/create_credit_request.rb +224 -0
- data/lib/togai_client/models/create_credit_response.rb +223 -0
- data/lib/togai_client/models/create_custom_invoice_request.rb +411 -0
- data/lib/togai_client/models/create_customer_contact_request.rb +402 -0
- data/lib/togai_client/models/create_customer_contact_response.rb +435 -0
- data/lib/togai_client/models/create_customer_request.rb +65 -52
- data/lib/togai_client/models/create_customer_response.rb +79 -47
- data/lib/togai_client/models/create_entity_setting.rb +308 -0
- data/lib/togai_client/models/create_event_schema_request.rb +70 -24
- data/lib/togai_client/models/create_feature_request.rb +309 -0
- data/lib/togai_client/models/create_invoice_group_request.rb +344 -0
- data/lib/togai_client/models/create_payment_request.rb +394 -0
- data/lib/togai_client/models/create_price_plan_details.rb +339 -0
- data/lib/togai_client/models/create_price_plan_details_override.rb +319 -0
- data/lib/togai_client/models/create_price_plan_migration_request.rb +385 -0
- data/lib/togai_client/models/create_price_plan_request.rb +72 -41
- data/lib/togai_client/models/create_price_plan_v2_request.rb +367 -0
- data/lib/togai_client/models/create_pricing_rule.rb +313 -0
- data/lib/togai_client/models/create_proposal_request.rb +371 -0
- data/lib/togai_client/models/create_purchase_request.rb +330 -0
- data/lib/togai_client/models/create_usage_meter_request.rb +85 -42
- data/lib/togai_client/models/credit.rb +490 -0
- data/lib/togai_client/models/credit_balance_response.rb +302 -0
- data/lib/togai_client/models/credit_details_response.rb +508 -0
- data/lib/togai_client/models/credit_grant_rate_card.rb +332 -0
- data/lib/togai_client/models/credit_grant_revenue_summary.rb +221 -0
- data/lib/togai_client/models/credit_grant_type.rb +40 -0
- data/lib/togai_client/models/credit_rate_details.rb +262 -0
- data/lib/togai_client/models/credit_request.rb +330 -0
- data/lib/togai_client/models/credit_transaction.rb +357 -0
- data/lib/togai_client/models/{rate_card_bundle.rb → currency_config.rb} +63 -95
- data/lib/togai_client/models/currency_rate_value.rb +237 -0
- data/lib/togai_client/models/currency_slab_rate_detail.rb +287 -0
- data/lib/togai_client/models/custom_invoice_line_item.rb +260 -0
- data/lib/togai_client/models/customer.rb +66 -33
- data/lib/togai_client/models/customer_paginated_response.rb +14 -19
- data/lib/togai_client/models/dependency.rb +287 -0
- data/lib/togai_client/models/dimensions_schema.rb +16 -19
- data/lib/togai_client/models/edit_account_schedule_request.rb +252 -0
- data/lib/togai_client/models/edit_pricing_schedule_request.rb +252 -0
- data/lib/togai_client/models/enriched_field.rb +288 -0
- data/lib/togai_client/models/enrichment_dependency.rb +297 -0
- data/lib/togai_client/models/enrichments.rb +234 -0
- data/lib/togai_client/models/entitlement_overage_config.rb +278 -0
- data/lib/togai_client/models/entitlement_overage_config_lookup_cycle.rb +258 -0
- data/lib/togai_client/models/entitlement_overage_entry.rb +256 -0
- data/lib/togai_client/models/entitlement_overage_rate_card.rb +324 -0
- data/lib/togai_client/models/entitlement_overage_revenue_summary.rb +221 -0
- data/lib/togai_client/models/error_response.rb +16 -19
- data/lib/togai_client/models/event.rb +104 -84
- data/lib/togai_client/models/event_attribute_schema.rb +22 -21
- data/lib/togai_client/models/event_correction_info.rb +384 -0
- data/lib/togai_client/models/event_correction_request.rb +215 -0
- data/lib/togai_client/models/event_pipeline_info.rb +76 -25
- data/lib/togai_client/models/event_pipeline_info_account.rb +31 -23
- data/lib/togai_client/models/event_pipeline_info_customer.rb +18 -19
- data/lib/togai_client/models/event_pipeline_info_enrichments.rb +238 -0
- data/lib/togai_client/models/event_pipeline_info_event_schema.rb +18 -19
- data/lib/togai_client/models/event_pipeline_info_feature_details.rb +255 -0
- data/lib/togai_client/models/event_pipeline_info_price_plans.rb +306 -0
- data/lib/togai_client/models/event_pipeline_info_price_plans_inner.rb +15 -1
- data/lib/togai_client/models/event_pipeline_info_revenue_details.rb +253 -0
- data/lib/togai_client/models/event_pipeline_info_usage_meters.rb +312 -0
- data/lib/togai_client/models/event_schema.rb +89 -29
- data/lib/togai_client/models/event_schema_list_data.rb +96 -39
- data/lib/togai_client/models/event_schema_list_data_all_of.rb +7 -9
- data/lib/togai_client/models/event_schema_list_paginated_response.rb +14 -19
- data/lib/togai_client/models/event_schema_versions_response.rb +16 -19
- data/lib/togai_client/models/event_schemas_for_feature.rb +259 -0
- data/lib/togai_client/models/event_source.rb +278 -0
- data/lib/togai_client/models/event_with_status.rb +94 -23
- data/lib/togai_client/models/event_with_status_and_event_pipeline_info.rb +100 -23
- data/lib/togai_client/models/events_correction_response.rb +252 -0
- data/lib/togai_client/models/expiry_type.rb +41 -0
- data/lib/togai_client/models/external_payment_reference.rb +309 -0
- data/lib/togai_client/models/feature.rb +365 -0
- data/lib/togai_client/models/feature_config.rb +266 -0
- data/lib/togai_client/models/feature_credit_entry.rb +387 -0
- data/lib/togai_client/models/feature_details.rb +238 -0
- data/lib/togai_client/models/feature_list_response.rb +343 -0
- data/lib/togai_client/models/feature_paginated_list_data.rb +234 -0
- data/lib/togai_client/models/field.rb +331 -0
- data/lib/togai_client/models/file_download_url_response.rb +221 -0
- data/lib/togai_client/models/finalize_account_schedules.rb +228 -0
- data/lib/togai_client/models/finalize_price_plan_request.rb +246 -0
- data/lib/togai_client/models/fixed_fee_rate_card.rb +354 -0
- data/lib/togai_client/models/fixed_fee_revenue_summary.rb +221 -0
- data/lib/togai_client/models/fixed_fee_type.rb +40 -0
- data/lib/togai_client/models/get_customer_portal_delegate_token_request.rb +255 -0
- data/lib/togai_client/models/get_entitlement_values_response.rb +223 -0
- data/lib/togai_client/models/get_entitlement_values_response_data_inner.rb +239 -0
- data/lib/togai_client/models/get_event_response.rb +21 -19
- data/lib/togai_client/models/get_events_response.rb +21 -20
- data/lib/togai_client/models/get_feature_credit_entries_paginated_response.rb +225 -0
- data/lib/togai_client/models/get_feature_credits_response.rb +333 -0
- data/lib/togai_client/models/get_job_response.rb +399 -0
- data/lib/togai_client/models/get_license_updates_response.rb +252 -0
- data/lib/togai_client/models/get_metrics_request.rb +22 -19
- data/lib/togai_client/models/get_metrics_response.rb +16 -19
- data/lib/togai_client/models/get_proposal_response.rb +536 -0
- data/lib/togai_client/models/get_purchase_response.rb +519 -0
- data/lib/togai_client/models/grant_details.rb +299 -0
- data/lib/togai_client/models/incident.rb +347 -0
- data/lib/togai_client/models/incidents_paginated_response.rb +232 -0
- data/lib/togai_client/models/ingest_batch_event_request.rb +21 -24
- data/lib/togai_client/models/ingest_event_request.rb +21 -19
- data/lib/togai_client/models/ingest_event_response.rb +76 -42
- data/lib/togai_client/models/ingestion_status.rb +23 -22
- data/lib/togai_client/models/invoice.rb +571 -0
- data/lib/togai_client/models/invoice_details.rb +259 -0
- data/lib/togai_client/models/invoice_details_account.rb +269 -0
- data/lib/togai_client/models/invoice_details_customer.rb +255 -0
- data/lib/togai_client/models/invoice_details_invoice_group.rb +294 -0
- data/lib/togai_client/models/invoice_details_organization.rb +264 -0
- data/lib/togai_client/models/invoice_group_accounts_paginated_response.rb +430 -0
- data/lib/togai_client/models/invoice_group_details.rb +330 -0
- data/lib/togai_client/models/invoice_group_paginated_response.rb +225 -0
- data/lib/togai_client/models/invoice_groups.rb +403 -0
- data/lib/togai_client/models/invoice_info_inner.rb +239 -0
- data/lib/togai_client/models/invoice_line_item.rb +381 -0
- data/lib/togai_client/models/invoice_summary.rb +520 -0
- data/lib/togai_client/models/invoice_timing.rb +41 -0
- data/lib/togai_client/models/invoices_class.rb +41 -0
- data/lib/togai_client/models/invoices_status.rb +47 -0
- data/lib/togai_client/models/invoices_type.rb +44 -0
- data/lib/togai_client/models/job_entries_paginated_response.rb +234 -0
- data/lib/togai_client/models/job_entries_response.rb +314 -0
- data/lib/togai_client/models/jobs_paginated_response.rb +234 -0
- data/lib/togai_client/models/jobs_without_status_info_response.rb +269 -0
- data/lib/togai_client/models/license_entries_config.rb +287 -0
- data/lib/togai_client/models/license_entries_config_lookup_cycle.rb +251 -0
- data/lib/togai_client/models/license_entries_config_lookup_range.rb +273 -0
- data/lib/togai_client/models/license_entry.rb +272 -0
- data/lib/togai_client/models/license_entry_details_update_request.rb +277 -0
- data/lib/togai_client/models/license_rate_card.rb +388 -0
- data/lib/togai_client/models/license_rate_card_config.rb +246 -0
- data/lib/togai_client/models/license_update.rb +320 -0
- data/lib/togai_client/models/license_update_request.rb +377 -0
- data/lib/togai_client/models/license_update_response.rb +342 -0
- data/lib/togai_client/models/list_credits_response.rb +280 -0
- data/lib/togai_client/models/list_invoices_response.rb +280 -0
- data/lib/togai_client/models/list_payment_response.rb +280 -0
- data/lib/togai_client/models/manage_miscellaneous_charges_request.rb +224 -0
- data/lib/togai_client/models/max_quantity_breach_action.rb +39 -0
- data/lib/togai_client/models/metric_data_points.rb +28 -29
- data/lib/togai_client/models/metric_data_points_grouped_by.rb +18 -19
- data/lib/togai_client/models/metric_name.rb +11 -4
- data/lib/togai_client/models/metric_query.rb +45 -24
- data/lib/togai_client/models/metric_query_filter_entry.rb +19 -20
- data/lib/togai_client/models/metric_query_response.rb +42 -19
- data/lib/togai_client/models/migration_mode.rb +44 -0
- data/lib/togai_client/models/minimum_commitment.rb +258 -0
- data/lib/togai_client/models/miscellaneous_charge.rb +265 -0
- data/lib/togai_client/models/miscellaneous_charges_response.rb +224 -0
- data/lib/togai_client/models/model_alias.rb +238 -0
- data/lib/togai_client/models/named_license_entries_config.rb +287 -0
- data/lib/togai_client/models/named_license_entries_config_lookup_cycle.rb +251 -0
- data/lib/togai_client/models/named_license_entries_config_lookup_range.rb +273 -0
- data/lib/togai_client/models/named_license_entry.rb +281 -0
- data/lib/togai_client/models/named_license_update.rb +396 -0
- data/lib/togai_client/models/named_license_updates_paginated_response.rb +252 -0
- data/lib/togai_client/models/pagination_options.rb +14 -19
- data/lib/togai_client/models/payment.rb +380 -0
- data/lib/togai_client/models/payment_line_item_record.rb +290 -0
- data/lib/togai_client/models/plan_override.rb +70 -26
- data/lib/togai_client/models/pre_action.rb +269 -0
- data/lib/togai_client/models/price_plan.rb +59 -35
- data/lib/togai_client/models/price_plan_details.rb +396 -0
- data/lib/togai_client/models/price_plan_details_config.rb +344 -0
- data/lib/togai_client/models/price_plan_details_override.rb +345 -0
- data/lib/togai_client/models/price_plan_info.rb +230 -0
- data/lib/togai_client/models/price_plan_list_data.rb +125 -49
- data/lib/togai_client/models/price_plan_migration_config.rb +368 -0
- data/lib/togai_client/models/price_plan_paginated_response.rb +21 -19
- data/lib/togai_client/models/price_plan_type.rb +40 -0
- data/lib/togai_client/models/price_plan_v2.rb +519 -0
- data/lib/togai_client/models/price_plan_v2_paginated_response.rb +233 -0
- data/lib/togai_client/models/price_type.rb +41 -0
- data/lib/togai_client/models/{pricing_cycle.rb → pricing_cycle_config.rb} +38 -71
- data/lib/togai_client/models/pricing_cycle_config_start_offset.rb +240 -0
- data/lib/togai_client/models/pricing_cycle_interval.rb +43 -0
- data/lib/togai_client/models/pricing_model.rb +40 -0
- data/lib/togai_client/models/pricing_rule.rb +382 -0
- data/lib/togai_client/models/pricing_rule_action.rb +293 -0
- data/lib/togai_client/models/pricing_rule_changes_log.rb +290 -0
- data/lib/togai_client/models/pricing_rule_info.rb +249 -0
- data/lib/togai_client/models/pricing_rule_timing.rb +40 -0
- data/lib/togai_client/models/pricing_rules_log.rb +318 -0
- data/lib/togai_client/models/pricing_rules_logs_paginated_response.rb +224 -0
- data/lib/togai_client/models/pricing_rules_paginated_response.rb +223 -0
- data/lib/togai_client/models/pricing_rules_values.rb +223 -0
- data/lib/togai_client/models/pricing_schedule.rb +106 -29
- data/lib/togai_client/models/pricing_schedule_paginated_response.rb +234 -0
- data/lib/togai_client/models/pricing_schedule_with_price_plan_id.rb +365 -0
- data/lib/togai_client/models/proposal.rb +536 -0
- data/lib/togai_client/models/proposals_list_response.rb +390 -0
- data/lib/togai_client/models/proposals_paginated_response.rb +234 -0
- data/lib/togai_client/models/prorated_refund_mode.rb +42 -0
- data/lib/togai_client/models/proration_config.rb +275 -0
- data/lib/togai_client/models/proration_config_custom_config.rb +254 -0
- data/lib/togai_client/models/proration_config_lookup_cycle_config.rb +261 -0
- data/lib/togai_client/models/purchase.rb +493 -0
- data/lib/togai_client/models/purchase_feature_details.rb +317 -0
- data/lib/togai_client/models/purchase_list_response.rb +393 -0
- data/lib/togai_client/models/purchase_paginated_list_data.rb +234 -0
- data/lib/togai_client/models/purchase_plan_override.rb +296 -0
- data/lib/togai_client/models/purchase_status.rb +46 -0
- data/lib/togai_client/models/purchase_type.rb +42 -0
- data/lib/togai_client/models/query_column.rb +259 -0
- data/lib/togai_client/models/query_filter.rb +255 -0
- data/lib/togai_client/models/query_function.rb +239 -0
- data/lib/togai_client/models/query_input.rb +295 -0
- data/lib/togai_client/models/query_input_sort_inner.rb +237 -0
- data/lib/togai_client/models/rate_card.rb +321 -44
- data/lib/togai_client/models/rate_card_bundle_aggregation.rb +39 -0
- data/lib/togai_client/models/rate_card_data.rb +370 -0
- data/lib/togai_client/models/rate_card_details.rb +269 -0
- data/lib/togai_client/models/rate_card_operation.rb +302 -0
- data/lib/togai_client/models/rate_card_paginated_response.rb +233 -0
- data/lib/togai_client/models/rate_card_type.rb +45 -0
- data/lib/togai_client/models/{bundle_strategy_usage_meters_value.rb → rate_config_bundle.rb} +28 -13
- data/lib/togai_client/models/{rate_card_usage_value.rb → rate_config_usage.rb} +15 -98
- data/lib/togai_client/models/rate_plan.rb +282 -0
- data/lib/togai_client/models/rate_value.rb +270 -0
- data/lib/togai_client/models/recurrence_config.rb +225 -0
- data/lib/togai_client/models/remove_account_alias_request.rb +232 -0
- data/lib/togai_client/models/remove_account_aliases_request.rb +30 -49
- data/lib/togai_client/models/report.rb +362 -0
- data/lib/togai_client/models/report_status.rb +43 -0
- data/lib/togai_client/models/report_type.rb +41 -0
- data/lib/togai_client/models/reports_paginated_response.rb +226 -0
- data/lib/togai_client/models/revenue_info.rb +335 -0
- data/lib/togai_client/models/revenue_info_v2.rb +297 -0
- data/lib/togai_client/models/revenue_summary_with_metadata.rb +255 -0
- data/lib/togai_client/models/schedule_info.rb +250 -0
- data/lib/togai_client/models/schedules_paginated_response.rb +241 -0
- data/lib/togai_client/models/setting.rb +340 -0
- data/lib/togai_client/models/setting_data_type.rb +42 -0
- data/lib/togai_client/models/setting_paginated_response.rb +234 -0
- data/lib/togai_client/models/signup_request.rb +0 -11
- data/lib/togai_client/models/slab.rb +315 -0
- data/lib/togai_client/models/{bundle_strategy.rb → slab_bundle.rb} +33 -94
- data/lib/togai_client/models/slab_detail.rb +298 -0
- data/lib/togai_client/models/slab_rate.rb +249 -0
- data/lib/togai_client/models/slab_revenue.rb +281 -0
- data/lib/togai_client/models/slab_revenue_metadata.rb +232 -0
- data/lib/togai_client/models/slab_revenue_summary.rb +262 -0
- data/lib/togai_client/models/slab_revenue_with_metadata.rb +299 -0
- data/lib/togai_client/models/{usage_strategy.rb → slab_usage.rb} +30 -5
- data/lib/togai_client/models/token_response.rb +221 -0
- data/lib/togai_client/models/topup_wallet_request.rb +222 -0
- data/lib/togai_client/models/update_account_request.rb +196 -26
- data/lib/togai_client/models/update_account_schedule_v2_request.rb +303 -0
- data/lib/togai_client/models/update_add_on_request.rb +264 -0
- data/lib/togai_client/models/update_alert_request.rb +274 -0
- data/lib/togai_client/models/update_customer_request.rb +36 -58
- data/lib/togai_client/models/update_event_schema_request.rb +68 -38
- data/lib/togai_client/models/update_feature_credits_request.rb +225 -0
- data/lib/togai_client/models/update_feature_request.rb +295 -0
- data/lib/togai_client/models/update_incident_status_request.rb +256 -0
- data/lib/togai_client/models/update_invoice_group_accounts.rb +252 -0
- data/lib/togai_client/models/update_invoice_request.rb +317 -0
- data/lib/togai_client/models/update_price_plan_request.rb +81 -34
- data/lib/togai_client/models/update_price_plan_v2_request.rb +266 -0
- data/lib/togai_client/models/update_pricing_rules_request.rb +216 -0
- data/lib/togai_client/models/update_pricing_schedule_request.rb +323 -0
- data/lib/togai_client/models/update_pricing_schedule_request_with_actions.rb +343 -0
- data/lib/togai_client/models/update_pricing_schedule_response.rb +276 -0
- data/lib/togai_client/models/update_proposal_status.rb +256 -0
- data/lib/togai_client/models/update_setting_request.rb +255 -0
- data/lib/togai_client/models/update_usage_meter_request.rb +105 -50
- data/lib/togai_client/models/update_wallet_request.rb +246 -0
- data/lib/togai_client/models/usage_config.rb +287 -0
- data/lib/togai_client/models/usage_config_lookup_cycle.rb +250 -0
- data/lib/togai_client/models/usage_config_lookup_range.rb +273 -0
- data/lib/togai_client/models/usage_cycle_interval.rb +43 -0
- data/lib/togai_client/models/usage_lookup_range.rb +238 -0
- data/lib/togai_client/models/usage_meter.rb +156 -39
- data/lib/togai_client/models/usage_meter_aggregation.rb +40 -0
- data/lib/togai_client/models/usage_meter_filter_entry.rb +238 -0
- data/lib/togai_client/models/usage_meter_paginated_response.rb +14 -19
- data/lib/togai_client/models/usage_rate_card.rb +285 -0
- data/lib/togai_client/models/user_details.rb +0 -11
- data/lib/togai_client/models/validate_entitlement_value_request.rb +222 -0
- data/lib/togai_client/models/validated_entity_error.rb +273 -0
- data/lib/togai_client/models/validated_entity_errors_paginated_response.rb +232 -0
- data/lib/togai_client/models/versions_to_migrate.rb +40 -0
- data/lib/togai_client/models/wallet_balance_response.rb +388 -0
- data/lib/togai_client/models/wallet_entries_paginated_response.rb +280 -0
- data/lib/togai_client/models/wallet_entry.rb +421 -0
- data/lib/togai_client/models/wallet_status.rb +40 -0
- data/lib/togai_client/models/wallet_topup_details.rb +233 -0
- data/lib/togai_client/version.rb +2 -2
- data/lib/togai_client.rb +286 -22
- data/spec/spec_helper.rb +1 -1
- data/togai_client.gemspec +4 -3
- metadata +594 -25
- data/docs/BundleStrategy.md +0 -24
- data/docs/BundleStrategyUsageMetersValue.md +0 -18
- data/docs/PricingCycle.md +0 -24
- data/docs/RateCardBundle.md +0 -22
- data/docs/RateCardUsageValue.md +0 -24
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0
|
7
7
|
Contact: engg@togai.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.10.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -32,6 +32,17 @@ module TogaiClient
|
|
32
32
|
|
33
33
|
attr_accessor :dimensions
|
34
34
|
|
35
|
+
attr_accessor :filter_fields
|
36
|
+
|
37
|
+
attr_accessor :feature_details
|
38
|
+
|
39
|
+
attr_accessor :enrichments
|
40
|
+
|
41
|
+
# Template used to generate event id based on event payload
|
42
|
+
attr_accessor :event_id_template
|
43
|
+
|
44
|
+
attr_accessor :event_level_revenue
|
45
|
+
|
35
46
|
attr_accessor :created_at
|
36
47
|
|
37
48
|
attr_accessor :updated_at
|
@@ -67,6 +78,11 @@ module TogaiClient
|
|
67
78
|
:'status' => :'status',
|
68
79
|
:'attributes' => :'attributes',
|
69
80
|
:'dimensions' => :'dimensions',
|
81
|
+
:'filter_fields' => :'filterFields',
|
82
|
+
:'feature_details' => :'featureDetails',
|
83
|
+
:'enrichments' => :'enrichments',
|
84
|
+
:'event_id_template' => :'eventIdTemplate',
|
85
|
+
:'event_level_revenue' => :'eventLevelRevenue',
|
70
86
|
:'created_at' => :'createdAt',
|
71
87
|
:'updated_at' => :'updatedAt'
|
72
88
|
}
|
@@ -86,6 +102,11 @@ module TogaiClient
|
|
86
102
|
:'status' => :'String',
|
87
103
|
:'attributes' => :'Array<EventAttributeSchema>',
|
88
104
|
:'dimensions' => :'Array<DimensionsSchema>',
|
105
|
+
:'filter_fields' => :'Array<String>',
|
106
|
+
:'feature_details' => :'FeatureDetails',
|
107
|
+
:'enrichments' => :'Enrichments',
|
108
|
+
:'event_id_template' => :'String',
|
109
|
+
:'event_level_revenue' => :'Boolean',
|
89
110
|
:'created_at' => :'Time',
|
90
111
|
:'updated_at' => :'Time'
|
91
112
|
}
|
@@ -114,6 +135,8 @@ module TogaiClient
|
|
114
135
|
|
115
136
|
if attributes.key?(:'name')
|
116
137
|
self.name = attributes[:'name']
|
138
|
+
else
|
139
|
+
self.name = nil
|
117
140
|
end
|
118
141
|
|
119
142
|
if attributes.key?(:'description')
|
@@ -122,6 +145,8 @@ module TogaiClient
|
|
122
145
|
|
123
146
|
if attributes.key?(:'version')
|
124
147
|
self.version = attributes[:'version']
|
148
|
+
else
|
149
|
+
self.version = nil
|
125
150
|
end
|
126
151
|
|
127
152
|
if attributes.key?(:'status')
|
@@ -140,6 +165,28 @@ module TogaiClient
|
|
140
165
|
end
|
141
166
|
end
|
142
167
|
|
168
|
+
if attributes.key?(:'filter_fields')
|
169
|
+
if (value = attributes[:'filter_fields']).is_a?(Array)
|
170
|
+
self.filter_fields = value
|
171
|
+
end
|
172
|
+
end
|
173
|
+
|
174
|
+
if attributes.key?(:'feature_details')
|
175
|
+
self.feature_details = attributes[:'feature_details']
|
176
|
+
end
|
177
|
+
|
178
|
+
if attributes.key?(:'enrichments')
|
179
|
+
self.enrichments = attributes[:'enrichments']
|
180
|
+
end
|
181
|
+
|
182
|
+
if attributes.key?(:'event_id_template')
|
183
|
+
self.event_id_template = attributes[:'event_id_template']
|
184
|
+
end
|
185
|
+
|
186
|
+
if attributes.key?(:'event_level_revenue')
|
187
|
+
self.event_level_revenue = attributes[:'event_level_revenue']
|
188
|
+
end
|
189
|
+
|
143
190
|
if attributes.key?(:'created_at')
|
144
191
|
self.created_at = attributes[:'created_at']
|
145
192
|
end
|
@@ -152,6 +199,7 @@ module TogaiClient
|
|
152
199
|
# Show invalid properties with the reasons. Usually used together with valid?
|
153
200
|
# @return Array for valid properties with the reasons
|
154
201
|
def list_invalid_properties
|
202
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
155
203
|
invalid_properties = Array.new
|
156
204
|
if @name.nil?
|
157
205
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
@@ -178,11 +226,7 @@ module TogaiClient
|
|
178
226
|
invalid_properties.push('invalid value for "version", must be greater than or equal to 1.')
|
179
227
|
end
|
180
228
|
|
181
|
-
if
|
182
|
-
invalid_properties.push('invalid value for "attributes", attributes cannot be nil.')
|
183
|
-
end
|
184
|
-
|
185
|
-
if @attributes.length > 50
|
229
|
+
if !@attributes.nil? && @attributes.length > 50
|
186
230
|
invalid_properties.push('invalid value for "attributes", number of items must be less than or equal to 50.')
|
187
231
|
end
|
188
232
|
|
@@ -196,6 +240,7 @@ module TogaiClient
|
|
196
240
|
# Check to see if the all the properties in the model are valid
|
197
241
|
# @return true if the model is valid
|
198
242
|
def valid?
|
243
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
199
244
|
return false if @name.nil?
|
200
245
|
return false if @name.to_s.length > 50
|
201
246
|
return false if @name !~ Regexp.new(/^[\sa-zA-Z0-9_-]*$/)
|
@@ -204,8 +249,7 @@ module TogaiClient
|
|
204
249
|
return false if @version < 1
|
205
250
|
status_validator = EnumAttributeValidator.new('String', ["DRAFT", "ACTIVE", "INACTIVE", "ARCHIVED"])
|
206
251
|
return false unless status_validator.valid?(@status)
|
207
|
-
return false if
|
208
|
-
return false if @attributes.length > 50
|
252
|
+
return false if !@attributes.nil? && @attributes.length > 50
|
209
253
|
return false if !@dimensions.nil? && @dimensions.length > 50
|
210
254
|
true
|
211
255
|
end
|
@@ -232,7 +276,11 @@ module TogaiClient
|
|
232
276
|
# Custom attribute writer method with validation
|
233
277
|
# @param [Object] description Value to be assigned
|
234
278
|
def description=(description)
|
235
|
-
if
|
279
|
+
if description.nil?
|
280
|
+
fail ArgumentError, 'description cannot be nil'
|
281
|
+
end
|
282
|
+
|
283
|
+
if description.to_s.length > 255
|
236
284
|
fail ArgumentError, 'invalid value for "description", the character length must be smaller than or equal to 255.'
|
237
285
|
end
|
238
286
|
|
@@ -280,13 +328,27 @@ module TogaiClient
|
|
280
328
|
# Custom attribute writer method with validation
|
281
329
|
# @param [Object] dimensions Value to be assigned
|
282
330
|
def dimensions=(dimensions)
|
283
|
-
if
|
331
|
+
if dimensions.nil?
|
332
|
+
fail ArgumentError, 'dimensions cannot be nil'
|
333
|
+
end
|
334
|
+
|
335
|
+
if dimensions.length > 50
|
284
336
|
fail ArgumentError, 'invalid value for "dimensions", number of items must be less than or equal to 50.'
|
285
337
|
end
|
286
338
|
|
287
339
|
@dimensions = dimensions
|
288
340
|
end
|
289
341
|
|
342
|
+
# Custom attribute writer method with validation
|
343
|
+
# @param [Object] filter_fields Value to be assigned
|
344
|
+
def filter_fields=(filter_fields)
|
345
|
+
if filter_fields.nil?
|
346
|
+
fail ArgumentError, 'filter_fields cannot be nil'
|
347
|
+
end
|
348
|
+
|
349
|
+
@filter_fields = filter_fields
|
350
|
+
end
|
351
|
+
|
290
352
|
# Checks equality by comparing each attribute.
|
291
353
|
# @param [Object] Object to be compared
|
292
354
|
def ==(o)
|
@@ -298,6 +360,11 @@ module TogaiClient
|
|
298
360
|
status == o.status &&
|
299
361
|
attributes == o.attributes &&
|
300
362
|
dimensions == o.dimensions &&
|
363
|
+
filter_fields == o.filter_fields &&
|
364
|
+
feature_details == o.feature_details &&
|
365
|
+
enrichments == o.enrichments &&
|
366
|
+
event_id_template == o.event_id_template &&
|
367
|
+
event_level_revenue == o.event_level_revenue &&
|
301
368
|
created_at == o.created_at &&
|
302
369
|
updated_at == o.updated_at
|
303
370
|
end
|
@@ -311,44 +378,37 @@ module TogaiClient
|
|
311
378
|
# Calculates hash code according to all attributes.
|
312
379
|
# @return [Integer] Hash code
|
313
380
|
def hash
|
314
|
-
[name, description, version, status, attributes, dimensions, created_at, updated_at].hash
|
381
|
+
[name, description, version, status, attributes, dimensions, filter_fields, feature_details, enrichments, event_id_template, event_level_revenue, created_at, updated_at].hash
|
315
382
|
end
|
316
383
|
|
317
384
|
# Builds the object from hash
|
318
385
|
# @param [Hash] attributes Model attributes in the form of hash
|
319
386
|
# @return [Object] Returns the model itself
|
320
387
|
def self.build_from_hash(attributes)
|
321
|
-
new.build_from_hash(attributes)
|
322
|
-
end
|
323
|
-
|
324
|
-
# Builds the object from hash
|
325
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
326
|
-
# @return [Object] Returns the model itself
|
327
|
-
def build_from_hash(attributes)
|
328
388
|
return nil unless attributes.is_a?(Hash)
|
329
389
|
attributes = attributes.transform_keys(&:to_sym)
|
330
|
-
|
331
|
-
|
332
|
-
|
390
|
+
transformed_hash = {}
|
391
|
+
openapi_types.each_pair do |key, type|
|
392
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
393
|
+
transformed_hash["#{key}"] = nil
|
333
394
|
elsif type =~ /\AArray<(.*)>/i
|
334
395
|
# check to ensure the input is an array given that the attribute
|
335
396
|
# is documented as an array but the input is not
|
336
|
-
if attributes[
|
337
|
-
|
397
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
398
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
338
399
|
end
|
339
|
-
elsif !attributes[
|
340
|
-
|
400
|
+
elsif !attributes[attribute_map[key]].nil?
|
401
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
341
402
|
end
|
342
403
|
end
|
343
|
-
|
344
|
-
self
|
404
|
+
new(transformed_hash)
|
345
405
|
end
|
346
406
|
|
347
407
|
# Deserializes the data based on type
|
348
408
|
# @param string type Data type
|
349
409
|
# @param string value Value to be deserialized
|
350
410
|
# @return [Object] Deserialized data
|
351
|
-
def _deserialize(type, value)
|
411
|
+
def self._deserialize(type, value)
|
352
412
|
case type.to_sym
|
353
413
|
when :Time
|
354
414
|
Time.parse(value)
|
@@ -383,7 +443,7 @@ module TogaiClient
|
|
383
443
|
else # model
|
384
444
|
# models (e.g. Pet) or oneOf
|
385
445
|
klass = TogaiClient.const_get(type)
|
386
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
446
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
387
447
|
end
|
388
448
|
end
|
389
449
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0
|
7
7
|
Contact: engg@togai.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.10.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -31,11 +31,22 @@ module TogaiClient
|
|
31
31
|
|
32
32
|
attr_accessor :dimensions
|
33
33
|
|
34
|
+
attr_accessor :filter_fields
|
35
|
+
|
36
|
+
attr_accessor :feature_details
|
37
|
+
|
38
|
+
attr_accessor :enrichments
|
39
|
+
|
40
|
+
# Template used to generate event id based on event payload
|
41
|
+
attr_accessor :event_id_template
|
42
|
+
|
43
|
+
attr_accessor :event_level_revenue
|
44
|
+
|
34
45
|
attr_accessor :created_at
|
35
46
|
|
36
47
|
attr_accessor :updated_at
|
37
48
|
|
38
|
-
attr_accessor :
|
49
|
+
attr_accessor :usage_meters_count
|
39
50
|
|
40
51
|
class EnumAttributeValidator
|
41
52
|
attr_reader :datatype
|
@@ -68,9 +79,14 @@ module TogaiClient
|
|
68
79
|
:'status' => :'status',
|
69
80
|
:'attributes' => :'attributes',
|
70
81
|
:'dimensions' => :'dimensions',
|
82
|
+
:'filter_fields' => :'filterFields',
|
83
|
+
:'feature_details' => :'featureDetails',
|
84
|
+
:'enrichments' => :'enrichments',
|
85
|
+
:'event_id_template' => :'eventIdTemplate',
|
86
|
+
:'event_level_revenue' => :'eventLevelRevenue',
|
71
87
|
:'created_at' => :'createdAt',
|
72
88
|
:'updated_at' => :'updatedAt',
|
73
|
-
:'
|
89
|
+
:'usage_meters_count' => :'usageMetersCount'
|
74
90
|
}
|
75
91
|
end
|
76
92
|
|
@@ -88,9 +104,14 @@ module TogaiClient
|
|
88
104
|
:'status' => :'String',
|
89
105
|
:'attributes' => :'Array<EventAttributeSchema>',
|
90
106
|
:'dimensions' => :'Array<DimensionsSchema>',
|
107
|
+
:'filter_fields' => :'Array<String>',
|
108
|
+
:'feature_details' => :'FeatureDetails',
|
109
|
+
:'enrichments' => :'Enrichments',
|
110
|
+
:'event_id_template' => :'String',
|
111
|
+
:'event_level_revenue' => :'Boolean',
|
91
112
|
:'created_at' => :'Time',
|
92
113
|
:'updated_at' => :'Time',
|
93
|
-
:'
|
114
|
+
:'usage_meters_count' => :'Integer'
|
94
115
|
}
|
95
116
|
end
|
96
117
|
|
@@ -103,8 +124,7 @@ module TogaiClient
|
|
103
124
|
# List of class defined in allOf (OpenAPI v3)
|
104
125
|
def self.openapi_all_of
|
105
126
|
[
|
106
|
-
:'EventSchema'
|
107
|
-
:'EventSchemaListDataAllOf'
|
127
|
+
:'EventSchema'
|
108
128
|
]
|
109
129
|
end
|
110
130
|
|
@@ -125,6 +145,8 @@ module TogaiClient
|
|
125
145
|
|
126
146
|
if attributes.key?(:'name')
|
127
147
|
self.name = attributes[:'name']
|
148
|
+
else
|
149
|
+
self.name = nil
|
128
150
|
end
|
129
151
|
|
130
152
|
if attributes.key?(:'description')
|
@@ -133,6 +155,8 @@ module TogaiClient
|
|
133
155
|
|
134
156
|
if attributes.key?(:'version')
|
135
157
|
self.version = attributes[:'version']
|
158
|
+
else
|
159
|
+
self.version = nil
|
136
160
|
end
|
137
161
|
|
138
162
|
if attributes.key?(:'status')
|
@@ -151,6 +175,28 @@ module TogaiClient
|
|
151
175
|
end
|
152
176
|
end
|
153
177
|
|
178
|
+
if attributes.key?(:'filter_fields')
|
179
|
+
if (value = attributes[:'filter_fields']).is_a?(Array)
|
180
|
+
self.filter_fields = value
|
181
|
+
end
|
182
|
+
end
|
183
|
+
|
184
|
+
if attributes.key?(:'feature_details')
|
185
|
+
self.feature_details = attributes[:'feature_details']
|
186
|
+
end
|
187
|
+
|
188
|
+
if attributes.key?(:'enrichments')
|
189
|
+
self.enrichments = attributes[:'enrichments']
|
190
|
+
end
|
191
|
+
|
192
|
+
if attributes.key?(:'event_id_template')
|
193
|
+
self.event_id_template = attributes[:'event_id_template']
|
194
|
+
end
|
195
|
+
|
196
|
+
if attributes.key?(:'event_level_revenue')
|
197
|
+
self.event_level_revenue = attributes[:'event_level_revenue']
|
198
|
+
end
|
199
|
+
|
154
200
|
if attributes.key?(:'created_at')
|
155
201
|
self.created_at = attributes[:'created_at']
|
156
202
|
end
|
@@ -159,16 +205,15 @@ module TogaiClient
|
|
159
205
|
self.updated_at = attributes[:'updated_at']
|
160
206
|
end
|
161
207
|
|
162
|
-
if attributes.key?(:'
|
163
|
-
|
164
|
-
self.associated_usage_meters = value
|
165
|
-
end
|
208
|
+
if attributes.key?(:'usage_meters_count')
|
209
|
+
self.usage_meters_count = attributes[:'usage_meters_count']
|
166
210
|
end
|
167
211
|
end
|
168
212
|
|
169
213
|
# Show invalid properties with the reasons. Usually used together with valid?
|
170
214
|
# @return Array for valid properties with the reasons
|
171
215
|
def list_invalid_properties
|
216
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
172
217
|
invalid_properties = Array.new
|
173
218
|
if @name.nil?
|
174
219
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
@@ -195,11 +240,7 @@ module TogaiClient
|
|
195
240
|
invalid_properties.push('invalid value for "version", must be greater than or equal to 1.')
|
196
241
|
end
|
197
242
|
|
198
|
-
if
|
199
|
-
invalid_properties.push('invalid value for "attributes", attributes cannot be nil.')
|
200
|
-
end
|
201
|
-
|
202
|
-
if @attributes.length > 50
|
243
|
+
if !@attributes.nil? && @attributes.length > 50
|
203
244
|
invalid_properties.push('invalid value for "attributes", number of items must be less than or equal to 50.')
|
204
245
|
end
|
205
246
|
|
@@ -213,6 +254,7 @@ module TogaiClient
|
|
213
254
|
# Check to see if the all the properties in the model are valid
|
214
255
|
# @return true if the model is valid
|
215
256
|
def valid?
|
257
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
216
258
|
return false if @name.nil?
|
217
259
|
return false if @name.to_s.length > 50
|
218
260
|
return false if @name !~ Regexp.new(/^[\sa-zA-Z0-9_-]*$/)
|
@@ -221,8 +263,7 @@ module TogaiClient
|
|
221
263
|
return false if @version < 1
|
222
264
|
status_validator = EnumAttributeValidator.new('String', ["DRAFT", "ACTIVE", "INACTIVE", "ARCHIVED"])
|
223
265
|
return false unless status_validator.valid?(@status)
|
224
|
-
return false if
|
225
|
-
return false if @attributes.length > 50
|
266
|
+
return false if !@attributes.nil? && @attributes.length > 50
|
226
267
|
return false if !@dimensions.nil? && @dimensions.length > 50
|
227
268
|
true
|
228
269
|
end
|
@@ -249,7 +290,11 @@ module TogaiClient
|
|
249
290
|
# Custom attribute writer method with validation
|
250
291
|
# @param [Object] description Value to be assigned
|
251
292
|
def description=(description)
|
252
|
-
if
|
293
|
+
if description.nil?
|
294
|
+
fail ArgumentError, 'description cannot be nil'
|
295
|
+
end
|
296
|
+
|
297
|
+
if description.to_s.length > 255
|
253
298
|
fail ArgumentError, 'invalid value for "description", the character length must be smaller than or equal to 255.'
|
254
299
|
end
|
255
300
|
|
@@ -297,13 +342,27 @@ module TogaiClient
|
|
297
342
|
# Custom attribute writer method with validation
|
298
343
|
# @param [Object] dimensions Value to be assigned
|
299
344
|
def dimensions=(dimensions)
|
300
|
-
if
|
345
|
+
if dimensions.nil?
|
346
|
+
fail ArgumentError, 'dimensions cannot be nil'
|
347
|
+
end
|
348
|
+
|
349
|
+
if dimensions.length > 50
|
301
350
|
fail ArgumentError, 'invalid value for "dimensions", number of items must be less than or equal to 50.'
|
302
351
|
end
|
303
352
|
|
304
353
|
@dimensions = dimensions
|
305
354
|
end
|
306
355
|
|
356
|
+
# Custom attribute writer method with validation
|
357
|
+
# @param [Object] filter_fields Value to be assigned
|
358
|
+
def filter_fields=(filter_fields)
|
359
|
+
if filter_fields.nil?
|
360
|
+
fail ArgumentError, 'filter_fields cannot be nil'
|
361
|
+
end
|
362
|
+
|
363
|
+
@filter_fields = filter_fields
|
364
|
+
end
|
365
|
+
|
307
366
|
# Checks equality by comparing each attribute.
|
308
367
|
# @param [Object] Object to be compared
|
309
368
|
def ==(o)
|
@@ -315,9 +374,14 @@ module TogaiClient
|
|
315
374
|
status == o.status &&
|
316
375
|
attributes == o.attributes &&
|
317
376
|
dimensions == o.dimensions &&
|
377
|
+
filter_fields == o.filter_fields &&
|
378
|
+
feature_details == o.feature_details &&
|
379
|
+
enrichments == o.enrichments &&
|
380
|
+
event_id_template == o.event_id_template &&
|
381
|
+
event_level_revenue == o.event_level_revenue &&
|
318
382
|
created_at == o.created_at &&
|
319
383
|
updated_at == o.updated_at &&
|
320
|
-
|
384
|
+
usage_meters_count == o.usage_meters_count
|
321
385
|
end
|
322
386
|
|
323
387
|
# @see the `==` method
|
@@ -329,44 +393,37 @@ module TogaiClient
|
|
329
393
|
# Calculates hash code according to all attributes.
|
330
394
|
# @return [Integer] Hash code
|
331
395
|
def hash
|
332
|
-
[name, description, version, status, attributes, dimensions, created_at, updated_at,
|
396
|
+
[name, description, version, status, attributes, dimensions, filter_fields, feature_details, enrichments, event_id_template, event_level_revenue, created_at, updated_at, usage_meters_count].hash
|
333
397
|
end
|
334
398
|
|
335
399
|
# Builds the object from hash
|
336
400
|
# @param [Hash] attributes Model attributes in the form of hash
|
337
401
|
# @return [Object] Returns the model itself
|
338
402
|
def self.build_from_hash(attributes)
|
339
|
-
new.build_from_hash(attributes)
|
340
|
-
end
|
341
|
-
|
342
|
-
# Builds the object from hash
|
343
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
344
|
-
# @return [Object] Returns the model itself
|
345
|
-
def build_from_hash(attributes)
|
346
403
|
return nil unless attributes.is_a?(Hash)
|
347
404
|
attributes = attributes.transform_keys(&:to_sym)
|
348
|
-
|
349
|
-
|
350
|
-
|
405
|
+
transformed_hash = {}
|
406
|
+
openapi_types.each_pair do |key, type|
|
407
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
408
|
+
transformed_hash["#{key}"] = nil
|
351
409
|
elsif type =~ /\AArray<(.*)>/i
|
352
410
|
# check to ensure the input is an array given that the attribute
|
353
411
|
# is documented as an array but the input is not
|
354
|
-
if attributes[
|
355
|
-
|
412
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
413
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
356
414
|
end
|
357
|
-
elsif !attributes[
|
358
|
-
|
415
|
+
elsif !attributes[attribute_map[key]].nil?
|
416
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
359
417
|
end
|
360
418
|
end
|
361
|
-
|
362
|
-
self
|
419
|
+
new(transformed_hash)
|
363
420
|
end
|
364
421
|
|
365
422
|
# Deserializes the data based on type
|
366
423
|
# @param string type Data type
|
367
424
|
# @param string value Value to be deserialized
|
368
425
|
# @return [Object] Deserialized data
|
369
|
-
def _deserialize(type, value)
|
426
|
+
def self._deserialize(type, value)
|
370
427
|
case type.to_sym
|
371
428
|
when :Time
|
372
429
|
Time.parse(value)
|
@@ -401,7 +458,7 @@ module TogaiClient
|
|
401
458
|
else # model
|
402
459
|
# models (e.g. Pet) or oneOf
|
403
460
|
klass = TogaiClient.const_get(type)
|
404
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
461
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
405
462
|
end
|
406
463
|
end
|
407
464
|
|
@@ -15,12 +15,12 @@ require 'time'
|
|
15
15
|
|
16
16
|
module TogaiClient
|
17
17
|
class EventSchemaListDataAllOf
|
18
|
-
attr_accessor :
|
18
|
+
attr_accessor :usage_meters_count
|
19
19
|
|
20
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
21
21
|
def self.attribute_map
|
22
22
|
{
|
23
|
-
:'
|
23
|
+
:'usage_meters_count' => :'usageMetersCount'
|
24
24
|
}
|
25
25
|
end
|
26
26
|
|
@@ -32,7 +32,7 @@ module TogaiClient
|
|
32
32
|
# Attribute type mapping.
|
33
33
|
def self.openapi_types
|
34
34
|
{
|
35
|
-
:'
|
35
|
+
:'usage_meters_count' => :'Integer'
|
36
36
|
}
|
37
37
|
end
|
38
38
|
|
@@ -57,10 +57,8 @@ module TogaiClient
|
|
57
57
|
h[k.to_sym] = v
|
58
58
|
}
|
59
59
|
|
60
|
-
if attributes.key?(:'
|
61
|
-
|
62
|
-
self.associated_usage_meters = value
|
63
|
-
end
|
60
|
+
if attributes.key?(:'usage_meters_count')
|
61
|
+
self.usage_meters_count = attributes[:'usage_meters_count']
|
64
62
|
end
|
65
63
|
end
|
66
64
|
|
@@ -82,7 +80,7 @@ module TogaiClient
|
|
82
80
|
def ==(o)
|
83
81
|
return true if self.equal?(o)
|
84
82
|
self.class == o.class &&
|
85
|
-
|
83
|
+
usage_meters_count == o.usage_meters_count
|
86
84
|
end
|
87
85
|
|
88
86
|
# @see the `==` method
|
@@ -94,7 +92,7 @@ module TogaiClient
|
|
94
92
|
# Calculates hash code according to all attributes.
|
95
93
|
# @return [Integer] Hash code
|
96
94
|
def hash
|
97
|
-
[
|
95
|
+
[usage_meters_count].hash
|
98
96
|
end
|
99
97
|
|
100
98
|
# Builds the object from hash
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0
|
7
7
|
Contact: engg@togai.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.10.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -83,6 +83,7 @@ module TogaiClient
|
|
83
83
|
# Show invalid properties with the reasons. Usually used together with valid?
|
84
84
|
# @return Array for valid properties with the reasons
|
85
85
|
def list_invalid_properties
|
86
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
86
87
|
invalid_properties = Array.new
|
87
88
|
invalid_properties
|
88
89
|
end
|
@@ -90,6 +91,7 @@ module TogaiClient
|
|
90
91
|
# Check to see if the all the properties in the model are valid
|
91
92
|
# @return true if the model is valid
|
92
93
|
def valid?
|
94
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
93
95
|
true
|
94
96
|
end
|
95
97
|
|
@@ -119,37 +121,30 @@ module TogaiClient
|
|
119
121
|
# @param [Hash] attributes Model attributes in the form of hash
|
120
122
|
# @return [Object] Returns the model itself
|
121
123
|
def self.build_from_hash(attributes)
|
122
|
-
new.build_from_hash(attributes)
|
123
|
-
end
|
124
|
-
|
125
|
-
# Builds the object from hash
|
126
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
127
|
-
# @return [Object] Returns the model itself
|
128
|
-
def build_from_hash(attributes)
|
129
124
|
return nil unless attributes.is_a?(Hash)
|
130
125
|
attributes = attributes.transform_keys(&:to_sym)
|
131
|
-
|
132
|
-
|
133
|
-
|
126
|
+
transformed_hash = {}
|
127
|
+
openapi_types.each_pair do |key, type|
|
128
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
129
|
+
transformed_hash["#{key}"] = nil
|
134
130
|
elsif type =~ /\AArray<(.*)>/i
|
135
131
|
# check to ensure the input is an array given that the attribute
|
136
132
|
# is documented as an array but the input is not
|
137
|
-
if attributes[
|
138
|
-
|
133
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
134
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
139
135
|
end
|
140
|
-
elsif !attributes[
|
141
|
-
|
136
|
+
elsif !attributes[attribute_map[key]].nil?
|
137
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
142
138
|
end
|
143
139
|
end
|
144
|
-
|
145
|
-
self
|
140
|
+
new(transformed_hash)
|
146
141
|
end
|
147
142
|
|
148
143
|
# Deserializes the data based on type
|
149
144
|
# @param string type Data type
|
150
145
|
# @param string value Value to be deserialized
|
151
146
|
# @return [Object] Deserialized data
|
152
|
-
def _deserialize(type, value)
|
147
|
+
def self._deserialize(type, value)
|
153
148
|
case type.to_sym
|
154
149
|
when :Time
|
155
150
|
Time.parse(value)
|
@@ -184,7 +179,7 @@ module TogaiClient
|
|
184
179
|
else # model
|
185
180
|
# models (e.g. Pet) or oneOf
|
186
181
|
klass = TogaiClient.const_get(type)
|
187
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
182
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
188
183
|
end
|
189
184
|
end
|
190
185
|
|