From ed991b3a010f4ba47177d26b8d573eb2f81050c2 Mon Sep 17 00:00:00 2001 From: Charles Treatman Date: Tue, 21 Oct 2025 16:11:30 -0500 Subject: [PATCH 1/2] feat: upgrade openapi-generator to v7.16.0 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3977c9a0..67a6f560 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ GIT_REPO=equinix-sdk-java PACKAGE_VERSION=$(shell cat version) USER_AGENT=${GIT_REPO}/${PACKAGE_VERSION} -OPENAPI_IMAGE_TAG=v7.12.0 +OPENAPI_IMAGE_TAG=v7.16.0 OPENAPI_IMAGE=openapitools/openapi-generator-cli:${OPENAPI_IMAGE_TAG} CRI=docker # nerdctl OPENAPI_GENERATOR=${CRI} run --rm -u ${CURRENT_UID}:${CURRENT_GID} -v $(CURDIR):/workdir -w /workdir ${OPENAPI_IMAGE} From d993eacc46561560a842a1daf0d5409ccaa855d4 Mon Sep 17 00:00:00 2001 From: "equinix-labs@auto-commit-workflow" Date: Thu, 18 Dec 2025 17:45:23 +0000 Subject: [PATCH 2/2] Auto commit generated client changes - Thu Dec 18 17:45:23 UTC 2025 --- services/fabricv4/README.md | 2 +- services/fabricv4/build.gradle | 5 +- services/fabricv4/build.sbt | 10 +- services/fabricv4/pom.xml | 4 +- .../equinix/sdk/fabricv4/ApiException.java | 5 +- .../equinix/sdk/fabricv4/Configuration.java | 68 ++++--- .../java/com/equinix/sdk/fabricv4/Pair.java | 52 ++--- .../sdk/fabricv4/ServerConfiguration.java | 2 +- .../equinix/sdk/fabricv4/ServerVariable.java | 2 +- .../com/equinix/sdk/fabricv4/StringUtil.java | 2 +- .../sdk/fabricv4/api/CloudEventsApi.java | 30 +-- .../sdk/fabricv4/api/CloudRoutersApi.java | 190 +++++++++--------- .../sdk/fabricv4/api/ConnectionsApi.java | 70 +++---- .../api/MarketplaceSubscriptionsApi.java | 10 +- .../equinix/sdk/fabricv4/api/MetricsApi.java | 20 +- .../equinix/sdk/fabricv4/api/MetrosApi.java | 20 +- .../equinix/sdk/fabricv4/api/NetworksApi.java | 80 ++++---- .../equinix/sdk/fabricv4/api/PortsApi.java | 80 ++++---- .../sdk/fabricv4/api/PrecisionTimeApi.java | 80 ++++---- .../equinix/sdk/fabricv4/api/PricesApi.java | 10 +- .../api/RouteAggregationRulesApi.java | 90 ++++----- .../fabricv4/api/RouteAggregationsApi.java | 120 +++++------ .../sdk/fabricv4/api/RouteFilterRulesApi.java | 90 ++++----- .../sdk/fabricv4/api/RouteFiltersApi.java | 120 +++++------ .../sdk/fabricv4/api/RoutingProtocolsApi.java | 130 ++++++------ .../sdk/fabricv4/api/ServiceProfilesApi.java | 80 ++++---- .../sdk/fabricv4/api/ServiceTokensApi.java | 70 +++---- .../sdk/fabricv4/api/StatisticsApi.java | 20 +- .../sdk/fabricv4/api/StreamAlertRulesApi.java | 50 ++--- .../fabricv4/api/StreamSubscriptionsApi.java | 50 ++--- .../equinix/sdk/fabricv4/api/StreamsApi.java | 90 ++++----- .../equinix/sdk/fabricv4/auth/ApiKeyAuth.java | 2 +- .../sdk/fabricv4/auth/Authentication.java | 1 + .../sdk/fabricv4/auth/HttpBearerAuth.java | 2 +- .../fabricv4/model/AbstractOpenApiSchema.java | 2 +- .../sdk/fabricv4/model/AccessPoint.java | 38 +--- .../fabricv4/model/AccessPointSelector.java | 21 +- .../sdk/fabricv4/model/AccessPointType.java | 2 + .../equinix/sdk/fabricv4/model/Actions.java | 2 + .../sdk/fabricv4/model/AddOperation.java | 22 +- .../fabricv4/model/AlertRulePostRequest.java | 32 +-- .../fabricv4/model/AlertRulePutRequest.java | 32 +-- .../model/AllPhysicalPortsResponse.java | 16 +- .../model/AllPortPackagesResponse.java | 18 +- .../sdk/fabricv4/model/AllPortsResponse.java | 16 +- .../equinix/sdk/fabricv4/model/ApiConfig.java | 21 +- .../sdk/fabricv4/model/ApiServices.java | 21 +- .../com/equinix/sdk/fabricv4/model/Asset.java | 2 + .../fabricv4/model/AttachLogoResponse.java | 28 ++- .../model/AttachPrivateServiceResponse.java | 28 ++- .../model/AttachServiceProfileResponse.java | 28 ++- .../sdk/fabricv4/model/AttachTagResponse.java | 28 ++- .../sdk/fabricv4/model/AuthContext.java | 24 +-- .../sdk/fabricv4/model/AuthenticationKey.java | 19 +- .../sdk/fabricv4/model/BGPActionData.java | 24 +-- .../sdk/fabricv4/model/BGPActionRequest.java | 16 +- .../sdk/fabricv4/model/BGPActionStates.java | 2 + .../sdk/fabricv4/model/BGPActions.java | 2 + .../fabricv4/model/BGPActionsBulkData.java | 16 +- .../sdk/fabricv4/model/BGPConnectionIpv4.java | 28 +-- .../sdk/fabricv4/model/BGPConnectionIpv6.java | 28 +-- .../model/BGPConnectionOperation.java | 16 +- .../fabricv4/model/BandwidthUtilization.java | 20 +- .../sdk/fabricv4/model/BulkPhysicalPort.java | 15 +- .../sdk/fabricv4/model/BulkPortRequest.java | 15 +- .../equinix/sdk/fabricv4/model/Change.java | 31 ++- .../equinix/sdk/fabricv4/model/Changelog.java | 42 ++-- .../sdk/fabricv4/model/CloudEvent.java | 62 +++--- .../fabricv4/model/CloudEventAssetType.java | 2 + .../sdk/fabricv4/model/CloudEventData.java | 17 +- .../sdk/fabricv4/model/CloudEventFilters.java | 15 +- .../model/CloudEventSearchRequest.java | 17 +- .../model/CloudEventSimpleExpression.java | 21 +- .../sdk/fabricv4/model/CloudRouter.java | 31 ++- .../model/CloudRouterAccessPointState.java | 2 + .../model/CloudRouterActionRequest.java | 17 +- .../model/CloudRouterActionResponse.java | 32 +-- .../model/CloudRouterActionState.java | 2 + .../fabricv4/model/CloudRouterActionType.java | 2 + .../CloudRouterActionsSearchExpression.java | 21 +- .../model/CloudRouterActionsSearchFilter.java | 16 +- .../CloudRouterActionsSearchFilters.java | 15 +- .../CloudRouterActionsSearchOrFilter.java | 15 +- .../CloudRouterActionsSearchRequest.java | 17 +- .../CloudRouterActionsSearchResponse.java | 16 +- .../model/CloudRouterActionsSearchSortBy.java | 2 + .../CloudRouterActionsSearchSortCriteria.java | 14 +- ...CloudRouterActionsSearchSortDirection.java | 2 + .../sdk/fabricv4/model/CloudRouterChange.java | 33 ++- .../model/CloudRouterChangeOperation.java | 24 +-- .../fabricv4/model/CloudRouterCommand.java | 30 +-- .../model/CloudRouterCommandPingResponse.java | 19 +- .../model/CloudRouterCommandPostRequest.java | 26 +-- .../CloudRouterCommandRequestConnection.java | 18 +- .../CloudRouterCommandRequestPayload.java | 24 +-- .../CloudRouterCommandRequestResponse.java | 22 +- .../model/CloudRouterCommandResponse.java | 16 +- .../CloudRouterCommandSearchExpression.java | 21 +- .../model/CloudRouterCommandSearchFilter.java | 16 +- .../CloudRouterCommandSearchFilters.java | 15 +- .../CloudRouterCommandSearchOrFilter.java | 15 +- .../CloudRouterCommandSearchRequest.java | 17 +- .../CloudRouterCommandSearchResponse.java | 16 +- .../model/CloudRouterCommandSearchSortBy.java | 2 + .../CloudRouterCommandSearchSortCriteria.java | 14 +- ...CloudRouterCommandSearchSortDirection.java | 2 + .../model/CloudRouterCommandState.java | 2 + .../CloudRouterCommandTracerouteResponse.java | 19 +- .../model/CloudRouterCommandType.java | 2 + .../sdk/fabricv4/model/CloudRouterFilter.java | 16 +- .../fabricv4/model/CloudRouterFilters.java | 15 +- .../fabricv4/model/CloudRouterOrFilter.java | 15 +- .../fabricv4/model/CloudRouterPackage.java | 29 +-- .../model/CloudRouterPostRequest.java | 33 +-- .../model/CloudRouterPostRequestBase.java | 27 +-- .../model/CloudRouterPostRequestPackage.java | 24 +-- .../model/CloudRouterSearchRequest.java | 17 +- .../model/CloudRouterSimpleExpression.java | 21 +- .../sdk/fabricv4/model/CloudRouterSortBy.java | 2 + .../model/CloudRouterSortCriteria.java | 14 +- .../model/CloudRouterSortDirection.java | 2 + .../com/equinix/sdk/fabricv4/model/Code.java | 2 + .../sdk/fabricv4/model/CompanyLogo.java | 18 +- .../model/CompanyProfileActionRequest.java | 21 +- .../fabricv4/model/CompanyProfileChange.java | 20 +- .../fabricv4/model/CompanyProfileRequest.java | 36 ++-- .../model/CompanyProfileResponse.java | 48 ++--- .../model/CompanyProfileSearchFilter.java | 27 ++- .../model/CompanyProfileSearchRequest.java | 14 +- .../model/CompanyProfileSearchResponse.java | 20 +- .../model/CompanyProfileUpdateResponse.java | 14 +- .../fabricv4/model/CompanyServiceProfile.java | 18 +- .../sdk/fabricv4/model/ConnectedMetro.java | 20 +- .../sdk/fabricv4/model/Connection.java | 53 ++--- .../model/ConnectionAcceptanceData.java | 14 +- .../sdk/fabricv4/model/ConnectionAction.java | 29 +-- .../model/ConnectionActionRequest.java | 20 +- .../model/ConnectionChangeOperation.java | 24 +-- .../model/ConnectionCompanyProfile.java | 19 +- .../fabricv4/model/ConnectionDirection.java | 2 + .../fabricv4/model/ConnectionInvitation.java | 21 +- .../sdk/fabricv4/model/ConnectionLink.java | 21 +- .../fabricv4/model/ConnectionOperation.java | 21 +- .../fabricv4/model/ConnectionPostRequest.java | 39 +--- .../fabricv4/model/ConnectionPriority.java | 2 + .../fabricv4/model/ConnectionRedundancy.java | 16 +- .../fabricv4/model/ConnectionResponse.java | 18 +- .../model/ConnectionRouteAggregationData.java | 24 +-- .../model/ConnectionRouteEntryFilter.java | 16 +- .../model/ConnectionRouteEntryFilters.java | 15 +- .../model/ConnectionRouteEntryOrFilter.java | 15 +- .../ConnectionRouteEntrySimpleExpression.java | 21 +- .../model/ConnectionRouteEntrySortBy.java | 2 + .../ConnectionRouteEntrySortDirection.java | 2 + .../model/ConnectionRouteFilterData.java | 27 ++- .../model/ConnectionRouteFiltersBase.java | 18 +- .../model/ConnectionRouteSearchRequest.java | 17 +- .../model/ConnectionRouteSortCriteria.java | 14 +- .../model/ConnectionRouteTableEntry.java | 35 ++-- .../ConnectionRouteTableEntryConnection.java | 21 +- ...nnectionRouteTableEntrySearchResponse.java | 16 +- .../ConnectionRoutingProtocolPostRequest.java | 15 +- .../model/ConnectionSearchResponse.java | 19 +- .../sdk/fabricv4/model/ConnectionSide.java | 20 +- .../model/ConnectionSideAdditionalInfo.java | 18 +- .../sdk/fabricv4/model/ConnectionState.java | 2 + .../sdk/fabricv4/model/ConnectionType.java | 2 + .../fabricv4/model/ConnectivitySource.java | 13 +- .../model/ConnectivitySourceType.java | 2 + .../sdk/fabricv4/model/CustomField.java | 30 ++- .../sdk/fabricv4/model/DetectionMethod.java | 30 ++- .../model/DetectionMethodResponse.java | 27 ++- .../fabricv4/model/DirectConnectionIpv4.java | 15 +- .../fabricv4/model/DirectConnectionIpv6.java | 18 +- .../equinix/sdk/fabricv4/model/Direction.java | 17 +- .../sdk/fabricv4/model/EndCustomer.java | 19 +- .../sdk/fabricv4/model/EquinixStatus.java | 2 + .../com/equinix/sdk/fabricv4/model/Error.java | 34 ++-- .../sdk/fabricv4/model/Expression.java | 25 +-- .../fabricv4/model/FabricCloudRouterCode.java | 2 + .../model/FabricCloudRouterPackages.java | 13 +- .../model/FabricCloudRouterPrice.java | 17 +- .../sdk/fabricv4/model/FilterBody.java | 13 +- .../model/GatewayAttachmentListResponse.java | 20 +- .../model/GatewayAttachmentResponse.java | 28 ++- .../sdk/fabricv4/model/GeoCoordinates.java | 14 +- .../sdk/fabricv4/model/GeoScopeType.java | 2 + .../model/GetAllCloudRouterCommands.java | 16 +- ...llConnectionRouteAggregationsResponse.java | 16 +- .../GetAllConnectionRouteFiltersResponse.java | 16 +- .../model/GetAllStreamAlertRuleResponse.java | 16 +- .../model/GetAllStreamAssetResponse.java | 16 +- .../fabricv4/model/GetAllStreamResponse.java | 16 +- .../GetAllStreamSubscriptionResponse.java | 16 +- .../model/GetCloudEventsByAssetResponse.java | 16 +- .../model/GetMetricsByAssetResponse.java | 16 +- .../sdk/fabricv4/model/GetResponse.java | 16 +- ...outeAggregationGetConnectionsResponse.java | 16 +- .../GetRouteAggregationRulesResponse.java | 16 +- .../GetRouteFilterGetConnectionsResponse.java | 16 +- .../model/GetRouteFilterRulesResponse.java | 16 +- .../sdk/fabricv4/model/HealthResponse.java | 25 +-- .../com/equinix/sdk/fabricv4/model/Hop.java | 16 +- .../equinix/sdk/fabricv4/model/HopProbes.java | 25 +-- .../sdk/fabricv4/model/InternetAccess.java | 15 +- .../sdk/fabricv4/model/IpBlockPrice.java | 18 +- .../sdk/fabricv4/model/IpBlockType.java | 2 + .../com/equinix/sdk/fabricv4/model/Ipv4.java | 29 ++- .../fabricv4/model/JsonPatchOperation.java | 20 +- .../com/equinix/sdk/fabricv4/model/Link.java | 25 +-- .../fabricv4/model/LinkAggregationGroup.java | 13 +- .../model/LinkProtocolConnection.java | 22 +- .../model/LinkProtocolGetResponse.java | 16 +- .../model/LinkProtocolRequestType.java | 2 + .../fabricv4/model/LinkProtocolResponse.java | 32 +-- .../model/LinkProtocolServiceToken.java | 22 +- .../sdk/fabricv4/model/LinkProtocolState.java | 2 + .../sdk/fabricv4/model/LinkProtocolType.java | 2 + .../sdk/fabricv4/model/LogoRequest.java | 28 +-- .../sdk/fabricv4/model/LogoResponse.java | 31 ++- .../sdk/fabricv4/model/MarketingInfo.java | 19 +- .../model/MarketplaceSubscription.java | 21 +- .../com/equinix/sdk/fabricv4/model/Md5.java | 17 +- .../fabricv4/model/MetalInterconnection.java | 15 +- .../equinix/sdk/fabricv4/model/Metric.java | 31 ++- .../sdk/fabricv4/model/MetricAssetType.java | 2 + .../sdk/fabricv4/model/MetricDatapoints.java | 15 +- .../sdk/fabricv4/model/MetricFilters.java | 15 +- .../sdk/fabricv4/model/MetricResource.java | 27 ++- .../sdk/fabricv4/model/MetricSelector.java | 18 +- .../model/MetricSelectorResponse.java | 15 +- .../model/MetricSimpleExpression.java | 21 +- .../equinix/sdk/fabricv4/model/Metrics.java | 15 +- .../fabricv4/model/MetricsSearchRequest.java | 17 +- .../com/equinix/sdk/fabricv4/model/Metro.java | 42 ++-- .../sdk/fabricv4/model/MetroError.java | 22 +- .../sdk/fabricv4/model/MetroResponse.java | 16 +- .../sdk/fabricv4/model/ModelInterface.java | 25 +-- .../sdk/fabricv4/model/ModelPackage.java | 18 +- .../equinix/sdk/fabricv4/model/Network.java | 47 ++--- .../sdk/fabricv4/model/NetworkChange.java | 25 +-- .../model/NetworkChangeOperation.java | 24 +-- .../fabricv4/model/NetworkChangeResponse.java | 16 +- .../fabricv4/model/NetworkChangeStatus.java | 2 + .../sdk/fabricv4/model/NetworkChangeType.java | 2 + .../fabricv4/model/NetworkConnections.java | 16 +- .../fabricv4/model/NetworkEquinixStatus.java | 2 + .../sdk/fabricv4/model/NetworkFilter.java | 25 +-- .../sdk/fabricv4/model/NetworkOperation.java | 13 +- .../fabricv4/model/NetworkPostRequest.java | 28 +-- .../sdk/fabricv4/model/NetworkScope.java | 2 + .../model/NetworkSearchFieldName.java | 2 + .../fabricv4/model/NetworkSearchRequest.java | 17 +- .../fabricv4/model/NetworkSearchResponse.java | 19 +- .../sdk/fabricv4/model/NetworkSortBy.java | 2 + .../fabricv4/model/NetworkSortByResponse.java | 2 + .../fabricv4/model/NetworkSortCriteria.java | 14 +- .../model/NetworkSortCriteriaResponse.java | 14 +- .../fabricv4/model/NetworkSortDirection.java | 2 + .../model/NetworkSortDirectionResponse.java | 2 + .../sdk/fabricv4/model/NetworkState.java | 2 + .../sdk/fabricv4/model/NetworkType.java | 2 + .../equinix/sdk/fabricv4/model/OpEnum.java | 2 + .../equinix/sdk/fabricv4/model/Operation.java | 16 +- .../sdk/fabricv4/model/OperationalStatus.java | 15 +- .../com/equinix/sdk/fabricv4/model/Order.java | 28 ++- .../fabricv4/model/OutputStructuredPing.java | 29 +-- .../OutputStructuredPingResponseItem.java | 19 +- .../model/OutputStructuredTraceroute.java | 23 +-- .../sdk/fabricv4/model/PackageChangeLog.java | 14 +- .../sdk/fabricv4/model/PackageResponse.java | 16 +- .../sdk/fabricv4/model/Pagination.java | 25 +-- .../sdk/fabricv4/model/PaginationRequest.java | 14 +- .../sdk/fabricv4/model/PatchOperation.java | 24 +-- .../sdk/fabricv4/model/PeeringType.java | 2 + .../sdk/fabricv4/model/PhysicalPort.java | 41 ++-- .../fabricv4/model/PhysicalPortSettings.java | 18 +- .../sdk/fabricv4/model/PhysicalPortType.java | 2 + .../com/equinix/sdk/fabricv4/model/Port.java | 84 ++------ .../fabricv4/model/PortAdditionalInfo.java | 18 +- .../sdk/fabricv4/model/PortChange.java | 27 +-- .../fabricv4/model/PortChangeOperation.java | 24 +-- .../fabricv4/model/PortDemarcationPoint.java | 36 ++-- .../sdk/fabricv4/model/PortDevice.java | 17 +- .../fabricv4/model/PortDeviceRedundancy.java | 18 +- .../sdk/fabricv4/model/PortEncapsulation.java | 18 +- .../sdk/fabricv4/model/PortExpression.java | 25 +-- .../sdk/fabricv4/model/PortInterface.java | 15 +- .../equinix/sdk/fabricv4/model/PortLag.java | 22 +- .../equinix/sdk/fabricv4/model/PortLoa.java | 18 +- .../sdk/fabricv4/model/PortNotification.java | 22 +- .../sdk/fabricv4/model/PortOperation.java | 20 +- .../equinix/sdk/fabricv4/model/PortOrder.java | 26 +-- .../model/PortOrderPurchaseOrder.java | 33 ++- .../fabricv4/model/PortOrderSignature.java | 16 +- .../model/PortOrderSignatureDelegate.java | 21 +- .../sdk/fabricv4/model/PortPackage.java | 36 ++-- .../fabricv4/model/PortPackageSourceType.java | 2 + .../sdk/fabricv4/model/PortPriority.java | 2 + .../sdk/fabricv4/model/PortRedundancy.java | 17 +- .../sdk/fabricv4/model/PortRequest.java | 81 ++------ .../fabricv4/model/PortSearchFieldName.java | 2 + .../sdk/fabricv4/model/PortServiceCode.java | 2 + .../sdk/fabricv4/model/PortSettings.java | 23 +-- .../sdk/fabricv4/model/PortSortBy.java | 2 + .../sdk/fabricv4/model/PortSortCriteria.java | 14 +- .../sdk/fabricv4/model/PortSortDirection.java | 2 + .../equinix/sdk/fabricv4/model/PortState.java | 2 + .../sdk/fabricv4/model/PortTether.java | 33 ++- .../equinix/sdk/fabricv4/model/PortType.java | 2 + .../fabricv4/model/PortV4SearchRequest.java | 20 +- .../model/PrecisionTimeChangeOperation.java | 24 +-- .../fabricv4/model/PrecisionTimeOrder.java | 21 +- .../PrecisionTimePackagePostResponse.java | 21 +- .../model/PrecisionTimePackageRequest.java | 18 +- .../model/PrecisionTimePackageResponse.java | 37 ++-- .../fabricv4/model/PrecisionTimePrice.java | 18 +- ...ecisionTimeServiceConnectionsResponse.java | 16 +- .../PrecisionTimeServicePackagesResponse.java | 16 +- .../model/PrecisionTimeServiceRequest.java | 36 ++-- .../model/PrecisionTimeServiceResponse.java | 49 ++--- .../equinix/sdk/fabricv4/model/Presence.java | 2 + .../com/equinix/sdk/fabricv4/model/Price.java | 39 ++-- .../sdk/fabricv4/model/PriceCategory.java | 2 + .../sdk/fabricv4/model/PriceCharge.java | 16 +- .../sdk/fabricv4/model/PriceError.java | 22 +- .../model/PriceErrorAdditionalInfo.java | 18 +- .../sdk/fabricv4/model/PriceLocation.java | 18 +- .../fabricv4/model/PriceSearchResponse.java | 16 +- .../sdk/fabricv4/model/PrivateService.java | 18 +- .../model/PrivateServiceListResponse.java | 15 +- .../sdk/fabricv4/model/ProcessStep.java | 21 +- .../sdk/fabricv4/model/ProductType.java | 2 + .../equinix/sdk/fabricv4/model/Project.java | 18 +- .../sdk/fabricv4/model/ProviderStatus.java | 2 + .../model/PtpAdvanceConfiguration.java | 25 +-- .../sdk/fabricv4/model/RemoveOperation.java | 20 +- .../sdk/fabricv4/model/ReplaceOperation.java | 22 +- .../sdk/fabricv4/model/ResourceData.java | 28 ++- .../sdk/fabricv4/model/ResourceSelector.java | 18 +- .../model/ResourceSelectorResponse.java | 15 +- .../model/RouteAggregationChangeData.java | 33 ++- .../RouteAggregationChangeDataResponse.java | 16 +- .../RouteAggregationConnectionsData.java | 22 +- .../model/RouteAggregationRuleState.java | 2 + .../model/RouteAggregationRulesBase.java | 24 +-- .../model/RouteAggregationRulesChange.java | 25 +-- .../RouteAggregationRulesChangeData.java | 31 ++- ...uteAggregationRulesChangeDataResponse.java | 16 +- .../RouteAggregationRulesChangeOperation.java | 24 +-- .../model/RouteAggregationRulesData.java | 33 ++- ...RouteAggregationRulesPatchRequestItem.java | 24 +-- .../RouteAggregationRulesPostRequest.java | 15 +- .../model/RouteAggregationSortItem.java | 18 +- .../fabricv4/model/RouteAggregationState.java | 2 + .../fabricv4/model/RouteAggregationsBase.java | 27 +-- .../model/RouteAggregationsChange.java | 25 +-- .../RouteAggregationsChangeOperation.java | 24 +-- .../fabricv4/model/RouteAggregationsData.java | 33 ++- .../model/RouteAggregationsDataProject.java | 21 +- .../RouteAggregationsPatchRequestItem.java | 24 +-- .../model/RouteAggregationsSearchBase.java | 17 +- .../RouteAggregationsSearchBaseFilter.java | 15 +- .../RouteAggregationsSearchFilterItem.java | 21 +- .../RouteAggregationsSearchResponse.java | 16 +- .../fabricv4/model/RouteFilterChangeData.java | 33 ++- .../model/RouteFilterChangeDataResponse.java | 16 +- .../model/RouteFilterConnectionsData.java | 22 +- .../fabricv4/model/RouteFilterRuleState.java | 2 + .../fabricv4/model/RouteFilterRulesBase.java | 27 ++- .../model/RouteFilterRulesChange.java | 25 +-- .../model/RouteFilterRulesChangeData.java | 31 ++- .../RouteFilterRulesChangeDataResponse.java | 16 +- .../RouteFilterRulesChangeOperation.java | 24 +-- .../fabricv4/model/RouteFilterRulesData.java | 39 ++-- .../RouteFilterRulesPatchRequestItem.java | 24 +-- .../model/RouteFilterRulesPostRequest.java | 15 +- .../sdk/fabricv4/model/RouteFilterState.java | 2 + .../sdk/fabricv4/model/RouteFiltersBase.java | 27 +-- .../fabricv4/model/RouteFiltersChange.java | 25 +-- .../model/RouteFiltersChangeOperation.java | 24 +-- .../sdk/fabricv4/model/RouteFiltersData.java | 36 ++-- .../model/RouteFiltersDataProject.java | 21 +- .../model/RouteFiltersPatchRequestItem.java | 24 +-- .../model/RouteFiltersSearchBase.java | 17 +- .../model/RouteFiltersSearchBaseFilter.java | 15 +- .../model/RouteFiltersSearchFilterItem.java | 21 +- .../model/RouteFiltersSearchResponse.java | 16 +- .../sdk/fabricv4/model/RouteTableEntry.java | 33 +-- .../model/RouteTableEntryConnection.java | 21 +- .../fabricv4/model/RouteTableEntryFilter.java | 16 +- .../model/RouteTableEntryFilters.java | 15 +- .../model/RouteTableEntryOrFilter.java | 15 +- .../model/RouteTableEntryProtocolType.java | 2 + .../model/RouteTableEntrySearchRequest.java | 17 +- .../model/RouteTableEntrySearchResponse.java | 16 +- .../RouteTableEntrySimpleExpression.java | 21 +- .../fabricv4/model/RouteTableEntrySortBy.java | 2 + .../model/RouteTableEntrySortCriteria.java | 14 +- .../model/RouteTableEntrySortDirection.java | 2 + .../fabricv4/model/RouteTableEntryState.java | 2 + .../fabricv4/model/RouteTableEntryType.java | 2 + .../model/RouterActionsConnection.java | 20 +- .../fabricv4/model/RouterActionsRouter.java | 22 +- .../sdk/fabricv4/model/RouterPackageCode.java | 2 + .../fabricv4/model/RoutingProtocolBFD.java | 19 +- .../model/RoutingProtocolBGPData.java | 39 ++-- .../model/RoutingProtocolBGPType.java | 29 +-- .../fabricv4/model/RoutingProtocolBase.java | 16 +- .../fabricv4/model/RoutingProtocolChange.java | 25 +-- .../model/RoutingProtocolChangeData.java | 33 ++- .../RoutingProtocolChangeDataResponse.java | 16 +- .../model/RoutingProtocolChangeOperation.java | 24 +-- .../fabricv4/model/RoutingProtocolData.java | 16 +- .../model/RoutingProtocolDirectData.java | 32 ++- .../model/RoutingProtocolDirectType.java | 23 +-- .../model/RoutingProtocolOperation.java | 15 +- .../sdk/fabricv4/model/SearchExpression.java | 27 ++- .../sdk/fabricv4/model/SearchFieldName.java | 2 + .../sdk/fabricv4/model/SearchRequest.java | 17 +- .../sdk/fabricv4/model/SearchResponse.java | 16 +- .../sdk/fabricv4/model/ServiceMetro.java | 27 +-- .../sdk/fabricv4/model/ServiceMetros.java | 16 +- .../sdk/fabricv4/model/ServiceProfile.java | 55 ++--- .../model/ServiceProfileAccessPointCOLO.java | 32 ++- .../model/ServiceProfileAccessPointType.java | 16 +- .../ServiceProfileAccessPointTypeCOLO.java | 37 +--- .../ServiceProfileAccessPointTypeEnum.java | 2 + .../ServiceProfileAccessPointTypeVD.java | 24 +-- .../model/ServiceProfileAccessPointVD.java | 26 +-- .../model/ServiceProfileAndFilter.java | 15 +- .../fabricv4/model/ServiceProfileFilter.java | 16 +- .../ServiceProfileLinkProtocolConfig.java | 25 +-- .../model/ServiceProfileListResponse.java | 15 +- .../model/ServiceProfileMetadata.java | 45 ++--- .../fabricv4/model/ServiceProfileRequest.java | 60 ++---- .../model/ServiceProfileSearchRequest.java | 17 +- .../model/ServiceProfileSimpleExpression.java | 21 +- .../fabricv4/model/ServiceProfileSortBy.java | 2 + .../model/ServiceProfileSortCriteria.java | 14 +- .../model/ServiceProfileSortDirection.java | 2 + .../model/ServiceProfileStateEnum.java | 2 + .../model/ServiceProfileTypeEnum.java | 2 + .../model/ServiceProfileVisibilityEnum.java | 2 + .../sdk/fabricv4/model/ServiceProfiles.java | 16 +- .../fabricv4/model/ServiceSearchResponse.java | 16 +- .../sdk/fabricv4/model/ServiceToken.java | 38 ++-- .../model/ServiceTokenActionRequest.java | 16 +- .../fabricv4/model/ServiceTokenActions.java | 2 + .../model/ServiceTokenChangeOperation.java | 24 +-- .../model/ServiceTokenConnection.java | 29 +-- .../model/ServiceTokenSearchExpression.java | 22 +- .../model/ServiceTokenSearchFieldName.java | 2 + .../model/ServiceTokenSearchRequest.java | 14 +- .../sdk/fabricv4/model/ServiceTokenSide.java | 15 +- .../sdk/fabricv4/model/ServiceTokenState.java | 2 + .../sdk/fabricv4/model/ServiceTokenType.java | 2 + .../sdk/fabricv4/model/ServiceTokens.java | 16 +- .../equinix/sdk/fabricv4/model/Services.java | 15 +- .../sdk/fabricv4/model/SimplifiedAccount.java | 40 ++-- .../model/SimplifiedLinkProtocol.java | 16 +- .../fabricv4/model/SimplifiedLocation.java | 27 ++- .../model/SimplifiedLocationWithoutIBX.java | 27 ++- .../model/SimplifiedMetadataEntity.java | 36 ++-- .../sdk/fabricv4/model/SimplifiedNetwork.java | 35 ++-- .../model/SimplifiedNetworkChange.java | 19 +- .../model/SimplifiedNotification.java | 28 ++- .../sdk/fabricv4/model/SimplifiedPort.java | 56 ++---- .../model/SimplifiedServiceProfile.java | 55 ++--- .../model/SimplifiedTokenNetwork.java | 28 ++- .../model/SimplifiedVirtualDevice.java | 28 ++- .../equinix/sdk/fabricv4/model/SortBy.java | 2 + .../sdk/fabricv4/model/SortCriteria.java | 14 +- .../fabricv4/model/SortCriteriaResponse.java | 14 +- .../sdk/fabricv4/model/SortDirection.java | 2 + .../equinix/sdk/fabricv4/model/SortItem.java | 18 +- .../sdk/fabricv4/model/Statistics.java | 18 +- .../equinix/sdk/fabricv4/model/Stream.java | 35 ++-- .../sdk/fabricv4/model/StreamAlertRule.java | 35 ++-- .../sdk/fabricv4/model/StreamAsset.java | 25 +-- .../sdk/fabricv4/model/StreamAssetFilter.java | 16 +- .../fabricv4/model/StreamAssetFilters.java | 15 +- .../fabricv4/model/StreamAssetOrFilter.java | 15 +- .../fabricv4/model/StreamAssetPutRequest.java | 13 +- .../model/StreamAssetSearchRequest.java | 20 +- .../model/StreamAssetSimpleExpression.java | 21 +- .../sdk/fabricv4/model/StreamAssetSortBy.java | 2 + .../model/StreamAssetSortCriteria.java | 14 +- .../model/StreamAssetSortDirection.java | 2 + .../sdk/fabricv4/model/StreamFilter.java | 16 +- .../fabricv4/model/StreamFilterOrFilter.java | 15 +- .../model/StreamFilterSimpleExpression.java | 21 +- .../sdk/fabricv4/model/StreamPostRequest.java | 27 +-- .../sdk/fabricv4/model/StreamPutRequest.java | 21 +- .../fabricv4/model/StreamSubscription.java | 36 ++-- .../model/StreamSubscriptionFilter.java | 15 +- .../model/StreamSubscriptionOperation.java | 20 +- ...amSubscriptionOperationAdditionalInfo.java | 21 +- .../StreamSubscriptionOperationErrors.java | 20 +- .../model/StreamSubscriptionPostRequest.java | 30 +-- .../model/StreamSubscriptionPutRequest.java | 31 +-- .../model/StreamSubscriptionSelector.java | 18 +- .../model/StreamSubscriptionSink.java | 29 +-- .../StreamSubscriptionSinkCredential.java | 30 ++- .../model/StreamSubscriptionSinkResponse.java | 26 +-- .../model/StreamSubscriptionSinkSetting.java | 33 ++- .../sdk/fabricv4/model/SubInterface.java | 16 +- .../sdk/fabricv4/model/SubscriptionAsset.java | 17 +- .../SubscriptionEntitlementResponse.java | 19 +- .../fabricv4/model/SubscriptionResponse.java | 42 ++-- .../model/SubscriptionRouterPackageType.java | 15 +- .../sdk/fabricv4/model/SubscriptionState.java | 2 + .../sdk/fabricv4/model/SubscriptionTrial.java | 14 +- .../sdk/fabricv4/model/TagListResponse.java | 16 +- .../sdk/fabricv4/model/TagRequest.java | 26 +-- .../sdk/fabricv4/model/TagResponse.java | 27 ++- .../sdk/fabricv4/model/TimeServiceFilter.java | 16 +- .../fabricv4/model/TimeServiceFilters.java | 15 +- .../fabricv4/model/TimeServiceOperation.java | 15 +- .../fabricv4/model/TimeServiceOrFilter.java | 15 +- .../sdk/fabricv4/model/TimeServicePrice.java | 17 +- .../model/TimeServicePriceConnection.java | 13 +- .../TimeServicePriceConnectionASide.java | 13 +- ...TimeServicePriceConnectionAccessPoint.java | 13 +- .../model/TimeServiceSimpleExpression.java | 21 +- .../sdk/fabricv4/model/TimeServiceSortBy.java | 2 + .../model/TimeServiceSortCriteria.java | 14 +- .../model/TimeServiceSortDirection.java | 2 + .../model/TimeServicesSearchRequest.java | 17 +- .../model/ValidateConnectionResponse.java | 19 +- .../sdk/fabricv4/model/ValidateRequest.java | 13 +- .../fabricv4/model/ValidateRequestFilter.java | 15 +- .../model/ValidateRequestFilterAnd.java | 21 +- .../model/ValidateSubnetResponse.java | 15 +- .../equinix/sdk/fabricv4/model/ViewPoint.java | 2 + .../VirtualConnectionBridgePackageCode.java | 2 + .../model/VirtualConnectionPrice.java | 19 +- .../model/VirtualConnectionPriceASide.java | 13 +- ...irtualConnectionPriceASideAccessPoint.java | 18 +- ...alConnectionPriceASideAccessPointPort.java | 13 +- ...tionPriceASideAccessPointPortSettings.java | 13 +- ...VirtualConnectionPriceAccessPointType.java | 2 + .../VirtualConnectionPriceConnectionType.java | 2 + .../model/VirtualConnectionPriceZSide.java | 13 +- ...irtualConnectionPriceZSideAccessPoint.java | 20 +- ...ConnectionPriceZSideAccessPointBridge.java | 13 +- ...ionPriceZSideAccessPointBridgePackage.java | 13 +- ...onnectionPriceZSideAccessPointProfile.java | 15 +- .../fabricv4/model/VirtualConnectionSide.java | 13 +- .../VirtualConnectionTimeServiceResponse.java | 23 +-- .../fabricv4/model/VirtualConnectionUuid.java | 24 +-- .../sdk/fabricv4/model/VirtualDevice.java | 28 ++- .../model/VirtualDeviceInterface.java | 19 +- .../sdk/fabricv4/model/VirtualNetwork.java | 18 +- .../model/VirtualPortConfiguration.java | 13 +- .../fabricv4/model/VirtualPortLocation.java | 15 +- .../fabricv4/model/VirtualPortPackage.java | 15 +- .../sdk/fabricv4/model/VirtualPortPrice.java | 25 +-- .../fabricv4/model/VirtualPortRedundancy.java | 13 +- .../model/VirtualPortServiceType.java | 2 + .../sdk/fabricv4/model/VirtualPortType.java | 2 + .../sdk/fabricv4/model/VpicInterface.java | 18 +- 562 files changed, 5213 insertions(+), 6227 deletions(-) diff --git a/services/fabricv4/README.md b/services/fabricv4/README.md index c08f2edb..0368ad75 100644 --- a/services/fabricv4/README.md +++ b/services/fabricv4/README.md @@ -2,7 +2,7 @@ Equinix Fabric API v4 - API version: 4.26 - - Generator version: 7.12.0 + - Generator version: 7.16.0 Equinix Fabric is an advanced software-defined interconnection solution that enables you to directly, securely and dynamically connect to distributed infrastructure and digital ecosystems on platform Equinix via a single port, Customers can use Fabric to connect to:
1. Cloud Service Providers - Clouds, network and other service providers.
2. Enterprises - Other Equinix customers, vendors and partners.
3. Myself - Another customer instance deployed at Equinix.

Integrations (SDKs, Tools) links:
Fabric Java SDK
Fabric Go SDK
Fabric Python SDK
Equinix Terraform Provider
Fabric Terraform Modules
Equinix Pulumi Provider
diff --git a/services/fabricv4/build.gradle b/services/fabricv4/build.gradle index acefb150..40bb0828 100644 --- a/services/fabricv4/build.gradle +++ b/services/fabricv4/build.gradle @@ -106,15 +106,14 @@ ext { } dependencies { - implementation 'io.swagger:swagger-annotations:1.6.8' implementation "com.google.code.findbugs:jsr305:3.0.2" implementation 'com.squareup.okhttp3:okhttp:4.12.0' implementation 'com.squareup.okhttp3:logging-interceptor:4.12.0' implementation 'com.google.code.gson:gson:2.9.1' implementation 'io.gsonfire:gson-fire:1.9.0' implementation 'jakarta.ws.rs:jakarta.ws.rs-api:2.1.6' - implementation 'org.openapitools:jackson-databind-nullable:0.2.6' - implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.17.0' + implementation 'org.openapitools:jackson-databind-nullable:0.2.7' + implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.18.0' implementation "jakarta.annotation:jakarta.annotation-api:$jakarta_annotation_version" testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.3' testImplementation 'org.mockito:mockito-core:3.12.4' diff --git a/services/fabricv4/build.sbt b/services/fabricv4/build.sbt index 6994ef5c..2de63d0d 100644 --- a/services/fabricv4/build.sbt +++ b/services/fabricv4/build.sbt @@ -3,19 +3,19 @@ lazy val root = (project in file(".")). organization := "com.equinix.sdk", name := "fabricv4", version := "0.7.0", - scalaVersion := "2.11.4", + scalaVersion := "2.11.12", scalacOptions ++= Seq("-feature"), - javacOptions in compile ++= Seq("-Xlint:deprecation"), - publishArtifact in (Compile, packageDoc) := false, + compile / javacOptions ++= Seq("-Xlint:deprecation"), + Compile / packageDoc / publishArtifact := false, resolvers += Resolver.mavenLocal, libraryDependencies ++= Seq( "io.swagger" % "swagger-annotations" % "1.6.5", "com.squareup.okhttp3" % "okhttp" % "4.12.0", "com.squareup.okhttp3" % "logging-interceptor" % "4.12.0", "com.google.code.gson" % "gson" % "2.9.1", - "org.apache.commons" % "commons-lang3" % "3.17.0", + "org.apache.commons" % "commons-lang3" % "3.18.0", "jakarta.ws.rs" % "jakarta.ws.rs-api" % "2.1.6", - "org.openapitools" % "jackson-databind-nullable" % "0.2.6", + "org.openapitools" % "jackson-databind-nullable" % "0.2.7", "io.gsonfire" % "gson-fire" % "1.9.0" % "compile", "jakarta.annotation" % "jakarta.annotation-api" % "1.3.5" % "compile", "com.google.code.findbugs" % "jsr305" % "3.0.2" % "compile", diff --git a/services/fabricv4/pom.xml b/services/fabricv4/pom.xml index 3de80555..897b53e7 100644 --- a/services/fabricv4/pom.xml +++ b/services/fabricv4/pom.xml @@ -326,8 +326,8 @@ 1.9.0 4.12.0 2.10.1 - 3.17.0 - 0.2.6 + 3.18.0 + 0.2.7 1.3.5 2.0.2 5.10.3 diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/ApiException.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/ApiException.java index e7c3b3d8..dc05026b 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/ApiException.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/ApiException.java @@ -13,13 +13,14 @@ import java.util.Map; import java.util.List; +import java.util.Locale; /** *

ApiException class.

*/ @SuppressWarnings("serial") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ApiException extends Exception { private static final long serialVersionUID = 1L; @@ -159,7 +160,7 @@ public String getResponseBody() { * @return The exception message */ public String getMessage() { - return String.format("Message: %s%nHTTP response code: %s%nHTTP response body: %s%nHTTP response headers: %s", + return String.format(Locale.ROOT, "Message: %s%nHTTP response code: %s%nHTTP response body: %s%nHTTP response headers: %s", super.getMessage(), this.getCode(), this.getResponseBody(), this.getResponseHeaders()); } } diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/Configuration.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/Configuration.java index 35affc7a..7a8e924e 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/Configuration.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/Configuration.java @@ -11,29 +11,51 @@ package com.equinix.sdk.fabricv4; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +import java.util.Objects; +import java.util.concurrent.atomic.AtomicReference; +import java.util.function.Supplier; + +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class Configuration { - public static final String VERSION = "0.7.0"; - - private static volatile ApiClient defaultApiClient = new ApiClient(); - - /** - * Get the default API client, which would be used when creating API - * instances without providing an API client. - * - * @return Default API client - */ - public static ApiClient getDefaultApiClient() { - return defaultApiClient; - } + public static final String VERSION = "0.7.0"; + + private static final AtomicReference defaultApiClient = new AtomicReference<>(); + private static volatile Supplier apiClientFactory = ApiClient::new; - /** - * Set the default API client, which would be used when creating API - * instances without providing an API client. - * - * @param apiClient API client - */ - public static void setDefaultApiClient(ApiClient apiClient) { - defaultApiClient = apiClient; + /** + * Get the default API client, which would be used when creating API instances without providing an API client. + * + * @return Default API client + */ + public static ApiClient getDefaultApiClient() { + ApiClient client = defaultApiClient.get(); + if (client == null) { + client = defaultApiClient.updateAndGet(val -> { + if (val != null) { // changed by another thread + return val; + } + return apiClientFactory.get(); + }); } -} + return client; + } + + /** + * Set the default API client, which would be used when creating API instances without providing an API client. + * + * @param apiClient API client + */ + public static void setDefaultApiClient(ApiClient apiClient) { + defaultApiClient.set(apiClient); + } + + /** + * set the callback used to create new ApiClient objects + */ + public static void setApiClientFactory(Supplier factory) { + apiClientFactory = Objects.requireNonNull(factory); + } + + private Configuration() { + } +} \ No newline at end of file diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/Pair.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/Pair.java index 4ca75d4e..8144fe33 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/Pair.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/Pair.java @@ -11,45 +11,25 @@ package com.equinix.sdk.fabricv4; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class Pair { - private String name = ""; - private String value = ""; + private final String name; + private final String value; - public Pair (String name, String value) { - setName(name); - setValue(value); - } + public Pair(String name, String value) { + this.name = isValidString(name) ? name : ""; + this.value = isValidString(value) ? value : ""; + } - private void setName(String name) { - if (!isValidString(name)) { - return; - } + public String getName() { + return this.name; + } - this.name = name; - } + public String getValue() { + return this.value; + } - private void setValue(String value) { - if (!isValidString(value)) { - return; - } - - this.value = value; - } - - public String getName() { - return this.name; - } - - public String getValue() { - return this.value; - } - - private boolean isValidString(String arg) { - if (arg == null) { - return false; - } - - return true; - } + private static boolean isValidString(String arg) { + return arg != null; + } } diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/ServerConfiguration.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/ServerConfiguration.java index 2452b00e..f7b4a1f5 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/ServerConfiguration.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/ServerConfiguration.java @@ -16,7 +16,7 @@ /** * Representing a Server configuration. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ServerConfiguration { public String URL; public String description; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/ServerVariable.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/ServerVariable.java index ccd9706d..5a219a66 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/ServerVariable.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/ServerVariable.java @@ -16,7 +16,7 @@ /** * Representing a Server Variable for server URL template substitution. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ServerVariable { public String description; public String defaultValue; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/StringUtil.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/StringUtil.java index 9fd48eed..d2ba1c92 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/StringUtil.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/StringUtil.java @@ -14,7 +14,7 @@ import java.util.Collection; import java.util.Iterator; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/CloudEventsApi.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/CloudEventsApi.java index ad799f21..03c29ef9 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/CloudEventsApi.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/CloudEventsApi.java @@ -93,7 +93,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 500 Internal server error - */ - public okhttp3.Call getCloudEventCall(UUID cloudEventId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCloudEventCall(@javax.annotation.Nonnull UUID cloudEventId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -139,7 +139,7 @@ public okhttp3.Call getCloudEventCall(UUID cloudEventId, final ApiCallback _call } @SuppressWarnings("rawtypes") - private okhttp3.Call getCloudEventValidateBeforeCall(UUID cloudEventId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getCloudEventValidateBeforeCall(@javax.annotation.Nonnull UUID cloudEventId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'cloudEventId' is set if (cloudEventId == null) { throw new ApiException("Missing the required parameter 'cloudEventId' when calling getCloudEvent(Async)"); @@ -166,7 +166,7 @@ private okhttp3.Call getCloudEventValidateBeforeCall(UUID cloudEventId, final Ap 500 Internal server error - */ - public CloudEvent getCloudEvent(UUID cloudEventId) throws ApiException { + public CloudEvent getCloudEvent(@javax.annotation.Nonnull UUID cloudEventId) throws ApiException { ApiResponse localVarResp = getCloudEventWithHttpInfo(cloudEventId); return localVarResp.getData(); } @@ -188,7 +188,7 @@ public CloudEvent getCloudEvent(UUID cloudEventId) throws ApiException { 500 Internal server error - */ - public ApiResponse getCloudEventWithHttpInfo(UUID cloudEventId) throws ApiException { + public ApiResponse getCloudEventWithHttpInfo(@javax.annotation.Nonnull UUID cloudEventId) throws ApiException { okhttp3.Call localVarCall = getCloudEventValidateBeforeCall(cloudEventId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -212,7 +212,7 @@ public ApiResponse getCloudEventWithHttpInfo(UUID cloudEventId) thro 500 Internal server error - */ - public okhttp3.Call getCloudEventAsync(UUID cloudEventId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCloudEventAsync(@javax.annotation.Nonnull UUID cloudEventId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getCloudEventValidateBeforeCall(cloudEventId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -241,7 +241,7 @@ public okhttp3.Call getCloudEventAsync(UUID cloudEventId, final ApiCallback 500 Internal server error - */ - public okhttp3.Call getCloudEventByAssetIdCall(CloudEventAssetType asset, UUID assetId, OffsetDateTime fromDateTime, OffsetDateTime toDateTime, Integer offset, Integer limit, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCloudEventByAssetIdCall(@javax.annotation.Nonnull CloudEventAssetType asset, @javax.annotation.Nonnull UUID assetId, @javax.annotation.Nullable OffsetDateTime fromDateTime, @javax.annotation.Nullable OffsetDateTime toDateTime, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -304,7 +304,7 @@ public okhttp3.Call getCloudEventByAssetIdCall(CloudEventAssetType asset, UUID a } @SuppressWarnings("rawtypes") - private okhttp3.Call getCloudEventByAssetIdValidateBeforeCall(CloudEventAssetType asset, UUID assetId, OffsetDateTime fromDateTime, OffsetDateTime toDateTime, Integer offset, Integer limit, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getCloudEventByAssetIdValidateBeforeCall(@javax.annotation.Nonnull CloudEventAssetType asset, @javax.annotation.Nonnull UUID assetId, @javax.annotation.Nullable OffsetDateTime fromDateTime, @javax.annotation.Nullable OffsetDateTime toDateTime, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit, final ApiCallback _callback) throws ApiException { // verify the required parameter 'asset' is set if (asset == null) { throw new ApiException("Missing the required parameter 'asset' when calling getCloudEventByAssetId(Async)"); @@ -341,7 +341,7 @@ private okhttp3.Call getCloudEventByAssetIdValidateBeforeCall(CloudEventAssetTyp 500 Internal server error - */ - public GetCloudEventsByAssetResponse getCloudEventByAssetId(CloudEventAssetType asset, UUID assetId, OffsetDateTime fromDateTime, OffsetDateTime toDateTime, Integer offset, Integer limit) throws ApiException { + public GetCloudEventsByAssetResponse getCloudEventByAssetId(@javax.annotation.Nonnull CloudEventAssetType asset, @javax.annotation.Nonnull UUID assetId, @javax.annotation.Nullable OffsetDateTime fromDateTime, @javax.annotation.Nullable OffsetDateTime toDateTime, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit) throws ApiException { ApiResponse localVarResp = getCloudEventByAssetIdWithHttpInfo(asset, assetId, fromDateTime, toDateTime, offset, limit); return localVarResp.getData(); } @@ -368,7 +368,7 @@ public GetCloudEventsByAssetResponse getCloudEventByAssetId(CloudEventAssetType 500 Internal server error - */ - public ApiResponse getCloudEventByAssetIdWithHttpInfo(CloudEventAssetType asset, UUID assetId, OffsetDateTime fromDateTime, OffsetDateTime toDateTime, Integer offset, Integer limit) throws ApiException { + public ApiResponse getCloudEventByAssetIdWithHttpInfo(@javax.annotation.Nonnull CloudEventAssetType asset, @javax.annotation.Nonnull UUID assetId, @javax.annotation.Nullable OffsetDateTime fromDateTime, @javax.annotation.Nullable OffsetDateTime toDateTime, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit) throws ApiException { okhttp3.Call localVarCall = getCloudEventByAssetIdValidateBeforeCall(asset, assetId, fromDateTime, toDateTime, offset, limit, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -397,7 +397,7 @@ public ApiResponse getCloudEventByAssetIdWithHttp 500 Internal server error - */ - public okhttp3.Call getCloudEventByAssetIdAsync(CloudEventAssetType asset, UUID assetId, OffsetDateTime fromDateTime, OffsetDateTime toDateTime, Integer offset, Integer limit, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCloudEventByAssetIdAsync(@javax.annotation.Nonnull CloudEventAssetType asset, @javax.annotation.Nonnull UUID assetId, @javax.annotation.Nullable OffsetDateTime fromDateTime, @javax.annotation.Nullable OffsetDateTime toDateTime, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getCloudEventByAssetIdValidateBeforeCall(asset, assetId, fromDateTime, toDateTime, offset, limit, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -421,7 +421,7 @@ public okhttp3.Call getCloudEventByAssetIdAsync(CloudEventAssetType asset, UUID 500 Internal server error - */ - public okhttp3.Call searchCloudEventsCall(CloudEventSearchRequest cloudEventSearchRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call searchCloudEventsCall(@javax.annotation.Nonnull CloudEventSearchRequest cloudEventSearchRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -467,7 +467,7 @@ public okhttp3.Call searchCloudEventsCall(CloudEventSearchRequest cloudEventSear } @SuppressWarnings("rawtypes") - private okhttp3.Call searchCloudEventsValidateBeforeCall(CloudEventSearchRequest cloudEventSearchRequest, final ApiCallback _callback) throws ApiException { + private okhttp3.Call searchCloudEventsValidateBeforeCall(@javax.annotation.Nonnull CloudEventSearchRequest cloudEventSearchRequest, final ApiCallback _callback) throws ApiException { // verify the required parameter 'cloudEventSearchRequest' is set if (cloudEventSearchRequest == null) { throw new ApiException("Missing the required parameter 'cloudEventSearchRequest' when calling searchCloudEvents(Async)"); @@ -494,7 +494,7 @@ private okhttp3.Call searchCloudEventsValidateBeforeCall(CloudEventSearchRequest 500 Internal server error - */ - public GetCloudEventsByAssetResponse searchCloudEvents(CloudEventSearchRequest cloudEventSearchRequest) throws ApiException { + public GetCloudEventsByAssetResponse searchCloudEvents(@javax.annotation.Nonnull CloudEventSearchRequest cloudEventSearchRequest) throws ApiException { ApiResponse localVarResp = searchCloudEventsWithHttpInfo(cloudEventSearchRequest); return localVarResp.getData(); } @@ -516,7 +516,7 @@ public GetCloudEventsByAssetResponse searchCloudEvents(CloudEventSearchRequest c 500 Internal server error - */ - public ApiResponse searchCloudEventsWithHttpInfo(CloudEventSearchRequest cloudEventSearchRequest) throws ApiException { + public ApiResponse searchCloudEventsWithHttpInfo(@javax.annotation.Nonnull CloudEventSearchRequest cloudEventSearchRequest) throws ApiException { okhttp3.Call localVarCall = searchCloudEventsValidateBeforeCall(cloudEventSearchRequest, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -540,7 +540,7 @@ public ApiResponse searchCloudEventsWithHttpInfo( 500 Internal server error - */ - public okhttp3.Call searchCloudEventsAsync(CloudEventSearchRequest cloudEventSearchRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call searchCloudEventsAsync(@javax.annotation.Nonnull CloudEventSearchRequest cloudEventSearchRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = searchCloudEventsValidateBeforeCall(cloudEventSearchRequest, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/CloudRoutersApi.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/CloudRoutersApi.java index 04f10dc3..52108962 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/CloudRoutersApi.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/CloudRoutersApi.java @@ -112,7 +112,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 500 Internal server error - */ - public okhttp3.Call createCloudRouterCall(CloudRouterPostRequest cloudRouterPostRequest, Boolean dryRun, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createCloudRouterCall(@javax.annotation.Nonnull CloudRouterPostRequest cloudRouterPostRequest, @javax.annotation.Nullable Boolean dryRun, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -162,7 +162,7 @@ public okhttp3.Call createCloudRouterCall(CloudRouterPostRequest cloudRouterPost } @SuppressWarnings("rawtypes") - private okhttp3.Call createCloudRouterValidateBeforeCall(CloudRouterPostRequest cloudRouterPostRequest, Boolean dryRun, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createCloudRouterValidateBeforeCall(@javax.annotation.Nonnull CloudRouterPostRequest cloudRouterPostRequest, @javax.annotation.Nullable Boolean dryRun, final ApiCallback _callback) throws ApiException { // verify the required parameter 'cloudRouterPostRequest' is set if (cloudRouterPostRequest == null) { throw new ApiException("Missing the required parameter 'cloudRouterPostRequest' when calling createCloudRouter(Async)"); @@ -191,7 +191,7 @@ private okhttp3.Call createCloudRouterValidateBeforeCall(CloudRouterPostRequest 500 Internal server error - */ - public CloudRouter createCloudRouter(CloudRouterPostRequest cloudRouterPostRequest, Boolean dryRun) throws ApiException { + public CloudRouter createCloudRouter(@javax.annotation.Nonnull CloudRouterPostRequest cloudRouterPostRequest, @javax.annotation.Nullable Boolean dryRun) throws ApiException { ApiResponse localVarResp = createCloudRouterWithHttpInfo(cloudRouterPostRequest, dryRun); return localVarResp.getData(); } @@ -215,7 +215,7 @@ public CloudRouter createCloudRouter(CloudRouterPostRequest cloudRouterPostReque 500 Internal server error - */ - public ApiResponse createCloudRouterWithHttpInfo(CloudRouterPostRequest cloudRouterPostRequest, Boolean dryRun) throws ApiException { + public ApiResponse createCloudRouterWithHttpInfo(@javax.annotation.Nonnull CloudRouterPostRequest cloudRouterPostRequest, @javax.annotation.Nullable Boolean dryRun) throws ApiException { okhttp3.Call localVarCall = createCloudRouterValidateBeforeCall(cloudRouterPostRequest, dryRun, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -241,7 +241,7 @@ public ApiResponse createCloudRouterWithHttpInfo(CloudRouterPostReq 500 Internal server error - */ - public okhttp3.Call createCloudRouterAsync(CloudRouterPostRequest cloudRouterPostRequest, Boolean dryRun, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createCloudRouterAsync(@javax.annotation.Nonnull CloudRouterPostRequest cloudRouterPostRequest, @javax.annotation.Nullable Boolean dryRun, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createCloudRouterValidateBeforeCall(cloudRouterPostRequest, dryRun, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -268,7 +268,7 @@ public okhttp3.Call createCloudRouterAsync(CloudRouterPostRequest cloudRouterPos 500 Internal server error - */ - public okhttp3.Call createCloudRouterActionCall(UUID routerId, CloudRouterActionRequest cloudRouterActionRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createCloudRouterActionCall(@javax.annotation.Nonnull UUID routerId, @javax.annotation.Nonnull CloudRouterActionRequest cloudRouterActionRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -315,7 +315,7 @@ public okhttp3.Call createCloudRouterActionCall(UUID routerId, CloudRouterAction } @SuppressWarnings("rawtypes") - private okhttp3.Call createCloudRouterActionValidateBeforeCall(UUID routerId, CloudRouterActionRequest cloudRouterActionRequest, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createCloudRouterActionValidateBeforeCall(@javax.annotation.Nonnull UUID routerId, @javax.annotation.Nonnull CloudRouterActionRequest cloudRouterActionRequest, final ApiCallback _callback) throws ApiException { // verify the required parameter 'routerId' is set if (routerId == null) { throw new ApiException("Missing the required parameter 'routerId' when calling createCloudRouterAction(Async)"); @@ -350,7 +350,7 @@ private okhttp3.Call createCloudRouterActionValidateBeforeCall(UUID routerId, Cl 500 Internal server error - */ - public CloudRouterActionResponse createCloudRouterAction(UUID routerId, CloudRouterActionRequest cloudRouterActionRequest) throws ApiException { + public CloudRouterActionResponse createCloudRouterAction(@javax.annotation.Nonnull UUID routerId, @javax.annotation.Nonnull CloudRouterActionRequest cloudRouterActionRequest) throws ApiException { ApiResponse localVarResp = createCloudRouterActionWithHttpInfo(routerId, cloudRouterActionRequest); return localVarResp.getData(); } @@ -375,7 +375,7 @@ public CloudRouterActionResponse createCloudRouterAction(UUID routerId, CloudRou 500 Internal server error - */ - public ApiResponse createCloudRouterActionWithHttpInfo(UUID routerId, CloudRouterActionRequest cloudRouterActionRequest) throws ApiException { + public ApiResponse createCloudRouterActionWithHttpInfo(@javax.annotation.Nonnull UUID routerId, @javax.annotation.Nonnull CloudRouterActionRequest cloudRouterActionRequest) throws ApiException { okhttp3.Call localVarCall = createCloudRouterActionValidateBeforeCall(routerId, cloudRouterActionRequest, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -402,7 +402,7 @@ public ApiResponse createCloudRouterActionWithHttpInf 500 Internal server error - */ - public okhttp3.Call createCloudRouterActionAsync(UUID routerId, CloudRouterActionRequest cloudRouterActionRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createCloudRouterActionAsync(@javax.annotation.Nonnull UUID routerId, @javax.annotation.Nonnull CloudRouterActionRequest cloudRouterActionRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createCloudRouterActionValidateBeforeCall(routerId, cloudRouterActionRequest, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -429,7 +429,7 @@ public okhttp3.Call createCloudRouterActionAsync(UUID routerId, CloudRouterActio 500 Internal server error - */ - public okhttp3.Call createCloudRouterCommandCall(UUID routerId, CloudRouterCommandPostRequest cloudRouterCommandPostRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createCloudRouterCommandCall(@javax.annotation.Nonnull UUID routerId, @javax.annotation.Nonnull CloudRouterCommandPostRequest cloudRouterCommandPostRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -476,7 +476,7 @@ public okhttp3.Call createCloudRouterCommandCall(UUID routerId, CloudRouterComma } @SuppressWarnings("rawtypes") - private okhttp3.Call createCloudRouterCommandValidateBeforeCall(UUID routerId, CloudRouterCommandPostRequest cloudRouterCommandPostRequest, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createCloudRouterCommandValidateBeforeCall(@javax.annotation.Nonnull UUID routerId, @javax.annotation.Nonnull CloudRouterCommandPostRequest cloudRouterCommandPostRequest, final ApiCallback _callback) throws ApiException { // verify the required parameter 'routerId' is set if (routerId == null) { throw new ApiException("Missing the required parameter 'routerId' when calling createCloudRouterCommand(Async)"); @@ -511,7 +511,7 @@ private okhttp3.Call createCloudRouterCommandValidateBeforeCall(UUID routerId, C 500 Internal server error - */ - public CloudRouterCommand createCloudRouterCommand(UUID routerId, CloudRouterCommandPostRequest cloudRouterCommandPostRequest) throws ApiException { + public CloudRouterCommand createCloudRouterCommand(@javax.annotation.Nonnull UUID routerId, @javax.annotation.Nonnull CloudRouterCommandPostRequest cloudRouterCommandPostRequest) throws ApiException { ApiResponse localVarResp = createCloudRouterCommandWithHttpInfo(routerId, cloudRouterCommandPostRequest); return localVarResp.getData(); } @@ -536,7 +536,7 @@ public CloudRouterCommand createCloudRouterCommand(UUID routerId, CloudRouterCom 500 Internal server error - */ - public ApiResponse createCloudRouterCommandWithHttpInfo(UUID routerId, CloudRouterCommandPostRequest cloudRouterCommandPostRequest) throws ApiException { + public ApiResponse createCloudRouterCommandWithHttpInfo(@javax.annotation.Nonnull UUID routerId, @javax.annotation.Nonnull CloudRouterCommandPostRequest cloudRouterCommandPostRequest) throws ApiException { okhttp3.Call localVarCall = createCloudRouterCommandValidateBeforeCall(routerId, cloudRouterCommandPostRequest, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -563,7 +563,7 @@ public ApiResponse createCloudRouterCommandWithHttpInfo(UUID 500 Internal server error - */ - public okhttp3.Call createCloudRouterCommandAsync(UUID routerId, CloudRouterCommandPostRequest cloudRouterCommandPostRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createCloudRouterCommandAsync(@javax.annotation.Nonnull UUID routerId, @javax.annotation.Nonnull CloudRouterCommandPostRequest cloudRouterCommandPostRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createCloudRouterCommandValidateBeforeCall(routerId, cloudRouterCommandPostRequest, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -588,7 +588,7 @@ public okhttp3.Call createCloudRouterCommandAsync(UUID routerId, CloudRouterComm 500 Internal server error - */ - public okhttp3.Call deleteCloudRouterByUuidCall(UUID routerId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCloudRouterByUuidCall(@javax.annotation.Nonnull UUID routerId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -634,7 +634,7 @@ public okhttp3.Call deleteCloudRouterByUuidCall(UUID routerId, final ApiCallback } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCloudRouterByUuidValidateBeforeCall(UUID routerId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCloudRouterByUuidValidateBeforeCall(@javax.annotation.Nonnull UUID routerId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'routerId' is set if (routerId == null) { throw new ApiException("Missing the required parameter 'routerId' when calling deleteCloudRouterByUuid(Async)"); @@ -661,7 +661,7 @@ private okhttp3.Call deleteCloudRouterByUuidValidateBeforeCall(UUID routerId, fi 500 Internal server error - */ - public void deleteCloudRouterByUuid(UUID routerId) throws ApiException { + public void deleteCloudRouterByUuid(@javax.annotation.Nonnull UUID routerId) throws ApiException { deleteCloudRouterByUuidWithHttpInfo(routerId); } @@ -683,7 +683,7 @@ public void deleteCloudRouterByUuid(UUID routerId) throws ApiException { 500 Internal server error - */ - public ApiResponse deleteCloudRouterByUuidWithHttpInfo(UUID routerId) throws ApiException { + public ApiResponse deleteCloudRouterByUuidWithHttpInfo(@javax.annotation.Nonnull UUID routerId) throws ApiException { okhttp3.Call localVarCall = deleteCloudRouterByUuidValidateBeforeCall(routerId, null); return localVarApiClient.execute(localVarCall); } @@ -707,7 +707,7 @@ public ApiResponse deleteCloudRouterByUuidWithHttpInfo(UUID routerId) thro 500 Internal server error - */ - public okhttp3.Call deleteCloudRouterByUuidAsync(UUID routerId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCloudRouterByUuidAsync(@javax.annotation.Nonnull UUID routerId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCloudRouterByUuidValidateBeforeCall(routerId, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -732,7 +732,7 @@ public okhttp3.Call deleteCloudRouterByUuidAsync(UUID routerId, final ApiCallbac 500 Internal server error - */ - public okhttp3.Call deleteCloudRouterCommandByUuidCall(UUID routerId, UUID commandId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCloudRouterCommandByUuidCall(@javax.annotation.Nonnull UUID routerId, @javax.annotation.Nonnull UUID commandId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -779,7 +779,7 @@ public okhttp3.Call deleteCloudRouterCommandByUuidCall(UUID routerId, UUID comma } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCloudRouterCommandByUuidValidateBeforeCall(UUID routerId, UUID commandId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCloudRouterCommandByUuidValidateBeforeCall(@javax.annotation.Nonnull UUID routerId, @javax.annotation.Nonnull UUID commandId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'routerId' is set if (routerId == null) { throw new ApiException("Missing the required parameter 'routerId' when calling deleteCloudRouterCommandByUuid(Async)"); @@ -812,7 +812,7 @@ private okhttp3.Call deleteCloudRouterCommandByUuidValidateBeforeCall(UUID route 500 Internal server error - */ - public void deleteCloudRouterCommandByUuid(UUID routerId, UUID commandId) throws ApiException { + public void deleteCloudRouterCommandByUuid(@javax.annotation.Nonnull UUID routerId, @javax.annotation.Nonnull UUID commandId) throws ApiException { deleteCloudRouterCommandByUuidWithHttpInfo(routerId, commandId); } @@ -835,7 +835,7 @@ public void deleteCloudRouterCommandByUuid(UUID routerId, UUID commandId) throws 500 Internal server error - */ - public ApiResponse deleteCloudRouterCommandByUuidWithHttpInfo(UUID routerId, UUID commandId) throws ApiException { + public ApiResponse deleteCloudRouterCommandByUuidWithHttpInfo(@javax.annotation.Nonnull UUID routerId, @javax.annotation.Nonnull UUID commandId) throws ApiException { okhttp3.Call localVarCall = deleteCloudRouterCommandByUuidValidateBeforeCall(routerId, commandId, null); return localVarApiClient.execute(localVarCall); } @@ -860,7 +860,7 @@ public ApiResponse deleteCloudRouterCommandByUuidWithHttpInfo(UUID routerI 500 Internal server error - */ - public okhttp3.Call deleteCloudRouterCommandByUuidAsync(UUID routerId, UUID commandId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCloudRouterCommandByUuidAsync(@javax.annotation.Nonnull UUID routerId, @javax.annotation.Nonnull UUID commandId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCloudRouterCommandByUuidValidateBeforeCall(routerId, commandId, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -885,7 +885,7 @@ public okhttp3.Call deleteCloudRouterCommandByUuidAsync(UUID routerId, UUID comm 500 Internal server error - */ - public okhttp3.Call getAllCloudRouterCommandsCall(UUID routerId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAllCloudRouterCommandsCall(@javax.annotation.Nonnull UUID routerId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -931,7 +931,7 @@ public okhttp3.Call getAllCloudRouterCommandsCall(UUID routerId, final ApiCallba } @SuppressWarnings("rawtypes") - private okhttp3.Call getAllCloudRouterCommandsValidateBeforeCall(UUID routerId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getAllCloudRouterCommandsValidateBeforeCall(@javax.annotation.Nonnull UUID routerId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'routerId' is set if (routerId == null) { throw new ApiException("Missing the required parameter 'routerId' when calling getAllCloudRouterCommands(Async)"); @@ -960,7 +960,7 @@ private okhttp3.Call getAllCloudRouterCommandsValidateBeforeCall(UUID routerId, 500 Internal server error - */ - public GetAllCloudRouterCommands getAllCloudRouterCommands(UUID routerId) throws ApiException { + public GetAllCloudRouterCommands getAllCloudRouterCommands(@javax.annotation.Nonnull UUID routerId) throws ApiException { ApiResponse localVarResp = getAllCloudRouterCommandsWithHttpInfo(routerId); return localVarResp.getData(); } @@ -984,7 +984,7 @@ public GetAllCloudRouterCommands getAllCloudRouterCommands(UUID routerId) throws 500 Internal server error - */ - public ApiResponse getAllCloudRouterCommandsWithHttpInfo(UUID routerId) throws ApiException { + public ApiResponse getAllCloudRouterCommandsWithHttpInfo(@javax.annotation.Nonnull UUID routerId) throws ApiException { okhttp3.Call localVarCall = getAllCloudRouterCommandsValidateBeforeCall(routerId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1010,7 +1010,7 @@ public ApiResponse getAllCloudRouterCommandsWithHttpI 500 Internal server error - */ - public okhttp3.Call getAllCloudRouterCommandsAsync(UUID routerId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAllCloudRouterCommandsAsync(@javax.annotation.Nonnull UUID routerId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getAllCloudRouterCommandsValidateBeforeCall(routerId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1037,7 +1037,7 @@ public okhttp3.Call getAllCloudRouterCommandsAsync(UUID routerId, final ApiCallb 500 Internal server error - */ - public okhttp3.Call getCloudRouterActionsCall(UUID routerId, CloudRouterActionState state, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCloudRouterActionsCall(@javax.annotation.Nonnull UUID routerId, @javax.annotation.Nullable CloudRouterActionState state, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1087,7 +1087,7 @@ public okhttp3.Call getCloudRouterActionsCall(UUID routerId, CloudRouterActionSt } @SuppressWarnings("rawtypes") - private okhttp3.Call getCloudRouterActionsValidateBeforeCall(UUID routerId, CloudRouterActionState state, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getCloudRouterActionsValidateBeforeCall(@javax.annotation.Nonnull UUID routerId, @javax.annotation.Nullable CloudRouterActionState state, final ApiCallback _callback) throws ApiException { // verify the required parameter 'routerId' is set if (routerId == null) { throw new ApiException("Missing the required parameter 'routerId' when calling getCloudRouterActions(Async)"); @@ -1117,7 +1117,7 @@ private okhttp3.Call getCloudRouterActionsValidateBeforeCall(UUID routerId, Clou 500 Internal server error - */ - public CloudRouterActionResponse getCloudRouterActions(UUID routerId, CloudRouterActionState state) throws ApiException { + public CloudRouterActionResponse getCloudRouterActions(@javax.annotation.Nonnull UUID routerId, @javax.annotation.Nullable CloudRouterActionState state) throws ApiException { ApiResponse localVarResp = getCloudRouterActionsWithHttpInfo(routerId, state); return localVarResp.getData(); } @@ -1142,7 +1142,7 @@ public CloudRouterActionResponse getCloudRouterActions(UUID routerId, CloudRoute 500 Internal server error - */ - public ApiResponse getCloudRouterActionsWithHttpInfo(UUID routerId, CloudRouterActionState state) throws ApiException { + public ApiResponse getCloudRouterActionsWithHttpInfo(@javax.annotation.Nonnull UUID routerId, @javax.annotation.Nullable CloudRouterActionState state) throws ApiException { okhttp3.Call localVarCall = getCloudRouterActionsValidateBeforeCall(routerId, state, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1169,7 +1169,7 @@ public ApiResponse getCloudRouterActionsWithHttpInfo( 500 Internal server error - */ - public okhttp3.Call getCloudRouterActionsAsync(UUID routerId, CloudRouterActionState state, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCloudRouterActionsAsync(@javax.annotation.Nonnull UUID routerId, @javax.annotation.Nullable CloudRouterActionState state, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getCloudRouterActionsValidateBeforeCall(routerId, state, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1197,7 +1197,7 @@ public okhttp3.Call getCloudRouterActionsAsync(UUID routerId, CloudRouterActionS 500 Internal server error - */ - public okhttp3.Call getCloudRouterActionsByUuidCall(UUID routerId, UUID actionId, CloudRouterActionState state, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCloudRouterActionsByUuidCall(@javax.annotation.Nonnull UUID routerId, @javax.annotation.Nonnull UUID actionId, @javax.annotation.Nullable CloudRouterActionState state, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1248,7 +1248,7 @@ public okhttp3.Call getCloudRouterActionsByUuidCall(UUID routerId, UUID actionId } @SuppressWarnings("rawtypes") - private okhttp3.Call getCloudRouterActionsByUuidValidateBeforeCall(UUID routerId, UUID actionId, CloudRouterActionState state, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getCloudRouterActionsByUuidValidateBeforeCall(@javax.annotation.Nonnull UUID routerId, @javax.annotation.Nonnull UUID actionId, @javax.annotation.Nullable CloudRouterActionState state, final ApiCallback _callback) throws ApiException { // verify the required parameter 'routerId' is set if (routerId == null) { throw new ApiException("Missing the required parameter 'routerId' when calling getCloudRouterActionsByUuid(Async)"); @@ -1284,7 +1284,7 @@ private okhttp3.Call getCloudRouterActionsByUuidValidateBeforeCall(UUID routerId 500 Internal server error - */ - public CloudRouterActionResponse getCloudRouterActionsByUuid(UUID routerId, UUID actionId, CloudRouterActionState state) throws ApiException { + public CloudRouterActionResponse getCloudRouterActionsByUuid(@javax.annotation.Nonnull UUID routerId, @javax.annotation.Nonnull UUID actionId, @javax.annotation.Nullable CloudRouterActionState state) throws ApiException { ApiResponse localVarResp = getCloudRouterActionsByUuidWithHttpInfo(routerId, actionId, state); return localVarResp.getData(); } @@ -1310,7 +1310,7 @@ public CloudRouterActionResponse getCloudRouterActionsByUuid(UUID routerId, UUID 500 Internal server error - */ - public ApiResponse getCloudRouterActionsByUuidWithHttpInfo(UUID routerId, UUID actionId, CloudRouterActionState state) throws ApiException { + public ApiResponse getCloudRouterActionsByUuidWithHttpInfo(@javax.annotation.Nonnull UUID routerId, @javax.annotation.Nonnull UUID actionId, @javax.annotation.Nullable CloudRouterActionState state) throws ApiException { okhttp3.Call localVarCall = getCloudRouterActionsByUuidValidateBeforeCall(routerId, actionId, state, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1338,7 +1338,7 @@ public ApiResponse getCloudRouterActionsByUuidWithHtt 500 Internal server error - */ - public okhttp3.Call getCloudRouterActionsByUuidAsync(UUID routerId, UUID actionId, CloudRouterActionState state, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCloudRouterActionsByUuidAsync(@javax.annotation.Nonnull UUID routerId, @javax.annotation.Nonnull UUID actionId, @javax.annotation.Nullable CloudRouterActionState state, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getCloudRouterActionsByUuidValidateBeforeCall(routerId, actionId, state, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1362,7 +1362,7 @@ public okhttp3.Call getCloudRouterActionsByUuidAsync(UUID routerId, UUID actionI 500 Internal server error - */ - public okhttp3.Call getCloudRouterByUuidCall(UUID routerId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCloudRouterByUuidCall(@javax.annotation.Nonnull UUID routerId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1408,7 +1408,7 @@ public okhttp3.Call getCloudRouterByUuidCall(UUID routerId, final ApiCallback _c } @SuppressWarnings("rawtypes") - private okhttp3.Call getCloudRouterByUuidValidateBeforeCall(UUID routerId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getCloudRouterByUuidValidateBeforeCall(@javax.annotation.Nonnull UUID routerId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'routerId' is set if (routerId == null) { throw new ApiException("Missing the required parameter 'routerId' when calling getCloudRouterByUuid(Async)"); @@ -1435,7 +1435,7 @@ private okhttp3.Call getCloudRouterByUuidValidateBeforeCall(UUID routerId, final 500 Internal server error - */ - public CloudRouter getCloudRouterByUuid(UUID routerId) throws ApiException { + public CloudRouter getCloudRouterByUuid(@javax.annotation.Nonnull UUID routerId) throws ApiException { ApiResponse localVarResp = getCloudRouterByUuidWithHttpInfo(routerId); return localVarResp.getData(); } @@ -1457,7 +1457,7 @@ public CloudRouter getCloudRouterByUuid(UUID routerId) throws ApiException { 500 Internal server error - */ - public ApiResponse getCloudRouterByUuidWithHttpInfo(UUID routerId) throws ApiException { + public ApiResponse getCloudRouterByUuidWithHttpInfo(@javax.annotation.Nonnull UUID routerId) throws ApiException { okhttp3.Call localVarCall = getCloudRouterByUuidValidateBeforeCall(routerId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1481,7 +1481,7 @@ public ApiResponse getCloudRouterByUuidWithHttpInfo(UUID routerId) 500 Internal server error - */ - public okhttp3.Call getCloudRouterByUuidAsync(UUID routerId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCloudRouterByUuidAsync(@javax.annotation.Nonnull UUID routerId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getCloudRouterByUuidValidateBeforeCall(routerId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1508,7 +1508,7 @@ public okhttp3.Call getCloudRouterByUuidAsync(UUID routerId, final ApiCallback 500 Internal server error - */ - public okhttp3.Call getCloudRouterCommandCall(UUID routerId, UUID commandId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCloudRouterCommandCall(@javax.annotation.Nonnull UUID routerId, @javax.annotation.Nonnull UUID commandId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1555,7 +1555,7 @@ public okhttp3.Call getCloudRouterCommandCall(UUID routerId, UUID commandId, fin } @SuppressWarnings("rawtypes") - private okhttp3.Call getCloudRouterCommandValidateBeforeCall(UUID routerId, UUID commandId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getCloudRouterCommandValidateBeforeCall(@javax.annotation.Nonnull UUID routerId, @javax.annotation.Nonnull UUID commandId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'routerId' is set if (routerId == null) { throw new ApiException("Missing the required parameter 'routerId' when calling getCloudRouterCommand(Async)"); @@ -1590,7 +1590,7 @@ private okhttp3.Call getCloudRouterCommandValidateBeforeCall(UUID routerId, UUID 500 Internal server error - */ - public CloudRouterCommand getCloudRouterCommand(UUID routerId, UUID commandId) throws ApiException { + public CloudRouterCommand getCloudRouterCommand(@javax.annotation.Nonnull UUID routerId, @javax.annotation.Nonnull UUID commandId) throws ApiException { ApiResponse localVarResp = getCloudRouterCommandWithHttpInfo(routerId, commandId); return localVarResp.getData(); } @@ -1615,7 +1615,7 @@ public CloudRouterCommand getCloudRouterCommand(UUID routerId, UUID commandId) t 500 Internal server error - */ - public ApiResponse getCloudRouterCommandWithHttpInfo(UUID routerId, UUID commandId) throws ApiException { + public ApiResponse getCloudRouterCommandWithHttpInfo(@javax.annotation.Nonnull UUID routerId, @javax.annotation.Nonnull UUID commandId) throws ApiException { okhttp3.Call localVarCall = getCloudRouterCommandValidateBeforeCall(routerId, commandId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1642,7 +1642,7 @@ public ApiResponse getCloudRouterCommandWithHttpInfo(UUID ro 500 Internal server error - */ - public okhttp3.Call getCloudRouterCommandAsync(UUID routerId, UUID commandId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCloudRouterCommandAsync(@javax.annotation.Nonnull UUID routerId, @javax.annotation.Nonnull UUID commandId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getCloudRouterCommandValidateBeforeCall(routerId, commandId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1667,7 +1667,7 @@ public okhttp3.Call getCloudRouterCommandAsync(UUID routerId, UUID commandId, fi 500 Internal server error - */ - public okhttp3.Call getCloudRouterPackageByCodeCall(RouterPackageCode routerPackageCode, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCloudRouterPackageByCodeCall(@javax.annotation.Nonnull RouterPackageCode routerPackageCode, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1713,7 +1713,7 @@ public okhttp3.Call getCloudRouterPackageByCodeCall(RouterPackageCode routerPack } @SuppressWarnings("rawtypes") - private okhttp3.Call getCloudRouterPackageByCodeValidateBeforeCall(RouterPackageCode routerPackageCode, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getCloudRouterPackageByCodeValidateBeforeCall(@javax.annotation.Nonnull RouterPackageCode routerPackageCode, final ApiCallback _callback) throws ApiException { // verify the required parameter 'routerPackageCode' is set if (routerPackageCode == null) { throw new ApiException("Missing the required parameter 'routerPackageCode' when calling getCloudRouterPackageByCode(Async)"); @@ -1741,7 +1741,7 @@ private okhttp3.Call getCloudRouterPackageByCodeValidateBeforeCall(RouterPackage 500 Internal server error - */ - public CloudRouterPackage getCloudRouterPackageByCode(RouterPackageCode routerPackageCode) throws ApiException { + public CloudRouterPackage getCloudRouterPackageByCode(@javax.annotation.Nonnull RouterPackageCode routerPackageCode) throws ApiException { ApiResponse localVarResp = getCloudRouterPackageByCodeWithHttpInfo(routerPackageCode); return localVarResp.getData(); } @@ -1764,7 +1764,7 @@ public CloudRouterPackage getCloudRouterPackageByCode(RouterPackageCode routerPa 500 Internal server error - */ - public ApiResponse getCloudRouterPackageByCodeWithHttpInfo(RouterPackageCode routerPackageCode) throws ApiException { + public ApiResponse getCloudRouterPackageByCodeWithHttpInfo(@javax.annotation.Nonnull RouterPackageCode routerPackageCode) throws ApiException { okhttp3.Call localVarCall = getCloudRouterPackageByCodeValidateBeforeCall(routerPackageCode, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1789,7 +1789,7 @@ public ApiResponse getCloudRouterPackageByCodeWithHttpInfo(R 500 Internal server error - */ - public okhttp3.Call getCloudRouterPackageByCodeAsync(RouterPackageCode routerPackageCode, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCloudRouterPackageByCodeAsync(@javax.annotation.Nonnull RouterPackageCode routerPackageCode, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getCloudRouterPackageByCodeValidateBeforeCall(routerPackageCode, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1814,7 +1814,7 @@ public okhttp3.Call getCloudRouterPackageByCodeAsync(RouterPackageCode routerPac 500 Internal server error - */ - public okhttp3.Call getCloudRouterPackagesCall(Integer offset, Integer limit, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCloudRouterPackagesCall(@javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1867,7 +1867,7 @@ public okhttp3.Call getCloudRouterPackagesCall(Integer offset, Integer limit, fi } @SuppressWarnings("rawtypes") - private okhttp3.Call getCloudRouterPackagesValidateBeforeCall(Integer offset, Integer limit, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getCloudRouterPackagesValidateBeforeCall(@javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit, final ApiCallback _callback) throws ApiException { return getCloudRouterPackagesCall(offset, limit, _callback); } @@ -1890,7 +1890,7 @@ private okhttp3.Call getCloudRouterPackagesValidateBeforeCall(Integer offset, In 500 Internal server error - */ - public PackageResponse getCloudRouterPackages(Integer offset, Integer limit) throws ApiException { + public PackageResponse getCloudRouterPackages(@javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit) throws ApiException { ApiResponse localVarResp = getCloudRouterPackagesWithHttpInfo(offset, limit); return localVarResp.getData(); } @@ -1913,7 +1913,7 @@ public PackageResponse getCloudRouterPackages(Integer offset, Integer limit) thr 500 Internal server error - */ - public ApiResponse getCloudRouterPackagesWithHttpInfo(Integer offset, Integer limit) throws ApiException { + public ApiResponse getCloudRouterPackagesWithHttpInfo(@javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit) throws ApiException { okhttp3.Call localVarCall = getCloudRouterPackagesValidateBeforeCall(offset, limit, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1938,7 +1938,7 @@ public ApiResponse getCloudRouterPackagesWithHttpInfo(Integer o 500 Internal server error - */ - public okhttp3.Call getCloudRouterPackagesAsync(Integer offset, Integer limit, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCloudRouterPackagesAsync(@javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getCloudRouterPackagesValidateBeforeCall(offset, limit, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1965,7 +1965,7 @@ public okhttp3.Call getCloudRouterPackagesAsync(Integer offset, Integer limit, f 500 Internal server error - */ - public okhttp3.Call searchCloudRouterCommandsCall(UUID routerId, CloudRouterCommandSearchRequest cloudRouterCommandSearchRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call searchCloudRouterCommandsCall(@javax.annotation.Nonnull UUID routerId, @javax.annotation.Nonnull CloudRouterCommandSearchRequest cloudRouterCommandSearchRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2012,7 +2012,7 @@ public okhttp3.Call searchCloudRouterCommandsCall(UUID routerId, CloudRouterComm } @SuppressWarnings("rawtypes") - private okhttp3.Call searchCloudRouterCommandsValidateBeforeCall(UUID routerId, CloudRouterCommandSearchRequest cloudRouterCommandSearchRequest, final ApiCallback _callback) throws ApiException { + private okhttp3.Call searchCloudRouterCommandsValidateBeforeCall(@javax.annotation.Nonnull UUID routerId, @javax.annotation.Nonnull CloudRouterCommandSearchRequest cloudRouterCommandSearchRequest, final ApiCallback _callback) throws ApiException { // verify the required parameter 'routerId' is set if (routerId == null) { throw new ApiException("Missing the required parameter 'routerId' when calling searchCloudRouterCommands(Async)"); @@ -2047,7 +2047,7 @@ private okhttp3.Call searchCloudRouterCommandsValidateBeforeCall(UUID routerId, 500 Internal server error - */ - public CloudRouterCommandSearchResponse searchCloudRouterCommands(UUID routerId, CloudRouterCommandSearchRequest cloudRouterCommandSearchRequest) throws ApiException { + public CloudRouterCommandSearchResponse searchCloudRouterCommands(@javax.annotation.Nonnull UUID routerId, @javax.annotation.Nonnull CloudRouterCommandSearchRequest cloudRouterCommandSearchRequest) throws ApiException { ApiResponse localVarResp = searchCloudRouterCommandsWithHttpInfo(routerId, cloudRouterCommandSearchRequest); return localVarResp.getData(); } @@ -2072,7 +2072,7 @@ public CloudRouterCommandSearchResponse searchCloudRouterCommands(UUID routerId, 500 Internal server error - */ - public ApiResponse searchCloudRouterCommandsWithHttpInfo(UUID routerId, CloudRouterCommandSearchRequest cloudRouterCommandSearchRequest) throws ApiException { + public ApiResponse searchCloudRouterCommandsWithHttpInfo(@javax.annotation.Nonnull UUID routerId, @javax.annotation.Nonnull CloudRouterCommandSearchRequest cloudRouterCommandSearchRequest) throws ApiException { okhttp3.Call localVarCall = searchCloudRouterCommandsValidateBeforeCall(routerId, cloudRouterCommandSearchRequest, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -2099,7 +2099,7 @@ public ApiResponse searchCloudRouterCommandsWi 500 Internal server error - */ - public okhttp3.Call searchCloudRouterCommandsAsync(UUID routerId, CloudRouterCommandSearchRequest cloudRouterCommandSearchRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call searchCloudRouterCommandsAsync(@javax.annotation.Nonnull UUID routerId, @javax.annotation.Nonnull CloudRouterCommandSearchRequest cloudRouterCommandSearchRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = searchCloudRouterCommandsValidateBeforeCall(routerId, cloudRouterCommandSearchRequest, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2126,7 +2126,7 @@ public okhttp3.Call searchCloudRouterCommandsAsync(UUID routerId, CloudRouterCom 500 Internal server error - */ - public okhttp3.Call searchCloudRouterRoutesCall(UUID routerId, RouteTableEntrySearchRequest routeTableEntrySearchRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call searchCloudRouterRoutesCall(@javax.annotation.Nonnull UUID routerId, @javax.annotation.Nonnull RouteTableEntrySearchRequest routeTableEntrySearchRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2173,7 +2173,7 @@ public okhttp3.Call searchCloudRouterRoutesCall(UUID routerId, RouteTableEntrySe } @SuppressWarnings("rawtypes") - private okhttp3.Call searchCloudRouterRoutesValidateBeforeCall(UUID routerId, RouteTableEntrySearchRequest routeTableEntrySearchRequest, final ApiCallback _callback) throws ApiException { + private okhttp3.Call searchCloudRouterRoutesValidateBeforeCall(@javax.annotation.Nonnull UUID routerId, @javax.annotation.Nonnull RouteTableEntrySearchRequest routeTableEntrySearchRequest, final ApiCallback _callback) throws ApiException { // verify the required parameter 'routerId' is set if (routerId == null) { throw new ApiException("Missing the required parameter 'routerId' when calling searchCloudRouterRoutes(Async)"); @@ -2208,7 +2208,7 @@ private okhttp3.Call searchCloudRouterRoutesValidateBeforeCall(UUID routerId, Ro 500 Internal server error - */ - public RouteTableEntrySearchResponse searchCloudRouterRoutes(UUID routerId, RouteTableEntrySearchRequest routeTableEntrySearchRequest) throws ApiException { + public RouteTableEntrySearchResponse searchCloudRouterRoutes(@javax.annotation.Nonnull UUID routerId, @javax.annotation.Nonnull RouteTableEntrySearchRequest routeTableEntrySearchRequest) throws ApiException { ApiResponse localVarResp = searchCloudRouterRoutesWithHttpInfo(routerId, routeTableEntrySearchRequest); return localVarResp.getData(); } @@ -2233,7 +2233,7 @@ public RouteTableEntrySearchResponse searchCloudRouterRoutes(UUID routerId, Rout 500 Internal server error - */ - public ApiResponse searchCloudRouterRoutesWithHttpInfo(UUID routerId, RouteTableEntrySearchRequest routeTableEntrySearchRequest) throws ApiException { + public ApiResponse searchCloudRouterRoutesWithHttpInfo(@javax.annotation.Nonnull UUID routerId, @javax.annotation.Nonnull RouteTableEntrySearchRequest routeTableEntrySearchRequest) throws ApiException { okhttp3.Call localVarCall = searchCloudRouterRoutesValidateBeforeCall(routerId, routeTableEntrySearchRequest, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -2260,7 +2260,7 @@ public ApiResponse searchCloudRouterRoutesWithHtt 500 Internal server error - */ - public okhttp3.Call searchCloudRouterRoutesAsync(UUID routerId, RouteTableEntrySearchRequest routeTableEntrySearchRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call searchCloudRouterRoutesAsync(@javax.annotation.Nonnull UUID routerId, @javax.annotation.Nonnull RouteTableEntrySearchRequest routeTableEntrySearchRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = searchCloudRouterRoutesValidateBeforeCall(routerId, routeTableEntrySearchRequest, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2285,7 +2285,7 @@ public okhttp3.Call searchCloudRouterRoutesAsync(UUID routerId, RouteTableEntryS 500 Internal server error - */ - public okhttp3.Call searchCloudRoutersCall(CloudRouterSearchRequest cloudRouterSearchRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call searchCloudRoutersCall(@javax.annotation.Nonnull CloudRouterSearchRequest cloudRouterSearchRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2331,7 +2331,7 @@ public okhttp3.Call searchCloudRoutersCall(CloudRouterSearchRequest cloudRouterS } @SuppressWarnings("rawtypes") - private okhttp3.Call searchCloudRoutersValidateBeforeCall(CloudRouterSearchRequest cloudRouterSearchRequest, final ApiCallback _callback) throws ApiException { + private okhttp3.Call searchCloudRoutersValidateBeforeCall(@javax.annotation.Nonnull CloudRouterSearchRequest cloudRouterSearchRequest, final ApiCallback _callback) throws ApiException { // verify the required parameter 'cloudRouterSearchRequest' is set if (cloudRouterSearchRequest == null) { throw new ApiException("Missing the required parameter 'cloudRouterSearchRequest' when calling searchCloudRouters(Async)"); @@ -2359,7 +2359,7 @@ private okhttp3.Call searchCloudRoutersValidateBeforeCall(CloudRouterSearchReque 500 Internal server error - */ - public SearchResponse searchCloudRouters(CloudRouterSearchRequest cloudRouterSearchRequest) throws ApiException { + public SearchResponse searchCloudRouters(@javax.annotation.Nonnull CloudRouterSearchRequest cloudRouterSearchRequest) throws ApiException { ApiResponse localVarResp = searchCloudRoutersWithHttpInfo(cloudRouterSearchRequest); return localVarResp.getData(); } @@ -2382,7 +2382,7 @@ public SearchResponse searchCloudRouters(CloudRouterSearchRequest cloudRouterSea 500 Internal server error - */ - public ApiResponse searchCloudRoutersWithHttpInfo(CloudRouterSearchRequest cloudRouterSearchRequest) throws ApiException { + public ApiResponse searchCloudRoutersWithHttpInfo(@javax.annotation.Nonnull CloudRouterSearchRequest cloudRouterSearchRequest) throws ApiException { okhttp3.Call localVarCall = searchCloudRoutersValidateBeforeCall(cloudRouterSearchRequest, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -2407,7 +2407,7 @@ public ApiResponse searchCloudRoutersWithHttpInfo(CloudRouterSea 500 Internal server error - */ - public okhttp3.Call searchCloudRoutersAsync(CloudRouterSearchRequest cloudRouterSearchRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call searchCloudRoutersAsync(@javax.annotation.Nonnull CloudRouterSearchRequest cloudRouterSearchRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = searchCloudRoutersValidateBeforeCall(cloudRouterSearchRequest, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2432,7 +2432,7 @@ public okhttp3.Call searchCloudRoutersAsync(CloudRouterSearchRequest cloudRouter 404 Not Found - */ - public okhttp3.Call searchConnectionAdvertisedRoutesCall(String connectionId, ConnectionRouteSearchRequest connectionRouteSearchRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call searchConnectionAdvertisedRoutesCall(@javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull ConnectionRouteSearchRequest connectionRouteSearchRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2479,7 +2479,7 @@ public okhttp3.Call searchConnectionAdvertisedRoutesCall(String connectionId, Co } @SuppressWarnings("rawtypes") - private okhttp3.Call searchConnectionAdvertisedRoutesValidateBeforeCall(String connectionId, ConnectionRouteSearchRequest connectionRouteSearchRequest, final ApiCallback _callback) throws ApiException { + private okhttp3.Call searchConnectionAdvertisedRoutesValidateBeforeCall(@javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull ConnectionRouteSearchRequest connectionRouteSearchRequest, final ApiCallback _callback) throws ApiException { // verify the required parameter 'connectionId' is set if (connectionId == null) { throw new ApiException("Missing the required parameter 'connectionId' when calling searchConnectionAdvertisedRoutes(Async)"); @@ -2512,7 +2512,7 @@ private okhttp3.Call searchConnectionAdvertisedRoutesValidateBeforeCall(String c 404 Not Found - */ - public ConnectionRouteTableEntrySearchResponse searchConnectionAdvertisedRoutes(String connectionId, ConnectionRouteSearchRequest connectionRouteSearchRequest) throws ApiException { + public ConnectionRouteTableEntrySearchResponse searchConnectionAdvertisedRoutes(@javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull ConnectionRouteSearchRequest connectionRouteSearchRequest) throws ApiException { ApiResponse localVarResp = searchConnectionAdvertisedRoutesWithHttpInfo(connectionId, connectionRouteSearchRequest); return localVarResp.getData(); } @@ -2535,7 +2535,7 @@ public ConnectionRouteTableEntrySearchResponse searchConnectionAdvertisedRoutes( 404 Not Found - */ - public ApiResponse searchConnectionAdvertisedRoutesWithHttpInfo(String connectionId, ConnectionRouteSearchRequest connectionRouteSearchRequest) throws ApiException { + public ApiResponse searchConnectionAdvertisedRoutesWithHttpInfo(@javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull ConnectionRouteSearchRequest connectionRouteSearchRequest) throws ApiException { okhttp3.Call localVarCall = searchConnectionAdvertisedRoutesValidateBeforeCall(connectionId, connectionRouteSearchRequest, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -2560,7 +2560,7 @@ public ApiResponse searchConnectionAdve 404 Not Found - */ - public okhttp3.Call searchConnectionAdvertisedRoutesAsync(String connectionId, ConnectionRouteSearchRequest connectionRouteSearchRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call searchConnectionAdvertisedRoutesAsync(@javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull ConnectionRouteSearchRequest connectionRouteSearchRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = searchConnectionAdvertisedRoutesValidateBeforeCall(connectionId, connectionRouteSearchRequest, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2585,7 +2585,7 @@ public okhttp3.Call searchConnectionAdvertisedRoutesAsync(String connectionId, C 404 Not Found - */ - public okhttp3.Call searchConnectionReceivedRoutesCall(String connectionId, ConnectionRouteSearchRequest connectionRouteSearchRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call searchConnectionReceivedRoutesCall(@javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull ConnectionRouteSearchRequest connectionRouteSearchRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2632,7 +2632,7 @@ public okhttp3.Call searchConnectionReceivedRoutesCall(String connectionId, Conn } @SuppressWarnings("rawtypes") - private okhttp3.Call searchConnectionReceivedRoutesValidateBeforeCall(String connectionId, ConnectionRouteSearchRequest connectionRouteSearchRequest, final ApiCallback _callback) throws ApiException { + private okhttp3.Call searchConnectionReceivedRoutesValidateBeforeCall(@javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull ConnectionRouteSearchRequest connectionRouteSearchRequest, final ApiCallback _callback) throws ApiException { // verify the required parameter 'connectionId' is set if (connectionId == null) { throw new ApiException("Missing the required parameter 'connectionId' when calling searchConnectionReceivedRoutes(Async)"); @@ -2665,7 +2665,7 @@ private okhttp3.Call searchConnectionReceivedRoutesValidateBeforeCall(String con 404 Not Found - */ - public ConnectionRouteTableEntrySearchResponse searchConnectionReceivedRoutes(String connectionId, ConnectionRouteSearchRequest connectionRouteSearchRequest) throws ApiException { + public ConnectionRouteTableEntrySearchResponse searchConnectionReceivedRoutes(@javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull ConnectionRouteSearchRequest connectionRouteSearchRequest) throws ApiException { ApiResponse localVarResp = searchConnectionReceivedRoutesWithHttpInfo(connectionId, connectionRouteSearchRequest); return localVarResp.getData(); } @@ -2688,7 +2688,7 @@ public ConnectionRouteTableEntrySearchResponse searchConnectionReceivedRoutes(St 404 Not Found - */ - public ApiResponse searchConnectionReceivedRoutesWithHttpInfo(String connectionId, ConnectionRouteSearchRequest connectionRouteSearchRequest) throws ApiException { + public ApiResponse searchConnectionReceivedRoutesWithHttpInfo(@javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull ConnectionRouteSearchRequest connectionRouteSearchRequest) throws ApiException { okhttp3.Call localVarCall = searchConnectionReceivedRoutesValidateBeforeCall(connectionId, connectionRouteSearchRequest, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -2713,7 +2713,7 @@ public ApiResponse searchConnectionRece 404 Not Found - */ - public okhttp3.Call searchConnectionReceivedRoutesAsync(String connectionId, ConnectionRouteSearchRequest connectionRouteSearchRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call searchConnectionReceivedRoutesAsync(@javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull ConnectionRouteSearchRequest connectionRouteSearchRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = searchConnectionReceivedRoutesValidateBeforeCall(connectionId, connectionRouteSearchRequest, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2740,7 +2740,7 @@ public okhttp3.Call searchConnectionReceivedRoutesAsync(String connectionId, Con 500 Internal server error - */ - public okhttp3.Call searchRouterActionsCall(UUID routerId, CloudRouterActionsSearchRequest cloudRouterActionsSearchRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call searchRouterActionsCall(@javax.annotation.Nonnull UUID routerId, @javax.annotation.Nonnull CloudRouterActionsSearchRequest cloudRouterActionsSearchRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2787,7 +2787,7 @@ public okhttp3.Call searchRouterActionsCall(UUID routerId, CloudRouterActionsSea } @SuppressWarnings("rawtypes") - private okhttp3.Call searchRouterActionsValidateBeforeCall(UUID routerId, CloudRouterActionsSearchRequest cloudRouterActionsSearchRequest, final ApiCallback _callback) throws ApiException { + private okhttp3.Call searchRouterActionsValidateBeforeCall(@javax.annotation.Nonnull UUID routerId, @javax.annotation.Nonnull CloudRouterActionsSearchRequest cloudRouterActionsSearchRequest, final ApiCallback _callback) throws ApiException { // verify the required parameter 'routerId' is set if (routerId == null) { throw new ApiException("Missing the required parameter 'routerId' when calling searchRouterActions(Async)"); @@ -2822,7 +2822,7 @@ private okhttp3.Call searchRouterActionsValidateBeforeCall(UUID routerId, CloudR 500 Internal server error - */ - public CloudRouterActionsSearchResponse searchRouterActions(UUID routerId, CloudRouterActionsSearchRequest cloudRouterActionsSearchRequest) throws ApiException { + public CloudRouterActionsSearchResponse searchRouterActions(@javax.annotation.Nonnull UUID routerId, @javax.annotation.Nonnull CloudRouterActionsSearchRequest cloudRouterActionsSearchRequest) throws ApiException { ApiResponse localVarResp = searchRouterActionsWithHttpInfo(routerId, cloudRouterActionsSearchRequest); return localVarResp.getData(); } @@ -2847,7 +2847,7 @@ public CloudRouterActionsSearchResponse searchRouterActions(UUID routerId, Cloud 500 Internal server error - */ - public ApiResponse searchRouterActionsWithHttpInfo(UUID routerId, CloudRouterActionsSearchRequest cloudRouterActionsSearchRequest) throws ApiException { + public ApiResponse searchRouterActionsWithHttpInfo(@javax.annotation.Nonnull UUID routerId, @javax.annotation.Nonnull CloudRouterActionsSearchRequest cloudRouterActionsSearchRequest) throws ApiException { okhttp3.Call localVarCall = searchRouterActionsValidateBeforeCall(routerId, cloudRouterActionsSearchRequest, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -2874,7 +2874,7 @@ public ApiResponse searchRouterActionsWithHttp 500 Internal server error - */ - public okhttp3.Call searchRouterActionsAsync(UUID routerId, CloudRouterActionsSearchRequest cloudRouterActionsSearchRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call searchRouterActionsAsync(@javax.annotation.Nonnull UUID routerId, @javax.annotation.Nonnull CloudRouterActionsSearchRequest cloudRouterActionsSearchRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = searchRouterActionsValidateBeforeCall(routerId, cloudRouterActionsSearchRequest, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2901,7 +2901,7 @@ public okhttp3.Call searchRouterActionsAsync(UUID routerId, CloudRouterActionsSe 500 Internal server error - */ - public okhttp3.Call updateCloudRouterByUuidCall(UUID routerId, List cloudRouterChangeOperation, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateCloudRouterByUuidCall(@javax.annotation.Nonnull UUID routerId, @javax.annotation.Nonnull List cloudRouterChangeOperation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2948,7 +2948,7 @@ public okhttp3.Call updateCloudRouterByUuidCall(UUID routerId, List cloudRouterChangeOperation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updateCloudRouterByUuidValidateBeforeCall(@javax.annotation.Nonnull UUID routerId, @javax.annotation.Nonnull List cloudRouterChangeOperation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'routerId' is set if (routerId == null) { throw new ApiException("Missing the required parameter 'routerId' when calling updateCloudRouterByUuid(Async)"); @@ -2983,7 +2983,7 @@ private okhttp3.Call updateCloudRouterByUuidValidateBeforeCall(UUID routerId, Li 500 Internal server error - */ - public CloudRouter updateCloudRouterByUuid(UUID routerId, List cloudRouterChangeOperation) throws ApiException { + public CloudRouter updateCloudRouterByUuid(@javax.annotation.Nonnull UUID routerId, @javax.annotation.Nonnull List cloudRouterChangeOperation) throws ApiException { ApiResponse localVarResp = updateCloudRouterByUuidWithHttpInfo(routerId, cloudRouterChangeOperation); return localVarResp.getData(); } @@ -3008,7 +3008,7 @@ public CloudRouter updateCloudRouterByUuid(UUID routerId, List 500 Internal server error - */ - public ApiResponse updateCloudRouterByUuidWithHttpInfo(UUID routerId, List cloudRouterChangeOperation) throws ApiException { + public ApiResponse updateCloudRouterByUuidWithHttpInfo(@javax.annotation.Nonnull UUID routerId, @javax.annotation.Nonnull List cloudRouterChangeOperation) throws ApiException { okhttp3.Call localVarCall = updateCloudRouterByUuidValidateBeforeCall(routerId, cloudRouterChangeOperation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -3035,7 +3035,7 @@ public ApiResponse updateCloudRouterByUuidWithHttpInfo(UUID routerI 500 Internal server error - */ - public okhttp3.Call updateCloudRouterByUuidAsync(UUID routerId, List cloudRouterChangeOperation, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateCloudRouterByUuidAsync(@javax.annotation.Nonnull UUID routerId, @javax.annotation.Nonnull List cloudRouterChangeOperation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateCloudRouterByUuidValidateBeforeCall(routerId, cloudRouterChangeOperation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/ConnectionsApi.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/ConnectionsApi.java index 7ad1994b..8645da45 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/ConnectionsApi.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/ConnectionsApi.java @@ -99,7 +99,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 405 Method not allowed - */ - public okhttp3.Call createConnectionCall(ConnectionPostRequest connectionPostRequest, Boolean dryRun, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createConnectionCall(@javax.annotation.Nonnull ConnectionPostRequest connectionPostRequest, @javax.annotation.Nullable Boolean dryRun, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -149,7 +149,7 @@ public okhttp3.Call createConnectionCall(ConnectionPostRequest connectionPostReq } @SuppressWarnings("rawtypes") - private okhttp3.Call createConnectionValidateBeforeCall(ConnectionPostRequest connectionPostRequest, Boolean dryRun, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createConnectionValidateBeforeCall(@javax.annotation.Nonnull ConnectionPostRequest connectionPostRequest, @javax.annotation.Nullable Boolean dryRun, final ApiCallback _callback) throws ApiException { // verify the required parameter 'connectionPostRequest' is set if (connectionPostRequest == null) { throw new ApiException("Missing the required parameter 'connectionPostRequest' when calling createConnection(Async)"); @@ -178,7 +178,7 @@ private okhttp3.Call createConnectionValidateBeforeCall(ConnectionPostRequest co 405 Method not allowed - */ - public Connection createConnection(ConnectionPostRequest connectionPostRequest, Boolean dryRun) throws ApiException { + public Connection createConnection(@javax.annotation.Nonnull ConnectionPostRequest connectionPostRequest, @javax.annotation.Nullable Boolean dryRun) throws ApiException { ApiResponse localVarResp = createConnectionWithHttpInfo(connectionPostRequest, dryRun); return localVarResp.getData(); } @@ -202,7 +202,7 @@ public Connection createConnection(ConnectionPostRequest connectionPostRequest, 405 Method not allowed - */ - public ApiResponse createConnectionWithHttpInfo(ConnectionPostRequest connectionPostRequest, Boolean dryRun) throws ApiException { + public ApiResponse createConnectionWithHttpInfo(@javax.annotation.Nonnull ConnectionPostRequest connectionPostRequest, @javax.annotation.Nullable Boolean dryRun) throws ApiException { okhttp3.Call localVarCall = createConnectionValidateBeforeCall(connectionPostRequest, dryRun, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -228,7 +228,7 @@ public ApiResponse createConnectionWithHttpInfo(ConnectionPostReques 405 Method not allowed - */ - public okhttp3.Call createConnectionAsync(ConnectionPostRequest connectionPostRequest, Boolean dryRun, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createConnectionAsync(@javax.annotation.Nonnull ConnectionPostRequest connectionPostRequest, @javax.annotation.Nullable Boolean dryRun, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createConnectionValidateBeforeCall(connectionPostRequest, dryRun, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -253,7 +253,7 @@ public okhttp3.Call createConnectionAsync(ConnectionPostRequest connectionPostRe 404 Not Found - */ - public okhttp3.Call createConnectionActionCall(String connectionId, ConnectionActionRequest connectionActionRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createConnectionActionCall(@javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull ConnectionActionRequest connectionActionRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -300,7 +300,7 @@ public okhttp3.Call createConnectionActionCall(String connectionId, ConnectionAc } @SuppressWarnings("rawtypes") - private okhttp3.Call createConnectionActionValidateBeforeCall(String connectionId, ConnectionActionRequest connectionActionRequest, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createConnectionActionValidateBeforeCall(@javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull ConnectionActionRequest connectionActionRequest, final ApiCallback _callback) throws ApiException { // verify the required parameter 'connectionId' is set if (connectionId == null) { throw new ApiException("Missing the required parameter 'connectionId' when calling createConnectionAction(Async)"); @@ -333,7 +333,7 @@ private okhttp3.Call createConnectionActionValidateBeforeCall(String connectionI 404 Not Found - */ - public ConnectionAction createConnectionAction(String connectionId, ConnectionActionRequest connectionActionRequest) throws ApiException { + public ConnectionAction createConnectionAction(@javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull ConnectionActionRequest connectionActionRequest) throws ApiException { ApiResponse localVarResp = createConnectionActionWithHttpInfo(connectionId, connectionActionRequest); return localVarResp.getData(); } @@ -356,7 +356,7 @@ public ConnectionAction createConnectionAction(String connectionId, ConnectionAc 404 Not Found - */ - public ApiResponse createConnectionActionWithHttpInfo(String connectionId, ConnectionActionRequest connectionActionRequest) throws ApiException { + public ApiResponse createConnectionActionWithHttpInfo(@javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull ConnectionActionRequest connectionActionRequest) throws ApiException { okhttp3.Call localVarCall = createConnectionActionValidateBeforeCall(connectionId, connectionActionRequest, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -381,7 +381,7 @@ public ApiResponse createConnectionActionWithHttpInfo(String c 404 Not Found - */ - public okhttp3.Call createConnectionActionAsync(String connectionId, ConnectionActionRequest connectionActionRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createConnectionActionAsync(@javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull ConnectionActionRequest connectionActionRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createConnectionActionValidateBeforeCall(connectionId, connectionActionRequest, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -406,7 +406,7 @@ public okhttp3.Call createConnectionActionAsync(String connectionId, ConnectionA 405 Method not allowed - */ - public okhttp3.Call deleteConnectionByUuidCall(String connectionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteConnectionByUuidCall(@javax.annotation.Nonnull String connectionId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -452,7 +452,7 @@ public okhttp3.Call deleteConnectionByUuidCall(String connectionId, final ApiCal } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteConnectionByUuidValidateBeforeCall(String connectionId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteConnectionByUuidValidateBeforeCall(@javax.annotation.Nonnull String connectionId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'connectionId' is set if (connectionId == null) { throw new ApiException("Missing the required parameter 'connectionId' when calling deleteConnectionByUuid(Async)"); @@ -480,7 +480,7 @@ private okhttp3.Call deleteConnectionByUuidValidateBeforeCall(String connectionI 405 Method not allowed - */ - public Connection deleteConnectionByUuid(String connectionId) throws ApiException { + public Connection deleteConnectionByUuid(@javax.annotation.Nonnull String connectionId) throws ApiException { ApiResponse localVarResp = deleteConnectionByUuidWithHttpInfo(connectionId); return localVarResp.getData(); } @@ -503,7 +503,7 @@ public Connection deleteConnectionByUuid(String connectionId) throws ApiExceptio 405 Method not allowed - */ - public ApiResponse deleteConnectionByUuidWithHttpInfo(String connectionId) throws ApiException { + public ApiResponse deleteConnectionByUuidWithHttpInfo(@javax.annotation.Nonnull String connectionId) throws ApiException { okhttp3.Call localVarCall = deleteConnectionByUuidValidateBeforeCall(connectionId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -528,7 +528,7 @@ public ApiResponse deleteConnectionByUuidWithHttpInfo(String connect 405 Method not allowed - */ - public okhttp3.Call deleteConnectionByUuidAsync(String connectionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteConnectionByUuidAsync(@javax.annotation.Nonnull String connectionId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteConnectionByUuidValidateBeforeCall(connectionId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -552,7 +552,7 @@ public okhttp3.Call deleteConnectionByUuidAsync(String connectionId, final ApiCa 404 Not Found - */ - public okhttp3.Call getConnectionByUuidCall(String connectionId, ConnectionDirection direction, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getConnectionByUuidCall(@javax.annotation.Nonnull String connectionId, @javax.annotation.Nullable ConnectionDirection direction, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -602,7 +602,7 @@ public okhttp3.Call getConnectionByUuidCall(String connectionId, ConnectionDirec } @SuppressWarnings("rawtypes") - private okhttp3.Call getConnectionByUuidValidateBeforeCall(String connectionId, ConnectionDirection direction, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getConnectionByUuidValidateBeforeCall(@javax.annotation.Nonnull String connectionId, @javax.annotation.Nullable ConnectionDirection direction, final ApiCallback _callback) throws ApiException { // verify the required parameter 'connectionId' is set if (connectionId == null) { throw new ApiException("Missing the required parameter 'connectionId' when calling getConnectionByUuid(Async)"); @@ -629,7 +629,7 @@ private okhttp3.Call getConnectionByUuidValidateBeforeCall(String connectionId, 404 Not Found - */ - public Connection getConnectionByUuid(String connectionId, ConnectionDirection direction) throws ApiException { + public Connection getConnectionByUuid(@javax.annotation.Nonnull String connectionId, @javax.annotation.Nullable ConnectionDirection direction) throws ApiException { ApiResponse localVarResp = getConnectionByUuidWithHttpInfo(connectionId, direction); return localVarResp.getData(); } @@ -651,7 +651,7 @@ public Connection getConnectionByUuid(String connectionId, ConnectionDirection d 404 Not Found - */ - public ApiResponse getConnectionByUuidWithHttpInfo(String connectionId, ConnectionDirection direction) throws ApiException { + public ApiResponse getConnectionByUuidWithHttpInfo(@javax.annotation.Nonnull String connectionId, @javax.annotation.Nullable ConnectionDirection direction) throws ApiException { okhttp3.Call localVarCall = getConnectionByUuidValidateBeforeCall(connectionId, direction, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -675,7 +675,7 @@ public ApiResponse getConnectionByUuidWithHttpInfo(String connection 404 Not Found - */ - public okhttp3.Call getConnectionByUuidAsync(String connectionId, ConnectionDirection direction, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getConnectionByUuidAsync(@javax.annotation.Nonnull String connectionId, @javax.annotation.Nullable ConnectionDirection direction, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getConnectionByUuidValidateBeforeCall(connectionId, direction, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -699,7 +699,7 @@ public okhttp3.Call getConnectionByUuidAsync(String connectionId, ConnectionDire 404 Not Found - */ - public okhttp3.Call searchConnectionsCall(SearchRequest searchRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call searchConnectionsCall(@javax.annotation.Nonnull SearchRequest searchRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -745,7 +745,7 @@ public okhttp3.Call searchConnectionsCall(SearchRequest searchRequest, final Api } @SuppressWarnings("rawtypes") - private okhttp3.Call searchConnectionsValidateBeforeCall(SearchRequest searchRequest, final ApiCallback _callback) throws ApiException { + private okhttp3.Call searchConnectionsValidateBeforeCall(@javax.annotation.Nonnull SearchRequest searchRequest, final ApiCallback _callback) throws ApiException { // verify the required parameter 'searchRequest' is set if (searchRequest == null) { throw new ApiException("Missing the required parameter 'searchRequest' when calling searchConnections(Async)"); @@ -772,7 +772,7 @@ private okhttp3.Call searchConnectionsValidateBeforeCall(SearchRequest searchReq 404 Not Found - */ - public ConnectionSearchResponse searchConnections(SearchRequest searchRequest) throws ApiException { + public ConnectionSearchResponse searchConnections(@javax.annotation.Nonnull SearchRequest searchRequest) throws ApiException { ApiResponse localVarResp = searchConnectionsWithHttpInfo(searchRequest); return localVarResp.getData(); } @@ -794,7 +794,7 @@ public ConnectionSearchResponse searchConnections(SearchRequest searchRequest) t 404 Not Found - */ - public ApiResponse searchConnectionsWithHttpInfo(SearchRequest searchRequest) throws ApiException { + public ApiResponse searchConnectionsWithHttpInfo(@javax.annotation.Nonnull SearchRequest searchRequest) throws ApiException { okhttp3.Call localVarCall = searchConnectionsValidateBeforeCall(searchRequest, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -818,7 +818,7 @@ public ApiResponse searchConnectionsWithHttpInfo(Searc 404 Not Found - */ - public okhttp3.Call searchConnectionsAsync(SearchRequest searchRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call searchConnectionsAsync(@javax.annotation.Nonnull SearchRequest searchRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = searchConnectionsValidateBeforeCall(searchRequest, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -845,7 +845,7 @@ public okhttp3.Call searchConnectionsAsync(SearchRequest searchRequest, final Ap 404 Not Found - */ - public okhttp3.Call updateConnectionByUuidCall(String connectionId, List connectionChangeOperation, Boolean dryRun, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateConnectionByUuidCall(@javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull List connectionChangeOperation, @javax.annotation.Nullable Boolean dryRun, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -896,7 +896,7 @@ public okhttp3.Call updateConnectionByUuidCall(String connectionId, List connectionChangeOperation, Boolean dryRun, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updateConnectionByUuidValidateBeforeCall(@javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull List connectionChangeOperation, @javax.annotation.Nullable Boolean dryRun, final ApiCallback _callback) throws ApiException { // verify the required parameter 'connectionId' is set if (connectionId == null) { throw new ApiException("Missing the required parameter 'connectionId' when calling updateConnectionByUuid(Async)"); @@ -931,7 +931,7 @@ private okhttp3.Call updateConnectionByUuidValidateBeforeCall(String connectionI 404 Not Found - */ - public Connection updateConnectionByUuid(String connectionId, List connectionChangeOperation, Boolean dryRun) throws ApiException { + public Connection updateConnectionByUuid(@javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull List connectionChangeOperation, @javax.annotation.Nullable Boolean dryRun) throws ApiException { ApiResponse localVarResp = updateConnectionByUuidWithHttpInfo(connectionId, connectionChangeOperation, dryRun); return localVarResp.getData(); } @@ -956,7 +956,7 @@ public Connection updateConnectionByUuid(String connectionId, List 404 Not Found - */ - public ApiResponse updateConnectionByUuidWithHttpInfo(String connectionId, List connectionChangeOperation, Boolean dryRun) throws ApiException { + public ApiResponse updateConnectionByUuidWithHttpInfo(@javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull List connectionChangeOperation, @javax.annotation.Nullable Boolean dryRun) throws ApiException { okhttp3.Call localVarCall = updateConnectionByUuidValidateBeforeCall(connectionId, connectionChangeOperation, dryRun, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -983,7 +983,7 @@ public ApiResponse updateConnectionByUuidWithHttpInfo(String connect 404 Not Found - */ - public okhttp3.Call updateConnectionByUuidAsync(String connectionId, List connectionChangeOperation, Boolean dryRun, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateConnectionByUuidAsync(@javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull List connectionChangeOperation, @javax.annotation.Nullable Boolean dryRun, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateConnectionByUuidValidateBeforeCall(connectionId, connectionChangeOperation, dryRun, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1004,7 +1004,7 @@ public okhttp3.Call updateConnectionByUuidAsync(String connectionId, List 400 Bad request - */ - public okhttp3.Call validateConnectionsCall(ValidateRequest validateRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call validateConnectionsCall(@javax.annotation.Nonnull ValidateRequest validateRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1050,7 +1050,7 @@ public okhttp3.Call validateConnectionsCall(ValidateRequest validateRequest, fin } @SuppressWarnings("rawtypes") - private okhttp3.Call validateConnectionsValidateBeforeCall(ValidateRequest validateRequest, final ApiCallback _callback) throws ApiException { + private okhttp3.Call validateConnectionsValidateBeforeCall(@javax.annotation.Nonnull ValidateRequest validateRequest, final ApiCallback _callback) throws ApiException { // verify the required parameter 'validateRequest' is set if (validateRequest == null) { throw new ApiException("Missing the required parameter 'validateRequest' when calling validateConnections(Async)"); @@ -1074,7 +1074,7 @@ private okhttp3.Call validateConnectionsValidateBeforeCall(ValidateRequest valid 400 Bad request - */ - public ConnectionResponse validateConnections(ValidateRequest validateRequest) throws ApiException { + public ConnectionResponse validateConnections(@javax.annotation.Nonnull ValidateRequest validateRequest) throws ApiException { ApiResponse localVarResp = validateConnectionsWithHttpInfo(validateRequest); return localVarResp.getData(); } @@ -1093,7 +1093,7 @@ public ConnectionResponse validateConnections(ValidateRequest validateRequest) t 400 Bad request - */ - public ApiResponse validateConnectionsWithHttpInfo(ValidateRequest validateRequest) throws ApiException { + public ApiResponse validateConnectionsWithHttpInfo(@javax.annotation.Nonnull ValidateRequest validateRequest) throws ApiException { okhttp3.Call localVarCall = validateConnectionsValidateBeforeCall(validateRequest, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1114,7 +1114,7 @@ public ApiResponse validateConnectionsWithHttpInfo(ValidateR 400 Bad request - */ - public okhttp3.Call validateConnectionsAsync(ValidateRequest validateRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call validateConnectionsAsync(@javax.annotation.Nonnull ValidateRequest validateRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = validateConnectionsValidateBeforeCall(validateRequest, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/MarketplaceSubscriptionsApi.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/MarketplaceSubscriptionsApi.java index b8542c24..6018f835 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/MarketplaceSubscriptionsApi.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/MarketplaceSubscriptionsApi.java @@ -89,7 +89,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 500 Internal server error - */ - public okhttp3.Call getSubscriptionByIdCall(UUID subscriptionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getSubscriptionByIdCall(@javax.annotation.Nonnull UUID subscriptionId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -135,7 +135,7 @@ public okhttp3.Call getSubscriptionByIdCall(UUID subscriptionId, final ApiCallba } @SuppressWarnings("rawtypes") - private okhttp3.Call getSubscriptionByIdValidateBeforeCall(UUID subscriptionId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getSubscriptionByIdValidateBeforeCall(@javax.annotation.Nonnull UUID subscriptionId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'subscriptionId' is set if (subscriptionId == null) { throw new ApiException("Missing the required parameter 'subscriptionId' when calling getSubscriptionById(Async)"); @@ -162,7 +162,7 @@ private okhttp3.Call getSubscriptionByIdValidateBeforeCall(UUID subscriptionId, 500 Internal server error - */ - public SubscriptionResponse getSubscriptionById(UUID subscriptionId) throws ApiException { + public SubscriptionResponse getSubscriptionById(@javax.annotation.Nonnull UUID subscriptionId) throws ApiException { ApiResponse localVarResp = getSubscriptionByIdWithHttpInfo(subscriptionId); return localVarResp.getData(); } @@ -184,7 +184,7 @@ public SubscriptionResponse getSubscriptionById(UUID subscriptionId) throws ApiE 500 Internal server error - */ - public ApiResponse getSubscriptionByIdWithHttpInfo(UUID subscriptionId) throws ApiException { + public ApiResponse getSubscriptionByIdWithHttpInfo(@javax.annotation.Nonnull UUID subscriptionId) throws ApiException { okhttp3.Call localVarCall = getSubscriptionByIdValidateBeforeCall(subscriptionId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -208,7 +208,7 @@ public ApiResponse getSubscriptionByIdWithHttpInfo(UUID su 500 Internal server error - */ - public okhttp3.Call getSubscriptionByIdAsync(UUID subscriptionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getSubscriptionByIdAsync(@javax.annotation.Nonnull UUID subscriptionId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getSubscriptionByIdValidateBeforeCall(subscriptionId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/MetricsApi.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/MetricsApi.java index e3f9a456..64ff7318 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/MetricsApi.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/MetricsApi.java @@ -98,7 +98,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 500 Internal server error - */ - public okhttp3.Call getMetricByAssetIdCall(MetricAssetType asset, UUID assetId, String name, OffsetDateTime fromDateTime, OffsetDateTime toDateTime, Integer offset, Integer limit, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getMetricByAssetIdCall(@javax.annotation.Nonnull MetricAssetType asset, @javax.annotation.Nonnull UUID assetId, @javax.annotation.Nonnull String name, @javax.annotation.Nullable OffsetDateTime fromDateTime, @javax.annotation.Nullable OffsetDateTime toDateTime, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -165,7 +165,7 @@ public okhttp3.Call getMetricByAssetIdCall(MetricAssetType asset, UUID assetId, } @SuppressWarnings("rawtypes") - private okhttp3.Call getMetricByAssetIdValidateBeforeCall(MetricAssetType asset, UUID assetId, String name, OffsetDateTime fromDateTime, OffsetDateTime toDateTime, Integer offset, Integer limit, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getMetricByAssetIdValidateBeforeCall(@javax.annotation.Nonnull MetricAssetType asset, @javax.annotation.Nonnull UUID assetId, @javax.annotation.Nonnull String name, @javax.annotation.Nullable OffsetDateTime fromDateTime, @javax.annotation.Nullable OffsetDateTime toDateTime, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit, final ApiCallback _callback) throws ApiException { // verify the required parameter 'asset' is set if (asset == null) { throw new ApiException("Missing the required parameter 'asset' when calling getMetricByAssetId(Async)"); @@ -208,7 +208,7 @@ private okhttp3.Call getMetricByAssetIdValidateBeforeCall(MetricAssetType asset, 500 Internal server error - */ - public GetMetricsByAssetResponse getMetricByAssetId(MetricAssetType asset, UUID assetId, String name, OffsetDateTime fromDateTime, OffsetDateTime toDateTime, Integer offset, Integer limit) throws ApiException { + public GetMetricsByAssetResponse getMetricByAssetId(@javax.annotation.Nonnull MetricAssetType asset, @javax.annotation.Nonnull UUID assetId, @javax.annotation.Nonnull String name, @javax.annotation.Nullable OffsetDateTime fromDateTime, @javax.annotation.Nullable OffsetDateTime toDateTime, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit) throws ApiException { ApiResponse localVarResp = getMetricByAssetIdWithHttpInfo(asset, assetId, name, fromDateTime, toDateTime, offset, limit); return localVarResp.getData(); } @@ -236,7 +236,7 @@ public GetMetricsByAssetResponse getMetricByAssetId(MetricAssetType asset, UUID 500 Internal server error - */ - public ApiResponse getMetricByAssetIdWithHttpInfo(MetricAssetType asset, UUID assetId, String name, OffsetDateTime fromDateTime, OffsetDateTime toDateTime, Integer offset, Integer limit) throws ApiException { + public ApiResponse getMetricByAssetIdWithHttpInfo(@javax.annotation.Nonnull MetricAssetType asset, @javax.annotation.Nonnull UUID assetId, @javax.annotation.Nonnull String name, @javax.annotation.Nullable OffsetDateTime fromDateTime, @javax.annotation.Nullable OffsetDateTime toDateTime, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit) throws ApiException { okhttp3.Call localVarCall = getMetricByAssetIdValidateBeforeCall(asset, assetId, name, fromDateTime, toDateTime, offset, limit, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -266,7 +266,7 @@ public ApiResponse getMetricByAssetIdWithHttpInfo(Met 500 Internal server error - */ - public okhttp3.Call getMetricByAssetIdAsync(MetricAssetType asset, UUID assetId, String name, OffsetDateTime fromDateTime, OffsetDateTime toDateTime, Integer offset, Integer limit, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getMetricByAssetIdAsync(@javax.annotation.Nonnull MetricAssetType asset, @javax.annotation.Nonnull UUID assetId, @javax.annotation.Nonnull String name, @javax.annotation.Nullable OffsetDateTime fromDateTime, @javax.annotation.Nullable OffsetDateTime toDateTime, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getMetricByAssetIdValidateBeforeCall(asset, assetId, name, fromDateTime, toDateTime, offset, limit, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -290,7 +290,7 @@ public okhttp3.Call getMetricByAssetIdAsync(MetricAssetType asset, UUID assetId, 500 Internal server error - */ - public okhttp3.Call searchMetricsCall(MetricsSearchRequest metricsSearchRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call searchMetricsCall(@javax.annotation.Nonnull MetricsSearchRequest metricsSearchRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -336,7 +336,7 @@ public okhttp3.Call searchMetricsCall(MetricsSearchRequest metricsSearchRequest, } @SuppressWarnings("rawtypes") - private okhttp3.Call searchMetricsValidateBeforeCall(MetricsSearchRequest metricsSearchRequest, final ApiCallback _callback) throws ApiException { + private okhttp3.Call searchMetricsValidateBeforeCall(@javax.annotation.Nonnull MetricsSearchRequest metricsSearchRequest, final ApiCallback _callback) throws ApiException { // verify the required parameter 'metricsSearchRequest' is set if (metricsSearchRequest == null) { throw new ApiException("Missing the required parameter 'metricsSearchRequest' when calling searchMetrics(Async)"); @@ -363,7 +363,7 @@ private okhttp3.Call searchMetricsValidateBeforeCall(MetricsSearchRequest metric 500 Internal server error - */ - public GetMetricsByAssetResponse searchMetrics(MetricsSearchRequest metricsSearchRequest) throws ApiException { + public GetMetricsByAssetResponse searchMetrics(@javax.annotation.Nonnull MetricsSearchRequest metricsSearchRequest) throws ApiException { ApiResponse localVarResp = searchMetricsWithHttpInfo(metricsSearchRequest); return localVarResp.getData(); } @@ -385,7 +385,7 @@ public GetMetricsByAssetResponse searchMetrics(MetricsSearchRequest metricsSearc 500 Internal server error - */ - public ApiResponse searchMetricsWithHttpInfo(MetricsSearchRequest metricsSearchRequest) throws ApiException { + public ApiResponse searchMetricsWithHttpInfo(@javax.annotation.Nonnull MetricsSearchRequest metricsSearchRequest) throws ApiException { okhttp3.Call localVarCall = searchMetricsValidateBeforeCall(metricsSearchRequest, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -409,7 +409,7 @@ public ApiResponse searchMetricsWithHttpInfo(MetricsS 500 Internal server error - */ - public okhttp3.Call searchMetricsAsync(MetricsSearchRequest metricsSearchRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call searchMetricsAsync(@javax.annotation.Nonnull MetricsSearchRequest metricsSearchRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = searchMetricsValidateBeforeCall(metricsSearchRequest, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/MetrosApi.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/MetrosApi.java index f1844ad1..8e265e74 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/MetrosApi.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/MetrosApi.java @@ -89,7 +89,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 500 Internal Server Error - */ - public okhttp3.Call getMetroByCodeCall(String metroCode, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getMetroByCodeCall(@javax.annotation.Nonnull String metroCode, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -135,7 +135,7 @@ public okhttp3.Call getMetroByCodeCall(String metroCode, final ApiCallback _call } @SuppressWarnings("rawtypes") - private okhttp3.Call getMetroByCodeValidateBeforeCall(String metroCode, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getMetroByCodeValidateBeforeCall(@javax.annotation.Nonnull String metroCode, final ApiCallback _callback) throws ApiException { // verify the required parameter 'metroCode' is set if (metroCode == null) { throw new ApiException("Missing the required parameter 'metroCode' when calling getMetroByCode(Async)"); @@ -161,7 +161,7 @@ private okhttp3.Call getMetroByCodeValidateBeforeCall(String metroCode, final Ap 500 Internal Server Error - */ - public Metro getMetroByCode(String metroCode) throws ApiException { + public Metro getMetroByCode(@javax.annotation.Nonnull String metroCode) throws ApiException { ApiResponse localVarResp = getMetroByCodeWithHttpInfo(metroCode); return localVarResp.getData(); } @@ -182,7 +182,7 @@ public Metro getMetroByCode(String metroCode) throws ApiException { 500 Internal Server Error - */ - public ApiResponse getMetroByCodeWithHttpInfo(String metroCode) throws ApiException { + public ApiResponse getMetroByCodeWithHttpInfo(@javax.annotation.Nonnull String metroCode) throws ApiException { okhttp3.Call localVarCall = getMetroByCodeValidateBeforeCall(metroCode, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -205,7 +205,7 @@ public ApiResponse getMetroByCodeWithHttpInfo(String metroCode) throws Ap 500 Internal Server Error - */ - public okhttp3.Call getMetroByCodeAsync(String metroCode, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getMetroByCodeAsync(@javax.annotation.Nonnull String metroCode, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getMetroByCodeValidateBeforeCall(metroCode, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -230,7 +230,7 @@ public okhttp3.Call getMetroByCodeAsync(String metroCode, final ApiCallback 500 Internal Server Error - */ - public okhttp3.Call getMetrosCall(Presence presence, Integer offset, Integer limit, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getMetrosCall(@javax.annotation.Nullable Presence presence, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -287,7 +287,7 @@ public okhttp3.Call getMetrosCall(Presence presence, Integer offset, Integer lim } @SuppressWarnings("rawtypes") - private okhttp3.Call getMetrosValidateBeforeCall(Presence presence, Integer offset, Integer limit, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getMetrosValidateBeforeCall(@javax.annotation.Nullable Presence presence, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit, final ApiCallback _callback) throws ApiException { return getMetrosCall(presence, offset, limit, _callback); } @@ -310,7 +310,7 @@ private okhttp3.Call getMetrosValidateBeforeCall(Presence presence, Integer offs 500 Internal Server Error - */ - public MetroResponse getMetros(Presence presence, Integer offset, Integer limit) throws ApiException { + public MetroResponse getMetros(@javax.annotation.Nullable Presence presence, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit) throws ApiException { ApiResponse localVarResp = getMetrosWithHttpInfo(presence, offset, limit); return localVarResp.getData(); } @@ -333,7 +333,7 @@ public MetroResponse getMetros(Presence presence, Integer offset, Integer limit) 500 Internal Server Error - */ - public ApiResponse getMetrosWithHttpInfo(Presence presence, Integer offset, Integer limit) throws ApiException { + public ApiResponse getMetrosWithHttpInfo(@javax.annotation.Nullable Presence presence, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit) throws ApiException { okhttp3.Call localVarCall = getMetrosValidateBeforeCall(presence, offset, limit, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -358,7 +358,7 @@ public ApiResponse getMetrosWithHttpInfo(Presence presence, Integ 500 Internal Server Error - */ - public okhttp3.Call getMetrosAsync(Presence presence, Integer offset, Integer limit, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getMetrosAsync(@javax.annotation.Nullable Presence presence, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getMetrosValidateBeforeCall(presence, offset, limit, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/NetworksApi.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/NetworksApi.java index d929281a..0f3e0ce3 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/NetworksApi.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/NetworksApi.java @@ -99,7 +99,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 500 Internal server error - */ - public okhttp3.Call createNetworkCall(NetworkPostRequest networkPostRequest, Boolean dryRun, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createNetworkCall(@javax.annotation.Nonnull NetworkPostRequest networkPostRequest, @javax.annotation.Nullable Boolean dryRun, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -149,7 +149,7 @@ public okhttp3.Call createNetworkCall(NetworkPostRequest networkPostRequest, Boo } @SuppressWarnings("rawtypes") - private okhttp3.Call createNetworkValidateBeforeCall(NetworkPostRequest networkPostRequest, Boolean dryRun, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNetworkValidateBeforeCall(@javax.annotation.Nonnull NetworkPostRequest networkPostRequest, @javax.annotation.Nullable Boolean dryRun, final ApiCallback _callback) throws ApiException { // verify the required parameter 'networkPostRequest' is set if (networkPostRequest == null) { throw new ApiException("Missing the required parameter 'networkPostRequest' when calling createNetwork(Async)"); @@ -179,7 +179,7 @@ private okhttp3.Call createNetworkValidateBeforeCall(NetworkPostRequest networkP 500 Internal server error - */ - public Network createNetwork(NetworkPostRequest networkPostRequest, Boolean dryRun) throws ApiException { + public Network createNetwork(@javax.annotation.Nonnull NetworkPostRequest networkPostRequest, @javax.annotation.Nullable Boolean dryRun) throws ApiException { ApiResponse localVarResp = createNetworkWithHttpInfo(networkPostRequest, dryRun); return localVarResp.getData(); } @@ -204,7 +204,7 @@ public Network createNetwork(NetworkPostRequest networkPostRequest, Boolean dryR 500 Internal server error - */ - public ApiResponse createNetworkWithHttpInfo(NetworkPostRequest networkPostRequest, Boolean dryRun) throws ApiException { + public ApiResponse createNetworkWithHttpInfo(@javax.annotation.Nonnull NetworkPostRequest networkPostRequest, @javax.annotation.Nullable Boolean dryRun) throws ApiException { okhttp3.Call localVarCall = createNetworkValidateBeforeCall(networkPostRequest, dryRun, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -231,7 +231,7 @@ public ApiResponse createNetworkWithHttpInfo(NetworkPostRequest network 500 Internal server error - */ - public okhttp3.Call createNetworkAsync(NetworkPostRequest networkPostRequest, Boolean dryRun, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createNetworkAsync(@javax.annotation.Nonnull NetworkPostRequest networkPostRequest, @javax.annotation.Nullable Boolean dryRun, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNetworkValidateBeforeCall(networkPostRequest, dryRun, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -255,7 +255,7 @@ public okhttp3.Call createNetworkAsync(NetworkPostRequest networkPostRequest, Bo 404 Not Found - */ - public okhttp3.Call deleteNetworkByUuidCall(UUID networkId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteNetworkByUuidCall(@javax.annotation.Nonnull UUID networkId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -301,7 +301,7 @@ public okhttp3.Call deleteNetworkByUuidCall(UUID networkId, final ApiCallback _c } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNetworkByUuidValidateBeforeCall(UUID networkId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNetworkByUuidValidateBeforeCall(@javax.annotation.Nonnull UUID networkId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'networkId' is set if (networkId == null) { throw new ApiException("Missing the required parameter 'networkId' when calling deleteNetworkByUuid(Async)"); @@ -328,7 +328,7 @@ private okhttp3.Call deleteNetworkByUuidValidateBeforeCall(UUID networkId, final 404 Not Found - */ - public Network deleteNetworkByUuid(UUID networkId) throws ApiException { + public Network deleteNetworkByUuid(@javax.annotation.Nonnull UUID networkId) throws ApiException { ApiResponse localVarResp = deleteNetworkByUuidWithHttpInfo(networkId); return localVarResp.getData(); } @@ -350,7 +350,7 @@ public Network deleteNetworkByUuid(UUID networkId) throws ApiException { 404 Not Found - */ - public ApiResponse deleteNetworkByUuidWithHttpInfo(UUID networkId) throws ApiException { + public ApiResponse deleteNetworkByUuidWithHttpInfo(@javax.annotation.Nonnull UUID networkId) throws ApiException { okhttp3.Call localVarCall = deleteNetworkByUuidValidateBeforeCall(networkId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -374,7 +374,7 @@ public ApiResponse deleteNetworkByUuidWithHttpInfo(UUID networkId) thro 404 Not Found - */ - public okhttp3.Call deleteNetworkByUuidAsync(UUID networkId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteNetworkByUuidAsync(@javax.annotation.Nonnull UUID networkId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteNetworkByUuidValidateBeforeCall(networkId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -398,7 +398,7 @@ public okhttp3.Call deleteNetworkByUuidAsync(UUID networkId, final ApiCallback 415 Unsupported Media Type - */ - public okhttp3.Call getConnectionsByNetworkUuidCall(UUID networkId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getConnectionsByNetworkUuidCall(@javax.annotation.Nonnull UUID networkId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -444,7 +444,7 @@ public okhttp3.Call getConnectionsByNetworkUuidCall(UUID networkId, final ApiCal } @SuppressWarnings("rawtypes") - private okhttp3.Call getConnectionsByNetworkUuidValidateBeforeCall(UUID networkId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getConnectionsByNetworkUuidValidateBeforeCall(@javax.annotation.Nonnull UUID networkId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'networkId' is set if (networkId == null) { throw new ApiException("Missing the required parameter 'networkId' when calling getConnectionsByNetworkUuid(Async)"); @@ -471,7 +471,7 @@ private okhttp3.Call getConnectionsByNetworkUuidValidateBeforeCall(UUID networkI 415 Unsupported Media Type - */ - public NetworkConnections getConnectionsByNetworkUuid(UUID networkId) throws ApiException { + public NetworkConnections getConnectionsByNetworkUuid(@javax.annotation.Nonnull UUID networkId) throws ApiException { ApiResponse localVarResp = getConnectionsByNetworkUuidWithHttpInfo(networkId); return localVarResp.getData(); } @@ -493,7 +493,7 @@ public NetworkConnections getConnectionsByNetworkUuid(UUID networkId) throws Api 415 Unsupported Media Type - */ - public ApiResponse getConnectionsByNetworkUuidWithHttpInfo(UUID networkId) throws ApiException { + public ApiResponse getConnectionsByNetworkUuidWithHttpInfo(@javax.annotation.Nonnull UUID networkId) throws ApiException { okhttp3.Call localVarCall = getConnectionsByNetworkUuidValidateBeforeCall(networkId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -517,7 +517,7 @@ public ApiResponse getConnectionsByNetworkUuidWithHttpInfo(U 415 Unsupported Media Type - */ - public okhttp3.Call getConnectionsByNetworkUuidAsync(UUID networkId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getConnectionsByNetworkUuidAsync(@javax.annotation.Nonnull UUID networkId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getConnectionsByNetworkUuidValidateBeforeCall(networkId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -540,7 +540,7 @@ public okhttp3.Call getConnectionsByNetworkUuidAsync(UUID networkId, final ApiCa 404 Not Found - */ - public okhttp3.Call getNetworkByUuidCall(UUID networkId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getNetworkByUuidCall(@javax.annotation.Nonnull UUID networkId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -586,7 +586,7 @@ public okhttp3.Call getNetworkByUuidCall(UUID networkId, final ApiCallback _call } @SuppressWarnings("rawtypes") - private okhttp3.Call getNetworkByUuidValidateBeforeCall(UUID networkId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getNetworkByUuidValidateBeforeCall(@javax.annotation.Nonnull UUID networkId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'networkId' is set if (networkId == null) { throw new ApiException("Missing the required parameter 'networkId' when calling getNetworkByUuid(Async)"); @@ -612,7 +612,7 @@ private okhttp3.Call getNetworkByUuidValidateBeforeCall(UUID networkId, final Ap 404 Not Found - */ - public Network getNetworkByUuid(UUID networkId) throws ApiException { + public Network getNetworkByUuid(@javax.annotation.Nonnull UUID networkId) throws ApiException { ApiResponse localVarResp = getNetworkByUuidWithHttpInfo(networkId); return localVarResp.getData(); } @@ -633,7 +633,7 @@ public Network getNetworkByUuid(UUID networkId) throws ApiException { 404 Not Found - */ - public ApiResponse getNetworkByUuidWithHttpInfo(UUID networkId) throws ApiException { + public ApiResponse getNetworkByUuidWithHttpInfo(@javax.annotation.Nonnull UUID networkId) throws ApiException { okhttp3.Call localVarCall = getNetworkByUuidValidateBeforeCall(networkId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -656,7 +656,7 @@ public ApiResponse getNetworkByUuidWithHttpInfo(UUID networkId) throws 404 Not Found - */ - public okhttp3.Call getNetworkByUuidAsync(UUID networkId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getNetworkByUuidAsync(@javax.annotation.Nonnull UUID networkId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getNetworkByUuidValidateBeforeCall(networkId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -681,7 +681,7 @@ public okhttp3.Call getNetworkByUuidAsync(UUID networkId, final ApiCallback 404 Not Found - */ - public okhttp3.Call getNetworkChangeByUuidCall(UUID networkId, UUID changeId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getNetworkChangeByUuidCall(@javax.annotation.Nonnull UUID networkId, @javax.annotation.Nonnull UUID changeId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -728,7 +728,7 @@ public okhttp3.Call getNetworkChangeByUuidCall(UUID networkId, UUID changeId, fi } @SuppressWarnings("rawtypes") - private okhttp3.Call getNetworkChangeByUuidValidateBeforeCall(UUID networkId, UUID changeId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getNetworkChangeByUuidValidateBeforeCall(@javax.annotation.Nonnull UUID networkId, @javax.annotation.Nonnull UUID changeId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'networkId' is set if (networkId == null) { throw new ApiException("Missing the required parameter 'networkId' when calling getNetworkChangeByUuid(Async)"); @@ -761,7 +761,7 @@ private okhttp3.Call getNetworkChangeByUuidValidateBeforeCall(UUID networkId, UU 404 Not Found - */ - public NetworkChange getNetworkChangeByUuid(UUID networkId, UUID changeId) throws ApiException { + public NetworkChange getNetworkChangeByUuid(@javax.annotation.Nonnull UUID networkId, @javax.annotation.Nonnull UUID changeId) throws ApiException { ApiResponse localVarResp = getNetworkChangeByUuidWithHttpInfo(networkId, changeId); return localVarResp.getData(); } @@ -784,7 +784,7 @@ public NetworkChange getNetworkChangeByUuid(UUID networkId, UUID changeId) throw 404 Not Found - */ - public ApiResponse getNetworkChangeByUuidWithHttpInfo(UUID networkId, UUID changeId) throws ApiException { + public ApiResponse getNetworkChangeByUuidWithHttpInfo(@javax.annotation.Nonnull UUID networkId, @javax.annotation.Nonnull UUID changeId) throws ApiException { okhttp3.Call localVarCall = getNetworkChangeByUuidValidateBeforeCall(networkId, changeId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -809,7 +809,7 @@ public ApiResponse getNetworkChangeByUuidWithHttpInfo(UUID networ 404 Not Found - */ - public okhttp3.Call getNetworkChangeByUuidAsync(UUID networkId, UUID changeId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getNetworkChangeByUuidAsync(@javax.annotation.Nonnull UUID networkId, @javax.annotation.Nonnull UUID changeId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getNetworkChangeByUuidValidateBeforeCall(networkId, changeId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -833,7 +833,7 @@ public okhttp3.Call getNetworkChangeByUuidAsync(UUID networkId, UUID changeId, f 415 Unsupported Media Type - */ - public okhttp3.Call getNetworkChangesCall(UUID networkId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getNetworkChangesCall(@javax.annotation.Nonnull UUID networkId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -879,7 +879,7 @@ public okhttp3.Call getNetworkChangesCall(UUID networkId, final ApiCallback _cal } @SuppressWarnings("rawtypes") - private okhttp3.Call getNetworkChangesValidateBeforeCall(UUID networkId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getNetworkChangesValidateBeforeCall(@javax.annotation.Nonnull UUID networkId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'networkId' is set if (networkId == null) { throw new ApiException("Missing the required parameter 'networkId' when calling getNetworkChanges(Async)"); @@ -906,7 +906,7 @@ private okhttp3.Call getNetworkChangesValidateBeforeCall(UUID networkId, final A 415 Unsupported Media Type - */ - public NetworkChangeResponse getNetworkChanges(UUID networkId) throws ApiException { + public NetworkChangeResponse getNetworkChanges(@javax.annotation.Nonnull UUID networkId) throws ApiException { ApiResponse localVarResp = getNetworkChangesWithHttpInfo(networkId); return localVarResp.getData(); } @@ -928,7 +928,7 @@ public NetworkChangeResponse getNetworkChanges(UUID networkId) throws ApiExcepti 415 Unsupported Media Type - */ - public ApiResponse getNetworkChangesWithHttpInfo(UUID networkId) throws ApiException { + public ApiResponse getNetworkChangesWithHttpInfo(@javax.annotation.Nonnull UUID networkId) throws ApiException { okhttp3.Call localVarCall = getNetworkChangesValidateBeforeCall(networkId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -952,7 +952,7 @@ public ApiResponse getNetworkChangesWithHttpInfo(UUID net 415 Unsupported Media Type - */ - public okhttp3.Call getNetworkChangesAsync(UUID networkId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getNetworkChangesAsync(@javax.annotation.Nonnull UUID networkId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getNetworkChangesValidateBeforeCall(networkId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -976,7 +976,7 @@ public okhttp3.Call getNetworkChangesAsync(UUID networkId, final ApiCallback 415 Unsupported Media Type - */ - public okhttp3.Call searchNetworksCall(NetworkSearchRequest networkSearchRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call searchNetworksCall(@javax.annotation.Nonnull NetworkSearchRequest networkSearchRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1022,7 +1022,7 @@ public okhttp3.Call searchNetworksCall(NetworkSearchRequest networkSearchRequest } @SuppressWarnings("rawtypes") - private okhttp3.Call searchNetworksValidateBeforeCall(NetworkSearchRequest networkSearchRequest, final ApiCallback _callback) throws ApiException { + private okhttp3.Call searchNetworksValidateBeforeCall(@javax.annotation.Nonnull NetworkSearchRequest networkSearchRequest, final ApiCallback _callback) throws ApiException { // verify the required parameter 'networkSearchRequest' is set if (networkSearchRequest == null) { throw new ApiException("Missing the required parameter 'networkSearchRequest' when calling searchNetworks(Async)"); @@ -1049,7 +1049,7 @@ private okhttp3.Call searchNetworksValidateBeforeCall(NetworkSearchRequest netwo 415 Unsupported Media Type - */ - public NetworkSearchResponse searchNetworks(NetworkSearchRequest networkSearchRequest) throws ApiException { + public NetworkSearchResponse searchNetworks(@javax.annotation.Nonnull NetworkSearchRequest networkSearchRequest) throws ApiException { ApiResponse localVarResp = searchNetworksWithHttpInfo(networkSearchRequest); return localVarResp.getData(); } @@ -1071,7 +1071,7 @@ public NetworkSearchResponse searchNetworks(NetworkSearchRequest networkSearchRe 415 Unsupported Media Type - */ - public ApiResponse searchNetworksWithHttpInfo(NetworkSearchRequest networkSearchRequest) throws ApiException { + public ApiResponse searchNetworksWithHttpInfo(@javax.annotation.Nonnull NetworkSearchRequest networkSearchRequest) throws ApiException { okhttp3.Call localVarCall = searchNetworksValidateBeforeCall(networkSearchRequest, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1095,7 +1095,7 @@ public ApiResponse searchNetworksWithHttpInfo(NetworkSear 415 Unsupported Media Type - */ - public okhttp3.Call searchNetworksAsync(NetworkSearchRequest networkSearchRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call searchNetworksAsync(@javax.annotation.Nonnull NetworkSearchRequest networkSearchRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = searchNetworksValidateBeforeCall(networkSearchRequest, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1121,7 +1121,7 @@ public okhttp3.Call searchNetworksAsync(NetworkSearchRequest networkSearchReques 415 Unsupported Media Type - */ - public okhttp3.Call updateNetworkByUuidCall(UUID networkId, List networkChangeOperation, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateNetworkByUuidCall(@javax.annotation.Nonnull UUID networkId, @javax.annotation.Nonnull List networkChangeOperation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1168,7 +1168,7 @@ public okhttp3.Call updateNetworkByUuidCall(UUID networkId, List networkChangeOperation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updateNetworkByUuidValidateBeforeCall(@javax.annotation.Nonnull UUID networkId, @javax.annotation.Nonnull List networkChangeOperation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'networkId' is set if (networkId == null) { throw new ApiException("Missing the required parameter 'networkId' when calling updateNetworkByUuid(Async)"); @@ -1202,7 +1202,7 @@ private okhttp3.Call updateNetworkByUuidValidateBeforeCall(UUID networkId, List< 415 Unsupported Media Type - */ - public Network updateNetworkByUuid(UUID networkId, List networkChangeOperation) throws ApiException { + public Network updateNetworkByUuid(@javax.annotation.Nonnull UUID networkId, @javax.annotation.Nonnull List networkChangeOperation) throws ApiException { ApiResponse localVarResp = updateNetworkByUuidWithHttpInfo(networkId, networkChangeOperation); return localVarResp.getData(); } @@ -1226,7 +1226,7 @@ public Network updateNetworkByUuid(UUID networkId, List 415 Unsupported Media Type - */ - public ApiResponse updateNetworkByUuidWithHttpInfo(UUID networkId, List networkChangeOperation) throws ApiException { + public ApiResponse updateNetworkByUuidWithHttpInfo(@javax.annotation.Nonnull UUID networkId, @javax.annotation.Nonnull List networkChangeOperation) throws ApiException { okhttp3.Call localVarCall = updateNetworkByUuidValidateBeforeCall(networkId, networkChangeOperation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1252,7 +1252,7 @@ public ApiResponse updateNetworkByUuidWithHttpInfo(UUID networkId, List 415 Unsupported Media Type - */ - public okhttp3.Call updateNetworkByUuidAsync(UUID networkId, List networkChangeOperation, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateNetworkByUuidAsync(@javax.annotation.Nonnull UUID networkId, @javax.annotation.Nonnull List networkChangeOperation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateNetworkByUuidValidateBeforeCall(networkId, networkChangeOperation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/PortsApi.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/PortsApi.java index e8b49901..1eddcc33 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/PortsApi.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/PortsApi.java @@ -97,7 +97,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 500 Internal Server Error - */ - public okhttp3.Call addToLagCall(UUID portId, BulkPhysicalPort bulkPhysicalPort, final ApiCallback _callback) throws ApiException { + public okhttp3.Call addToLagCall(@javax.annotation.Nonnull UUID portId, @javax.annotation.Nonnull BulkPhysicalPort bulkPhysicalPort, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -144,7 +144,7 @@ public okhttp3.Call addToLagCall(UUID portId, BulkPhysicalPort bulkPhysicalPort, } @SuppressWarnings("rawtypes") - private okhttp3.Call addToLagValidateBeforeCall(UUID portId, BulkPhysicalPort bulkPhysicalPort, final ApiCallback _callback) throws ApiException { + private okhttp3.Call addToLagValidateBeforeCall(@javax.annotation.Nonnull UUID portId, @javax.annotation.Nonnull BulkPhysicalPort bulkPhysicalPort, final ApiCallback _callback) throws ApiException { // verify the required parameter 'portId' is set if (portId == null) { throw new ApiException("Missing the required parameter 'portId' when calling addToLag(Async)"); @@ -177,7 +177,7 @@ private okhttp3.Call addToLagValidateBeforeCall(UUID portId, BulkPhysicalPort bu 500 Internal Server Error - */ - public AllPhysicalPortsResponse addToLag(UUID portId, BulkPhysicalPort bulkPhysicalPort) throws ApiException { + public AllPhysicalPortsResponse addToLag(@javax.annotation.Nonnull UUID portId, @javax.annotation.Nonnull BulkPhysicalPort bulkPhysicalPort) throws ApiException { ApiResponse localVarResp = addToLagWithHttpInfo(portId, bulkPhysicalPort); return localVarResp.getData(); } @@ -200,7 +200,7 @@ public AllPhysicalPortsResponse addToLag(UUID portId, BulkPhysicalPort bulkPhysi 500 Internal Server Error - */ - public ApiResponse addToLagWithHttpInfo(UUID portId, BulkPhysicalPort bulkPhysicalPort) throws ApiException { + public ApiResponse addToLagWithHttpInfo(@javax.annotation.Nonnull UUID portId, @javax.annotation.Nonnull BulkPhysicalPort bulkPhysicalPort) throws ApiException { okhttp3.Call localVarCall = addToLagValidateBeforeCall(portId, bulkPhysicalPort, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -225,7 +225,7 @@ public ApiResponse addToLagWithHttpInfo(UUID portId, B 500 Internal Server Error - */ - public okhttp3.Call addToLagAsync(UUID portId, BulkPhysicalPort bulkPhysicalPort, final ApiCallback _callback) throws ApiException { + public okhttp3.Call addToLagAsync(@javax.annotation.Nonnull UUID portId, @javax.annotation.Nonnull BulkPhysicalPort bulkPhysicalPort, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = addToLagValidateBeforeCall(portId, bulkPhysicalPort, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -250,7 +250,7 @@ public okhttp3.Call addToLagAsync(UUID portId, BulkPhysicalPort bulkPhysicalPort 500 Internal Server Error - */ - public okhttp3.Call createPortCall(PortRequest portRequest, Boolean dryRun, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createPortCall(@javax.annotation.Nonnull PortRequest portRequest, @javax.annotation.Nullable Boolean dryRun, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -300,7 +300,7 @@ public okhttp3.Call createPortCall(PortRequest portRequest, Boolean dryRun, fina } @SuppressWarnings("rawtypes") - private okhttp3.Call createPortValidateBeforeCall(PortRequest portRequest, Boolean dryRun, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createPortValidateBeforeCall(@javax.annotation.Nonnull PortRequest portRequest, @javax.annotation.Nullable Boolean dryRun, final ApiCallback _callback) throws ApiException { // verify the required parameter 'portRequest' is set if (portRequest == null) { throw new ApiException("Missing the required parameter 'portRequest' when calling createPort(Async)"); @@ -328,7 +328,7 @@ private okhttp3.Call createPortValidateBeforeCall(PortRequest portRequest, Boole 500 Internal Server Error - */ - public Port createPort(PortRequest portRequest, Boolean dryRun) throws ApiException { + public Port createPort(@javax.annotation.Nonnull PortRequest portRequest, @javax.annotation.Nullable Boolean dryRun) throws ApiException { ApiResponse localVarResp = createPortWithHttpInfo(portRequest, dryRun); return localVarResp.getData(); } @@ -351,7 +351,7 @@ public Port createPort(PortRequest portRequest, Boolean dryRun) throws ApiExcept 500 Internal Server Error - */ - public ApiResponse createPortWithHttpInfo(PortRequest portRequest, Boolean dryRun) throws ApiException { + public ApiResponse createPortWithHttpInfo(@javax.annotation.Nonnull PortRequest portRequest, @javax.annotation.Nullable Boolean dryRun) throws ApiException { okhttp3.Call localVarCall = createPortValidateBeforeCall(portRequest, dryRun, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -376,7 +376,7 @@ public ApiResponse createPortWithHttpInfo(PortRequest portRequest, Boolean 500 Internal Server Error - */ - public okhttp3.Call createPortAsync(PortRequest portRequest, Boolean dryRun, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createPortAsync(@javax.annotation.Nonnull PortRequest portRequest, @javax.annotation.Nullable Boolean dryRun, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createPortValidateBeforeCall(portRequest, dryRun, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -401,7 +401,7 @@ public okhttp3.Call createPortAsync(PortRequest portRequest, Boolean dryRun, fin 404 Not Found - */ - public okhttp3.Call deletePortCall(UUID portId, Boolean dryRun, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deletePortCall(@javax.annotation.Nonnull UUID portId, @javax.annotation.Nullable Boolean dryRun, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -451,7 +451,7 @@ public okhttp3.Call deletePortCall(UUID portId, Boolean dryRun, final ApiCallbac } @SuppressWarnings("rawtypes") - private okhttp3.Call deletePortValidateBeforeCall(UUID portId, Boolean dryRun, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deletePortValidateBeforeCall(@javax.annotation.Nonnull UUID portId, @javax.annotation.Nullable Boolean dryRun, final ApiCallback _callback) throws ApiException { // verify the required parameter 'portId' is set if (portId == null) { throw new ApiException("Missing the required parameter 'portId' when calling deletePort(Async)"); @@ -479,7 +479,7 @@ private okhttp3.Call deletePortValidateBeforeCall(UUID portId, Boolean dryRun, f 404 Not Found - */ - public Port deletePort(UUID portId, Boolean dryRun) throws ApiException { + public Port deletePort(@javax.annotation.Nonnull UUID portId, @javax.annotation.Nullable Boolean dryRun) throws ApiException { ApiResponse localVarResp = deletePortWithHttpInfo(portId, dryRun); return localVarResp.getData(); } @@ -502,7 +502,7 @@ public Port deletePort(UUID portId, Boolean dryRun) throws ApiException { 404 Not Found - */ - public ApiResponse deletePortWithHttpInfo(UUID portId, Boolean dryRun) throws ApiException { + public ApiResponse deletePortWithHttpInfo(@javax.annotation.Nonnull UUID portId, @javax.annotation.Nullable Boolean dryRun) throws ApiException { okhttp3.Call localVarCall = deletePortValidateBeforeCall(portId, dryRun, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -527,7 +527,7 @@ public ApiResponse deletePortWithHttpInfo(UUID portId, Boolean dryRun) thr 404 Not Found - */ - public okhttp3.Call deletePortAsync(UUID portId, Boolean dryRun, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deletePortAsync(@javax.annotation.Nonnull UUID portId, @javax.annotation.Nullable Boolean dryRun, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deletePortValidateBeforeCall(portId, dryRun, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -550,7 +550,7 @@ public okhttp3.Call deletePortAsync(UUID portId, Boolean dryRun, final ApiCallba 500 Internal server error - */ - public okhttp3.Call getPortByUuidCall(UUID portId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getPortByUuidCall(@javax.annotation.Nonnull UUID portId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -596,7 +596,7 @@ public okhttp3.Call getPortByUuidCall(UUID portId, final ApiCallback _callback) } @SuppressWarnings("rawtypes") - private okhttp3.Call getPortByUuidValidateBeforeCall(UUID portId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getPortByUuidValidateBeforeCall(@javax.annotation.Nonnull UUID portId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'portId' is set if (portId == null) { throw new ApiException("Missing the required parameter 'portId' when calling getPortByUuid(Async)"); @@ -622,7 +622,7 @@ private okhttp3.Call getPortByUuidValidateBeforeCall(UUID portId, final ApiCallb 500 Internal server error - */ - public Port getPortByUuid(UUID portId) throws ApiException { + public Port getPortByUuid(@javax.annotation.Nonnull UUID portId) throws ApiException { ApiResponse localVarResp = getPortByUuidWithHttpInfo(portId); return localVarResp.getData(); } @@ -643,7 +643,7 @@ public Port getPortByUuid(UUID portId) throws ApiException { 500 Internal server error - */ - public ApiResponse getPortByUuidWithHttpInfo(UUID portId) throws ApiException { + public ApiResponse getPortByUuidWithHttpInfo(@javax.annotation.Nonnull UUID portId) throws ApiException { okhttp3.Call localVarCall = getPortByUuidValidateBeforeCall(portId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -666,7 +666,7 @@ public ApiResponse getPortByUuidWithHttpInfo(UUID portId) throws ApiExcept 500 Internal server error - */ - public okhttp3.Call getPortByUuidAsync(UUID portId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getPortByUuidAsync(@javax.annotation.Nonnull UUID portId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getPortByUuidValidateBeforeCall(portId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -690,7 +690,7 @@ public okhttp3.Call getPortByUuidAsync(UUID portId, final ApiCallback _cal 500 Service Unavailable - */ - public okhttp3.Call getPortsCall(String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getPortsCall(@javax.annotation.Nullable String name, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -739,7 +739,7 @@ public okhttp3.Call getPortsCall(String name, final ApiCallback _callback) throw } @SuppressWarnings("rawtypes") - private okhttp3.Call getPortsValidateBeforeCall(String name, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getPortsValidateBeforeCall(@javax.annotation.Nullable String name, final ApiCallback _callback) throws ApiException { return getPortsCall(name, _callback); } @@ -761,7 +761,7 @@ private okhttp3.Call getPortsValidateBeforeCall(String name, final ApiCallback _ 500 Service Unavailable - */ - public AllPortsResponse getPorts(String name) throws ApiException { + public AllPortsResponse getPorts(@javax.annotation.Nullable String name) throws ApiException { ApiResponse localVarResp = getPortsWithHttpInfo(name); return localVarResp.getData(); } @@ -783,7 +783,7 @@ public AllPortsResponse getPorts(String name) throws ApiException { 500 Service Unavailable - */ - public ApiResponse getPortsWithHttpInfo(String name) throws ApiException { + public ApiResponse getPortsWithHttpInfo(@javax.annotation.Nullable String name) throws ApiException { okhttp3.Call localVarCall = getPortsValidateBeforeCall(name, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -807,7 +807,7 @@ public ApiResponse getPortsWithHttpInfo(String name) throws Ap 500 Service Unavailable - */ - public okhttp3.Call getPortsAsync(String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getPortsAsync(@javax.annotation.Nullable String name, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getPortsValidateBeforeCall(name, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -829,7 +829,7 @@ public okhttp3.Call getPortsAsync(String name, final ApiCallback 403 Forbidden - */ - public okhttp3.Call getVlansCall(UUID portUuid, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getVlansCall(@javax.annotation.Nonnull UUID portUuid, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -875,7 +875,7 @@ public okhttp3.Call getVlansCall(UUID portUuid, final ApiCallback _callback) thr } @SuppressWarnings("rawtypes") - private okhttp3.Call getVlansValidateBeforeCall(UUID portUuid, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getVlansValidateBeforeCall(@javax.annotation.Nonnull UUID portUuid, final ApiCallback _callback) throws ApiException { // verify the required parameter 'portUuid' is set if (portUuid == null) { throw new ApiException("Missing the required parameter 'portUuid' when calling getVlans(Async)"); @@ -900,7 +900,7 @@ private okhttp3.Call getVlansValidateBeforeCall(UUID portUuid, final ApiCallback 403 Forbidden - */ - public LinkProtocolGetResponse getVlans(UUID portUuid) throws ApiException { + public LinkProtocolGetResponse getVlans(@javax.annotation.Nonnull UUID portUuid) throws ApiException { ApiResponse localVarResp = getVlansWithHttpInfo(portUuid); return localVarResp.getData(); } @@ -920,7 +920,7 @@ public LinkProtocolGetResponse getVlans(UUID portUuid) throws ApiException { 403 Forbidden - */ - public ApiResponse getVlansWithHttpInfo(UUID portUuid) throws ApiException { + public ApiResponse getVlansWithHttpInfo(@javax.annotation.Nonnull UUID portUuid) throws ApiException { okhttp3.Call localVarCall = getVlansValidateBeforeCall(portUuid, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -942,7 +942,7 @@ public ApiResponse getVlansWithHttpInfo(UUID portUuid) 403 Forbidden - */ - public okhttp3.Call getVlansAsync(UUID portUuid, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getVlansAsync(@javax.annotation.Nonnull UUID portUuid, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getVlansValidateBeforeCall(portUuid, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -966,7 +966,7 @@ public okhttp3.Call getVlansAsync(UUID portUuid, final ApiCallback 500 Service Unavailable - */ - public okhttp3.Call searchPortsCall(PortV4SearchRequest portV4SearchRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call searchPortsCall(@javax.annotation.Nonnull PortV4SearchRequest portV4SearchRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1012,7 +1012,7 @@ public okhttp3.Call searchPortsCall(PortV4SearchRequest portV4SearchRequest, fin } @SuppressWarnings("rawtypes") - private okhttp3.Call searchPortsValidateBeforeCall(PortV4SearchRequest portV4SearchRequest, final ApiCallback _callback) throws ApiException { + private okhttp3.Call searchPortsValidateBeforeCall(@javax.annotation.Nonnull PortV4SearchRequest portV4SearchRequest, final ApiCallback _callback) throws ApiException { // verify the required parameter 'portV4SearchRequest' is set if (portV4SearchRequest == null) { throw new ApiException("Missing the required parameter 'portV4SearchRequest' when calling searchPorts(Async)"); @@ -1039,7 +1039,7 @@ private okhttp3.Call searchPortsValidateBeforeCall(PortV4SearchRequest portV4Sea 500 Service Unavailable - */ - public AllPortsResponse searchPorts(PortV4SearchRequest portV4SearchRequest) throws ApiException { + public AllPortsResponse searchPorts(@javax.annotation.Nonnull PortV4SearchRequest portV4SearchRequest) throws ApiException { ApiResponse localVarResp = searchPortsWithHttpInfo(portV4SearchRequest); return localVarResp.getData(); } @@ -1061,7 +1061,7 @@ public AllPortsResponse searchPorts(PortV4SearchRequest portV4SearchRequest) thr 500 Service Unavailable - */ - public ApiResponse searchPortsWithHttpInfo(PortV4SearchRequest portV4SearchRequest) throws ApiException { + public ApiResponse searchPortsWithHttpInfo(@javax.annotation.Nonnull PortV4SearchRequest portV4SearchRequest) throws ApiException { okhttp3.Call localVarCall = searchPortsValidateBeforeCall(portV4SearchRequest, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1085,7 +1085,7 @@ public ApiResponse searchPortsWithHttpInfo(PortV4SearchRequest 500 Service Unavailable - */ - public okhttp3.Call searchPortsAsync(PortV4SearchRequest portV4SearchRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call searchPortsAsync(@javax.annotation.Nonnull PortV4SearchRequest portV4SearchRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = searchPortsValidateBeforeCall(portV4SearchRequest, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1111,7 +1111,7 @@ public okhttp3.Call searchPortsAsync(PortV4SearchRequest portV4SearchRequest, fi 500 Internal server error - */ - public okhttp3.Call updatePortByUuidCall(UUID portId, List portChangeOperation, Boolean dryRun, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updatePortByUuidCall(@javax.annotation.Nonnull UUID portId, @javax.annotation.Nonnull List portChangeOperation, @javax.annotation.Nullable Boolean dryRun, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1162,7 +1162,7 @@ public okhttp3.Call updatePortByUuidCall(UUID portId, List } @SuppressWarnings("rawtypes") - private okhttp3.Call updatePortByUuidValidateBeforeCall(UUID portId, List portChangeOperation, Boolean dryRun, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updatePortByUuidValidateBeforeCall(@javax.annotation.Nonnull UUID portId, @javax.annotation.Nonnull List portChangeOperation, @javax.annotation.Nullable Boolean dryRun, final ApiCallback _callback) throws ApiException { // verify the required parameter 'portId' is set if (portId == null) { throw new ApiException("Missing the required parameter 'portId' when calling updatePortByUuid(Async)"); @@ -1196,7 +1196,7 @@ private okhttp3.Call updatePortByUuidValidateBeforeCall(UUID portId, List 500 Internal server error - */ - public AllPortsResponse updatePortByUuid(UUID portId, List portChangeOperation, Boolean dryRun) throws ApiException { + public AllPortsResponse updatePortByUuid(@javax.annotation.Nonnull UUID portId, @javax.annotation.Nonnull List portChangeOperation, @javax.annotation.Nullable Boolean dryRun) throws ApiException { ApiResponse localVarResp = updatePortByUuidWithHttpInfo(portId, portChangeOperation, dryRun); return localVarResp.getData(); } @@ -1220,7 +1220,7 @@ public AllPortsResponse updatePortByUuid(UUID portId, List 500 Internal server error - */ - public ApiResponse updatePortByUuidWithHttpInfo(UUID portId, List portChangeOperation, Boolean dryRun) throws ApiException { + public ApiResponse updatePortByUuidWithHttpInfo(@javax.annotation.Nonnull UUID portId, @javax.annotation.Nonnull List portChangeOperation, @javax.annotation.Nullable Boolean dryRun) throws ApiException { okhttp3.Call localVarCall = updatePortByUuidValidateBeforeCall(portId, portChangeOperation, dryRun, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1246,7 +1246,7 @@ public ApiResponse updatePortByUuidWithHttpInfo(UUID portId, L 500 Internal server error - */ - public okhttp3.Call updatePortByUuidAsync(UUID portId, List portChangeOperation, Boolean dryRun, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updatePortByUuidAsync(@javax.annotation.Nonnull UUID portId, @javax.annotation.Nonnull List portChangeOperation, @javax.annotation.Nullable Boolean dryRun, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updatePortByUuidValidateBeforeCall(portId, portChangeOperation, dryRun, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/PrecisionTimeApi.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/PrecisionTimeApi.java index 5e85df7a..4c709e0a 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/PrecisionTimeApi.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/PrecisionTimeApi.java @@ -97,7 +97,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 500 Internal server error - */ - public okhttp3.Call createTimeServicesCall(PrecisionTimeServiceRequest precisionTimeServiceRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createTimeServicesCall(@javax.annotation.Nonnull PrecisionTimeServiceRequest precisionTimeServiceRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -143,7 +143,7 @@ public okhttp3.Call createTimeServicesCall(PrecisionTimeServiceRequest precision } @SuppressWarnings("rawtypes") - private okhttp3.Call createTimeServicesValidateBeforeCall(PrecisionTimeServiceRequest precisionTimeServiceRequest, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createTimeServicesValidateBeforeCall(@javax.annotation.Nonnull PrecisionTimeServiceRequest precisionTimeServiceRequest, final ApiCallback _callback) throws ApiException { // verify the required parameter 'precisionTimeServiceRequest' is set if (precisionTimeServiceRequest == null) { throw new ApiException("Missing the required parameter 'precisionTimeServiceRequest' when calling createTimeServices(Async)"); @@ -171,7 +171,7 @@ private okhttp3.Call createTimeServicesValidateBeforeCall(PrecisionTimeServiceRe 500 Internal server error - */ - public PrecisionTimeServiceResponse createTimeServices(PrecisionTimeServiceRequest precisionTimeServiceRequest) throws ApiException { + public PrecisionTimeServiceResponse createTimeServices(@javax.annotation.Nonnull PrecisionTimeServiceRequest precisionTimeServiceRequest) throws ApiException { ApiResponse localVarResp = createTimeServicesWithHttpInfo(precisionTimeServiceRequest); return localVarResp.getData(); } @@ -194,7 +194,7 @@ public PrecisionTimeServiceResponse createTimeServices(PrecisionTimeServiceReque 500 Internal server error - */ - public ApiResponse createTimeServicesWithHttpInfo(PrecisionTimeServiceRequest precisionTimeServiceRequest) throws ApiException { + public ApiResponse createTimeServicesWithHttpInfo(@javax.annotation.Nonnull PrecisionTimeServiceRequest precisionTimeServiceRequest) throws ApiException { okhttp3.Call localVarCall = createTimeServicesValidateBeforeCall(precisionTimeServiceRequest, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -219,7 +219,7 @@ public ApiResponse createTimeServicesWithHttpInfo( 500 Internal server error - */ - public okhttp3.Call createTimeServicesAsync(PrecisionTimeServiceRequest precisionTimeServiceRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createTimeServicesAsync(@javax.annotation.Nonnull PrecisionTimeServiceRequest precisionTimeServiceRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createTimeServicesValidateBeforeCall(precisionTimeServiceRequest, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -244,7 +244,7 @@ public okhttp3.Call createTimeServicesAsync(PrecisionTimeServiceRequest precisio 500 Internal server error - */ - public okhttp3.Call deleteTimeServiceByIdCall(UUID serviceId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteTimeServiceByIdCall(@javax.annotation.Nonnull UUID serviceId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -290,7 +290,7 @@ public okhttp3.Call deleteTimeServiceByIdCall(UUID serviceId, final ApiCallback } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteTimeServiceByIdValidateBeforeCall(UUID serviceId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteTimeServiceByIdValidateBeforeCall(@javax.annotation.Nonnull UUID serviceId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'serviceId' is set if (serviceId == null) { throw new ApiException("Missing the required parameter 'serviceId' when calling deleteTimeServiceById(Async)"); @@ -318,7 +318,7 @@ private okhttp3.Call deleteTimeServiceByIdValidateBeforeCall(UUID serviceId, fin 500 Internal server error - */ - public PrecisionTimeServiceResponse deleteTimeServiceById(UUID serviceId) throws ApiException { + public PrecisionTimeServiceResponse deleteTimeServiceById(@javax.annotation.Nonnull UUID serviceId) throws ApiException { ApiResponse localVarResp = deleteTimeServiceByIdWithHttpInfo(serviceId); return localVarResp.getData(); } @@ -341,7 +341,7 @@ public PrecisionTimeServiceResponse deleteTimeServiceById(UUID serviceId) throws 500 Internal server error - */ - public ApiResponse deleteTimeServiceByIdWithHttpInfo(UUID serviceId) throws ApiException { + public ApiResponse deleteTimeServiceByIdWithHttpInfo(@javax.annotation.Nonnull UUID serviceId) throws ApiException { okhttp3.Call localVarCall = deleteTimeServiceByIdValidateBeforeCall(serviceId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -366,7 +366,7 @@ public ApiResponse deleteTimeServiceByIdWithHttpIn 500 Internal server error - */ - public okhttp3.Call deleteTimeServiceByIdAsync(UUID serviceId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteTimeServiceByIdAsync(@javax.annotation.Nonnull UUID serviceId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteTimeServiceByIdValidateBeforeCall(serviceId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -393,7 +393,7 @@ public okhttp3.Call deleteTimeServiceByIdAsync(UUID serviceId, final ApiCallback 500 Internal server error - */ - public okhttp3.Call fulfillTimeServicesCall(UUID serviceId, PrecisionTimeServiceRequest precisionTimeServiceRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call fulfillTimeServicesCall(@javax.annotation.Nonnull UUID serviceId, @javax.annotation.Nonnull PrecisionTimeServiceRequest precisionTimeServiceRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -440,7 +440,7 @@ public okhttp3.Call fulfillTimeServicesCall(UUID serviceId, PrecisionTimeService } @SuppressWarnings("rawtypes") - private okhttp3.Call fulfillTimeServicesValidateBeforeCall(UUID serviceId, PrecisionTimeServiceRequest precisionTimeServiceRequest, final ApiCallback _callback) throws ApiException { + private okhttp3.Call fulfillTimeServicesValidateBeforeCall(@javax.annotation.Nonnull UUID serviceId, @javax.annotation.Nonnull PrecisionTimeServiceRequest precisionTimeServiceRequest, final ApiCallback _callback) throws ApiException { // verify the required parameter 'serviceId' is set if (serviceId == null) { throw new ApiException("Missing the required parameter 'serviceId' when calling fulfillTimeServices(Async)"); @@ -475,7 +475,7 @@ private okhttp3.Call fulfillTimeServicesValidateBeforeCall(UUID serviceId, Preci 500 Internal server error - */ - public PrecisionTimeServiceResponse fulfillTimeServices(UUID serviceId, PrecisionTimeServiceRequest precisionTimeServiceRequest) throws ApiException { + public PrecisionTimeServiceResponse fulfillTimeServices(@javax.annotation.Nonnull UUID serviceId, @javax.annotation.Nonnull PrecisionTimeServiceRequest precisionTimeServiceRequest) throws ApiException { ApiResponse localVarResp = fulfillTimeServicesWithHttpInfo(serviceId, precisionTimeServiceRequest); return localVarResp.getData(); } @@ -500,7 +500,7 @@ public PrecisionTimeServiceResponse fulfillTimeServices(UUID serviceId, Precisio 500 Internal server error - */ - public ApiResponse fulfillTimeServicesWithHttpInfo(UUID serviceId, PrecisionTimeServiceRequest precisionTimeServiceRequest) throws ApiException { + public ApiResponse fulfillTimeServicesWithHttpInfo(@javax.annotation.Nonnull UUID serviceId, @javax.annotation.Nonnull PrecisionTimeServiceRequest precisionTimeServiceRequest) throws ApiException { okhttp3.Call localVarCall = fulfillTimeServicesValidateBeforeCall(serviceId, precisionTimeServiceRequest, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -527,7 +527,7 @@ public ApiResponse fulfillTimeServicesWithHttpInfo 500 Internal server error - */ - public okhttp3.Call fulfillTimeServicesAsync(UUID serviceId, PrecisionTimeServiceRequest precisionTimeServiceRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call fulfillTimeServicesAsync(@javax.annotation.Nonnull UUID serviceId, @javax.annotation.Nonnull PrecisionTimeServiceRequest precisionTimeServiceRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = fulfillTimeServicesValidateBeforeCall(serviceId, precisionTimeServiceRequest, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -553,7 +553,7 @@ public okhttp3.Call fulfillTimeServicesAsync(UUID serviceId, PrecisionTimeServic 500 Internal server error - */ - public okhttp3.Call getTimeServicesByIdCall(UUID serviceId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getTimeServicesByIdCall(@javax.annotation.Nonnull UUID serviceId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -599,7 +599,7 @@ public okhttp3.Call getTimeServicesByIdCall(UUID serviceId, final ApiCallback _c } @SuppressWarnings("rawtypes") - private okhttp3.Call getTimeServicesByIdValidateBeforeCall(UUID serviceId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getTimeServicesByIdValidateBeforeCall(@javax.annotation.Nonnull UUID serviceId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'serviceId' is set if (serviceId == null) { throw new ApiException("Missing the required parameter 'serviceId' when calling getTimeServicesById(Async)"); @@ -628,7 +628,7 @@ private okhttp3.Call getTimeServicesByIdValidateBeforeCall(UUID serviceId, final 500 Internal server error - */ - public PrecisionTimeServiceResponse getTimeServicesById(UUID serviceId) throws ApiException { + public PrecisionTimeServiceResponse getTimeServicesById(@javax.annotation.Nonnull UUID serviceId) throws ApiException { ApiResponse localVarResp = getTimeServicesByIdWithHttpInfo(serviceId); return localVarResp.getData(); } @@ -652,7 +652,7 @@ public PrecisionTimeServiceResponse getTimeServicesById(UUID serviceId) throws A 500 Internal server error - */ - public ApiResponse getTimeServicesByIdWithHttpInfo(UUID serviceId) throws ApiException { + public ApiResponse getTimeServicesByIdWithHttpInfo(@javax.annotation.Nonnull UUID serviceId) throws ApiException { okhttp3.Call localVarCall = getTimeServicesByIdValidateBeforeCall(serviceId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -678,7 +678,7 @@ public ApiResponse getTimeServicesByIdWithHttpInfo 500 Internal server error - */ - public okhttp3.Call getTimeServicesByIdAsync(UUID serviceId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getTimeServicesByIdAsync(@javax.annotation.Nonnull UUID serviceId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getTimeServicesByIdValidateBeforeCall(serviceId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -702,7 +702,7 @@ public okhttp3.Call getTimeServicesByIdAsync(UUID serviceId, final ApiCallback

500 Internal server error - */ - public okhttp3.Call getTimeServicesConnectionsByServiceIdCall(UUID serviceId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getTimeServicesConnectionsByServiceIdCall(@javax.annotation.Nonnull UUID serviceId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -748,7 +748,7 @@ public okhttp3.Call getTimeServicesConnectionsByServiceIdCall(UUID serviceId, fi } @SuppressWarnings("rawtypes") - private okhttp3.Call getTimeServicesConnectionsByServiceIdValidateBeforeCall(UUID serviceId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getTimeServicesConnectionsByServiceIdValidateBeforeCall(@javax.annotation.Nonnull UUID serviceId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'serviceId' is set if (serviceId == null) { throw new ApiException("Missing the required parameter 'serviceId' when calling getTimeServicesConnectionsByServiceId(Async)"); @@ -775,7 +775,7 @@ private okhttp3.Call getTimeServicesConnectionsByServiceIdValidateBeforeCall(UUI 500 Internal server error - */ - public PrecisionTimeServiceConnectionsResponse getTimeServicesConnectionsByServiceId(UUID serviceId) throws ApiException { + public PrecisionTimeServiceConnectionsResponse getTimeServicesConnectionsByServiceId(@javax.annotation.Nonnull UUID serviceId) throws ApiException { ApiResponse localVarResp = getTimeServicesConnectionsByServiceIdWithHttpInfo(serviceId); return localVarResp.getData(); } @@ -797,7 +797,7 @@ public PrecisionTimeServiceConnectionsResponse getTimeServicesConnectionsByServi 500 Internal server error - */ - public ApiResponse getTimeServicesConnectionsByServiceIdWithHttpInfo(UUID serviceId) throws ApiException { + public ApiResponse getTimeServicesConnectionsByServiceIdWithHttpInfo(@javax.annotation.Nonnull UUID serviceId) throws ApiException { okhttp3.Call localVarCall = getTimeServicesConnectionsByServiceIdValidateBeforeCall(serviceId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -821,7 +821,7 @@ public ApiResponse getTimeServicesConne 500 Internal server error - */ - public okhttp3.Call getTimeServicesConnectionsByServiceIdAsync(UUID serviceId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getTimeServicesConnectionsByServiceIdAsync(@javax.annotation.Nonnull UUID serviceId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getTimeServicesConnectionsByServiceIdValidateBeforeCall(serviceId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -843,7 +843,7 @@ public okhttp3.Call getTimeServicesConnectionsByServiceIdAsync(UUID serviceId, f 500 Internal server error - */ - public okhttp3.Call getTimeServicesPackageByCodeCall(String packageCode, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getTimeServicesPackageByCodeCall(@javax.annotation.Nonnull String packageCode, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -889,7 +889,7 @@ public okhttp3.Call getTimeServicesPackageByCodeCall(String packageCode, final A } @SuppressWarnings("rawtypes") - private okhttp3.Call getTimeServicesPackageByCodeValidateBeforeCall(String packageCode, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getTimeServicesPackageByCodeValidateBeforeCall(@javax.annotation.Nonnull String packageCode, final ApiCallback _callback) throws ApiException { // verify the required parameter 'packageCode' is set if (packageCode == null) { throw new ApiException("Missing the required parameter 'packageCode' when calling getTimeServicesPackageByCode(Async)"); @@ -914,7 +914,7 @@ private okhttp3.Call getTimeServicesPackageByCodeValidateBeforeCall(String packa 500 Internal server error - */ - public PrecisionTimePackageResponse getTimeServicesPackageByCode(String packageCode) throws ApiException { + public PrecisionTimePackageResponse getTimeServicesPackageByCode(@javax.annotation.Nonnull String packageCode) throws ApiException { ApiResponse localVarResp = getTimeServicesPackageByCodeWithHttpInfo(packageCode); return localVarResp.getData(); } @@ -934,7 +934,7 @@ public PrecisionTimePackageResponse getTimeServicesPackageByCode(String packageC 500 Internal server error - */ - public ApiResponse getTimeServicesPackageByCodeWithHttpInfo(String packageCode) throws ApiException { + public ApiResponse getTimeServicesPackageByCodeWithHttpInfo(@javax.annotation.Nonnull String packageCode) throws ApiException { okhttp3.Call localVarCall = getTimeServicesPackageByCodeValidateBeforeCall(packageCode, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -956,7 +956,7 @@ public ApiResponse getTimeServicesPackageByCodeWit 500 Internal server error - */ - public okhttp3.Call getTimeServicesPackageByCodeAsync(String packageCode, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getTimeServicesPackageByCodeAsync(@javax.annotation.Nonnull String packageCode, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getTimeServicesPackageByCodeValidateBeforeCall(packageCode, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1106,7 +1106,7 @@ public okhttp3.Call getTimeServicesPackagesAsync(final ApiCallback 500 Internal server error - */ - public okhttp3.Call searchTimeServicesCall(TimeServicesSearchRequest timeServicesSearchRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call searchTimeServicesCall(@javax.annotation.Nonnull TimeServicesSearchRequest timeServicesSearchRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1152,7 +1152,7 @@ public okhttp3.Call searchTimeServicesCall(TimeServicesSearchRequest timeService } @SuppressWarnings("rawtypes") - private okhttp3.Call searchTimeServicesValidateBeforeCall(TimeServicesSearchRequest timeServicesSearchRequest, final ApiCallback _callback) throws ApiException { + private okhttp3.Call searchTimeServicesValidateBeforeCall(@javax.annotation.Nonnull TimeServicesSearchRequest timeServicesSearchRequest, final ApiCallback _callback) throws ApiException { // verify the required parameter 'timeServicesSearchRequest' is set if (timeServicesSearchRequest == null) { throw new ApiException("Missing the required parameter 'timeServicesSearchRequest' when calling searchTimeServices(Async)"); @@ -1180,7 +1180,7 @@ private okhttp3.Call searchTimeServicesValidateBeforeCall(TimeServicesSearchRequ 500 Internal server error - */ - public ServiceSearchResponse searchTimeServices(TimeServicesSearchRequest timeServicesSearchRequest) throws ApiException { + public ServiceSearchResponse searchTimeServices(@javax.annotation.Nonnull TimeServicesSearchRequest timeServicesSearchRequest) throws ApiException { ApiResponse localVarResp = searchTimeServicesWithHttpInfo(timeServicesSearchRequest); return localVarResp.getData(); } @@ -1203,7 +1203,7 @@ public ServiceSearchResponse searchTimeServices(TimeServicesSearchRequest timeSe 500 Internal server error - */ - public ApiResponse searchTimeServicesWithHttpInfo(TimeServicesSearchRequest timeServicesSearchRequest) throws ApiException { + public ApiResponse searchTimeServicesWithHttpInfo(@javax.annotation.Nonnull TimeServicesSearchRequest timeServicesSearchRequest) throws ApiException { okhttp3.Call localVarCall = searchTimeServicesValidateBeforeCall(timeServicesSearchRequest, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1228,7 +1228,7 @@ public ApiResponse searchTimeServicesWithHttpInfo(TimeSer 500 Internal server error - */ - public okhttp3.Call searchTimeServicesAsync(TimeServicesSearchRequest timeServicesSearchRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call searchTimeServicesAsync(@javax.annotation.Nonnull TimeServicesSearchRequest timeServicesSearchRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = searchTimeServicesValidateBeforeCall(timeServicesSearchRequest, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1255,7 +1255,7 @@ public okhttp3.Call searchTimeServicesAsync(TimeServicesSearchRequest timeServic 500 Internal server error - */ - public okhttp3.Call updateTimeServicesByIdCall(UUID serviceId, List precisionTimeChangeOperation, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateTimeServicesByIdCall(@javax.annotation.Nonnull UUID serviceId, @javax.annotation.Nonnull List precisionTimeChangeOperation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1302,7 +1302,7 @@ public okhttp3.Call updateTimeServicesByIdCall(UUID serviceId, List precisionTimeChangeOperation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updateTimeServicesByIdValidateBeforeCall(@javax.annotation.Nonnull UUID serviceId, @javax.annotation.Nonnull List precisionTimeChangeOperation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'serviceId' is set if (serviceId == null) { throw new ApiException("Missing the required parameter 'serviceId' when calling updateTimeServicesById(Async)"); @@ -1337,7 +1337,7 @@ private okhttp3.Call updateTimeServicesByIdValidateBeforeCall(UUID serviceId, Li 500 Internal server error - */ - public PrecisionTimeServiceResponse updateTimeServicesById(UUID serviceId, List precisionTimeChangeOperation) throws ApiException { + public PrecisionTimeServiceResponse updateTimeServicesById(@javax.annotation.Nonnull UUID serviceId, @javax.annotation.Nonnull List precisionTimeChangeOperation) throws ApiException { ApiResponse localVarResp = updateTimeServicesByIdWithHttpInfo(serviceId, precisionTimeChangeOperation); return localVarResp.getData(); } @@ -1362,7 +1362,7 @@ public PrecisionTimeServiceResponse updateTimeServicesById(UUID serviceId, List< 500 Internal server error - */ - public ApiResponse updateTimeServicesByIdWithHttpInfo(UUID serviceId, List precisionTimeChangeOperation) throws ApiException { + public ApiResponse updateTimeServicesByIdWithHttpInfo(@javax.annotation.Nonnull UUID serviceId, @javax.annotation.Nonnull List precisionTimeChangeOperation) throws ApiException { okhttp3.Call localVarCall = updateTimeServicesByIdValidateBeforeCall(serviceId, precisionTimeChangeOperation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1389,7 +1389,7 @@ public ApiResponse updateTimeServicesByIdWithHttpI 500 Internal server error - */ - public okhttp3.Call updateTimeServicesByIdAsync(UUID serviceId, List precisionTimeChangeOperation, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateTimeServicesByIdAsync(@javax.annotation.Nonnull UUID serviceId, @javax.annotation.Nonnull List precisionTimeChangeOperation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateTimeServicesByIdValidateBeforeCall(serviceId, precisionTimeChangeOperation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/PricesApi.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/PricesApi.java index 8c186af7..361b51a5 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/PricesApi.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/PricesApi.java @@ -87,7 +87,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 500 Internal server error - */ - public okhttp3.Call searchPricesCall(FilterBody filterBody, final ApiCallback _callback) throws ApiException { + public okhttp3.Call searchPricesCall(@javax.annotation.Nonnull FilterBody filterBody, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -133,7 +133,7 @@ public okhttp3.Call searchPricesCall(FilterBody filterBody, final ApiCallback _c } @SuppressWarnings("rawtypes") - private okhttp3.Call searchPricesValidateBeforeCall(FilterBody filterBody, final ApiCallback _callback) throws ApiException { + private okhttp3.Call searchPricesValidateBeforeCall(@javax.annotation.Nonnull FilterBody filterBody, final ApiCallback _callback) throws ApiException { // verify the required parameter 'filterBody' is set if (filterBody == null) { throw new ApiException("Missing the required parameter 'filterBody' when calling searchPrices(Async)"); @@ -158,7 +158,7 @@ private okhttp3.Call searchPricesValidateBeforeCall(FilterBody filterBody, final 500 Internal server error - */ - public PriceSearchResponse searchPrices(FilterBody filterBody) throws ApiException { + public PriceSearchResponse searchPrices(@javax.annotation.Nonnull FilterBody filterBody) throws ApiException { ApiResponse localVarResp = searchPricesWithHttpInfo(filterBody); return localVarResp.getData(); } @@ -178,7 +178,7 @@ public PriceSearchResponse searchPrices(FilterBody filterBody) throws ApiExcepti 500 Internal server error - */ - public ApiResponse searchPricesWithHttpInfo(FilterBody filterBody) throws ApiException { + public ApiResponse searchPricesWithHttpInfo(@javax.annotation.Nonnull FilterBody filterBody) throws ApiException { okhttp3.Call localVarCall = searchPricesValidateBeforeCall(filterBody, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -200,7 +200,7 @@ public ApiResponse searchPricesWithHttpInfo(FilterBody filt 500 Internal server error - */ - public okhttp3.Call searchPricesAsync(FilterBody filterBody, final ApiCallback _callback) throws ApiException { + public okhttp3.Call searchPricesAsync(@javax.annotation.Nonnull FilterBody filterBody, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = searchPricesValidateBeforeCall(filterBody, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/RouteAggregationRulesApi.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/RouteAggregationRulesApi.java index aec10114..d27527f4 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/RouteAggregationRulesApi.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/RouteAggregationRulesApi.java @@ -98,7 +98,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 500 Internal server error - */ - public okhttp3.Call createRouteAggregationRuleCall(String routeAggregationId, RouteAggregationRulesBase routeAggregationRulesBase, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createRouteAggregationRuleCall(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nonnull RouteAggregationRulesBase routeAggregationRulesBase, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -145,7 +145,7 @@ public okhttp3.Call createRouteAggregationRuleCall(String routeAggregationId, Ro } @SuppressWarnings("rawtypes") - private okhttp3.Call createRouteAggregationRuleValidateBeforeCall(String routeAggregationId, RouteAggregationRulesBase routeAggregationRulesBase, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createRouteAggregationRuleValidateBeforeCall(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nonnull RouteAggregationRulesBase routeAggregationRulesBase, final ApiCallback _callback) throws ApiException { // verify the required parameter 'routeAggregationId' is set if (routeAggregationId == null) { throw new ApiException("Missing the required parameter 'routeAggregationId' when calling createRouteAggregationRule(Async)"); @@ -180,7 +180,7 @@ private okhttp3.Call createRouteAggregationRuleValidateBeforeCall(String routeAg 500 Internal server error - */ - public RouteAggregationRulesData createRouteAggregationRule(String routeAggregationId, RouteAggregationRulesBase routeAggregationRulesBase) throws ApiException { + public RouteAggregationRulesData createRouteAggregationRule(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nonnull RouteAggregationRulesBase routeAggregationRulesBase) throws ApiException { ApiResponse localVarResp = createRouteAggregationRuleWithHttpInfo(routeAggregationId, routeAggregationRulesBase); return localVarResp.getData(); } @@ -205,7 +205,7 @@ public RouteAggregationRulesData createRouteAggregationRule(String routeAggregat 500 Internal server error - */ - public ApiResponse createRouteAggregationRuleWithHttpInfo(String routeAggregationId, RouteAggregationRulesBase routeAggregationRulesBase) throws ApiException { + public ApiResponse createRouteAggregationRuleWithHttpInfo(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nonnull RouteAggregationRulesBase routeAggregationRulesBase) throws ApiException { okhttp3.Call localVarCall = createRouteAggregationRuleValidateBeforeCall(routeAggregationId, routeAggregationRulesBase, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -232,7 +232,7 @@ public ApiResponse createRouteAggregationRuleWithHttp 500 Internal server error - */ - public okhttp3.Call createRouteAggregationRuleAsync(String routeAggregationId, RouteAggregationRulesBase routeAggregationRulesBase, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createRouteAggregationRuleAsync(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nonnull RouteAggregationRulesBase routeAggregationRulesBase, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createRouteAggregationRuleValidateBeforeCall(routeAggregationId, routeAggregationRulesBase, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -259,7 +259,7 @@ public okhttp3.Call createRouteAggregationRuleAsync(String routeAggregationId, R 500 Internal server error - */ - public okhttp3.Call createRouteAggregationRulesInBulkCall(String routeAggregationId, RouteAggregationRulesPostRequest routeAggregationRulesPostRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createRouteAggregationRulesInBulkCall(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nonnull RouteAggregationRulesPostRequest routeAggregationRulesPostRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -306,7 +306,7 @@ public okhttp3.Call createRouteAggregationRulesInBulkCall(String routeAggregatio } @SuppressWarnings("rawtypes") - private okhttp3.Call createRouteAggregationRulesInBulkValidateBeforeCall(String routeAggregationId, RouteAggregationRulesPostRequest routeAggregationRulesPostRequest, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createRouteAggregationRulesInBulkValidateBeforeCall(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nonnull RouteAggregationRulesPostRequest routeAggregationRulesPostRequest, final ApiCallback _callback) throws ApiException { // verify the required parameter 'routeAggregationId' is set if (routeAggregationId == null) { throw new ApiException("Missing the required parameter 'routeAggregationId' when calling createRouteAggregationRulesInBulk(Async)"); @@ -341,7 +341,7 @@ private okhttp3.Call createRouteAggregationRulesInBulkValidateBeforeCall(String 500 Internal server error - */ - public GetRouteAggregationRulesResponse createRouteAggregationRulesInBulk(String routeAggregationId, RouteAggregationRulesPostRequest routeAggregationRulesPostRequest) throws ApiException { + public GetRouteAggregationRulesResponse createRouteAggregationRulesInBulk(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nonnull RouteAggregationRulesPostRequest routeAggregationRulesPostRequest) throws ApiException { ApiResponse localVarResp = createRouteAggregationRulesInBulkWithHttpInfo(routeAggregationId, routeAggregationRulesPostRequest); return localVarResp.getData(); } @@ -366,7 +366,7 @@ public GetRouteAggregationRulesResponse createRouteAggregationRulesInBulk(String 500 Internal server error - */ - public ApiResponse createRouteAggregationRulesInBulkWithHttpInfo(String routeAggregationId, RouteAggregationRulesPostRequest routeAggregationRulesPostRequest) throws ApiException { + public ApiResponse createRouteAggregationRulesInBulkWithHttpInfo(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nonnull RouteAggregationRulesPostRequest routeAggregationRulesPostRequest) throws ApiException { okhttp3.Call localVarCall = createRouteAggregationRulesInBulkValidateBeforeCall(routeAggregationId, routeAggregationRulesPostRequest, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -393,7 +393,7 @@ public ApiResponse createRouteAggregationRules 500 Internal server error - */ - public okhttp3.Call createRouteAggregationRulesInBulkAsync(String routeAggregationId, RouteAggregationRulesPostRequest routeAggregationRulesPostRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createRouteAggregationRulesInBulkAsync(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nonnull RouteAggregationRulesPostRequest routeAggregationRulesPostRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createRouteAggregationRulesInBulkValidateBeforeCall(routeAggregationId, routeAggregationRulesPostRequest, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -420,7 +420,7 @@ public okhttp3.Call createRouteAggregationRulesInBulkAsync(String routeAggregati 500 Internal server error - */ - public okhttp3.Call deleteRouteAggregationRuleByUuidCall(String routeAggregationId, String routeAggregationRuleId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteRouteAggregationRuleByUuidCall(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nonnull String routeAggregationRuleId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -467,7 +467,7 @@ public okhttp3.Call deleteRouteAggregationRuleByUuidCall(String routeAggregation } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteRouteAggregationRuleByUuidValidateBeforeCall(String routeAggregationId, String routeAggregationRuleId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteRouteAggregationRuleByUuidValidateBeforeCall(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nonnull String routeAggregationRuleId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'routeAggregationId' is set if (routeAggregationId == null) { throw new ApiException("Missing the required parameter 'routeAggregationId' when calling deleteRouteAggregationRuleByUuid(Async)"); @@ -502,7 +502,7 @@ private okhttp3.Call deleteRouteAggregationRuleByUuidValidateBeforeCall(String r 500 Internal server error - */ - public RouteAggregationRulesData deleteRouteAggregationRuleByUuid(String routeAggregationId, String routeAggregationRuleId) throws ApiException { + public RouteAggregationRulesData deleteRouteAggregationRuleByUuid(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nonnull String routeAggregationRuleId) throws ApiException { ApiResponse localVarResp = deleteRouteAggregationRuleByUuidWithHttpInfo(routeAggregationId, routeAggregationRuleId); return localVarResp.getData(); } @@ -527,7 +527,7 @@ public RouteAggregationRulesData deleteRouteAggregationRuleByUuid(String routeAg 500 Internal server error - */ - public ApiResponse deleteRouteAggregationRuleByUuidWithHttpInfo(String routeAggregationId, String routeAggregationRuleId) throws ApiException { + public ApiResponse deleteRouteAggregationRuleByUuidWithHttpInfo(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nonnull String routeAggregationRuleId) throws ApiException { okhttp3.Call localVarCall = deleteRouteAggregationRuleByUuidValidateBeforeCall(routeAggregationId, routeAggregationRuleId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -554,7 +554,7 @@ public ApiResponse deleteRouteAggregationRuleByUuidWi 500 Internal server error - */ - public okhttp3.Call deleteRouteAggregationRuleByUuidAsync(String routeAggregationId, String routeAggregationRuleId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteRouteAggregationRuleByUuidAsync(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nonnull String routeAggregationRuleId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteRouteAggregationRuleByUuidValidateBeforeCall(routeAggregationId, routeAggregationRuleId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -581,7 +581,7 @@ public okhttp3.Call deleteRouteAggregationRuleByUuidAsync(String routeAggregatio 500 Internal server error - */ - public okhttp3.Call getRouteAggregationRuleByUuidCall(String routeAggregationId, String routeAggregationRuleId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getRouteAggregationRuleByUuidCall(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nonnull String routeAggregationRuleId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -628,7 +628,7 @@ public okhttp3.Call getRouteAggregationRuleByUuidCall(String routeAggregationId, } @SuppressWarnings("rawtypes") - private okhttp3.Call getRouteAggregationRuleByUuidValidateBeforeCall(String routeAggregationId, String routeAggregationRuleId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getRouteAggregationRuleByUuidValidateBeforeCall(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nonnull String routeAggregationRuleId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'routeAggregationId' is set if (routeAggregationId == null) { throw new ApiException("Missing the required parameter 'routeAggregationId' when calling getRouteAggregationRuleByUuid(Async)"); @@ -663,7 +663,7 @@ private okhttp3.Call getRouteAggregationRuleByUuidValidateBeforeCall(String rout 500 Internal server error - */ - public RouteAggregationRulesData getRouteAggregationRuleByUuid(String routeAggregationId, String routeAggregationRuleId) throws ApiException { + public RouteAggregationRulesData getRouteAggregationRuleByUuid(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nonnull String routeAggregationRuleId) throws ApiException { ApiResponse localVarResp = getRouteAggregationRuleByUuidWithHttpInfo(routeAggregationId, routeAggregationRuleId); return localVarResp.getData(); } @@ -688,7 +688,7 @@ public RouteAggregationRulesData getRouteAggregationRuleByUuid(String routeAggre 500 Internal server error - */ - public ApiResponse getRouteAggregationRuleByUuidWithHttpInfo(String routeAggregationId, String routeAggregationRuleId) throws ApiException { + public ApiResponse getRouteAggregationRuleByUuidWithHttpInfo(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nonnull String routeAggregationRuleId) throws ApiException { okhttp3.Call localVarCall = getRouteAggregationRuleByUuidValidateBeforeCall(routeAggregationId, routeAggregationRuleId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -715,7 +715,7 @@ public ApiResponse getRouteAggregationRuleByUuidWithH 500 Internal server error - */ - public okhttp3.Call getRouteAggregationRuleByUuidAsync(String routeAggregationId, String routeAggregationRuleId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getRouteAggregationRuleByUuidAsync(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nonnull String routeAggregationRuleId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getRouteAggregationRuleByUuidValidateBeforeCall(routeAggregationId, routeAggregationRuleId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -742,7 +742,7 @@ public okhttp3.Call getRouteAggregationRuleByUuidAsync(String routeAggregationId 500 Internal server error - */ - public okhttp3.Call getRouteAggregationRuleChangeByUuidCall(String routeAggregationId, String routeAggregationRuleId, UUID changeId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getRouteAggregationRuleChangeByUuidCall(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nonnull String routeAggregationRuleId, @javax.annotation.Nonnull UUID changeId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -790,7 +790,7 @@ public okhttp3.Call getRouteAggregationRuleChangeByUuidCall(String routeAggregat } @SuppressWarnings("rawtypes") - private okhttp3.Call getRouteAggregationRuleChangeByUuidValidateBeforeCall(String routeAggregationId, String routeAggregationRuleId, UUID changeId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getRouteAggregationRuleChangeByUuidValidateBeforeCall(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nonnull String routeAggregationRuleId, @javax.annotation.Nonnull UUID changeId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'routeAggregationId' is set if (routeAggregationId == null) { throw new ApiException("Missing the required parameter 'routeAggregationId' when calling getRouteAggregationRuleChangeByUuid(Async)"); @@ -830,7 +830,7 @@ private okhttp3.Call getRouteAggregationRuleChangeByUuidValidateBeforeCall(Strin 500 Internal server error - */ - public RouteAggregationRulesChangeData getRouteAggregationRuleChangeByUuid(String routeAggregationId, String routeAggregationRuleId, UUID changeId) throws ApiException { + public RouteAggregationRulesChangeData getRouteAggregationRuleChangeByUuid(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nonnull String routeAggregationRuleId, @javax.annotation.Nonnull UUID changeId) throws ApiException { ApiResponse localVarResp = getRouteAggregationRuleChangeByUuidWithHttpInfo(routeAggregationId, routeAggregationRuleId, changeId); return localVarResp.getData(); } @@ -855,7 +855,7 @@ public RouteAggregationRulesChangeData getRouteAggregationRuleChangeByUuid(Strin 500 Internal server error - */ - public ApiResponse getRouteAggregationRuleChangeByUuidWithHttpInfo(String routeAggregationId, String routeAggregationRuleId, UUID changeId) throws ApiException { + public ApiResponse getRouteAggregationRuleChangeByUuidWithHttpInfo(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nonnull String routeAggregationRuleId, @javax.annotation.Nonnull UUID changeId) throws ApiException { okhttp3.Call localVarCall = getRouteAggregationRuleChangeByUuidValidateBeforeCall(routeAggregationId, routeAggregationRuleId, changeId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -882,7 +882,7 @@ public ApiResponse getRouteAggregationRuleChang 500 Internal server error - */ - public okhttp3.Call getRouteAggregationRuleChangeByUuidAsync(String routeAggregationId, String routeAggregationRuleId, UUID changeId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getRouteAggregationRuleChangeByUuidAsync(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nonnull String routeAggregationRuleId, @javax.annotation.Nonnull UUID changeId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getRouteAggregationRuleChangeByUuidValidateBeforeCall(routeAggregationId, routeAggregationRuleId, changeId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -910,7 +910,7 @@ public okhttp3.Call getRouteAggregationRuleChangeByUuidAsync(String routeAggrega 500 Internal server error - */ - public okhttp3.Call getRouteAggregationRuleChangesCall(String routeAggregationId, String routeAggregationRuleId, Integer offset, Integer limit, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getRouteAggregationRuleChangesCall(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nonnull String routeAggregationRuleId, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -965,7 +965,7 @@ public okhttp3.Call getRouteAggregationRuleChangesCall(String routeAggregationId } @SuppressWarnings("rawtypes") - private okhttp3.Call getRouteAggregationRuleChangesValidateBeforeCall(String routeAggregationId, String routeAggregationRuleId, Integer offset, Integer limit, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getRouteAggregationRuleChangesValidateBeforeCall(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nonnull String routeAggregationRuleId, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit, final ApiCallback _callback) throws ApiException { // verify the required parameter 'routeAggregationId' is set if (routeAggregationId == null) { throw new ApiException("Missing the required parameter 'routeAggregationId' when calling getRouteAggregationRuleChanges(Async)"); @@ -1001,7 +1001,7 @@ private okhttp3.Call getRouteAggregationRuleChangesValidateBeforeCall(String rou 500 Internal server error - */ - public RouteAggregationRulesChangeDataResponse getRouteAggregationRuleChanges(String routeAggregationId, String routeAggregationRuleId, Integer offset, Integer limit) throws ApiException { + public RouteAggregationRulesChangeDataResponse getRouteAggregationRuleChanges(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nonnull String routeAggregationRuleId, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit) throws ApiException { ApiResponse localVarResp = getRouteAggregationRuleChangesWithHttpInfo(routeAggregationId, routeAggregationRuleId, offset, limit); return localVarResp.getData(); } @@ -1027,7 +1027,7 @@ public RouteAggregationRulesChangeDataResponse getRouteAggregationRuleChanges(St 500 Internal server error - */ - public ApiResponse getRouteAggregationRuleChangesWithHttpInfo(String routeAggregationId, String routeAggregationRuleId, Integer offset, Integer limit) throws ApiException { + public ApiResponse getRouteAggregationRuleChangesWithHttpInfo(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nonnull String routeAggregationRuleId, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit) throws ApiException { okhttp3.Call localVarCall = getRouteAggregationRuleChangesValidateBeforeCall(routeAggregationId, routeAggregationRuleId, offset, limit, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1055,7 +1055,7 @@ public ApiResponse getRouteAggregationR 500 Internal server error - */ - public okhttp3.Call getRouteAggregationRuleChangesAsync(String routeAggregationId, String routeAggregationRuleId, Integer offset, Integer limit, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getRouteAggregationRuleChangesAsync(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nonnull String routeAggregationRuleId, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getRouteAggregationRuleChangesValidateBeforeCall(routeAggregationId, routeAggregationRuleId, offset, limit, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1082,7 +1082,7 @@ public okhttp3.Call getRouteAggregationRuleChangesAsync(String routeAggregationI 500 Internal server error - */ - public okhttp3.Call getRouteAggregationRulesCall(String routeAggregationId, Integer offset, Integer limit, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getRouteAggregationRulesCall(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1136,7 +1136,7 @@ public okhttp3.Call getRouteAggregationRulesCall(String routeAggregationId, Inte } @SuppressWarnings("rawtypes") - private okhttp3.Call getRouteAggregationRulesValidateBeforeCall(String routeAggregationId, Integer offset, Integer limit, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getRouteAggregationRulesValidateBeforeCall(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit, final ApiCallback _callback) throws ApiException { // verify the required parameter 'routeAggregationId' is set if (routeAggregationId == null) { throw new ApiException("Missing the required parameter 'routeAggregationId' when calling getRouteAggregationRules(Async)"); @@ -1166,7 +1166,7 @@ private okhttp3.Call getRouteAggregationRulesValidateBeforeCall(String routeAggr 500 Internal server error - */ - public GetRouteAggregationRulesResponse getRouteAggregationRules(String routeAggregationId, Integer offset, Integer limit) throws ApiException { + public GetRouteAggregationRulesResponse getRouteAggregationRules(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit) throws ApiException { ApiResponse localVarResp = getRouteAggregationRulesWithHttpInfo(routeAggregationId, offset, limit); return localVarResp.getData(); } @@ -1191,7 +1191,7 @@ public GetRouteAggregationRulesResponse getRouteAggregationRules(String routeAgg 500 Internal server error - */ - public ApiResponse getRouteAggregationRulesWithHttpInfo(String routeAggregationId, Integer offset, Integer limit) throws ApiException { + public ApiResponse getRouteAggregationRulesWithHttpInfo(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit) throws ApiException { okhttp3.Call localVarCall = getRouteAggregationRulesValidateBeforeCall(routeAggregationId, offset, limit, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1218,7 +1218,7 @@ public ApiResponse getRouteAggregationRulesWit 500 Internal server error - */ - public okhttp3.Call getRouteAggregationRulesAsync(String routeAggregationId, Integer offset, Integer limit, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getRouteAggregationRulesAsync(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getRouteAggregationRulesValidateBeforeCall(routeAggregationId, offset, limit, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1246,7 +1246,7 @@ public okhttp3.Call getRouteAggregationRulesAsync(String routeAggregationId, Int 500 Internal server error - */ - public okhttp3.Call patchRouteAggregationRuleByUuidCall(String routeAggregationId, String routeAggregationRuleId, List routeAggregationRulesPatchRequestItem, final ApiCallback _callback) throws ApiException { + public okhttp3.Call patchRouteAggregationRuleByUuidCall(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nonnull String routeAggregationRuleId, @javax.annotation.Nonnull List routeAggregationRulesPatchRequestItem, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1295,7 +1295,7 @@ public okhttp3.Call patchRouteAggregationRuleByUuidCall(String routeAggregationI } @SuppressWarnings("rawtypes") - private okhttp3.Call patchRouteAggregationRuleByUuidValidateBeforeCall(String routeAggregationId, String routeAggregationRuleId, List routeAggregationRulesPatchRequestItem, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchRouteAggregationRuleByUuidValidateBeforeCall(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nonnull String routeAggregationRuleId, @javax.annotation.Nonnull List routeAggregationRulesPatchRequestItem, final ApiCallback _callback) throws ApiException { // verify the required parameter 'routeAggregationId' is set if (routeAggregationId == null) { throw new ApiException("Missing the required parameter 'routeAggregationId' when calling patchRouteAggregationRuleByUuid(Async)"); @@ -1336,7 +1336,7 @@ private okhttp3.Call patchRouteAggregationRuleByUuidValidateBeforeCall(String ro 500 Internal server error - */ - public RouteAggregationRulesData patchRouteAggregationRuleByUuid(String routeAggregationId, String routeAggregationRuleId, List routeAggregationRulesPatchRequestItem) throws ApiException { + public RouteAggregationRulesData patchRouteAggregationRuleByUuid(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nonnull String routeAggregationRuleId, @javax.annotation.Nonnull List routeAggregationRulesPatchRequestItem) throws ApiException { ApiResponse localVarResp = patchRouteAggregationRuleByUuidWithHttpInfo(routeAggregationId, routeAggregationRuleId, routeAggregationRulesPatchRequestItem); return localVarResp.getData(); } @@ -1362,7 +1362,7 @@ public RouteAggregationRulesData patchRouteAggregationRuleByUuid(String routeAgg 500 Internal server error - */ - public ApiResponse patchRouteAggregationRuleByUuidWithHttpInfo(String routeAggregationId, String routeAggregationRuleId, List routeAggregationRulesPatchRequestItem) throws ApiException { + public ApiResponse patchRouteAggregationRuleByUuidWithHttpInfo(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nonnull String routeAggregationRuleId, @javax.annotation.Nonnull List routeAggregationRulesPatchRequestItem) throws ApiException { okhttp3.Call localVarCall = patchRouteAggregationRuleByUuidValidateBeforeCall(routeAggregationId, routeAggregationRuleId, routeAggregationRulesPatchRequestItem, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1390,7 +1390,7 @@ public ApiResponse patchRouteAggregationRuleByUuidWit 500 Internal server error - */ - public okhttp3.Call patchRouteAggregationRuleByUuidAsync(String routeAggregationId, String routeAggregationRuleId, List routeAggregationRulesPatchRequestItem, final ApiCallback _callback) throws ApiException { + public okhttp3.Call patchRouteAggregationRuleByUuidAsync(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nonnull String routeAggregationRuleId, @javax.annotation.Nonnull List routeAggregationRulesPatchRequestItem, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchRouteAggregationRuleByUuidValidateBeforeCall(routeAggregationId, routeAggregationRuleId, routeAggregationRulesPatchRequestItem, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1418,7 +1418,7 @@ public okhttp3.Call patchRouteAggregationRuleByUuidAsync(String routeAggregation 500 Internal server error - */ - public okhttp3.Call replaceRouteAggregationRuleByUuidCall(String routeAggregationId, String routeAggregationRuleId, RouteAggregationRulesBase routeAggregationRulesBase, final ApiCallback _callback) throws ApiException { + public okhttp3.Call replaceRouteAggregationRuleByUuidCall(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nonnull String routeAggregationRuleId, @javax.annotation.Nonnull RouteAggregationRulesBase routeAggregationRulesBase, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1466,7 +1466,7 @@ public okhttp3.Call replaceRouteAggregationRuleByUuidCall(String routeAggregatio } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceRouteAggregationRuleByUuidValidateBeforeCall(String routeAggregationId, String routeAggregationRuleId, RouteAggregationRulesBase routeAggregationRulesBase, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceRouteAggregationRuleByUuidValidateBeforeCall(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nonnull String routeAggregationRuleId, @javax.annotation.Nonnull RouteAggregationRulesBase routeAggregationRulesBase, final ApiCallback _callback) throws ApiException { // verify the required parameter 'routeAggregationId' is set if (routeAggregationId == null) { throw new ApiException("Missing the required parameter 'routeAggregationId' when calling replaceRouteAggregationRuleByUuid(Async)"); @@ -1507,7 +1507,7 @@ private okhttp3.Call replaceRouteAggregationRuleByUuidValidateBeforeCall(String 500 Internal server error - */ - public RouteAggregationRulesData replaceRouteAggregationRuleByUuid(String routeAggregationId, String routeAggregationRuleId, RouteAggregationRulesBase routeAggregationRulesBase) throws ApiException { + public RouteAggregationRulesData replaceRouteAggregationRuleByUuid(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nonnull String routeAggregationRuleId, @javax.annotation.Nonnull RouteAggregationRulesBase routeAggregationRulesBase) throws ApiException { ApiResponse localVarResp = replaceRouteAggregationRuleByUuidWithHttpInfo(routeAggregationId, routeAggregationRuleId, routeAggregationRulesBase); return localVarResp.getData(); } @@ -1533,7 +1533,7 @@ public RouteAggregationRulesData replaceRouteAggregationRuleByUuid(String routeA 500 Internal server error - */ - public ApiResponse replaceRouteAggregationRuleByUuidWithHttpInfo(String routeAggregationId, String routeAggregationRuleId, RouteAggregationRulesBase routeAggregationRulesBase) throws ApiException { + public ApiResponse replaceRouteAggregationRuleByUuidWithHttpInfo(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nonnull String routeAggregationRuleId, @javax.annotation.Nonnull RouteAggregationRulesBase routeAggregationRulesBase) throws ApiException { okhttp3.Call localVarCall = replaceRouteAggregationRuleByUuidValidateBeforeCall(routeAggregationId, routeAggregationRuleId, routeAggregationRulesBase, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1561,7 +1561,7 @@ public ApiResponse replaceRouteAggregationRuleByUuidW 500 Internal server error - */ - public okhttp3.Call replaceRouteAggregationRuleByUuidAsync(String routeAggregationId, String routeAggregationRuleId, RouteAggregationRulesBase routeAggregationRulesBase, final ApiCallback _callback) throws ApiException { + public okhttp3.Call replaceRouteAggregationRuleByUuidAsync(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nonnull String routeAggregationRuleId, @javax.annotation.Nonnull RouteAggregationRulesBase routeAggregationRulesBase, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceRouteAggregationRuleByUuidValidateBeforeCall(routeAggregationId, routeAggregationRuleId, routeAggregationRulesBase, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/RouteAggregationsApi.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/RouteAggregationsApi.java index 4fba161e..10d2c5e2 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/RouteAggregationsApi.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/RouteAggregationsApi.java @@ -101,7 +101,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 500 Internal server error - */ - public okhttp3.Call attachConnectionRouteAggregationCall(String routeAggregationId, String connectionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call attachConnectionRouteAggregationCall(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nonnull String connectionId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -148,7 +148,7 @@ public okhttp3.Call attachConnectionRouteAggregationCall(String routeAggregation } @SuppressWarnings("rawtypes") - private okhttp3.Call attachConnectionRouteAggregationValidateBeforeCall(String routeAggregationId, String connectionId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call attachConnectionRouteAggregationValidateBeforeCall(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nonnull String connectionId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'routeAggregationId' is set if (routeAggregationId == null) { throw new ApiException("Missing the required parameter 'routeAggregationId' when calling attachConnectionRouteAggregation(Async)"); @@ -183,7 +183,7 @@ private okhttp3.Call attachConnectionRouteAggregationValidateBeforeCall(String r 500 Internal server error - */ - public ConnectionRouteAggregationData attachConnectionRouteAggregation(String routeAggregationId, String connectionId) throws ApiException { + public ConnectionRouteAggregationData attachConnectionRouteAggregation(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nonnull String connectionId) throws ApiException { ApiResponse localVarResp = attachConnectionRouteAggregationWithHttpInfo(routeAggregationId, connectionId); return localVarResp.getData(); } @@ -208,7 +208,7 @@ public ConnectionRouteAggregationData attachConnectionRouteAggregation(String ro 500 Internal server error - */ - public ApiResponse attachConnectionRouteAggregationWithHttpInfo(String routeAggregationId, String connectionId) throws ApiException { + public ApiResponse attachConnectionRouteAggregationWithHttpInfo(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nonnull String connectionId) throws ApiException { okhttp3.Call localVarCall = attachConnectionRouteAggregationValidateBeforeCall(routeAggregationId, connectionId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -235,7 +235,7 @@ public ApiResponse attachConnectionRouteAggregat 500 Internal server error - */ - public okhttp3.Call attachConnectionRouteAggregationAsync(String routeAggregationId, String connectionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call attachConnectionRouteAggregationAsync(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nonnull String connectionId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = attachConnectionRouteAggregationValidateBeforeCall(routeAggregationId, connectionId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -261,7 +261,7 @@ public okhttp3.Call attachConnectionRouteAggregationAsync(String routeAggregatio 500 Internal server error - */ - public okhttp3.Call createRouteAggregationCall(RouteAggregationsBase routeAggregationsBase, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createRouteAggregationCall(@javax.annotation.Nonnull RouteAggregationsBase routeAggregationsBase, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -307,7 +307,7 @@ public okhttp3.Call createRouteAggregationCall(RouteAggregationsBase routeAggreg } @SuppressWarnings("rawtypes") - private okhttp3.Call createRouteAggregationValidateBeforeCall(RouteAggregationsBase routeAggregationsBase, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createRouteAggregationValidateBeforeCall(@javax.annotation.Nonnull RouteAggregationsBase routeAggregationsBase, final ApiCallback _callback) throws ApiException { // verify the required parameter 'routeAggregationsBase' is set if (routeAggregationsBase == null) { throw new ApiException("Missing the required parameter 'routeAggregationsBase' when calling createRouteAggregation(Async)"); @@ -336,7 +336,7 @@ private okhttp3.Call createRouteAggregationValidateBeforeCall(RouteAggregationsB 500 Internal server error - */ - public RouteAggregationsData createRouteAggregation(RouteAggregationsBase routeAggregationsBase) throws ApiException { + public RouteAggregationsData createRouteAggregation(@javax.annotation.Nonnull RouteAggregationsBase routeAggregationsBase) throws ApiException { ApiResponse localVarResp = createRouteAggregationWithHttpInfo(routeAggregationsBase); return localVarResp.getData(); } @@ -360,7 +360,7 @@ public RouteAggregationsData createRouteAggregation(RouteAggregationsBase routeA 500 Internal server error - */ - public ApiResponse createRouteAggregationWithHttpInfo(RouteAggregationsBase routeAggregationsBase) throws ApiException { + public ApiResponse createRouteAggregationWithHttpInfo(@javax.annotation.Nonnull RouteAggregationsBase routeAggregationsBase) throws ApiException { okhttp3.Call localVarCall = createRouteAggregationValidateBeforeCall(routeAggregationsBase, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -386,7 +386,7 @@ public ApiResponse createRouteAggregationWithHttpInfo(Rou 500 Internal server error - */ - public okhttp3.Call createRouteAggregationAsync(RouteAggregationsBase routeAggregationsBase, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createRouteAggregationAsync(@javax.annotation.Nonnull RouteAggregationsBase routeAggregationsBase, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createRouteAggregationValidateBeforeCall(routeAggregationsBase, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -412,7 +412,7 @@ public okhttp3.Call createRouteAggregationAsync(RouteAggregationsBase routeAggre 500 Internal server error - */ - public okhttp3.Call deleteRouteAggregationByUuidCall(String routeAggregationId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteRouteAggregationByUuidCall(@javax.annotation.Nonnull String routeAggregationId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -458,7 +458,7 @@ public okhttp3.Call deleteRouteAggregationByUuidCall(String routeAggregationId, } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteRouteAggregationByUuidValidateBeforeCall(String routeAggregationId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteRouteAggregationByUuidValidateBeforeCall(@javax.annotation.Nonnull String routeAggregationId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'routeAggregationId' is set if (routeAggregationId == null) { throw new ApiException("Missing the required parameter 'routeAggregationId' when calling deleteRouteAggregationByUuid(Async)"); @@ -487,7 +487,7 @@ private okhttp3.Call deleteRouteAggregationByUuidValidateBeforeCall(String route 500 Internal server error - */ - public RouteAggregationsData deleteRouteAggregationByUuid(String routeAggregationId) throws ApiException { + public RouteAggregationsData deleteRouteAggregationByUuid(@javax.annotation.Nonnull String routeAggregationId) throws ApiException { ApiResponse localVarResp = deleteRouteAggregationByUuidWithHttpInfo(routeAggregationId); return localVarResp.getData(); } @@ -511,7 +511,7 @@ public RouteAggregationsData deleteRouteAggregationByUuid(String routeAggregatio 500 Internal server error - */ - public ApiResponse deleteRouteAggregationByUuidWithHttpInfo(String routeAggregationId) throws ApiException { + public ApiResponse deleteRouteAggregationByUuidWithHttpInfo(@javax.annotation.Nonnull String routeAggregationId) throws ApiException { okhttp3.Call localVarCall = deleteRouteAggregationByUuidValidateBeforeCall(routeAggregationId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -537,7 +537,7 @@ public ApiResponse deleteRouteAggregationByUuidWithHttpIn 500 Internal server error - */ - public okhttp3.Call deleteRouteAggregationByUuidAsync(String routeAggregationId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteRouteAggregationByUuidAsync(@javax.annotation.Nonnull String routeAggregationId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteRouteAggregationByUuidValidateBeforeCall(routeAggregationId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -564,7 +564,7 @@ public okhttp3.Call deleteRouteAggregationByUuidAsync(String routeAggregationId, 500 Internal server error - */ - public okhttp3.Call detachConnectionRouteAggregationCall(String routeAggregationId, String connectionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call detachConnectionRouteAggregationCall(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nonnull String connectionId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -611,7 +611,7 @@ public okhttp3.Call detachConnectionRouteAggregationCall(String routeAggregation } @SuppressWarnings("rawtypes") - private okhttp3.Call detachConnectionRouteAggregationValidateBeforeCall(String routeAggregationId, String connectionId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call detachConnectionRouteAggregationValidateBeforeCall(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nonnull String connectionId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'routeAggregationId' is set if (routeAggregationId == null) { throw new ApiException("Missing the required parameter 'routeAggregationId' when calling detachConnectionRouteAggregation(Async)"); @@ -646,7 +646,7 @@ private okhttp3.Call detachConnectionRouteAggregationValidateBeforeCall(String r 500 Internal server error - */ - public ConnectionRouteAggregationData detachConnectionRouteAggregation(String routeAggregationId, String connectionId) throws ApiException { + public ConnectionRouteAggregationData detachConnectionRouteAggregation(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nonnull String connectionId) throws ApiException { ApiResponse localVarResp = detachConnectionRouteAggregationWithHttpInfo(routeAggregationId, connectionId); return localVarResp.getData(); } @@ -671,7 +671,7 @@ public ConnectionRouteAggregationData detachConnectionRouteAggregation(String ro 500 Internal server error - */ - public ApiResponse detachConnectionRouteAggregationWithHttpInfo(String routeAggregationId, String connectionId) throws ApiException { + public ApiResponse detachConnectionRouteAggregationWithHttpInfo(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nonnull String connectionId) throws ApiException { okhttp3.Call localVarCall = detachConnectionRouteAggregationValidateBeforeCall(routeAggregationId, connectionId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -698,7 +698,7 @@ public ApiResponse detachConnectionRouteAggregat 500 Internal server error - */ - public okhttp3.Call detachConnectionRouteAggregationAsync(String routeAggregationId, String connectionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call detachConnectionRouteAggregationAsync(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nonnull String connectionId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = detachConnectionRouteAggregationValidateBeforeCall(routeAggregationId, connectionId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -725,7 +725,7 @@ public okhttp3.Call detachConnectionRouteAggregationAsync(String routeAggregatio 500 Internal server error - */ - public okhttp3.Call getConnectionRouteAggregationByUuidCall(String routeAggregationId, String connectionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getConnectionRouteAggregationByUuidCall(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nonnull String connectionId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -772,7 +772,7 @@ public okhttp3.Call getConnectionRouteAggregationByUuidCall(String routeAggregat } @SuppressWarnings("rawtypes") - private okhttp3.Call getConnectionRouteAggregationByUuidValidateBeforeCall(String routeAggregationId, String connectionId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getConnectionRouteAggregationByUuidValidateBeforeCall(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nonnull String connectionId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'routeAggregationId' is set if (routeAggregationId == null) { throw new ApiException("Missing the required parameter 'routeAggregationId' when calling getConnectionRouteAggregationByUuid(Async)"); @@ -807,7 +807,7 @@ private okhttp3.Call getConnectionRouteAggregationByUuidValidateBeforeCall(Strin 500 Internal server error - */ - public ConnectionRouteAggregationData getConnectionRouteAggregationByUuid(String routeAggregationId, String connectionId) throws ApiException { + public ConnectionRouteAggregationData getConnectionRouteAggregationByUuid(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nonnull String connectionId) throws ApiException { ApiResponse localVarResp = getConnectionRouteAggregationByUuidWithHttpInfo(routeAggregationId, connectionId); return localVarResp.getData(); } @@ -832,7 +832,7 @@ public ConnectionRouteAggregationData getConnectionRouteAggregationByUuid(String 500 Internal server error - */ - public ApiResponse getConnectionRouteAggregationByUuidWithHttpInfo(String routeAggregationId, String connectionId) throws ApiException { + public ApiResponse getConnectionRouteAggregationByUuidWithHttpInfo(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nonnull String connectionId) throws ApiException { okhttp3.Call localVarCall = getConnectionRouteAggregationByUuidValidateBeforeCall(routeAggregationId, connectionId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -859,7 +859,7 @@ public ApiResponse getConnectionRouteAggregation 500 Internal server error - */ - public okhttp3.Call getConnectionRouteAggregationByUuidAsync(String routeAggregationId, String connectionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getConnectionRouteAggregationByUuidAsync(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nonnull String connectionId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getConnectionRouteAggregationByUuidValidateBeforeCall(routeAggregationId, connectionId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -885,7 +885,7 @@ public okhttp3.Call getConnectionRouteAggregationByUuidAsync(String routeAggrega 500 Internal server error - */ - public okhttp3.Call getConnectionRouteAggregationsCall(String connectionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getConnectionRouteAggregationsCall(@javax.annotation.Nonnull String connectionId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -931,7 +931,7 @@ public okhttp3.Call getConnectionRouteAggregationsCall(String connectionId, fina } @SuppressWarnings("rawtypes") - private okhttp3.Call getConnectionRouteAggregationsValidateBeforeCall(String connectionId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getConnectionRouteAggregationsValidateBeforeCall(@javax.annotation.Nonnull String connectionId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'connectionId' is set if (connectionId == null) { throw new ApiException("Missing the required parameter 'connectionId' when calling getConnectionRouteAggregations(Async)"); @@ -960,7 +960,7 @@ private okhttp3.Call getConnectionRouteAggregationsValidateBeforeCall(String con 500 Internal server error - */ - public GetAllConnectionRouteAggregationsResponse getConnectionRouteAggregations(String connectionId) throws ApiException { + public GetAllConnectionRouteAggregationsResponse getConnectionRouteAggregations(@javax.annotation.Nonnull String connectionId) throws ApiException { ApiResponse localVarResp = getConnectionRouteAggregationsWithHttpInfo(connectionId); return localVarResp.getData(); } @@ -984,7 +984,7 @@ public GetAllConnectionRouteAggregationsResponse getConnectionRouteAggregations( 500 Internal server error - */ - public ApiResponse getConnectionRouteAggregationsWithHttpInfo(String connectionId) throws ApiException { + public ApiResponse getConnectionRouteAggregationsWithHttpInfo(@javax.annotation.Nonnull String connectionId) throws ApiException { okhttp3.Call localVarCall = getConnectionRouteAggregationsValidateBeforeCall(connectionId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1010,7 +1010,7 @@ public ApiResponse getConnectionRoute 500 Internal server error - */ - public okhttp3.Call getConnectionRouteAggregationsAsync(String connectionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getConnectionRouteAggregationsAsync(@javax.annotation.Nonnull String connectionId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getConnectionRouteAggregationsValidateBeforeCall(connectionId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1036,7 +1036,7 @@ public okhttp3.Call getConnectionRouteAggregationsAsync(String connectionId, fin 500 Internal server error - */ - public okhttp3.Call getRouteAggregationByUuidCall(String routeAggregationId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getRouteAggregationByUuidCall(@javax.annotation.Nonnull String routeAggregationId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1082,7 +1082,7 @@ public okhttp3.Call getRouteAggregationByUuidCall(String routeAggregationId, fin } @SuppressWarnings("rawtypes") - private okhttp3.Call getRouteAggregationByUuidValidateBeforeCall(String routeAggregationId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getRouteAggregationByUuidValidateBeforeCall(@javax.annotation.Nonnull String routeAggregationId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'routeAggregationId' is set if (routeAggregationId == null) { throw new ApiException("Missing the required parameter 'routeAggregationId' when calling getRouteAggregationByUuid(Async)"); @@ -1111,7 +1111,7 @@ private okhttp3.Call getRouteAggregationByUuidValidateBeforeCall(String routeAgg 500 Internal server error - */ - public RouteAggregationsData getRouteAggregationByUuid(String routeAggregationId) throws ApiException { + public RouteAggregationsData getRouteAggregationByUuid(@javax.annotation.Nonnull String routeAggregationId) throws ApiException { ApiResponse localVarResp = getRouteAggregationByUuidWithHttpInfo(routeAggregationId); return localVarResp.getData(); } @@ -1135,7 +1135,7 @@ public RouteAggregationsData getRouteAggregationByUuid(String routeAggregationId 500 Internal server error - */ - public ApiResponse getRouteAggregationByUuidWithHttpInfo(String routeAggregationId) throws ApiException { + public ApiResponse getRouteAggregationByUuidWithHttpInfo(@javax.annotation.Nonnull String routeAggregationId) throws ApiException { okhttp3.Call localVarCall = getRouteAggregationByUuidValidateBeforeCall(routeAggregationId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1161,7 +1161,7 @@ public ApiResponse getRouteAggregationByUuidWithHttpInfo( 500 Internal server error - */ - public okhttp3.Call getRouteAggregationByUuidAsync(String routeAggregationId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getRouteAggregationByUuidAsync(@javax.annotation.Nonnull String routeAggregationId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getRouteAggregationByUuidValidateBeforeCall(routeAggregationId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1187,7 +1187,7 @@ public okhttp3.Call getRouteAggregationByUuidAsync(String routeAggregationId, fi 500 Internal server error - */ - public okhttp3.Call getRouteAggregationChangeByUuidCall(String routeAggregationId, UUID changeId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getRouteAggregationChangeByUuidCall(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nonnull UUID changeId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1234,7 +1234,7 @@ public okhttp3.Call getRouteAggregationChangeByUuidCall(String routeAggregationI } @SuppressWarnings("rawtypes") - private okhttp3.Call getRouteAggregationChangeByUuidValidateBeforeCall(String routeAggregationId, UUID changeId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getRouteAggregationChangeByUuidValidateBeforeCall(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nonnull UUID changeId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'routeAggregationId' is set if (routeAggregationId == null) { throw new ApiException("Missing the required parameter 'routeAggregationId' when calling getRouteAggregationChangeByUuid(Async)"); @@ -1268,7 +1268,7 @@ private okhttp3.Call getRouteAggregationChangeByUuidValidateBeforeCall(String ro 500 Internal server error - */ - public RouteAggregationChangeData getRouteAggregationChangeByUuid(String routeAggregationId, UUID changeId) throws ApiException { + public RouteAggregationChangeData getRouteAggregationChangeByUuid(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nonnull UUID changeId) throws ApiException { ApiResponse localVarResp = getRouteAggregationChangeByUuidWithHttpInfo(routeAggregationId, changeId); return localVarResp.getData(); } @@ -1292,7 +1292,7 @@ public RouteAggregationChangeData getRouteAggregationChangeByUuid(String routeAg 500 Internal server error - */ - public ApiResponse getRouteAggregationChangeByUuidWithHttpInfo(String routeAggregationId, UUID changeId) throws ApiException { + public ApiResponse getRouteAggregationChangeByUuidWithHttpInfo(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nonnull UUID changeId) throws ApiException { okhttp3.Call localVarCall = getRouteAggregationChangeByUuidValidateBeforeCall(routeAggregationId, changeId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1318,7 +1318,7 @@ public ApiResponse getRouteAggregationChangeByUuidWi 500 Internal server error - */ - public okhttp3.Call getRouteAggregationChangeByUuidAsync(String routeAggregationId, UUID changeId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getRouteAggregationChangeByUuidAsync(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nonnull UUID changeId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getRouteAggregationChangeByUuidValidateBeforeCall(routeAggregationId, changeId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1345,7 +1345,7 @@ public okhttp3.Call getRouteAggregationChangeByUuidAsync(String routeAggregation 500 Internal server error - */ - public okhttp3.Call getRouteAggregationChangesCall(String routeAggregationId, Integer offset, Integer limit, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getRouteAggregationChangesCall(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1399,7 +1399,7 @@ public okhttp3.Call getRouteAggregationChangesCall(String routeAggregationId, In } @SuppressWarnings("rawtypes") - private okhttp3.Call getRouteAggregationChangesValidateBeforeCall(String routeAggregationId, Integer offset, Integer limit, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getRouteAggregationChangesValidateBeforeCall(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit, final ApiCallback _callback) throws ApiException { // verify the required parameter 'routeAggregationId' is set if (routeAggregationId == null) { throw new ApiException("Missing the required parameter 'routeAggregationId' when calling getRouteAggregationChanges(Async)"); @@ -1429,7 +1429,7 @@ private okhttp3.Call getRouteAggregationChangesValidateBeforeCall(String routeAg 500 Internal server error - */ - public RouteAggregationChangeDataResponse getRouteAggregationChanges(String routeAggregationId, Integer offset, Integer limit) throws ApiException { + public RouteAggregationChangeDataResponse getRouteAggregationChanges(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit) throws ApiException { ApiResponse localVarResp = getRouteAggregationChangesWithHttpInfo(routeAggregationId, offset, limit); return localVarResp.getData(); } @@ -1454,7 +1454,7 @@ public RouteAggregationChangeDataResponse getRouteAggregationChanges(String rout 500 Internal server error - */ - public ApiResponse getRouteAggregationChangesWithHttpInfo(String routeAggregationId, Integer offset, Integer limit) throws ApiException { + public ApiResponse getRouteAggregationChangesWithHttpInfo(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit) throws ApiException { okhttp3.Call localVarCall = getRouteAggregationChangesValidateBeforeCall(routeAggregationId, offset, limit, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1481,7 +1481,7 @@ public ApiResponse getRouteAggregationChange 500 Internal server error - */ - public okhttp3.Call getRouteAggregationChangesAsync(String routeAggregationId, Integer offset, Integer limit, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getRouteAggregationChangesAsync(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getRouteAggregationChangesValidateBeforeCall(routeAggregationId, offset, limit, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1507,7 +1507,7 @@ public okhttp3.Call getRouteAggregationChangesAsync(String routeAggregationId, I 500 Internal server error - */ - public okhttp3.Call getRouteAggregationConnectionsCall(String routeAggregationId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getRouteAggregationConnectionsCall(@javax.annotation.Nonnull String routeAggregationId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1553,7 +1553,7 @@ public okhttp3.Call getRouteAggregationConnectionsCall(String routeAggregationId } @SuppressWarnings("rawtypes") - private okhttp3.Call getRouteAggregationConnectionsValidateBeforeCall(String routeAggregationId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getRouteAggregationConnectionsValidateBeforeCall(@javax.annotation.Nonnull String routeAggregationId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'routeAggregationId' is set if (routeAggregationId == null) { throw new ApiException("Missing the required parameter 'routeAggregationId' when calling getRouteAggregationConnections(Async)"); @@ -1582,7 +1582,7 @@ private okhttp3.Call getRouteAggregationConnectionsValidateBeforeCall(String rou 500 Internal server error - */ - public GetRouteAggregationGetConnectionsResponse getRouteAggregationConnections(String routeAggregationId) throws ApiException { + public GetRouteAggregationGetConnectionsResponse getRouteAggregationConnections(@javax.annotation.Nonnull String routeAggregationId) throws ApiException { ApiResponse localVarResp = getRouteAggregationConnectionsWithHttpInfo(routeAggregationId); return localVarResp.getData(); } @@ -1606,7 +1606,7 @@ public GetRouteAggregationGetConnectionsResponse getRouteAggregationConnections( 500 Internal server error - */ - public ApiResponse getRouteAggregationConnectionsWithHttpInfo(String routeAggregationId) throws ApiException { + public ApiResponse getRouteAggregationConnectionsWithHttpInfo(@javax.annotation.Nonnull String routeAggregationId) throws ApiException { okhttp3.Call localVarCall = getRouteAggregationConnectionsValidateBeforeCall(routeAggregationId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1632,7 +1632,7 @@ public ApiResponse getRouteAggregatio 500 Internal server error - */ - public okhttp3.Call getRouteAggregationConnectionsAsync(String routeAggregationId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getRouteAggregationConnectionsAsync(@javax.annotation.Nonnull String routeAggregationId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getRouteAggregationConnectionsValidateBeforeCall(routeAggregationId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1659,7 +1659,7 @@ public okhttp3.Call getRouteAggregationConnectionsAsync(String routeAggregationI 500 Internal server error - */ - public okhttp3.Call patchRouteAggregationByUuidCall(String routeAggregationId, List routeAggregationsPatchRequestItem, final ApiCallback _callback) throws ApiException { + public okhttp3.Call patchRouteAggregationByUuidCall(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nonnull List routeAggregationsPatchRequestItem, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1707,7 +1707,7 @@ public okhttp3.Call patchRouteAggregationByUuidCall(String routeAggregationId, L } @SuppressWarnings("rawtypes") - private okhttp3.Call patchRouteAggregationByUuidValidateBeforeCall(String routeAggregationId, List routeAggregationsPatchRequestItem, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchRouteAggregationByUuidValidateBeforeCall(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nonnull List routeAggregationsPatchRequestItem, final ApiCallback _callback) throws ApiException { // verify the required parameter 'routeAggregationId' is set if (routeAggregationId == null) { throw new ApiException("Missing the required parameter 'routeAggregationId' when calling patchRouteAggregationByUuid(Async)"); @@ -1742,7 +1742,7 @@ private okhttp3.Call patchRouteAggregationByUuidValidateBeforeCall(String routeA 500 Internal server error - */ - public RouteAggregationsData patchRouteAggregationByUuid(String routeAggregationId, List routeAggregationsPatchRequestItem) throws ApiException { + public RouteAggregationsData patchRouteAggregationByUuid(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nonnull List routeAggregationsPatchRequestItem) throws ApiException { ApiResponse localVarResp = patchRouteAggregationByUuidWithHttpInfo(routeAggregationId, routeAggregationsPatchRequestItem); return localVarResp.getData(); } @@ -1767,7 +1767,7 @@ public RouteAggregationsData patchRouteAggregationByUuid(String routeAggregation 500 Internal server error - */ - public ApiResponse patchRouteAggregationByUuidWithHttpInfo(String routeAggregationId, List routeAggregationsPatchRequestItem) throws ApiException { + public ApiResponse patchRouteAggregationByUuidWithHttpInfo(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nonnull List routeAggregationsPatchRequestItem) throws ApiException { okhttp3.Call localVarCall = patchRouteAggregationByUuidValidateBeforeCall(routeAggregationId, routeAggregationsPatchRequestItem, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1794,7 +1794,7 @@ public ApiResponse patchRouteAggregationByUuidWithHttpInf 500 Internal server error - */ - public okhttp3.Call patchRouteAggregationByUuidAsync(String routeAggregationId, List routeAggregationsPatchRequestItem, final ApiCallback _callback) throws ApiException { + public okhttp3.Call patchRouteAggregationByUuidAsync(@javax.annotation.Nonnull String routeAggregationId, @javax.annotation.Nonnull List routeAggregationsPatchRequestItem, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchRouteAggregationByUuidValidateBeforeCall(routeAggregationId, routeAggregationsPatchRequestItem, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1820,7 +1820,7 @@ public okhttp3.Call patchRouteAggregationByUuidAsync(String routeAggregationId, 500 Internal server error - */ - public okhttp3.Call searchRouteAggregationsCall(RouteAggregationsSearchBase routeAggregationsSearchBase, final ApiCallback _callback) throws ApiException { + public okhttp3.Call searchRouteAggregationsCall(@javax.annotation.Nonnull RouteAggregationsSearchBase routeAggregationsSearchBase, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1866,7 +1866,7 @@ public okhttp3.Call searchRouteAggregationsCall(RouteAggregationsSearchBase rout } @SuppressWarnings("rawtypes") - private okhttp3.Call searchRouteAggregationsValidateBeforeCall(RouteAggregationsSearchBase routeAggregationsSearchBase, final ApiCallback _callback) throws ApiException { + private okhttp3.Call searchRouteAggregationsValidateBeforeCall(@javax.annotation.Nonnull RouteAggregationsSearchBase routeAggregationsSearchBase, final ApiCallback _callback) throws ApiException { // verify the required parameter 'routeAggregationsSearchBase' is set if (routeAggregationsSearchBase == null) { throw new ApiException("Missing the required parameter 'routeAggregationsSearchBase' when calling searchRouteAggregations(Async)"); @@ -1895,7 +1895,7 @@ private okhttp3.Call searchRouteAggregationsValidateBeforeCall(RouteAggregations 500 Internal server error - */ - public RouteAggregationsSearchResponse searchRouteAggregations(RouteAggregationsSearchBase routeAggregationsSearchBase) throws ApiException { + public RouteAggregationsSearchResponse searchRouteAggregations(@javax.annotation.Nonnull RouteAggregationsSearchBase routeAggregationsSearchBase) throws ApiException { ApiResponse localVarResp = searchRouteAggregationsWithHttpInfo(routeAggregationsSearchBase); return localVarResp.getData(); } @@ -1919,7 +1919,7 @@ public RouteAggregationsSearchResponse searchRouteAggregations(RouteAggregations 500 Internal server error - */ - public ApiResponse searchRouteAggregationsWithHttpInfo(RouteAggregationsSearchBase routeAggregationsSearchBase) throws ApiException { + public ApiResponse searchRouteAggregationsWithHttpInfo(@javax.annotation.Nonnull RouteAggregationsSearchBase routeAggregationsSearchBase) throws ApiException { okhttp3.Call localVarCall = searchRouteAggregationsValidateBeforeCall(routeAggregationsSearchBase, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1945,7 +1945,7 @@ public ApiResponse searchRouteAggregationsWithH 500 Internal server error - */ - public okhttp3.Call searchRouteAggregationsAsync(RouteAggregationsSearchBase routeAggregationsSearchBase, final ApiCallback _callback) throws ApiException { + public okhttp3.Call searchRouteAggregationsAsync(@javax.annotation.Nonnull RouteAggregationsSearchBase routeAggregationsSearchBase, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = searchRouteAggregationsValidateBeforeCall(routeAggregationsSearchBase, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/RouteFilterRulesApi.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/RouteFilterRulesApi.java index 09fe03c5..826cef24 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/RouteFilterRulesApi.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/RouteFilterRulesApi.java @@ -98,7 +98,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 500 Internal server error - */ - public okhttp3.Call createRouteFilterRuleCall(String routeFilterId, RouteFilterRulesBase routeFilterRulesBase, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createRouteFilterRuleCall(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nonnull RouteFilterRulesBase routeFilterRulesBase, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -145,7 +145,7 @@ public okhttp3.Call createRouteFilterRuleCall(String routeFilterId, RouteFilterR } @SuppressWarnings("rawtypes") - private okhttp3.Call createRouteFilterRuleValidateBeforeCall(String routeFilterId, RouteFilterRulesBase routeFilterRulesBase, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createRouteFilterRuleValidateBeforeCall(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nonnull RouteFilterRulesBase routeFilterRulesBase, final ApiCallback _callback) throws ApiException { // verify the required parameter 'routeFilterId' is set if (routeFilterId == null) { throw new ApiException("Missing the required parameter 'routeFilterId' when calling createRouteFilterRule(Async)"); @@ -180,7 +180,7 @@ private okhttp3.Call createRouteFilterRuleValidateBeforeCall(String routeFilterI 500 Internal server error - */ - public RouteFilterRulesData createRouteFilterRule(String routeFilterId, RouteFilterRulesBase routeFilterRulesBase) throws ApiException { + public RouteFilterRulesData createRouteFilterRule(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nonnull RouteFilterRulesBase routeFilterRulesBase) throws ApiException { ApiResponse localVarResp = createRouteFilterRuleWithHttpInfo(routeFilterId, routeFilterRulesBase); return localVarResp.getData(); } @@ -205,7 +205,7 @@ public RouteFilterRulesData createRouteFilterRule(String routeFilterId, RouteFil 500 Internal server error - */ - public ApiResponse createRouteFilterRuleWithHttpInfo(String routeFilterId, RouteFilterRulesBase routeFilterRulesBase) throws ApiException { + public ApiResponse createRouteFilterRuleWithHttpInfo(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nonnull RouteFilterRulesBase routeFilterRulesBase) throws ApiException { okhttp3.Call localVarCall = createRouteFilterRuleValidateBeforeCall(routeFilterId, routeFilterRulesBase, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -232,7 +232,7 @@ public ApiResponse createRouteFilterRuleWithHttpInfo(Strin 500 Internal server error - */ - public okhttp3.Call createRouteFilterRuleAsync(String routeFilterId, RouteFilterRulesBase routeFilterRulesBase, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createRouteFilterRuleAsync(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nonnull RouteFilterRulesBase routeFilterRulesBase, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createRouteFilterRuleValidateBeforeCall(routeFilterId, routeFilterRulesBase, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -259,7 +259,7 @@ public okhttp3.Call createRouteFilterRuleAsync(String routeFilterId, RouteFilter 500 Internal server error - */ - public okhttp3.Call createRouteFilterRulesInBulkCall(String routeFilterId, RouteFilterRulesPostRequest routeFilterRulesPostRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createRouteFilterRulesInBulkCall(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nonnull RouteFilterRulesPostRequest routeFilterRulesPostRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -306,7 +306,7 @@ public okhttp3.Call createRouteFilterRulesInBulkCall(String routeFilterId, Route } @SuppressWarnings("rawtypes") - private okhttp3.Call createRouteFilterRulesInBulkValidateBeforeCall(String routeFilterId, RouteFilterRulesPostRequest routeFilterRulesPostRequest, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createRouteFilterRulesInBulkValidateBeforeCall(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nonnull RouteFilterRulesPostRequest routeFilterRulesPostRequest, final ApiCallback _callback) throws ApiException { // verify the required parameter 'routeFilterId' is set if (routeFilterId == null) { throw new ApiException("Missing the required parameter 'routeFilterId' when calling createRouteFilterRulesInBulk(Async)"); @@ -341,7 +341,7 @@ private okhttp3.Call createRouteFilterRulesInBulkValidateBeforeCall(String route 500 Internal server error - */ - public GetRouteFilterRulesResponse createRouteFilterRulesInBulk(String routeFilterId, RouteFilterRulesPostRequest routeFilterRulesPostRequest) throws ApiException { + public GetRouteFilterRulesResponse createRouteFilterRulesInBulk(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nonnull RouteFilterRulesPostRequest routeFilterRulesPostRequest) throws ApiException { ApiResponse localVarResp = createRouteFilterRulesInBulkWithHttpInfo(routeFilterId, routeFilterRulesPostRequest); return localVarResp.getData(); } @@ -366,7 +366,7 @@ public GetRouteFilterRulesResponse createRouteFilterRulesInBulk(String routeFilt 500 Internal server error - */ - public ApiResponse createRouteFilterRulesInBulkWithHttpInfo(String routeFilterId, RouteFilterRulesPostRequest routeFilterRulesPostRequest) throws ApiException { + public ApiResponse createRouteFilterRulesInBulkWithHttpInfo(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nonnull RouteFilterRulesPostRequest routeFilterRulesPostRequest) throws ApiException { okhttp3.Call localVarCall = createRouteFilterRulesInBulkValidateBeforeCall(routeFilterId, routeFilterRulesPostRequest, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -393,7 +393,7 @@ public ApiResponse createRouteFilterRulesInBulkWith 500 Internal server error - */ - public okhttp3.Call createRouteFilterRulesInBulkAsync(String routeFilterId, RouteFilterRulesPostRequest routeFilterRulesPostRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createRouteFilterRulesInBulkAsync(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nonnull RouteFilterRulesPostRequest routeFilterRulesPostRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createRouteFilterRulesInBulkValidateBeforeCall(routeFilterId, routeFilterRulesPostRequest, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -420,7 +420,7 @@ public okhttp3.Call createRouteFilterRulesInBulkAsync(String routeFilterId, Rout 500 Internal server error - */ - public okhttp3.Call deleteRouteFilterRuleByUuidCall(String routeFilterId, String routeFilterRuleId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteRouteFilterRuleByUuidCall(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nonnull String routeFilterRuleId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -467,7 +467,7 @@ public okhttp3.Call deleteRouteFilterRuleByUuidCall(String routeFilterId, String } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteRouteFilterRuleByUuidValidateBeforeCall(String routeFilterId, String routeFilterRuleId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteRouteFilterRuleByUuidValidateBeforeCall(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nonnull String routeFilterRuleId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'routeFilterId' is set if (routeFilterId == null) { throw new ApiException("Missing the required parameter 'routeFilterId' when calling deleteRouteFilterRuleByUuid(Async)"); @@ -502,7 +502,7 @@ private okhttp3.Call deleteRouteFilterRuleByUuidValidateBeforeCall(String routeF 500 Internal server error - */ - public RouteFilterRulesData deleteRouteFilterRuleByUuid(String routeFilterId, String routeFilterRuleId) throws ApiException { + public RouteFilterRulesData deleteRouteFilterRuleByUuid(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nonnull String routeFilterRuleId) throws ApiException { ApiResponse localVarResp = deleteRouteFilterRuleByUuidWithHttpInfo(routeFilterId, routeFilterRuleId); return localVarResp.getData(); } @@ -527,7 +527,7 @@ public RouteFilterRulesData deleteRouteFilterRuleByUuid(String routeFilterId, St 500 Internal server error - */ - public ApiResponse deleteRouteFilterRuleByUuidWithHttpInfo(String routeFilterId, String routeFilterRuleId) throws ApiException { + public ApiResponse deleteRouteFilterRuleByUuidWithHttpInfo(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nonnull String routeFilterRuleId) throws ApiException { okhttp3.Call localVarCall = deleteRouteFilterRuleByUuidValidateBeforeCall(routeFilterId, routeFilterRuleId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -554,7 +554,7 @@ public ApiResponse deleteRouteFilterRuleByUuidWithHttpInfo 500 Internal server error - */ - public okhttp3.Call deleteRouteFilterRuleByUuidAsync(String routeFilterId, String routeFilterRuleId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteRouteFilterRuleByUuidAsync(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nonnull String routeFilterRuleId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteRouteFilterRuleByUuidValidateBeforeCall(routeFilterId, routeFilterRuleId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -581,7 +581,7 @@ public okhttp3.Call deleteRouteFilterRuleByUuidAsync(String routeFilterId, Strin 500 Internal server error - */ - public okhttp3.Call getRouteFilterRuleByUuidCall(String routeFilterId, String routeFilterRuleId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getRouteFilterRuleByUuidCall(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nonnull String routeFilterRuleId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -628,7 +628,7 @@ public okhttp3.Call getRouteFilterRuleByUuidCall(String routeFilterId, String ro } @SuppressWarnings("rawtypes") - private okhttp3.Call getRouteFilterRuleByUuidValidateBeforeCall(String routeFilterId, String routeFilterRuleId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getRouteFilterRuleByUuidValidateBeforeCall(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nonnull String routeFilterRuleId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'routeFilterId' is set if (routeFilterId == null) { throw new ApiException("Missing the required parameter 'routeFilterId' when calling getRouteFilterRuleByUuid(Async)"); @@ -663,7 +663,7 @@ private okhttp3.Call getRouteFilterRuleByUuidValidateBeforeCall(String routeFilt 500 Internal server error - */ - public RouteFilterRulesData getRouteFilterRuleByUuid(String routeFilterId, String routeFilterRuleId) throws ApiException { + public RouteFilterRulesData getRouteFilterRuleByUuid(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nonnull String routeFilterRuleId) throws ApiException { ApiResponse localVarResp = getRouteFilterRuleByUuidWithHttpInfo(routeFilterId, routeFilterRuleId); return localVarResp.getData(); } @@ -688,7 +688,7 @@ public RouteFilterRulesData getRouteFilterRuleByUuid(String routeFilterId, Strin 500 Internal server error - */ - public ApiResponse getRouteFilterRuleByUuidWithHttpInfo(String routeFilterId, String routeFilterRuleId) throws ApiException { + public ApiResponse getRouteFilterRuleByUuidWithHttpInfo(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nonnull String routeFilterRuleId) throws ApiException { okhttp3.Call localVarCall = getRouteFilterRuleByUuidValidateBeforeCall(routeFilterId, routeFilterRuleId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -715,7 +715,7 @@ public ApiResponse getRouteFilterRuleByUuidWithHttpInfo(St 500 Internal server error - */ - public okhttp3.Call getRouteFilterRuleByUuidAsync(String routeFilterId, String routeFilterRuleId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getRouteFilterRuleByUuidAsync(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nonnull String routeFilterRuleId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getRouteFilterRuleByUuidValidateBeforeCall(routeFilterId, routeFilterRuleId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -742,7 +742,7 @@ public okhttp3.Call getRouteFilterRuleByUuidAsync(String routeFilterId, String r 500 Internal server error - */ - public okhttp3.Call getRouteFilterRuleChangeByUuidCall(String routeFilterId, String routeFilterRuleId, UUID changeId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getRouteFilterRuleChangeByUuidCall(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nonnull String routeFilterRuleId, @javax.annotation.Nonnull UUID changeId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -790,7 +790,7 @@ public okhttp3.Call getRouteFilterRuleChangeByUuidCall(String routeFilterId, Str } @SuppressWarnings("rawtypes") - private okhttp3.Call getRouteFilterRuleChangeByUuidValidateBeforeCall(String routeFilterId, String routeFilterRuleId, UUID changeId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getRouteFilterRuleChangeByUuidValidateBeforeCall(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nonnull String routeFilterRuleId, @javax.annotation.Nonnull UUID changeId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'routeFilterId' is set if (routeFilterId == null) { throw new ApiException("Missing the required parameter 'routeFilterId' when calling getRouteFilterRuleChangeByUuid(Async)"); @@ -830,7 +830,7 @@ private okhttp3.Call getRouteFilterRuleChangeByUuidValidateBeforeCall(String rou 500 Internal server error - */ - public RouteFilterRulesChangeData getRouteFilterRuleChangeByUuid(String routeFilterId, String routeFilterRuleId, UUID changeId) throws ApiException { + public RouteFilterRulesChangeData getRouteFilterRuleChangeByUuid(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nonnull String routeFilterRuleId, @javax.annotation.Nonnull UUID changeId) throws ApiException { ApiResponse localVarResp = getRouteFilterRuleChangeByUuidWithHttpInfo(routeFilterId, routeFilterRuleId, changeId); return localVarResp.getData(); } @@ -855,7 +855,7 @@ public RouteFilterRulesChangeData getRouteFilterRuleChangeByUuid(String routeFil 500 Internal server error - */ - public ApiResponse getRouteFilterRuleChangeByUuidWithHttpInfo(String routeFilterId, String routeFilterRuleId, UUID changeId) throws ApiException { + public ApiResponse getRouteFilterRuleChangeByUuidWithHttpInfo(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nonnull String routeFilterRuleId, @javax.annotation.Nonnull UUID changeId) throws ApiException { okhttp3.Call localVarCall = getRouteFilterRuleChangeByUuidValidateBeforeCall(routeFilterId, routeFilterRuleId, changeId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -882,7 +882,7 @@ public ApiResponse getRouteFilterRuleChangeByUuidWit 500 Internal server error - */ - public okhttp3.Call getRouteFilterRuleChangeByUuidAsync(String routeFilterId, String routeFilterRuleId, UUID changeId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getRouteFilterRuleChangeByUuidAsync(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nonnull String routeFilterRuleId, @javax.annotation.Nonnull UUID changeId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getRouteFilterRuleChangeByUuidValidateBeforeCall(routeFilterId, routeFilterRuleId, changeId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -910,7 +910,7 @@ public okhttp3.Call getRouteFilterRuleChangeByUuidAsync(String routeFilterId, St 500 Internal server error - */ - public okhttp3.Call getRouteFilterRuleChangesCall(String routeFilterId, String routeFilterRuleId, Integer offset, Integer limit, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getRouteFilterRuleChangesCall(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nonnull String routeFilterRuleId, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -965,7 +965,7 @@ public okhttp3.Call getRouteFilterRuleChangesCall(String routeFilterId, String r } @SuppressWarnings("rawtypes") - private okhttp3.Call getRouteFilterRuleChangesValidateBeforeCall(String routeFilterId, String routeFilterRuleId, Integer offset, Integer limit, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getRouteFilterRuleChangesValidateBeforeCall(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nonnull String routeFilterRuleId, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit, final ApiCallback _callback) throws ApiException { // verify the required parameter 'routeFilterId' is set if (routeFilterId == null) { throw new ApiException("Missing the required parameter 'routeFilterId' when calling getRouteFilterRuleChanges(Async)"); @@ -1001,7 +1001,7 @@ private okhttp3.Call getRouteFilterRuleChangesValidateBeforeCall(String routeFil 500 Internal server error - */ - public RouteFilterRulesChangeDataResponse getRouteFilterRuleChanges(String routeFilterId, String routeFilterRuleId, Integer offset, Integer limit) throws ApiException { + public RouteFilterRulesChangeDataResponse getRouteFilterRuleChanges(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nonnull String routeFilterRuleId, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit) throws ApiException { ApiResponse localVarResp = getRouteFilterRuleChangesWithHttpInfo(routeFilterId, routeFilterRuleId, offset, limit); return localVarResp.getData(); } @@ -1027,7 +1027,7 @@ public RouteFilterRulesChangeDataResponse getRouteFilterRuleChanges(String route 500 Internal server error - */ - public ApiResponse getRouteFilterRuleChangesWithHttpInfo(String routeFilterId, String routeFilterRuleId, Integer offset, Integer limit) throws ApiException { + public ApiResponse getRouteFilterRuleChangesWithHttpInfo(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nonnull String routeFilterRuleId, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit) throws ApiException { okhttp3.Call localVarCall = getRouteFilterRuleChangesValidateBeforeCall(routeFilterId, routeFilterRuleId, offset, limit, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1055,7 +1055,7 @@ public ApiResponse getRouteFilterRuleChanges 500 Internal server error - */ - public okhttp3.Call getRouteFilterRuleChangesAsync(String routeFilterId, String routeFilterRuleId, Integer offset, Integer limit, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getRouteFilterRuleChangesAsync(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nonnull String routeFilterRuleId, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getRouteFilterRuleChangesValidateBeforeCall(routeFilterId, routeFilterRuleId, offset, limit, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1082,7 +1082,7 @@ public okhttp3.Call getRouteFilterRuleChangesAsync(String routeFilterId, String 500 Internal server error - */ - public okhttp3.Call getRouteFilterRulesCall(String routeFilterId, Integer offset, Integer limit, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getRouteFilterRulesCall(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1136,7 +1136,7 @@ public okhttp3.Call getRouteFilterRulesCall(String routeFilterId, Integer offset } @SuppressWarnings("rawtypes") - private okhttp3.Call getRouteFilterRulesValidateBeforeCall(String routeFilterId, Integer offset, Integer limit, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getRouteFilterRulesValidateBeforeCall(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit, final ApiCallback _callback) throws ApiException { // verify the required parameter 'routeFilterId' is set if (routeFilterId == null) { throw new ApiException("Missing the required parameter 'routeFilterId' when calling getRouteFilterRules(Async)"); @@ -1166,7 +1166,7 @@ private okhttp3.Call getRouteFilterRulesValidateBeforeCall(String routeFilterId, 500 Internal server error - */ - public GetRouteFilterRulesResponse getRouteFilterRules(String routeFilterId, Integer offset, Integer limit) throws ApiException { + public GetRouteFilterRulesResponse getRouteFilterRules(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit) throws ApiException { ApiResponse localVarResp = getRouteFilterRulesWithHttpInfo(routeFilterId, offset, limit); return localVarResp.getData(); } @@ -1191,7 +1191,7 @@ public GetRouteFilterRulesResponse getRouteFilterRules(String routeFilterId, Int 500 Internal server error - */ - public ApiResponse getRouteFilterRulesWithHttpInfo(String routeFilterId, Integer offset, Integer limit) throws ApiException { + public ApiResponse getRouteFilterRulesWithHttpInfo(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit) throws ApiException { okhttp3.Call localVarCall = getRouteFilterRulesValidateBeforeCall(routeFilterId, offset, limit, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1218,7 +1218,7 @@ public ApiResponse getRouteFilterRulesWithHttpInfo( 500 Internal server error - */ - public okhttp3.Call getRouteFilterRulesAsync(String routeFilterId, Integer offset, Integer limit, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getRouteFilterRulesAsync(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getRouteFilterRulesValidateBeforeCall(routeFilterId, offset, limit, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1246,7 +1246,7 @@ public okhttp3.Call getRouteFilterRulesAsync(String routeFilterId, Integer offse 500 Internal server error - */ - public okhttp3.Call patchRouteFilterRuleByUuidCall(String routeFilterId, String routeFilterRuleId, List routeFilterRulesPatchRequestItem, final ApiCallback _callback) throws ApiException { + public okhttp3.Call patchRouteFilterRuleByUuidCall(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nonnull String routeFilterRuleId, @javax.annotation.Nonnull List routeFilterRulesPatchRequestItem, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1295,7 +1295,7 @@ public okhttp3.Call patchRouteFilterRuleByUuidCall(String routeFilterId, String } @SuppressWarnings("rawtypes") - private okhttp3.Call patchRouteFilterRuleByUuidValidateBeforeCall(String routeFilterId, String routeFilterRuleId, List routeFilterRulesPatchRequestItem, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchRouteFilterRuleByUuidValidateBeforeCall(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nonnull String routeFilterRuleId, @javax.annotation.Nonnull List routeFilterRulesPatchRequestItem, final ApiCallback _callback) throws ApiException { // verify the required parameter 'routeFilterId' is set if (routeFilterId == null) { throw new ApiException("Missing the required parameter 'routeFilterId' when calling patchRouteFilterRuleByUuid(Async)"); @@ -1336,7 +1336,7 @@ private okhttp3.Call patchRouteFilterRuleByUuidValidateBeforeCall(String routeFi 500 Internal server error - */ - public RouteFilterRulesData patchRouteFilterRuleByUuid(String routeFilterId, String routeFilterRuleId, List routeFilterRulesPatchRequestItem) throws ApiException { + public RouteFilterRulesData patchRouteFilterRuleByUuid(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nonnull String routeFilterRuleId, @javax.annotation.Nonnull List routeFilterRulesPatchRequestItem) throws ApiException { ApiResponse localVarResp = patchRouteFilterRuleByUuidWithHttpInfo(routeFilterId, routeFilterRuleId, routeFilterRulesPatchRequestItem); return localVarResp.getData(); } @@ -1362,7 +1362,7 @@ public RouteFilterRulesData patchRouteFilterRuleByUuid(String routeFilterId, Str 500 Internal server error - */ - public ApiResponse patchRouteFilterRuleByUuidWithHttpInfo(String routeFilterId, String routeFilterRuleId, List routeFilterRulesPatchRequestItem) throws ApiException { + public ApiResponse patchRouteFilterRuleByUuidWithHttpInfo(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nonnull String routeFilterRuleId, @javax.annotation.Nonnull List routeFilterRulesPatchRequestItem) throws ApiException { okhttp3.Call localVarCall = patchRouteFilterRuleByUuidValidateBeforeCall(routeFilterId, routeFilterRuleId, routeFilterRulesPatchRequestItem, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1390,7 +1390,7 @@ public ApiResponse patchRouteFilterRuleByUuidWithHttpInfo( 500 Internal server error - */ - public okhttp3.Call patchRouteFilterRuleByUuidAsync(String routeFilterId, String routeFilterRuleId, List routeFilterRulesPatchRequestItem, final ApiCallback _callback) throws ApiException { + public okhttp3.Call patchRouteFilterRuleByUuidAsync(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nonnull String routeFilterRuleId, @javax.annotation.Nonnull List routeFilterRulesPatchRequestItem, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchRouteFilterRuleByUuidValidateBeforeCall(routeFilterId, routeFilterRuleId, routeFilterRulesPatchRequestItem, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1418,7 +1418,7 @@ public okhttp3.Call patchRouteFilterRuleByUuidAsync(String routeFilterId, String 500 Internal server error - */ - public okhttp3.Call replaceRouteFilterRuleByUuidCall(String routeFilterId, String routeFilterRuleId, RouteFilterRulesBase routeFilterRulesBase, final ApiCallback _callback) throws ApiException { + public okhttp3.Call replaceRouteFilterRuleByUuidCall(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nonnull String routeFilterRuleId, @javax.annotation.Nonnull RouteFilterRulesBase routeFilterRulesBase, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1466,7 +1466,7 @@ public okhttp3.Call replaceRouteFilterRuleByUuidCall(String routeFilterId, Strin } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceRouteFilterRuleByUuidValidateBeforeCall(String routeFilterId, String routeFilterRuleId, RouteFilterRulesBase routeFilterRulesBase, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceRouteFilterRuleByUuidValidateBeforeCall(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nonnull String routeFilterRuleId, @javax.annotation.Nonnull RouteFilterRulesBase routeFilterRulesBase, final ApiCallback _callback) throws ApiException { // verify the required parameter 'routeFilterId' is set if (routeFilterId == null) { throw new ApiException("Missing the required parameter 'routeFilterId' when calling replaceRouteFilterRuleByUuid(Async)"); @@ -1507,7 +1507,7 @@ private okhttp3.Call replaceRouteFilterRuleByUuidValidateBeforeCall(String route 500 Internal server error - */ - public RouteFilterRulesData replaceRouteFilterRuleByUuid(String routeFilterId, String routeFilterRuleId, RouteFilterRulesBase routeFilterRulesBase) throws ApiException { + public RouteFilterRulesData replaceRouteFilterRuleByUuid(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nonnull String routeFilterRuleId, @javax.annotation.Nonnull RouteFilterRulesBase routeFilterRulesBase) throws ApiException { ApiResponse localVarResp = replaceRouteFilterRuleByUuidWithHttpInfo(routeFilterId, routeFilterRuleId, routeFilterRulesBase); return localVarResp.getData(); } @@ -1533,7 +1533,7 @@ public RouteFilterRulesData replaceRouteFilterRuleByUuid(String routeFilterId, S 500 Internal server error - */ - public ApiResponse replaceRouteFilterRuleByUuidWithHttpInfo(String routeFilterId, String routeFilterRuleId, RouteFilterRulesBase routeFilterRulesBase) throws ApiException { + public ApiResponse replaceRouteFilterRuleByUuidWithHttpInfo(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nonnull String routeFilterRuleId, @javax.annotation.Nonnull RouteFilterRulesBase routeFilterRulesBase) throws ApiException { okhttp3.Call localVarCall = replaceRouteFilterRuleByUuidValidateBeforeCall(routeFilterId, routeFilterRuleId, routeFilterRulesBase, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1561,7 +1561,7 @@ public ApiResponse replaceRouteFilterRuleByUuidWithHttpInf 500 Internal server error - */ - public okhttp3.Call replaceRouteFilterRuleByUuidAsync(String routeFilterId, String routeFilterRuleId, RouteFilterRulesBase routeFilterRulesBase, final ApiCallback _callback) throws ApiException { + public okhttp3.Call replaceRouteFilterRuleByUuidAsync(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nonnull String routeFilterRuleId, @javax.annotation.Nonnull RouteFilterRulesBase routeFilterRulesBase, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceRouteFilterRuleByUuidValidateBeforeCall(routeFilterId, routeFilterRuleId, routeFilterRulesBase, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/RouteFiltersApi.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/RouteFiltersApi.java index 2dc01102..9ee7ed90 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/RouteFiltersApi.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/RouteFiltersApi.java @@ -103,7 +103,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 500 Internal server error - */ - public okhttp3.Call attachConnectionRouteFilterCall(String routeFilterId, String connectionId, ConnectionRouteFiltersBase connectionRouteFiltersBase, final ApiCallback _callback) throws ApiException { + public okhttp3.Call attachConnectionRouteFilterCall(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull ConnectionRouteFiltersBase connectionRouteFiltersBase, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -151,7 +151,7 @@ public okhttp3.Call attachConnectionRouteFilterCall(String routeFilterId, String } @SuppressWarnings("rawtypes") - private okhttp3.Call attachConnectionRouteFilterValidateBeforeCall(String routeFilterId, String connectionId, ConnectionRouteFiltersBase connectionRouteFiltersBase, final ApiCallback _callback) throws ApiException { + private okhttp3.Call attachConnectionRouteFilterValidateBeforeCall(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull ConnectionRouteFiltersBase connectionRouteFiltersBase, final ApiCallback _callback) throws ApiException { // verify the required parameter 'routeFilterId' is set if (routeFilterId == null) { throw new ApiException("Missing the required parameter 'routeFilterId' when calling attachConnectionRouteFilter(Async)"); @@ -192,7 +192,7 @@ private okhttp3.Call attachConnectionRouteFilterValidateBeforeCall(String routeF 500 Internal server error - */ - public ConnectionRouteFilterData attachConnectionRouteFilter(String routeFilterId, String connectionId, ConnectionRouteFiltersBase connectionRouteFiltersBase) throws ApiException { + public ConnectionRouteFilterData attachConnectionRouteFilter(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull ConnectionRouteFiltersBase connectionRouteFiltersBase) throws ApiException { ApiResponse localVarResp = attachConnectionRouteFilterWithHttpInfo(routeFilterId, connectionId, connectionRouteFiltersBase); return localVarResp.getData(); } @@ -218,7 +218,7 @@ public ConnectionRouteFilterData attachConnectionRouteFilter(String routeFilterI 500 Internal server error - */ - public ApiResponse attachConnectionRouteFilterWithHttpInfo(String routeFilterId, String connectionId, ConnectionRouteFiltersBase connectionRouteFiltersBase) throws ApiException { + public ApiResponse attachConnectionRouteFilterWithHttpInfo(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull ConnectionRouteFiltersBase connectionRouteFiltersBase) throws ApiException { okhttp3.Call localVarCall = attachConnectionRouteFilterValidateBeforeCall(routeFilterId, connectionId, connectionRouteFiltersBase, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -246,7 +246,7 @@ public ApiResponse attachConnectionRouteFilterWithHtt 500 Internal server error - */ - public okhttp3.Call attachConnectionRouteFilterAsync(String routeFilterId, String connectionId, ConnectionRouteFiltersBase connectionRouteFiltersBase, final ApiCallback _callback) throws ApiException { + public okhttp3.Call attachConnectionRouteFilterAsync(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull ConnectionRouteFiltersBase connectionRouteFiltersBase, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = attachConnectionRouteFilterValidateBeforeCall(routeFilterId, connectionId, connectionRouteFiltersBase, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -272,7 +272,7 @@ public okhttp3.Call attachConnectionRouteFilterAsync(String routeFilterId, Strin 500 Internal server error - */ - public okhttp3.Call createRouteFilterCall(RouteFiltersBase routeFiltersBase, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createRouteFilterCall(@javax.annotation.Nonnull RouteFiltersBase routeFiltersBase, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -318,7 +318,7 @@ public okhttp3.Call createRouteFilterCall(RouteFiltersBase routeFiltersBase, fin } @SuppressWarnings("rawtypes") - private okhttp3.Call createRouteFilterValidateBeforeCall(RouteFiltersBase routeFiltersBase, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createRouteFilterValidateBeforeCall(@javax.annotation.Nonnull RouteFiltersBase routeFiltersBase, final ApiCallback _callback) throws ApiException { // verify the required parameter 'routeFiltersBase' is set if (routeFiltersBase == null) { throw new ApiException("Missing the required parameter 'routeFiltersBase' when calling createRouteFilter(Async)"); @@ -347,7 +347,7 @@ private okhttp3.Call createRouteFilterValidateBeforeCall(RouteFiltersBase routeF 500 Internal server error - */ - public RouteFiltersData createRouteFilter(RouteFiltersBase routeFiltersBase) throws ApiException { + public RouteFiltersData createRouteFilter(@javax.annotation.Nonnull RouteFiltersBase routeFiltersBase) throws ApiException { ApiResponse localVarResp = createRouteFilterWithHttpInfo(routeFiltersBase); return localVarResp.getData(); } @@ -371,7 +371,7 @@ public RouteFiltersData createRouteFilter(RouteFiltersBase routeFiltersBase) thr 500 Internal server error - */ - public ApiResponse createRouteFilterWithHttpInfo(RouteFiltersBase routeFiltersBase) throws ApiException { + public ApiResponse createRouteFilterWithHttpInfo(@javax.annotation.Nonnull RouteFiltersBase routeFiltersBase) throws ApiException { okhttp3.Call localVarCall = createRouteFilterValidateBeforeCall(routeFiltersBase, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -397,7 +397,7 @@ public ApiResponse createRouteFilterWithHttpInfo(RouteFiltersB 500 Internal server error - */ - public okhttp3.Call createRouteFilterAsync(RouteFiltersBase routeFiltersBase, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createRouteFilterAsync(@javax.annotation.Nonnull RouteFiltersBase routeFiltersBase, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createRouteFilterValidateBeforeCall(routeFiltersBase, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -423,7 +423,7 @@ public okhttp3.Call createRouteFilterAsync(RouteFiltersBase routeFiltersBase, fi 500 Internal server error - */ - public okhttp3.Call deleteRouteFilterByUuidCall(String routeFilterId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteRouteFilterByUuidCall(@javax.annotation.Nonnull String routeFilterId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -469,7 +469,7 @@ public okhttp3.Call deleteRouteFilterByUuidCall(String routeFilterId, final ApiC } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteRouteFilterByUuidValidateBeforeCall(String routeFilterId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteRouteFilterByUuidValidateBeforeCall(@javax.annotation.Nonnull String routeFilterId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'routeFilterId' is set if (routeFilterId == null) { throw new ApiException("Missing the required parameter 'routeFilterId' when calling deleteRouteFilterByUuid(Async)"); @@ -498,7 +498,7 @@ private okhttp3.Call deleteRouteFilterByUuidValidateBeforeCall(String routeFilte 500 Internal server error - */ - public RouteFiltersData deleteRouteFilterByUuid(String routeFilterId) throws ApiException { + public RouteFiltersData deleteRouteFilterByUuid(@javax.annotation.Nonnull String routeFilterId) throws ApiException { ApiResponse localVarResp = deleteRouteFilterByUuidWithHttpInfo(routeFilterId); return localVarResp.getData(); } @@ -522,7 +522,7 @@ public RouteFiltersData deleteRouteFilterByUuid(String routeFilterId) throws Api 500 Internal server error - */ - public ApiResponse deleteRouteFilterByUuidWithHttpInfo(String routeFilterId) throws ApiException { + public ApiResponse deleteRouteFilterByUuidWithHttpInfo(@javax.annotation.Nonnull String routeFilterId) throws ApiException { okhttp3.Call localVarCall = deleteRouteFilterByUuidValidateBeforeCall(routeFilterId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -548,7 +548,7 @@ public ApiResponse deleteRouteFilterByUuidWithHttpInfo(String 500 Internal server error - */ - public okhttp3.Call deleteRouteFilterByUuidAsync(String routeFilterId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteRouteFilterByUuidAsync(@javax.annotation.Nonnull String routeFilterId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteRouteFilterByUuidValidateBeforeCall(routeFilterId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -575,7 +575,7 @@ public okhttp3.Call deleteRouteFilterByUuidAsync(String routeFilterId, final Api 500 Internal server error - */ - public okhttp3.Call detachConnectionRouteFilterCall(String routeFilterId, String connectionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call detachConnectionRouteFilterCall(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nonnull String connectionId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -622,7 +622,7 @@ public okhttp3.Call detachConnectionRouteFilterCall(String routeFilterId, String } @SuppressWarnings("rawtypes") - private okhttp3.Call detachConnectionRouteFilterValidateBeforeCall(String routeFilterId, String connectionId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call detachConnectionRouteFilterValidateBeforeCall(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nonnull String connectionId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'routeFilterId' is set if (routeFilterId == null) { throw new ApiException("Missing the required parameter 'routeFilterId' when calling detachConnectionRouteFilter(Async)"); @@ -657,7 +657,7 @@ private okhttp3.Call detachConnectionRouteFilterValidateBeforeCall(String routeF 500 Internal server error - */ - public ConnectionRouteFilterData detachConnectionRouteFilter(String routeFilterId, String connectionId) throws ApiException { + public ConnectionRouteFilterData detachConnectionRouteFilter(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nonnull String connectionId) throws ApiException { ApiResponse localVarResp = detachConnectionRouteFilterWithHttpInfo(routeFilterId, connectionId); return localVarResp.getData(); } @@ -682,7 +682,7 @@ public ConnectionRouteFilterData detachConnectionRouteFilter(String routeFilterI 500 Internal server error - */ - public ApiResponse detachConnectionRouteFilterWithHttpInfo(String routeFilterId, String connectionId) throws ApiException { + public ApiResponse detachConnectionRouteFilterWithHttpInfo(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nonnull String connectionId) throws ApiException { okhttp3.Call localVarCall = detachConnectionRouteFilterValidateBeforeCall(routeFilterId, connectionId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -709,7 +709,7 @@ public ApiResponse detachConnectionRouteFilterWithHtt 500 Internal server error - */ - public okhttp3.Call detachConnectionRouteFilterAsync(String routeFilterId, String connectionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call detachConnectionRouteFilterAsync(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nonnull String connectionId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = detachConnectionRouteFilterValidateBeforeCall(routeFilterId, connectionId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -736,7 +736,7 @@ public okhttp3.Call detachConnectionRouteFilterAsync(String routeFilterId, Strin 500 Internal server error - */ - public okhttp3.Call getConnectionRouteFilterByUuidCall(String routeFilterId, String connectionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getConnectionRouteFilterByUuidCall(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nonnull String connectionId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -783,7 +783,7 @@ public okhttp3.Call getConnectionRouteFilterByUuidCall(String routeFilterId, Str } @SuppressWarnings("rawtypes") - private okhttp3.Call getConnectionRouteFilterByUuidValidateBeforeCall(String routeFilterId, String connectionId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getConnectionRouteFilterByUuidValidateBeforeCall(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nonnull String connectionId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'routeFilterId' is set if (routeFilterId == null) { throw new ApiException("Missing the required parameter 'routeFilterId' when calling getConnectionRouteFilterByUuid(Async)"); @@ -818,7 +818,7 @@ private okhttp3.Call getConnectionRouteFilterByUuidValidateBeforeCall(String rou 500 Internal server error - */ - public ConnectionRouteFilterData getConnectionRouteFilterByUuid(String routeFilterId, String connectionId) throws ApiException { + public ConnectionRouteFilterData getConnectionRouteFilterByUuid(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nonnull String connectionId) throws ApiException { ApiResponse localVarResp = getConnectionRouteFilterByUuidWithHttpInfo(routeFilterId, connectionId); return localVarResp.getData(); } @@ -843,7 +843,7 @@ public ConnectionRouteFilterData getConnectionRouteFilterByUuid(String routeFilt 500 Internal server error - */ - public ApiResponse getConnectionRouteFilterByUuidWithHttpInfo(String routeFilterId, String connectionId) throws ApiException { + public ApiResponse getConnectionRouteFilterByUuidWithHttpInfo(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nonnull String connectionId) throws ApiException { okhttp3.Call localVarCall = getConnectionRouteFilterByUuidValidateBeforeCall(routeFilterId, connectionId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -870,7 +870,7 @@ public ApiResponse getConnectionRouteFilterByUuidWith 500 Internal server error - */ - public okhttp3.Call getConnectionRouteFilterByUuidAsync(String routeFilterId, String connectionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getConnectionRouteFilterByUuidAsync(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nonnull String connectionId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getConnectionRouteFilterByUuidValidateBeforeCall(routeFilterId, connectionId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -896,7 +896,7 @@ public okhttp3.Call getConnectionRouteFilterByUuidAsync(String routeFilterId, St 500 Internal server error - */ - public okhttp3.Call getConnectionRouteFiltersCall(String connectionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getConnectionRouteFiltersCall(@javax.annotation.Nonnull String connectionId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -942,7 +942,7 @@ public okhttp3.Call getConnectionRouteFiltersCall(String connectionId, final Api } @SuppressWarnings("rawtypes") - private okhttp3.Call getConnectionRouteFiltersValidateBeforeCall(String connectionId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getConnectionRouteFiltersValidateBeforeCall(@javax.annotation.Nonnull String connectionId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'connectionId' is set if (connectionId == null) { throw new ApiException("Missing the required parameter 'connectionId' when calling getConnectionRouteFilters(Async)"); @@ -971,7 +971,7 @@ private okhttp3.Call getConnectionRouteFiltersValidateBeforeCall(String connecti 500 Internal server error - */ - public GetAllConnectionRouteFiltersResponse getConnectionRouteFilters(String connectionId) throws ApiException { + public GetAllConnectionRouteFiltersResponse getConnectionRouteFilters(@javax.annotation.Nonnull String connectionId) throws ApiException { ApiResponse localVarResp = getConnectionRouteFiltersWithHttpInfo(connectionId); return localVarResp.getData(); } @@ -995,7 +995,7 @@ public GetAllConnectionRouteFiltersResponse getConnectionRouteFilters(String con 500 Internal server error - */ - public ApiResponse getConnectionRouteFiltersWithHttpInfo(String connectionId) throws ApiException { + public ApiResponse getConnectionRouteFiltersWithHttpInfo(@javax.annotation.Nonnull String connectionId) throws ApiException { okhttp3.Call localVarCall = getConnectionRouteFiltersValidateBeforeCall(connectionId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1021,7 +1021,7 @@ public ApiResponse getConnectionRouteFilte 500 Internal server error - */ - public okhttp3.Call getConnectionRouteFiltersAsync(String connectionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getConnectionRouteFiltersAsync(@javax.annotation.Nonnull String connectionId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getConnectionRouteFiltersValidateBeforeCall(connectionId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1047,7 +1047,7 @@ public okhttp3.Call getConnectionRouteFiltersAsync(String connectionId, final Ap 500 Internal server error - */ - public okhttp3.Call getRouteFilterByUuidCall(String routeFilterId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getRouteFilterByUuidCall(@javax.annotation.Nonnull String routeFilterId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1093,7 +1093,7 @@ public okhttp3.Call getRouteFilterByUuidCall(String routeFilterId, final ApiCall } @SuppressWarnings("rawtypes") - private okhttp3.Call getRouteFilterByUuidValidateBeforeCall(String routeFilterId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getRouteFilterByUuidValidateBeforeCall(@javax.annotation.Nonnull String routeFilterId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'routeFilterId' is set if (routeFilterId == null) { throw new ApiException("Missing the required parameter 'routeFilterId' when calling getRouteFilterByUuid(Async)"); @@ -1122,7 +1122,7 @@ private okhttp3.Call getRouteFilterByUuidValidateBeforeCall(String routeFilterId 500 Internal server error - */ - public RouteFiltersData getRouteFilterByUuid(String routeFilterId) throws ApiException { + public RouteFiltersData getRouteFilterByUuid(@javax.annotation.Nonnull String routeFilterId) throws ApiException { ApiResponse localVarResp = getRouteFilterByUuidWithHttpInfo(routeFilterId); return localVarResp.getData(); } @@ -1146,7 +1146,7 @@ public RouteFiltersData getRouteFilterByUuid(String routeFilterId) throws ApiExc 500 Internal server error - */ - public ApiResponse getRouteFilterByUuidWithHttpInfo(String routeFilterId) throws ApiException { + public ApiResponse getRouteFilterByUuidWithHttpInfo(@javax.annotation.Nonnull String routeFilterId) throws ApiException { okhttp3.Call localVarCall = getRouteFilterByUuidValidateBeforeCall(routeFilterId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1172,7 +1172,7 @@ public ApiResponse getRouteFilterByUuidWithHttpInfo(String rou 500 Internal server error - */ - public okhttp3.Call getRouteFilterByUuidAsync(String routeFilterId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getRouteFilterByUuidAsync(@javax.annotation.Nonnull String routeFilterId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getRouteFilterByUuidValidateBeforeCall(routeFilterId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1198,7 +1198,7 @@ public okhttp3.Call getRouteFilterByUuidAsync(String routeFilterId, final ApiCal 500 Internal server error - */ - public okhttp3.Call getRouteFilterChangeByUuidCall(String routeFilterId, UUID changeId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getRouteFilterChangeByUuidCall(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nonnull UUID changeId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1245,7 +1245,7 @@ public okhttp3.Call getRouteFilterChangeByUuidCall(String routeFilterId, UUID ch } @SuppressWarnings("rawtypes") - private okhttp3.Call getRouteFilterChangeByUuidValidateBeforeCall(String routeFilterId, UUID changeId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getRouteFilterChangeByUuidValidateBeforeCall(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nonnull UUID changeId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'routeFilterId' is set if (routeFilterId == null) { throw new ApiException("Missing the required parameter 'routeFilterId' when calling getRouteFilterChangeByUuid(Async)"); @@ -1279,7 +1279,7 @@ private okhttp3.Call getRouteFilterChangeByUuidValidateBeforeCall(String routeFi 500 Internal server error - */ - public RouteFilterChangeData getRouteFilterChangeByUuid(String routeFilterId, UUID changeId) throws ApiException { + public RouteFilterChangeData getRouteFilterChangeByUuid(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nonnull UUID changeId) throws ApiException { ApiResponse localVarResp = getRouteFilterChangeByUuidWithHttpInfo(routeFilterId, changeId); return localVarResp.getData(); } @@ -1303,7 +1303,7 @@ public RouteFilterChangeData getRouteFilterChangeByUuid(String routeFilterId, UU 500 Internal server error - */ - public ApiResponse getRouteFilterChangeByUuidWithHttpInfo(String routeFilterId, UUID changeId) throws ApiException { + public ApiResponse getRouteFilterChangeByUuidWithHttpInfo(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nonnull UUID changeId) throws ApiException { okhttp3.Call localVarCall = getRouteFilterChangeByUuidValidateBeforeCall(routeFilterId, changeId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1329,7 +1329,7 @@ public ApiResponse getRouteFilterChangeByUuidWithHttpInfo 500 Internal server error - */ - public okhttp3.Call getRouteFilterChangeByUuidAsync(String routeFilterId, UUID changeId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getRouteFilterChangeByUuidAsync(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nonnull UUID changeId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getRouteFilterChangeByUuidValidateBeforeCall(routeFilterId, changeId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1356,7 +1356,7 @@ public okhttp3.Call getRouteFilterChangeByUuidAsync(String routeFilterId, UUID c 500 Internal server error - */ - public okhttp3.Call getRouteFilterChangesCall(String routeFilterId, Integer offset, Integer limit, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getRouteFilterChangesCall(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1410,7 +1410,7 @@ public okhttp3.Call getRouteFilterChangesCall(String routeFilterId, Integer offs } @SuppressWarnings("rawtypes") - private okhttp3.Call getRouteFilterChangesValidateBeforeCall(String routeFilterId, Integer offset, Integer limit, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getRouteFilterChangesValidateBeforeCall(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit, final ApiCallback _callback) throws ApiException { // verify the required parameter 'routeFilterId' is set if (routeFilterId == null) { throw new ApiException("Missing the required parameter 'routeFilterId' when calling getRouteFilterChanges(Async)"); @@ -1440,7 +1440,7 @@ private okhttp3.Call getRouteFilterChangesValidateBeforeCall(String routeFilterI 500 Internal server error - */ - public RouteFilterChangeDataResponse getRouteFilterChanges(String routeFilterId, Integer offset, Integer limit) throws ApiException { + public RouteFilterChangeDataResponse getRouteFilterChanges(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit) throws ApiException { ApiResponse localVarResp = getRouteFilterChangesWithHttpInfo(routeFilterId, offset, limit); return localVarResp.getData(); } @@ -1465,7 +1465,7 @@ public RouteFilterChangeDataResponse getRouteFilterChanges(String routeFilterId, 500 Internal server error - */ - public ApiResponse getRouteFilterChangesWithHttpInfo(String routeFilterId, Integer offset, Integer limit) throws ApiException { + public ApiResponse getRouteFilterChangesWithHttpInfo(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit) throws ApiException { okhttp3.Call localVarCall = getRouteFilterChangesValidateBeforeCall(routeFilterId, offset, limit, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1492,7 +1492,7 @@ public ApiResponse getRouteFilterChangesWithHttpI 500 Internal server error - */ - public okhttp3.Call getRouteFilterChangesAsync(String routeFilterId, Integer offset, Integer limit, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getRouteFilterChangesAsync(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getRouteFilterChangesValidateBeforeCall(routeFilterId, offset, limit, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1518,7 +1518,7 @@ public okhttp3.Call getRouteFilterChangesAsync(String routeFilterId, Integer off 500 Internal server error - */ - public okhttp3.Call getRouteFilterConnectionsCall(String routeFilterId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getRouteFilterConnectionsCall(@javax.annotation.Nonnull String routeFilterId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1564,7 +1564,7 @@ public okhttp3.Call getRouteFilterConnectionsCall(String routeFilterId, final Ap } @SuppressWarnings("rawtypes") - private okhttp3.Call getRouteFilterConnectionsValidateBeforeCall(String routeFilterId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getRouteFilterConnectionsValidateBeforeCall(@javax.annotation.Nonnull String routeFilterId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'routeFilterId' is set if (routeFilterId == null) { throw new ApiException("Missing the required parameter 'routeFilterId' when calling getRouteFilterConnections(Async)"); @@ -1593,7 +1593,7 @@ private okhttp3.Call getRouteFilterConnectionsValidateBeforeCall(String routeFil 500 Internal server error - */ - public GetRouteFilterGetConnectionsResponse getRouteFilterConnections(String routeFilterId) throws ApiException { + public GetRouteFilterGetConnectionsResponse getRouteFilterConnections(@javax.annotation.Nonnull String routeFilterId) throws ApiException { ApiResponse localVarResp = getRouteFilterConnectionsWithHttpInfo(routeFilterId); return localVarResp.getData(); } @@ -1617,7 +1617,7 @@ public GetRouteFilterGetConnectionsResponse getRouteFilterConnections(String rou 500 Internal server error - */ - public ApiResponse getRouteFilterConnectionsWithHttpInfo(String routeFilterId) throws ApiException { + public ApiResponse getRouteFilterConnectionsWithHttpInfo(@javax.annotation.Nonnull String routeFilterId) throws ApiException { okhttp3.Call localVarCall = getRouteFilterConnectionsValidateBeforeCall(routeFilterId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1643,7 +1643,7 @@ public ApiResponse getRouteFilterConnectio 500 Internal server error - */ - public okhttp3.Call getRouteFilterConnectionsAsync(String routeFilterId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getRouteFilterConnectionsAsync(@javax.annotation.Nonnull String routeFilterId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getRouteFilterConnectionsValidateBeforeCall(routeFilterId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1670,7 +1670,7 @@ public okhttp3.Call getRouteFilterConnectionsAsync(String routeFilterId, final A 500 Internal server error - */ - public okhttp3.Call patchRouteFilterByUuidCall(String routeFilterId, List routeFiltersPatchRequestItem, final ApiCallback _callback) throws ApiException { + public okhttp3.Call patchRouteFilterByUuidCall(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nonnull List routeFiltersPatchRequestItem, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1718,7 +1718,7 @@ public okhttp3.Call patchRouteFilterByUuidCall(String routeFilterId, List routeFiltersPatchRequestItem, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchRouteFilterByUuidValidateBeforeCall(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nonnull List routeFiltersPatchRequestItem, final ApiCallback _callback) throws ApiException { // verify the required parameter 'routeFilterId' is set if (routeFilterId == null) { throw new ApiException("Missing the required parameter 'routeFilterId' when calling patchRouteFilterByUuid(Async)"); @@ -1753,7 +1753,7 @@ private okhttp3.Call patchRouteFilterByUuidValidateBeforeCall(String routeFilter 500 Internal server error - */ - public RouteFiltersData patchRouteFilterByUuid(String routeFilterId, List routeFiltersPatchRequestItem) throws ApiException { + public RouteFiltersData patchRouteFilterByUuid(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nonnull List routeFiltersPatchRequestItem) throws ApiException { ApiResponse localVarResp = patchRouteFilterByUuidWithHttpInfo(routeFilterId, routeFiltersPatchRequestItem); return localVarResp.getData(); } @@ -1778,7 +1778,7 @@ public RouteFiltersData patchRouteFilterByUuid(String routeFilterId, List 500 Internal server error - */ - public ApiResponse patchRouteFilterByUuidWithHttpInfo(String routeFilterId, List routeFiltersPatchRequestItem) throws ApiException { + public ApiResponse patchRouteFilterByUuidWithHttpInfo(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nonnull List routeFiltersPatchRequestItem) throws ApiException { okhttp3.Call localVarCall = patchRouteFilterByUuidValidateBeforeCall(routeFilterId, routeFiltersPatchRequestItem, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1805,7 +1805,7 @@ public ApiResponse patchRouteFilterByUuidWithHttpInfo(String r 500 Internal server error - */ - public okhttp3.Call patchRouteFilterByUuidAsync(String routeFilterId, List routeFiltersPatchRequestItem, final ApiCallback _callback) throws ApiException { + public okhttp3.Call patchRouteFilterByUuidAsync(@javax.annotation.Nonnull String routeFilterId, @javax.annotation.Nonnull List routeFiltersPatchRequestItem, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchRouteFilterByUuidValidateBeforeCall(routeFilterId, routeFiltersPatchRequestItem, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1831,7 +1831,7 @@ public okhttp3.Call patchRouteFilterByUuidAsync(String routeFilterId, List 500 Internal server error - */ - public okhttp3.Call searchRouteFiltersCall(RouteFiltersSearchBase routeFiltersSearchBase, final ApiCallback _callback) throws ApiException { + public okhttp3.Call searchRouteFiltersCall(@javax.annotation.Nonnull RouteFiltersSearchBase routeFiltersSearchBase, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1877,7 +1877,7 @@ public okhttp3.Call searchRouteFiltersCall(RouteFiltersSearchBase routeFiltersSe } @SuppressWarnings("rawtypes") - private okhttp3.Call searchRouteFiltersValidateBeforeCall(RouteFiltersSearchBase routeFiltersSearchBase, final ApiCallback _callback) throws ApiException { + private okhttp3.Call searchRouteFiltersValidateBeforeCall(@javax.annotation.Nonnull RouteFiltersSearchBase routeFiltersSearchBase, final ApiCallback _callback) throws ApiException { // verify the required parameter 'routeFiltersSearchBase' is set if (routeFiltersSearchBase == null) { throw new ApiException("Missing the required parameter 'routeFiltersSearchBase' when calling searchRouteFilters(Async)"); @@ -1906,7 +1906,7 @@ private okhttp3.Call searchRouteFiltersValidateBeforeCall(RouteFiltersSearchBase 500 Internal server error - */ - public RouteFiltersSearchResponse searchRouteFilters(RouteFiltersSearchBase routeFiltersSearchBase) throws ApiException { + public RouteFiltersSearchResponse searchRouteFilters(@javax.annotation.Nonnull RouteFiltersSearchBase routeFiltersSearchBase) throws ApiException { ApiResponse localVarResp = searchRouteFiltersWithHttpInfo(routeFiltersSearchBase); return localVarResp.getData(); } @@ -1930,7 +1930,7 @@ public RouteFiltersSearchResponse searchRouteFilters(RouteFiltersSearchBase rout 500 Internal server error - */ - public ApiResponse searchRouteFiltersWithHttpInfo(RouteFiltersSearchBase routeFiltersSearchBase) throws ApiException { + public ApiResponse searchRouteFiltersWithHttpInfo(@javax.annotation.Nonnull RouteFiltersSearchBase routeFiltersSearchBase) throws ApiException { okhttp3.Call localVarCall = searchRouteFiltersValidateBeforeCall(routeFiltersSearchBase, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1956,7 +1956,7 @@ public ApiResponse searchRouteFiltersWithHttpInfo(Ro 500 Internal server error - */ - public okhttp3.Call searchRouteFiltersAsync(RouteFiltersSearchBase routeFiltersSearchBase, final ApiCallback _callback) throws ApiException { + public okhttp3.Call searchRouteFiltersAsync(@javax.annotation.Nonnull RouteFiltersSearchBase routeFiltersSearchBase, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = searchRouteFiltersValidateBeforeCall(routeFiltersSearchBase, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/RoutingProtocolsApi.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/RoutingProtocolsApi.java index 32d5fb14..6fa39211 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/RoutingProtocolsApi.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/RoutingProtocolsApi.java @@ -103,7 +103,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 500 Internal server error - */ - public okhttp3.Call createConnectionRoutingProtocolCall(String connectionId, RoutingProtocolBase routingProtocolBase, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createConnectionRoutingProtocolCall(@javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull RoutingProtocolBase routingProtocolBase, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -150,7 +150,7 @@ public okhttp3.Call createConnectionRoutingProtocolCall(String connectionId, Rou } @SuppressWarnings("rawtypes") - private okhttp3.Call createConnectionRoutingProtocolValidateBeforeCall(String connectionId, RoutingProtocolBase routingProtocolBase, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createConnectionRoutingProtocolValidateBeforeCall(@javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull RoutingProtocolBase routingProtocolBase, final ApiCallback _callback) throws ApiException { // verify the required parameter 'connectionId' is set if (connectionId == null) { throw new ApiException("Missing the required parameter 'connectionId' when calling createConnectionRoutingProtocol(Async)"); @@ -185,7 +185,7 @@ private okhttp3.Call createConnectionRoutingProtocolValidateBeforeCall(String co 500 Internal server error - */ - public RoutingProtocolData createConnectionRoutingProtocol(String connectionId, RoutingProtocolBase routingProtocolBase) throws ApiException { + public RoutingProtocolData createConnectionRoutingProtocol(@javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull RoutingProtocolBase routingProtocolBase) throws ApiException { ApiResponse localVarResp = createConnectionRoutingProtocolWithHttpInfo(connectionId, routingProtocolBase); return localVarResp.getData(); } @@ -210,7 +210,7 @@ public RoutingProtocolData createConnectionRoutingProtocol(String connectionId, 500 Internal server error - */ - public ApiResponse createConnectionRoutingProtocolWithHttpInfo(String connectionId, RoutingProtocolBase routingProtocolBase) throws ApiException { + public ApiResponse createConnectionRoutingProtocolWithHttpInfo(@javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull RoutingProtocolBase routingProtocolBase) throws ApiException { okhttp3.Call localVarCall = createConnectionRoutingProtocolValidateBeforeCall(connectionId, routingProtocolBase, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -237,7 +237,7 @@ public ApiResponse createConnectionRoutingProtocolWithHttpI 500 Internal server error - */ - public okhttp3.Call createConnectionRoutingProtocolAsync(String connectionId, RoutingProtocolBase routingProtocolBase, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createConnectionRoutingProtocolAsync(@javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull RoutingProtocolBase routingProtocolBase, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createConnectionRoutingProtocolValidateBeforeCall(connectionId, routingProtocolBase, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -264,7 +264,7 @@ public okhttp3.Call createConnectionRoutingProtocolAsync(String connectionId, Ro 500 Internal server error - */ - public okhttp3.Call createConnectionRoutingProtocolsInBulkCall(String connectionId, ConnectionRoutingProtocolPostRequest connectionRoutingProtocolPostRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createConnectionRoutingProtocolsInBulkCall(@javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull ConnectionRoutingProtocolPostRequest connectionRoutingProtocolPostRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -311,7 +311,7 @@ public okhttp3.Call createConnectionRoutingProtocolsInBulkCall(String connection } @SuppressWarnings("rawtypes") - private okhttp3.Call createConnectionRoutingProtocolsInBulkValidateBeforeCall(String connectionId, ConnectionRoutingProtocolPostRequest connectionRoutingProtocolPostRequest, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createConnectionRoutingProtocolsInBulkValidateBeforeCall(@javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull ConnectionRoutingProtocolPostRequest connectionRoutingProtocolPostRequest, final ApiCallback _callback) throws ApiException { // verify the required parameter 'connectionId' is set if (connectionId == null) { throw new ApiException("Missing the required parameter 'connectionId' when calling createConnectionRoutingProtocolsInBulk(Async)"); @@ -346,7 +346,7 @@ private okhttp3.Call createConnectionRoutingProtocolsInBulkValidateBeforeCall(St 500 Internal server error - */ - public GetResponse createConnectionRoutingProtocolsInBulk(String connectionId, ConnectionRoutingProtocolPostRequest connectionRoutingProtocolPostRequest) throws ApiException { + public GetResponse createConnectionRoutingProtocolsInBulk(@javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull ConnectionRoutingProtocolPostRequest connectionRoutingProtocolPostRequest) throws ApiException { ApiResponse localVarResp = createConnectionRoutingProtocolsInBulkWithHttpInfo(connectionId, connectionRoutingProtocolPostRequest); return localVarResp.getData(); } @@ -371,7 +371,7 @@ public GetResponse createConnectionRoutingProtocolsInBulk(String connectionId, C 500 Internal server error - */ - public ApiResponse createConnectionRoutingProtocolsInBulkWithHttpInfo(String connectionId, ConnectionRoutingProtocolPostRequest connectionRoutingProtocolPostRequest) throws ApiException { + public ApiResponse createConnectionRoutingProtocolsInBulkWithHttpInfo(@javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull ConnectionRoutingProtocolPostRequest connectionRoutingProtocolPostRequest) throws ApiException { okhttp3.Call localVarCall = createConnectionRoutingProtocolsInBulkValidateBeforeCall(connectionId, connectionRoutingProtocolPostRequest, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -398,7 +398,7 @@ public ApiResponse createConnectionRoutingProtocolsInBulkWithHttpIn 500 Internal server error - */ - public okhttp3.Call createConnectionRoutingProtocolsInBulkAsync(String connectionId, ConnectionRoutingProtocolPostRequest connectionRoutingProtocolPostRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createConnectionRoutingProtocolsInBulkAsync(@javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull ConnectionRoutingProtocolPostRequest connectionRoutingProtocolPostRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createConnectionRoutingProtocolsInBulkValidateBeforeCall(connectionId, connectionRoutingProtocolPostRequest, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -425,7 +425,7 @@ public okhttp3.Call createConnectionRoutingProtocolsInBulkAsync(String connectio 500 Internal server error - */ - public okhttp3.Call deleteConnectionRoutingProtocolByUuidCall(UUID routingProtocolId, String connectionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteConnectionRoutingProtocolByUuidCall(@javax.annotation.Nonnull UUID routingProtocolId, @javax.annotation.Nonnull String connectionId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -472,7 +472,7 @@ public okhttp3.Call deleteConnectionRoutingProtocolByUuidCall(UUID routingProtoc } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteConnectionRoutingProtocolByUuidValidateBeforeCall(UUID routingProtocolId, String connectionId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteConnectionRoutingProtocolByUuidValidateBeforeCall(@javax.annotation.Nonnull UUID routingProtocolId, @javax.annotation.Nonnull String connectionId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'routingProtocolId' is set if (routingProtocolId == null) { throw new ApiException("Missing the required parameter 'routingProtocolId' when calling deleteConnectionRoutingProtocolByUuid(Async)"); @@ -507,7 +507,7 @@ private okhttp3.Call deleteConnectionRoutingProtocolByUuidValidateBeforeCall(UUI 500 Internal server error - */ - public RoutingProtocolData deleteConnectionRoutingProtocolByUuid(UUID routingProtocolId, String connectionId) throws ApiException { + public RoutingProtocolData deleteConnectionRoutingProtocolByUuid(@javax.annotation.Nonnull UUID routingProtocolId, @javax.annotation.Nonnull String connectionId) throws ApiException { ApiResponse localVarResp = deleteConnectionRoutingProtocolByUuidWithHttpInfo(routingProtocolId, connectionId); return localVarResp.getData(); } @@ -532,7 +532,7 @@ public RoutingProtocolData deleteConnectionRoutingProtocolByUuid(UUID routingPro 500 Internal server error - */ - public ApiResponse deleteConnectionRoutingProtocolByUuidWithHttpInfo(UUID routingProtocolId, String connectionId) throws ApiException { + public ApiResponse deleteConnectionRoutingProtocolByUuidWithHttpInfo(@javax.annotation.Nonnull UUID routingProtocolId, @javax.annotation.Nonnull String connectionId) throws ApiException { okhttp3.Call localVarCall = deleteConnectionRoutingProtocolByUuidValidateBeforeCall(routingProtocolId, connectionId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -559,7 +559,7 @@ public ApiResponse deleteConnectionRoutingProtocolByUuidWit 500 Internal server error - */ - public okhttp3.Call deleteConnectionRoutingProtocolByUuidAsync(UUID routingProtocolId, String connectionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteConnectionRoutingProtocolByUuidAsync(@javax.annotation.Nonnull UUID routingProtocolId, @javax.annotation.Nonnull String connectionId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteConnectionRoutingProtocolByUuidValidateBeforeCall(routingProtocolId, connectionId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -588,7 +588,7 @@ public okhttp3.Call deleteConnectionRoutingProtocolByUuidAsync(UUID routingProto 500 Internal server error - */ - public okhttp3.Call getConnectionRoutingProtocolAllBgpActionsCall(UUID routingProtocolId, String connectionId, Integer offset, Integer limit, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getConnectionRoutingProtocolAllBgpActionsCall(@javax.annotation.Nonnull UUID routingProtocolId, @javax.annotation.Nonnull String connectionId, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -643,7 +643,7 @@ public okhttp3.Call getConnectionRoutingProtocolAllBgpActionsCall(UUID routingPr } @SuppressWarnings("rawtypes") - private okhttp3.Call getConnectionRoutingProtocolAllBgpActionsValidateBeforeCall(UUID routingProtocolId, String connectionId, Integer offset, Integer limit, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getConnectionRoutingProtocolAllBgpActionsValidateBeforeCall(@javax.annotation.Nonnull UUID routingProtocolId, @javax.annotation.Nonnull String connectionId, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit, final ApiCallback _callback) throws ApiException { // verify the required parameter 'routingProtocolId' is set if (routingProtocolId == null) { throw new ApiException("Missing the required parameter 'routingProtocolId' when calling getConnectionRoutingProtocolAllBgpActions(Async)"); @@ -680,7 +680,7 @@ private okhttp3.Call getConnectionRoutingProtocolAllBgpActionsValidateBeforeCall 500 Internal server error - */ - public BGPActionsBulkData getConnectionRoutingProtocolAllBgpActions(UUID routingProtocolId, String connectionId, Integer offset, Integer limit) throws ApiException { + public BGPActionsBulkData getConnectionRoutingProtocolAllBgpActions(@javax.annotation.Nonnull UUID routingProtocolId, @javax.annotation.Nonnull String connectionId, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit) throws ApiException { ApiResponse localVarResp = getConnectionRoutingProtocolAllBgpActionsWithHttpInfo(routingProtocolId, connectionId, offset, limit); return localVarResp.getData(); } @@ -707,7 +707,7 @@ public BGPActionsBulkData getConnectionRoutingProtocolAllBgpActions(UUID routing 500 Internal server error - */ - public ApiResponse getConnectionRoutingProtocolAllBgpActionsWithHttpInfo(UUID routingProtocolId, String connectionId, Integer offset, Integer limit) throws ApiException { + public ApiResponse getConnectionRoutingProtocolAllBgpActionsWithHttpInfo(@javax.annotation.Nonnull UUID routingProtocolId, @javax.annotation.Nonnull String connectionId, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit) throws ApiException { okhttp3.Call localVarCall = getConnectionRoutingProtocolAllBgpActionsValidateBeforeCall(routingProtocolId, connectionId, offset, limit, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -736,7 +736,7 @@ public ApiResponse getConnectionRoutingProtocolAllBgpActions 500 Internal server error - */ - public okhttp3.Call getConnectionRoutingProtocolAllBgpActionsAsync(UUID routingProtocolId, String connectionId, Integer offset, Integer limit, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getConnectionRoutingProtocolAllBgpActionsAsync(@javax.annotation.Nonnull UUID routingProtocolId, @javax.annotation.Nonnull String connectionId, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getConnectionRoutingProtocolAllBgpActionsValidateBeforeCall(routingProtocolId, connectionId, offset, limit, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -763,7 +763,7 @@ public okhttp3.Call getConnectionRoutingProtocolAllBgpActionsAsync(UUID routingP 500 Internal server error - */ - public okhttp3.Call getConnectionRoutingProtocolByUuidCall(UUID routingProtocolId, String connectionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getConnectionRoutingProtocolByUuidCall(@javax.annotation.Nonnull UUID routingProtocolId, @javax.annotation.Nonnull String connectionId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -810,7 +810,7 @@ public okhttp3.Call getConnectionRoutingProtocolByUuidCall(UUID routingProtocolI } @SuppressWarnings("rawtypes") - private okhttp3.Call getConnectionRoutingProtocolByUuidValidateBeforeCall(UUID routingProtocolId, String connectionId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getConnectionRoutingProtocolByUuidValidateBeforeCall(@javax.annotation.Nonnull UUID routingProtocolId, @javax.annotation.Nonnull String connectionId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'routingProtocolId' is set if (routingProtocolId == null) { throw new ApiException("Missing the required parameter 'routingProtocolId' when calling getConnectionRoutingProtocolByUuid(Async)"); @@ -845,7 +845,7 @@ private okhttp3.Call getConnectionRoutingProtocolByUuidValidateBeforeCall(UUID r 500 Internal server error - */ - public RoutingProtocolData getConnectionRoutingProtocolByUuid(UUID routingProtocolId, String connectionId) throws ApiException { + public RoutingProtocolData getConnectionRoutingProtocolByUuid(@javax.annotation.Nonnull UUID routingProtocolId, @javax.annotation.Nonnull String connectionId) throws ApiException { ApiResponse localVarResp = getConnectionRoutingProtocolByUuidWithHttpInfo(routingProtocolId, connectionId); return localVarResp.getData(); } @@ -870,7 +870,7 @@ public RoutingProtocolData getConnectionRoutingProtocolByUuid(UUID routingProtoc 500 Internal server error - */ - public ApiResponse getConnectionRoutingProtocolByUuidWithHttpInfo(UUID routingProtocolId, String connectionId) throws ApiException { + public ApiResponse getConnectionRoutingProtocolByUuidWithHttpInfo(@javax.annotation.Nonnull UUID routingProtocolId, @javax.annotation.Nonnull String connectionId) throws ApiException { okhttp3.Call localVarCall = getConnectionRoutingProtocolByUuidValidateBeforeCall(routingProtocolId, connectionId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -897,7 +897,7 @@ public ApiResponse getConnectionRoutingProtocolByUuidWithHt 500 Internal server error - */ - public okhttp3.Call getConnectionRoutingProtocolByUuidAsync(UUID routingProtocolId, String connectionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getConnectionRoutingProtocolByUuidAsync(@javax.annotation.Nonnull UUID routingProtocolId, @javax.annotation.Nonnull String connectionId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getConnectionRoutingProtocolByUuidValidateBeforeCall(routingProtocolId, connectionId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -924,7 +924,7 @@ public okhttp3.Call getConnectionRoutingProtocolByUuidAsync(UUID routingProtocol 500 Internal server error - */ - public okhttp3.Call getConnectionRoutingProtocolsCall(String connectionId, Integer offset, Integer limit, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getConnectionRoutingProtocolsCall(@javax.annotation.Nonnull String connectionId, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -978,7 +978,7 @@ public okhttp3.Call getConnectionRoutingProtocolsCall(String connectionId, Integ } @SuppressWarnings("rawtypes") - private okhttp3.Call getConnectionRoutingProtocolsValidateBeforeCall(String connectionId, Integer offset, Integer limit, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getConnectionRoutingProtocolsValidateBeforeCall(@javax.annotation.Nonnull String connectionId, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit, final ApiCallback _callback) throws ApiException { // verify the required parameter 'connectionId' is set if (connectionId == null) { throw new ApiException("Missing the required parameter 'connectionId' when calling getConnectionRoutingProtocols(Async)"); @@ -1008,7 +1008,7 @@ private okhttp3.Call getConnectionRoutingProtocolsValidateBeforeCall(String conn 500 Internal server error - */ - public GetResponse getConnectionRoutingProtocols(String connectionId, Integer offset, Integer limit) throws ApiException { + public GetResponse getConnectionRoutingProtocols(@javax.annotation.Nonnull String connectionId, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit) throws ApiException { ApiResponse localVarResp = getConnectionRoutingProtocolsWithHttpInfo(connectionId, offset, limit); return localVarResp.getData(); } @@ -1033,7 +1033,7 @@ public GetResponse getConnectionRoutingProtocols(String connectionId, Integer of 500 Internal server error - */ - public ApiResponse getConnectionRoutingProtocolsWithHttpInfo(String connectionId, Integer offset, Integer limit) throws ApiException { + public ApiResponse getConnectionRoutingProtocolsWithHttpInfo(@javax.annotation.Nonnull String connectionId, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit) throws ApiException { okhttp3.Call localVarCall = getConnectionRoutingProtocolsValidateBeforeCall(connectionId, offset, limit, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1060,7 +1060,7 @@ public ApiResponse getConnectionRoutingProtocolsWithHttpInfo(String 500 Internal server error - */ - public okhttp3.Call getConnectionRoutingProtocolsAsync(String connectionId, Integer offset, Integer limit, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getConnectionRoutingProtocolsAsync(@javax.annotation.Nonnull String connectionId, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getConnectionRoutingProtocolsValidateBeforeCall(connectionId, offset, limit, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1087,7 +1087,7 @@ public okhttp3.Call getConnectionRoutingProtocolsAsync(String connectionId, Inte 500 Internal server error - */ - public okhttp3.Call getConnectionRoutingProtocolsBgpActionByUuidCall(String connectionId, UUID routingProtocolId, UUID actionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getConnectionRoutingProtocolsBgpActionByUuidCall(@javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull UUID routingProtocolId, @javax.annotation.Nonnull UUID actionId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1135,7 +1135,7 @@ public okhttp3.Call getConnectionRoutingProtocolsBgpActionByUuidCall(String conn } @SuppressWarnings("rawtypes") - private okhttp3.Call getConnectionRoutingProtocolsBgpActionByUuidValidateBeforeCall(String connectionId, UUID routingProtocolId, UUID actionId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getConnectionRoutingProtocolsBgpActionByUuidValidateBeforeCall(@javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull UUID routingProtocolId, @javax.annotation.Nonnull UUID actionId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'connectionId' is set if (connectionId == null) { throw new ApiException("Missing the required parameter 'connectionId' when calling getConnectionRoutingProtocolsBgpActionByUuid(Async)"); @@ -1175,7 +1175,7 @@ private okhttp3.Call getConnectionRoutingProtocolsBgpActionByUuidValidateBeforeC 500 Internal server error - */ - public BGPActionData getConnectionRoutingProtocolsBgpActionByUuid(String connectionId, UUID routingProtocolId, UUID actionId) throws ApiException { + public BGPActionData getConnectionRoutingProtocolsBgpActionByUuid(@javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull UUID routingProtocolId, @javax.annotation.Nonnull UUID actionId) throws ApiException { ApiResponse localVarResp = getConnectionRoutingProtocolsBgpActionByUuidWithHttpInfo(connectionId, routingProtocolId, actionId); return localVarResp.getData(); } @@ -1200,7 +1200,7 @@ public BGPActionData getConnectionRoutingProtocolsBgpActionByUuid(String connect 500 Internal server error - */ - public ApiResponse getConnectionRoutingProtocolsBgpActionByUuidWithHttpInfo(String connectionId, UUID routingProtocolId, UUID actionId) throws ApiException { + public ApiResponse getConnectionRoutingProtocolsBgpActionByUuidWithHttpInfo(@javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull UUID routingProtocolId, @javax.annotation.Nonnull UUID actionId) throws ApiException { okhttp3.Call localVarCall = getConnectionRoutingProtocolsBgpActionByUuidValidateBeforeCall(connectionId, routingProtocolId, actionId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1227,7 +1227,7 @@ public ApiResponse getConnectionRoutingProtocolsBgpActionByUuidWi 500 Internal server error - */ - public okhttp3.Call getConnectionRoutingProtocolsBgpActionByUuidAsync(String connectionId, UUID routingProtocolId, UUID actionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getConnectionRoutingProtocolsBgpActionByUuidAsync(@javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull UUID routingProtocolId, @javax.annotation.Nonnull UUID actionId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getConnectionRoutingProtocolsBgpActionByUuidValidateBeforeCall(connectionId, routingProtocolId, actionId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1254,7 +1254,7 @@ public okhttp3.Call getConnectionRoutingProtocolsBgpActionByUuidAsync(String con 500 Internal server error - */ - public okhttp3.Call getConnectionRoutingProtocolsChangeByUuidCall(String connectionId, UUID routingProtocolId, UUID changeId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getConnectionRoutingProtocolsChangeByUuidCall(@javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull UUID routingProtocolId, @javax.annotation.Nonnull UUID changeId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1302,7 +1302,7 @@ public okhttp3.Call getConnectionRoutingProtocolsChangeByUuidCall(String connect } @SuppressWarnings("rawtypes") - private okhttp3.Call getConnectionRoutingProtocolsChangeByUuidValidateBeforeCall(String connectionId, UUID routingProtocolId, UUID changeId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getConnectionRoutingProtocolsChangeByUuidValidateBeforeCall(@javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull UUID routingProtocolId, @javax.annotation.Nonnull UUID changeId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'connectionId' is set if (connectionId == null) { throw new ApiException("Missing the required parameter 'connectionId' when calling getConnectionRoutingProtocolsChangeByUuid(Async)"); @@ -1342,7 +1342,7 @@ private okhttp3.Call getConnectionRoutingProtocolsChangeByUuidValidateBeforeCall 500 Internal server error - */ - public RoutingProtocolChangeData getConnectionRoutingProtocolsChangeByUuid(String connectionId, UUID routingProtocolId, UUID changeId) throws ApiException { + public RoutingProtocolChangeData getConnectionRoutingProtocolsChangeByUuid(@javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull UUID routingProtocolId, @javax.annotation.Nonnull UUID changeId) throws ApiException { ApiResponse localVarResp = getConnectionRoutingProtocolsChangeByUuidWithHttpInfo(connectionId, routingProtocolId, changeId); return localVarResp.getData(); } @@ -1367,7 +1367,7 @@ public RoutingProtocolChangeData getConnectionRoutingProtocolsChangeByUuid(Strin 500 Internal server error - */ - public ApiResponse getConnectionRoutingProtocolsChangeByUuidWithHttpInfo(String connectionId, UUID routingProtocolId, UUID changeId) throws ApiException { + public ApiResponse getConnectionRoutingProtocolsChangeByUuidWithHttpInfo(@javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull UUID routingProtocolId, @javax.annotation.Nonnull UUID changeId) throws ApiException { okhttp3.Call localVarCall = getConnectionRoutingProtocolsChangeByUuidValidateBeforeCall(connectionId, routingProtocolId, changeId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1394,7 +1394,7 @@ public ApiResponse getConnectionRoutingProtocolsChang 500 Internal server error - */ - public okhttp3.Call getConnectionRoutingProtocolsChangeByUuidAsync(String connectionId, UUID routingProtocolId, UUID changeId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getConnectionRoutingProtocolsChangeByUuidAsync(@javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull UUID routingProtocolId, @javax.annotation.Nonnull UUID changeId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getConnectionRoutingProtocolsChangeByUuidValidateBeforeCall(connectionId, routingProtocolId, changeId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1422,7 +1422,7 @@ public okhttp3.Call getConnectionRoutingProtocolsChangeByUuidAsync(String connec 500 Internal server error - */ - public okhttp3.Call getConnectionRoutingProtocolsChangesCall(String connectionId, UUID routingProtocolId, Integer offset, Integer limit, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getConnectionRoutingProtocolsChangesCall(@javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull UUID routingProtocolId, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1477,7 +1477,7 @@ public okhttp3.Call getConnectionRoutingProtocolsChangesCall(String connectionId } @SuppressWarnings("rawtypes") - private okhttp3.Call getConnectionRoutingProtocolsChangesValidateBeforeCall(String connectionId, UUID routingProtocolId, Integer offset, Integer limit, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getConnectionRoutingProtocolsChangesValidateBeforeCall(@javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull UUID routingProtocolId, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit, final ApiCallback _callback) throws ApiException { // verify the required parameter 'connectionId' is set if (connectionId == null) { throw new ApiException("Missing the required parameter 'connectionId' when calling getConnectionRoutingProtocolsChanges(Async)"); @@ -1513,7 +1513,7 @@ private okhttp3.Call getConnectionRoutingProtocolsChangesValidateBeforeCall(Stri 500 Internal server error - */ - public RoutingProtocolChangeDataResponse getConnectionRoutingProtocolsChanges(String connectionId, UUID routingProtocolId, Integer offset, Integer limit) throws ApiException { + public RoutingProtocolChangeDataResponse getConnectionRoutingProtocolsChanges(@javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull UUID routingProtocolId, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit) throws ApiException { ApiResponse localVarResp = getConnectionRoutingProtocolsChangesWithHttpInfo(connectionId, routingProtocolId, offset, limit); return localVarResp.getData(); } @@ -1539,7 +1539,7 @@ public RoutingProtocolChangeDataResponse getConnectionRoutingProtocolsChanges(St 500 Internal server error - */ - public ApiResponse getConnectionRoutingProtocolsChangesWithHttpInfo(String connectionId, UUID routingProtocolId, Integer offset, Integer limit) throws ApiException { + public ApiResponse getConnectionRoutingProtocolsChangesWithHttpInfo(@javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull UUID routingProtocolId, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit) throws ApiException { okhttp3.Call localVarCall = getConnectionRoutingProtocolsChangesValidateBeforeCall(connectionId, routingProtocolId, offset, limit, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1567,7 +1567,7 @@ public ApiResponse getConnectionRoutingProtoc 500 Internal server error - */ - public okhttp3.Call getConnectionRoutingProtocolsChangesAsync(String connectionId, UUID routingProtocolId, Integer offset, Integer limit, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getConnectionRoutingProtocolsChangesAsync(@javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull UUID routingProtocolId, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getConnectionRoutingProtocolsChangesValidateBeforeCall(connectionId, routingProtocolId, offset, limit, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1595,7 +1595,7 @@ public okhttp3.Call getConnectionRoutingProtocolsChangesAsync(String connectionI 500 Internal server error - */ - public okhttp3.Call patchConnectionRoutingProtocolByUuidCall(UUID routingProtocolId, String connectionId, List connectionChangeOperation, final ApiCallback _callback) throws ApiException { + public okhttp3.Call patchConnectionRoutingProtocolByUuidCall(@javax.annotation.Nonnull UUID routingProtocolId, @javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull List connectionChangeOperation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1644,7 +1644,7 @@ public okhttp3.Call patchConnectionRoutingProtocolByUuidCall(UUID routingProtoco } @SuppressWarnings("rawtypes") - private okhttp3.Call patchConnectionRoutingProtocolByUuidValidateBeforeCall(UUID routingProtocolId, String connectionId, List connectionChangeOperation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchConnectionRoutingProtocolByUuidValidateBeforeCall(@javax.annotation.Nonnull UUID routingProtocolId, @javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull List connectionChangeOperation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'routingProtocolId' is set if (routingProtocolId == null) { throw new ApiException("Missing the required parameter 'routingProtocolId' when calling patchConnectionRoutingProtocolByUuid(Async)"); @@ -1685,7 +1685,7 @@ private okhttp3.Call patchConnectionRoutingProtocolByUuidValidateBeforeCall(UUID 500 Internal server error - */ - public RoutingProtocolData patchConnectionRoutingProtocolByUuid(UUID routingProtocolId, String connectionId, List connectionChangeOperation) throws ApiException { + public RoutingProtocolData patchConnectionRoutingProtocolByUuid(@javax.annotation.Nonnull UUID routingProtocolId, @javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull List connectionChangeOperation) throws ApiException { ApiResponse localVarResp = patchConnectionRoutingProtocolByUuidWithHttpInfo(routingProtocolId, connectionId, connectionChangeOperation); return localVarResp.getData(); } @@ -1711,7 +1711,7 @@ public RoutingProtocolData patchConnectionRoutingProtocolByUuid(UUID routingProt 500 Internal server error - */ - public ApiResponse patchConnectionRoutingProtocolByUuidWithHttpInfo(UUID routingProtocolId, String connectionId, List connectionChangeOperation) throws ApiException { + public ApiResponse patchConnectionRoutingProtocolByUuidWithHttpInfo(@javax.annotation.Nonnull UUID routingProtocolId, @javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull List connectionChangeOperation) throws ApiException { okhttp3.Call localVarCall = patchConnectionRoutingProtocolByUuidValidateBeforeCall(routingProtocolId, connectionId, connectionChangeOperation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1739,7 +1739,7 @@ public ApiResponse patchConnectionRoutingProtocolByUuidWith 500 Internal server error - */ - public okhttp3.Call patchConnectionRoutingProtocolByUuidAsync(UUID routingProtocolId, String connectionId, List connectionChangeOperation, final ApiCallback _callback) throws ApiException { + public okhttp3.Call patchConnectionRoutingProtocolByUuidAsync(@javax.annotation.Nonnull UUID routingProtocolId, @javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull List connectionChangeOperation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchConnectionRoutingProtocolByUuidValidateBeforeCall(routingProtocolId, connectionId, connectionChangeOperation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1767,7 +1767,7 @@ public okhttp3.Call patchConnectionRoutingProtocolByUuidAsync(UUID routingProtoc 500 Internal server error - */ - public okhttp3.Call postConnectionRoutingProtocolBgpActionByUuidCall(UUID routingProtocolId, String connectionId, BGPActionRequest bgPActionRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call postConnectionRoutingProtocolBgpActionByUuidCall(@javax.annotation.Nonnull UUID routingProtocolId, @javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull BGPActionRequest bgPActionRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1815,7 +1815,7 @@ public okhttp3.Call postConnectionRoutingProtocolBgpActionByUuidCall(UUID routin } @SuppressWarnings("rawtypes") - private okhttp3.Call postConnectionRoutingProtocolBgpActionByUuidValidateBeforeCall(UUID routingProtocolId, String connectionId, BGPActionRequest bgPActionRequest, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postConnectionRoutingProtocolBgpActionByUuidValidateBeforeCall(@javax.annotation.Nonnull UUID routingProtocolId, @javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull BGPActionRequest bgPActionRequest, final ApiCallback _callback) throws ApiException { // verify the required parameter 'routingProtocolId' is set if (routingProtocolId == null) { throw new ApiException("Missing the required parameter 'routingProtocolId' when calling postConnectionRoutingProtocolBgpActionByUuid(Async)"); @@ -1856,7 +1856,7 @@ private okhttp3.Call postConnectionRoutingProtocolBgpActionByUuidValidateBeforeC 500 Internal server error - */ - public BGPActionData postConnectionRoutingProtocolBgpActionByUuid(UUID routingProtocolId, String connectionId, BGPActionRequest bgPActionRequest) throws ApiException { + public BGPActionData postConnectionRoutingProtocolBgpActionByUuid(@javax.annotation.Nonnull UUID routingProtocolId, @javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull BGPActionRequest bgPActionRequest) throws ApiException { ApiResponse localVarResp = postConnectionRoutingProtocolBgpActionByUuidWithHttpInfo(routingProtocolId, connectionId, bgPActionRequest); return localVarResp.getData(); } @@ -1882,7 +1882,7 @@ public BGPActionData postConnectionRoutingProtocolBgpActionByUuid(UUID routingPr 500 Internal server error - */ - public ApiResponse postConnectionRoutingProtocolBgpActionByUuidWithHttpInfo(UUID routingProtocolId, String connectionId, BGPActionRequest bgPActionRequest) throws ApiException { + public ApiResponse postConnectionRoutingProtocolBgpActionByUuidWithHttpInfo(@javax.annotation.Nonnull UUID routingProtocolId, @javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull BGPActionRequest bgPActionRequest) throws ApiException { okhttp3.Call localVarCall = postConnectionRoutingProtocolBgpActionByUuidValidateBeforeCall(routingProtocolId, connectionId, bgPActionRequest, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1910,7 +1910,7 @@ public ApiResponse postConnectionRoutingProtocolBgpActionByUuidWi 500 Internal server error - */ - public okhttp3.Call postConnectionRoutingProtocolBgpActionByUuidAsync(UUID routingProtocolId, String connectionId, BGPActionRequest bgPActionRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call postConnectionRoutingProtocolBgpActionByUuidAsync(@javax.annotation.Nonnull UUID routingProtocolId, @javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull BGPActionRequest bgPActionRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = postConnectionRoutingProtocolBgpActionByUuidValidateBeforeCall(routingProtocolId, connectionId, bgPActionRequest, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1938,7 +1938,7 @@ public okhttp3.Call postConnectionRoutingProtocolBgpActionByUuidAsync(UUID routi 500 Internal server error - */ - public okhttp3.Call replaceConnectionRoutingProtocolByUuidCall(UUID routingProtocolId, String connectionId, RoutingProtocolBase routingProtocolBase, final ApiCallback _callback) throws ApiException { + public okhttp3.Call replaceConnectionRoutingProtocolByUuidCall(@javax.annotation.Nonnull UUID routingProtocolId, @javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull RoutingProtocolBase routingProtocolBase, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1986,7 +1986,7 @@ public okhttp3.Call replaceConnectionRoutingProtocolByUuidCall(UUID routingProto } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceConnectionRoutingProtocolByUuidValidateBeforeCall(UUID routingProtocolId, String connectionId, RoutingProtocolBase routingProtocolBase, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceConnectionRoutingProtocolByUuidValidateBeforeCall(@javax.annotation.Nonnull UUID routingProtocolId, @javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull RoutingProtocolBase routingProtocolBase, final ApiCallback _callback) throws ApiException { // verify the required parameter 'routingProtocolId' is set if (routingProtocolId == null) { throw new ApiException("Missing the required parameter 'routingProtocolId' when calling replaceConnectionRoutingProtocolByUuid(Async)"); @@ -2027,7 +2027,7 @@ private okhttp3.Call replaceConnectionRoutingProtocolByUuidValidateBeforeCall(UU 500 Internal server error - */ - public RoutingProtocolData replaceConnectionRoutingProtocolByUuid(UUID routingProtocolId, String connectionId, RoutingProtocolBase routingProtocolBase) throws ApiException { + public RoutingProtocolData replaceConnectionRoutingProtocolByUuid(@javax.annotation.Nonnull UUID routingProtocolId, @javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull RoutingProtocolBase routingProtocolBase) throws ApiException { ApiResponse localVarResp = replaceConnectionRoutingProtocolByUuidWithHttpInfo(routingProtocolId, connectionId, routingProtocolBase); return localVarResp.getData(); } @@ -2053,7 +2053,7 @@ public RoutingProtocolData replaceConnectionRoutingProtocolByUuid(UUID routingPr 500 Internal server error - */ - public ApiResponse replaceConnectionRoutingProtocolByUuidWithHttpInfo(UUID routingProtocolId, String connectionId, RoutingProtocolBase routingProtocolBase) throws ApiException { + public ApiResponse replaceConnectionRoutingProtocolByUuidWithHttpInfo(@javax.annotation.Nonnull UUID routingProtocolId, @javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull RoutingProtocolBase routingProtocolBase) throws ApiException { okhttp3.Call localVarCall = replaceConnectionRoutingProtocolByUuidValidateBeforeCall(routingProtocolId, connectionId, routingProtocolBase, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -2081,7 +2081,7 @@ public ApiResponse replaceConnectionRoutingProtocolByUuidWi 500 Internal server error - */ - public okhttp3.Call replaceConnectionRoutingProtocolByUuidAsync(UUID routingProtocolId, String connectionId, RoutingProtocolBase routingProtocolBase, final ApiCallback _callback) throws ApiException { + public okhttp3.Call replaceConnectionRoutingProtocolByUuidAsync(@javax.annotation.Nonnull UUID routingProtocolId, @javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull RoutingProtocolBase routingProtocolBase, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceConnectionRoutingProtocolByUuidValidateBeforeCall(routingProtocolId, connectionId, routingProtocolBase, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2103,7 +2103,7 @@ public okhttp3.Call replaceConnectionRoutingProtocolByUuidAsync(UUID routingProt 400 Bad request - */ - public okhttp3.Call validateRoutingProtocolCall(UUID routerId, ValidateRequest validateRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call validateRoutingProtocolCall(@javax.annotation.Nonnull UUID routerId, @javax.annotation.Nonnull ValidateRequest validateRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2150,7 +2150,7 @@ public okhttp3.Call validateRoutingProtocolCall(UUID routerId, ValidateRequest v } @SuppressWarnings("rawtypes") - private okhttp3.Call validateRoutingProtocolValidateBeforeCall(UUID routerId, ValidateRequest validateRequest, final ApiCallback _callback) throws ApiException { + private okhttp3.Call validateRoutingProtocolValidateBeforeCall(@javax.annotation.Nonnull UUID routerId, @javax.annotation.Nonnull ValidateRequest validateRequest, final ApiCallback _callback) throws ApiException { // verify the required parameter 'routerId' is set if (routerId == null) { throw new ApiException("Missing the required parameter 'routerId' when calling validateRoutingProtocol(Async)"); @@ -2180,7 +2180,7 @@ private okhttp3.Call validateRoutingProtocolValidateBeforeCall(UUID routerId, Va 400 Bad request - */ - public ValidateSubnetResponse validateRoutingProtocol(UUID routerId, ValidateRequest validateRequest) throws ApiException { + public ValidateSubnetResponse validateRoutingProtocol(@javax.annotation.Nonnull UUID routerId, @javax.annotation.Nonnull ValidateRequest validateRequest) throws ApiException { ApiResponse localVarResp = validateRoutingProtocolWithHttpInfo(routerId, validateRequest); return localVarResp.getData(); } @@ -2200,7 +2200,7 @@ public ValidateSubnetResponse validateRoutingProtocol(UUID routerId, ValidateReq 400 Bad request - */ - public ApiResponse validateRoutingProtocolWithHttpInfo(UUID routerId, ValidateRequest validateRequest) throws ApiException { + public ApiResponse validateRoutingProtocolWithHttpInfo(@javax.annotation.Nonnull UUID routerId, @javax.annotation.Nonnull ValidateRequest validateRequest) throws ApiException { okhttp3.Call localVarCall = validateRoutingProtocolValidateBeforeCall(routerId, validateRequest, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -2222,7 +2222,7 @@ public ApiResponse validateRoutingProtocolWithHttpInfo(U 400 Bad request - */ - public okhttp3.Call validateRoutingProtocolAsync(UUID routerId, ValidateRequest validateRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call validateRoutingProtocolAsync(@javax.annotation.Nonnull UUID routerId, @javax.annotation.Nonnull ValidateRequest validateRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = validateRoutingProtocolValidateBeforeCall(routerId, validateRequest, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/ServiceProfilesApi.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/ServiceProfilesApi.java index d321c258..be01b0b6 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/ServiceProfilesApi.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/ServiceProfilesApi.java @@ -94,7 +94,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 500 Internal Server Error - */ - public okhttp3.Call createServiceProfileCall(ServiceProfileRequest serviceProfileRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createServiceProfileCall(@javax.annotation.Nonnull ServiceProfileRequest serviceProfileRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -141,7 +141,7 @@ public okhttp3.Call createServiceProfileCall(ServiceProfileRequest serviceProfil } @SuppressWarnings("rawtypes") - private okhttp3.Call createServiceProfileValidateBeforeCall(ServiceProfileRequest serviceProfileRequest, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createServiceProfileValidateBeforeCall(@javax.annotation.Nonnull ServiceProfileRequest serviceProfileRequest, final ApiCallback _callback) throws ApiException { // verify the required parameter 'serviceProfileRequest' is set if (serviceProfileRequest == null) { throw new ApiException("Missing the required parameter 'serviceProfileRequest' when calling createServiceProfile(Async)"); @@ -168,7 +168,7 @@ private okhttp3.Call createServiceProfileValidateBeforeCall(ServiceProfileReques 500 Internal Server Error - */ - public ServiceProfile createServiceProfile(ServiceProfileRequest serviceProfileRequest) throws ApiException { + public ServiceProfile createServiceProfile(@javax.annotation.Nonnull ServiceProfileRequest serviceProfileRequest) throws ApiException { ApiResponse localVarResp = createServiceProfileWithHttpInfo(serviceProfileRequest); return localVarResp.getData(); } @@ -190,7 +190,7 @@ public ServiceProfile createServiceProfile(ServiceProfileRequest serviceProfileR 500 Internal Server Error - */ - public ApiResponse createServiceProfileWithHttpInfo(ServiceProfileRequest serviceProfileRequest) throws ApiException { + public ApiResponse createServiceProfileWithHttpInfo(@javax.annotation.Nonnull ServiceProfileRequest serviceProfileRequest) throws ApiException { okhttp3.Call localVarCall = createServiceProfileValidateBeforeCall(serviceProfileRequest, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -214,7 +214,7 @@ public ApiResponse createServiceProfileWithHttpInfo(ServiceProfi 500 Internal Server Error - */ - public okhttp3.Call createServiceProfileAsync(ServiceProfileRequest serviceProfileRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createServiceProfileAsync(@javax.annotation.Nonnull ServiceProfileRequest serviceProfileRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createServiceProfileValidateBeforeCall(serviceProfileRequest, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -239,7 +239,7 @@ public okhttp3.Call createServiceProfileAsync(ServiceProfileRequest serviceProfi 500 Internal Server Error - */ - public okhttp3.Call deleteServiceProfileByUuidCall(UUID serviceProfileId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteServiceProfileByUuidCall(@javax.annotation.Nonnull UUID serviceProfileId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -286,7 +286,7 @@ public okhttp3.Call deleteServiceProfileByUuidCall(UUID serviceProfileId, final } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteServiceProfileByUuidValidateBeforeCall(UUID serviceProfileId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteServiceProfileByUuidValidateBeforeCall(@javax.annotation.Nonnull UUID serviceProfileId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'serviceProfileId' is set if (serviceProfileId == null) { throw new ApiException("Missing the required parameter 'serviceProfileId' when calling deleteServiceProfileByUuid(Async)"); @@ -314,7 +314,7 @@ private okhttp3.Call deleteServiceProfileByUuidValidateBeforeCall(UUID servicePr 500 Internal Server Error - */ - public ServiceProfile deleteServiceProfileByUuid(UUID serviceProfileId) throws ApiException { + public ServiceProfile deleteServiceProfileByUuid(@javax.annotation.Nonnull UUID serviceProfileId) throws ApiException { ApiResponse localVarResp = deleteServiceProfileByUuidWithHttpInfo(serviceProfileId); return localVarResp.getData(); } @@ -337,7 +337,7 @@ public ServiceProfile deleteServiceProfileByUuid(UUID serviceProfileId) throws A 500 Internal Server Error - */ - public ApiResponse deleteServiceProfileByUuidWithHttpInfo(UUID serviceProfileId) throws ApiException { + public ApiResponse deleteServiceProfileByUuidWithHttpInfo(@javax.annotation.Nonnull UUID serviceProfileId) throws ApiException { okhttp3.Call localVarCall = deleteServiceProfileByUuidValidateBeforeCall(serviceProfileId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -362,7 +362,7 @@ public ApiResponse deleteServiceProfileByUuidWithHttpInfo(UUID s 500 Internal Server Error - */ - public okhttp3.Call deleteServiceProfileByUuidAsync(UUID serviceProfileId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteServiceProfileByUuidAsync(@javax.annotation.Nonnull UUID serviceProfileId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteServiceProfileByUuidValidateBeforeCall(serviceProfileId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -387,7 +387,7 @@ public okhttp3.Call deleteServiceProfileByUuidAsync(UUID serviceProfileId, final 500 Internal Server Error - */ - public okhttp3.Call getServiceProfileByUuidCall(UUID serviceProfileId, String viewPoint, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getServiceProfileByUuidCall(@javax.annotation.Nonnull UUID serviceProfileId, @javax.annotation.Nullable String viewPoint, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -438,7 +438,7 @@ public okhttp3.Call getServiceProfileByUuidCall(UUID serviceProfileId, String vi } @SuppressWarnings("rawtypes") - private okhttp3.Call getServiceProfileByUuidValidateBeforeCall(UUID serviceProfileId, String viewPoint, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getServiceProfileByUuidValidateBeforeCall(@javax.annotation.Nonnull UUID serviceProfileId, @javax.annotation.Nullable String viewPoint, final ApiCallback _callback) throws ApiException { // verify the required parameter 'serviceProfileId' is set if (serviceProfileId == null) { throw new ApiException("Missing the required parameter 'serviceProfileId' when calling getServiceProfileByUuid(Async)"); @@ -466,7 +466,7 @@ private okhttp3.Call getServiceProfileByUuidValidateBeforeCall(UUID serviceProfi 500 Internal Server Error - */ - public ServiceProfile getServiceProfileByUuid(UUID serviceProfileId, String viewPoint) throws ApiException { + public ServiceProfile getServiceProfileByUuid(@javax.annotation.Nonnull UUID serviceProfileId, @javax.annotation.Nullable String viewPoint) throws ApiException { ApiResponse localVarResp = getServiceProfileByUuidWithHttpInfo(serviceProfileId, viewPoint); return localVarResp.getData(); } @@ -489,7 +489,7 @@ public ServiceProfile getServiceProfileByUuid(UUID serviceProfileId, String view 500 Internal Server Error - */ - public ApiResponse getServiceProfileByUuidWithHttpInfo(UUID serviceProfileId, String viewPoint) throws ApiException { + public ApiResponse getServiceProfileByUuidWithHttpInfo(@javax.annotation.Nonnull UUID serviceProfileId, @javax.annotation.Nullable String viewPoint) throws ApiException { okhttp3.Call localVarCall = getServiceProfileByUuidValidateBeforeCall(serviceProfileId, viewPoint, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -514,7 +514,7 @@ public ApiResponse getServiceProfileByUuidWithHttpInfo(UUID serv 500 Internal Server Error - */ - public okhttp3.Call getServiceProfileByUuidAsync(UUID serviceProfileId, String viewPoint, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getServiceProfileByUuidAsync(@javax.annotation.Nonnull UUID serviceProfileId, @javax.annotation.Nullable String viewPoint, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getServiceProfileByUuidValidateBeforeCall(serviceProfileId, viewPoint, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -540,7 +540,7 @@ public okhttp3.Call getServiceProfileByUuidAsync(UUID serviceProfileId, String v 500 Internal Server Error - */ - public okhttp3.Call getServiceProfileMetrosByUuidCall(UUID serviceProfileId, Integer offset, Integer limit, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getServiceProfileMetrosByUuidCall(@javax.annotation.Nonnull UUID serviceProfileId, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -595,7 +595,7 @@ public okhttp3.Call getServiceProfileMetrosByUuidCall(UUID serviceProfileId, Int } @SuppressWarnings("rawtypes") - private okhttp3.Call getServiceProfileMetrosByUuidValidateBeforeCall(UUID serviceProfileId, Integer offset, Integer limit, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getServiceProfileMetrosByUuidValidateBeforeCall(@javax.annotation.Nonnull UUID serviceProfileId, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit, final ApiCallback _callback) throws ApiException { // verify the required parameter 'serviceProfileId' is set if (serviceProfileId == null) { throw new ApiException("Missing the required parameter 'serviceProfileId' when calling getServiceProfileMetrosByUuid(Async)"); @@ -624,7 +624,7 @@ private okhttp3.Call getServiceProfileMetrosByUuidValidateBeforeCall(UUID servic 500 Internal Server Error - */ - public ServiceMetros getServiceProfileMetrosByUuid(UUID serviceProfileId, Integer offset, Integer limit) throws ApiException { + public ServiceMetros getServiceProfileMetrosByUuid(@javax.annotation.Nonnull UUID serviceProfileId, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit) throws ApiException { ApiResponse localVarResp = getServiceProfileMetrosByUuidWithHttpInfo(serviceProfileId, offset, limit); return localVarResp.getData(); } @@ -648,7 +648,7 @@ public ServiceMetros getServiceProfileMetrosByUuid(UUID serviceProfileId, Intege 500 Internal Server Error - */ - public ApiResponse getServiceProfileMetrosByUuidWithHttpInfo(UUID serviceProfileId, Integer offset, Integer limit) throws ApiException { + public ApiResponse getServiceProfileMetrosByUuidWithHttpInfo(@javax.annotation.Nonnull UUID serviceProfileId, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit) throws ApiException { okhttp3.Call localVarCall = getServiceProfileMetrosByUuidValidateBeforeCall(serviceProfileId, offset, limit, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -674,7 +674,7 @@ public ApiResponse getServiceProfileMetrosByUuidWithHttpInfo(UUID 500 Internal Server Error - */ - public okhttp3.Call getServiceProfileMetrosByUuidAsync(UUID serviceProfileId, Integer offset, Integer limit, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getServiceProfileMetrosByUuidAsync(@javax.annotation.Nonnull UUID serviceProfileId, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getServiceProfileMetrosByUuidValidateBeforeCall(serviceProfileId, offset, limit, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -700,7 +700,7 @@ public okhttp3.Call getServiceProfileMetrosByUuidAsync(UUID serviceProfileId, In 500 Internal Server Error - */ - public okhttp3.Call getServiceProfilesCall(Integer offset, Integer limit, String viewPoint, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getServiceProfilesCall(@javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit, @javax.annotation.Nullable String viewPoint, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -758,7 +758,7 @@ public okhttp3.Call getServiceProfilesCall(Integer offset, Integer limit, String } @SuppressWarnings("rawtypes") - private okhttp3.Call getServiceProfilesValidateBeforeCall(Integer offset, Integer limit, String viewPoint, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getServiceProfilesValidateBeforeCall(@javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit, @javax.annotation.Nullable String viewPoint, final ApiCallback _callback) throws ApiException { return getServiceProfilesCall(offset, limit, viewPoint, _callback); } @@ -782,7 +782,7 @@ private okhttp3.Call getServiceProfilesValidateBeforeCall(Integer offset, Intege 500 Internal Server Error - */ - public ServiceProfiles getServiceProfiles(Integer offset, Integer limit, String viewPoint) throws ApiException { + public ServiceProfiles getServiceProfiles(@javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit, @javax.annotation.Nullable String viewPoint) throws ApiException { ApiResponse localVarResp = getServiceProfilesWithHttpInfo(offset, limit, viewPoint); return localVarResp.getData(); } @@ -806,7 +806,7 @@ public ServiceProfiles getServiceProfiles(Integer offset, Integer limit, String 500 Internal Server Error - */ - public ApiResponse getServiceProfilesWithHttpInfo(Integer offset, Integer limit, String viewPoint) throws ApiException { + public ApiResponse getServiceProfilesWithHttpInfo(@javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit, @javax.annotation.Nullable String viewPoint) throws ApiException { okhttp3.Call localVarCall = getServiceProfilesValidateBeforeCall(offset, limit, viewPoint, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -832,7 +832,7 @@ public ApiResponse getServiceProfilesWithHttpInfo(Integer offse 500 Internal Server Error - */ - public okhttp3.Call getServiceProfilesAsync(Integer offset, Integer limit, String viewPoint, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getServiceProfilesAsync(@javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit, @javax.annotation.Nullable String viewPoint, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getServiceProfilesValidateBeforeCall(offset, limit, viewPoint, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -859,7 +859,7 @@ public okhttp3.Call getServiceProfilesAsync(Integer offset, Integer limit, Strin 500 Internal Server Error - */ - public okhttp3.Call putServiceProfileByUuidCall(UUID serviceProfileId, String ifMatch, ServiceProfileRequest serviceProfileRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call putServiceProfileByUuidCall(@javax.annotation.Nonnull UUID serviceProfileId, @javax.annotation.Nonnull String ifMatch, @javax.annotation.Nonnull ServiceProfileRequest serviceProfileRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -912,7 +912,7 @@ public okhttp3.Call putServiceProfileByUuidCall(UUID serviceProfileId, String if } @SuppressWarnings("rawtypes") - private okhttp3.Call putServiceProfileByUuidValidateBeforeCall(UUID serviceProfileId, String ifMatch, ServiceProfileRequest serviceProfileRequest, final ApiCallback _callback) throws ApiException { + private okhttp3.Call putServiceProfileByUuidValidateBeforeCall(@javax.annotation.Nonnull UUID serviceProfileId, @javax.annotation.Nonnull String ifMatch, @javax.annotation.Nonnull ServiceProfileRequest serviceProfileRequest, final ApiCallback _callback) throws ApiException { // verify the required parameter 'serviceProfileId' is set if (serviceProfileId == null) { throw new ApiException("Missing the required parameter 'serviceProfileId' when calling putServiceProfileByUuid(Async)"); @@ -952,7 +952,7 @@ private okhttp3.Call putServiceProfileByUuidValidateBeforeCall(UUID serviceProfi 500 Internal Server Error - */ - public ServiceProfile putServiceProfileByUuid(UUID serviceProfileId, String ifMatch, ServiceProfileRequest serviceProfileRequest) throws ApiException { + public ServiceProfile putServiceProfileByUuid(@javax.annotation.Nonnull UUID serviceProfileId, @javax.annotation.Nonnull String ifMatch, @javax.annotation.Nonnull ServiceProfileRequest serviceProfileRequest) throws ApiException { ApiResponse localVarResp = putServiceProfileByUuidWithHttpInfo(serviceProfileId, ifMatch, serviceProfileRequest); return localVarResp.getData(); } @@ -977,7 +977,7 @@ public ServiceProfile putServiceProfileByUuid(UUID serviceProfileId, String ifMa 500 Internal Server Error - */ - public ApiResponse putServiceProfileByUuidWithHttpInfo(UUID serviceProfileId, String ifMatch, ServiceProfileRequest serviceProfileRequest) throws ApiException { + public ApiResponse putServiceProfileByUuidWithHttpInfo(@javax.annotation.Nonnull UUID serviceProfileId, @javax.annotation.Nonnull String ifMatch, @javax.annotation.Nonnull ServiceProfileRequest serviceProfileRequest) throws ApiException { okhttp3.Call localVarCall = putServiceProfileByUuidValidateBeforeCall(serviceProfileId, ifMatch, serviceProfileRequest, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1004,7 +1004,7 @@ public ApiResponse putServiceProfileByUuidWithHttpInfo(UUID serv 500 Internal Server Error - */ - public okhttp3.Call putServiceProfileByUuidAsync(UUID serviceProfileId, String ifMatch, ServiceProfileRequest serviceProfileRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call putServiceProfileByUuidAsync(@javax.annotation.Nonnull UUID serviceProfileId, @javax.annotation.Nonnull String ifMatch, @javax.annotation.Nonnull ServiceProfileRequest serviceProfileRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = putServiceProfileByUuidValidateBeforeCall(serviceProfileId, ifMatch, serviceProfileRequest, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1028,7 +1028,7 @@ public okhttp3.Call putServiceProfileByUuidAsync(UUID serviceProfileId, String i 500 Internal Server Error - */ - public okhttp3.Call searchServiceProfilesCall(ServiceProfileSearchRequest serviceProfileSearchRequest, String viewPoint, final ApiCallback _callback) throws ApiException { + public okhttp3.Call searchServiceProfilesCall(@javax.annotation.Nonnull ServiceProfileSearchRequest serviceProfileSearchRequest, @javax.annotation.Nullable String viewPoint, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1079,7 +1079,7 @@ public okhttp3.Call searchServiceProfilesCall(ServiceProfileSearchRequest servic } @SuppressWarnings("rawtypes") - private okhttp3.Call searchServiceProfilesValidateBeforeCall(ServiceProfileSearchRequest serviceProfileSearchRequest, String viewPoint, final ApiCallback _callback) throws ApiException { + private okhttp3.Call searchServiceProfilesValidateBeforeCall(@javax.annotation.Nonnull ServiceProfileSearchRequest serviceProfileSearchRequest, @javax.annotation.Nullable String viewPoint, final ApiCallback _callback) throws ApiException { // verify the required parameter 'serviceProfileSearchRequest' is set if (serviceProfileSearchRequest == null) { throw new ApiException("Missing the required parameter 'serviceProfileSearchRequest' when calling searchServiceProfiles(Async)"); @@ -1106,7 +1106,7 @@ private okhttp3.Call searchServiceProfilesValidateBeforeCall(ServiceProfileSearc 500 Internal Server Error - */ - public ServiceProfiles searchServiceProfiles(ServiceProfileSearchRequest serviceProfileSearchRequest, String viewPoint) throws ApiException { + public ServiceProfiles searchServiceProfiles(@javax.annotation.Nonnull ServiceProfileSearchRequest serviceProfileSearchRequest, @javax.annotation.Nullable String viewPoint) throws ApiException { ApiResponse localVarResp = searchServiceProfilesWithHttpInfo(serviceProfileSearchRequest, viewPoint); return localVarResp.getData(); } @@ -1128,7 +1128,7 @@ public ServiceProfiles searchServiceProfiles(ServiceProfileSearchRequest service 500 Internal Server Error - */ - public ApiResponse searchServiceProfilesWithHttpInfo(ServiceProfileSearchRequest serviceProfileSearchRequest, String viewPoint) throws ApiException { + public ApiResponse searchServiceProfilesWithHttpInfo(@javax.annotation.Nonnull ServiceProfileSearchRequest serviceProfileSearchRequest, @javax.annotation.Nullable String viewPoint) throws ApiException { okhttp3.Call localVarCall = searchServiceProfilesValidateBeforeCall(serviceProfileSearchRequest, viewPoint, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1152,7 +1152,7 @@ public ApiResponse searchServiceProfilesWithHttpInfo(ServicePro 500 Internal Server Error - */ - public okhttp3.Call searchServiceProfilesAsync(ServiceProfileSearchRequest serviceProfileSearchRequest, String viewPoint, final ApiCallback _callback) throws ApiException { + public okhttp3.Call searchServiceProfilesAsync(@javax.annotation.Nonnull ServiceProfileSearchRequest serviceProfileSearchRequest, @javax.annotation.Nullable String viewPoint, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = searchServiceProfilesValidateBeforeCall(serviceProfileSearchRequest, viewPoint, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1180,7 +1180,7 @@ public okhttp3.Call searchServiceProfilesAsync(ServiceProfileSearchRequest servi 500 Internal Server Error - */ - public okhttp3.Call updateServiceProfileByUuidCall(UUID serviceProfileId, String ifMatch, List jsonPatchOperation, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateServiceProfileByUuidCall(@javax.annotation.Nonnull UUID serviceProfileId, @javax.annotation.Nonnull String ifMatch, @javax.annotation.Nonnull List jsonPatchOperation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1233,7 +1233,7 @@ public okhttp3.Call updateServiceProfileByUuidCall(UUID serviceProfileId, String } @SuppressWarnings("rawtypes") - private okhttp3.Call updateServiceProfileByUuidValidateBeforeCall(UUID serviceProfileId, String ifMatch, List jsonPatchOperation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updateServiceProfileByUuidValidateBeforeCall(@javax.annotation.Nonnull UUID serviceProfileId, @javax.annotation.Nonnull String ifMatch, @javax.annotation.Nonnull List jsonPatchOperation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'serviceProfileId' is set if (serviceProfileId == null) { throw new ApiException("Missing the required parameter 'serviceProfileId' when calling updateServiceProfileByUuid(Async)"); @@ -1274,7 +1274,7 @@ private okhttp3.Call updateServiceProfileByUuidValidateBeforeCall(UUID servicePr 500 Internal Server Error - */ - public ServiceProfile updateServiceProfileByUuid(UUID serviceProfileId, String ifMatch, List jsonPatchOperation) throws ApiException { + public ServiceProfile updateServiceProfileByUuid(@javax.annotation.Nonnull UUID serviceProfileId, @javax.annotation.Nonnull String ifMatch, @javax.annotation.Nonnull List jsonPatchOperation) throws ApiException { ApiResponse localVarResp = updateServiceProfileByUuidWithHttpInfo(serviceProfileId, ifMatch, jsonPatchOperation); return localVarResp.getData(); } @@ -1300,7 +1300,7 @@ public ServiceProfile updateServiceProfileByUuid(UUID serviceProfileId, String i 500 Internal Server Error - */ - public ApiResponse updateServiceProfileByUuidWithHttpInfo(UUID serviceProfileId, String ifMatch, List jsonPatchOperation) throws ApiException { + public ApiResponse updateServiceProfileByUuidWithHttpInfo(@javax.annotation.Nonnull UUID serviceProfileId, @javax.annotation.Nonnull String ifMatch, @javax.annotation.Nonnull List jsonPatchOperation) throws ApiException { okhttp3.Call localVarCall = updateServiceProfileByUuidValidateBeforeCall(serviceProfileId, ifMatch, jsonPatchOperation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1328,7 +1328,7 @@ public ApiResponse updateServiceProfileByUuidWithHttpInfo(UUID s 500 Internal Server Error - */ - public okhttp3.Call updateServiceProfileByUuidAsync(UUID serviceProfileId, String ifMatch, List jsonPatchOperation, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateServiceProfileByUuidAsync(@javax.annotation.Nonnull UUID serviceProfileId, @javax.annotation.Nonnull String ifMatch, @javax.annotation.Nonnull List jsonPatchOperation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateServiceProfileByUuidValidateBeforeCall(serviceProfileId, ifMatch, jsonPatchOperation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/ServiceTokensApi.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/ServiceTokensApi.java index d9e193b0..59338796 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/ServiceTokensApi.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/ServiceTokensApi.java @@ -95,7 +95,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 403 Forbidden - */ - public okhttp3.Call createServiceTokenCall(ServiceToken serviceToken, Boolean dryRun, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createServiceTokenCall(@javax.annotation.Nonnull ServiceToken serviceToken, @javax.annotation.Nullable Boolean dryRun, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -145,7 +145,7 @@ public okhttp3.Call createServiceTokenCall(ServiceToken serviceToken, Boolean dr } @SuppressWarnings("rawtypes") - private okhttp3.Call createServiceTokenValidateBeforeCall(ServiceToken serviceToken, Boolean dryRun, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createServiceTokenValidateBeforeCall(@javax.annotation.Nonnull ServiceToken serviceToken, @javax.annotation.Nullable Boolean dryRun, final ApiCallback _callback) throws ApiException { // verify the required parameter 'serviceToken' is set if (serviceToken == null) { throw new ApiException("Missing the required parameter 'serviceToken' when calling createServiceToken(Async)"); @@ -173,7 +173,7 @@ private okhttp3.Call createServiceTokenValidateBeforeCall(ServiceToken serviceTo 403 Forbidden - */ - public ServiceToken createServiceToken(ServiceToken serviceToken, Boolean dryRun) throws ApiException { + public ServiceToken createServiceToken(@javax.annotation.Nonnull ServiceToken serviceToken, @javax.annotation.Nullable Boolean dryRun) throws ApiException { ApiResponse localVarResp = createServiceTokenWithHttpInfo(serviceToken, dryRun); return localVarResp.getData(); } @@ -196,7 +196,7 @@ public ServiceToken createServiceToken(ServiceToken serviceToken, Boolean dryRun 403 Forbidden - */ - public ApiResponse createServiceTokenWithHttpInfo(ServiceToken serviceToken, Boolean dryRun) throws ApiException { + public ApiResponse createServiceTokenWithHttpInfo(@javax.annotation.Nonnull ServiceToken serviceToken, @javax.annotation.Nullable Boolean dryRun) throws ApiException { okhttp3.Call localVarCall = createServiceTokenValidateBeforeCall(serviceToken, dryRun, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -221,7 +221,7 @@ public ApiResponse createServiceTokenWithHttpInfo(ServiceToken ser 403 Forbidden - */ - public okhttp3.Call createServiceTokenAsync(ServiceToken serviceToken, Boolean dryRun, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createServiceTokenAsync(@javax.annotation.Nonnull ServiceToken serviceToken, @javax.annotation.Nullable Boolean dryRun, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createServiceTokenValidateBeforeCall(serviceToken, dryRun, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -246,7 +246,7 @@ public okhttp3.Call createServiceTokenAsync(ServiceToken serviceToken, Boolean d 404 Not Found - */ - public okhttp3.Call createServiceTokenActionCall(UUID serviceTokenId, ServiceTokenActionRequest serviceTokenActionRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createServiceTokenActionCall(@javax.annotation.Nonnull UUID serviceTokenId, @javax.annotation.Nonnull ServiceTokenActionRequest serviceTokenActionRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -293,7 +293,7 @@ public okhttp3.Call createServiceTokenActionCall(UUID serviceTokenId, ServiceTok } @SuppressWarnings("rawtypes") - private okhttp3.Call createServiceTokenActionValidateBeforeCall(UUID serviceTokenId, ServiceTokenActionRequest serviceTokenActionRequest, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createServiceTokenActionValidateBeforeCall(@javax.annotation.Nonnull UUID serviceTokenId, @javax.annotation.Nonnull ServiceTokenActionRequest serviceTokenActionRequest, final ApiCallback _callback) throws ApiException { // verify the required parameter 'serviceTokenId' is set if (serviceTokenId == null) { throw new ApiException("Missing the required parameter 'serviceTokenId' when calling createServiceTokenAction(Async)"); @@ -326,7 +326,7 @@ private okhttp3.Call createServiceTokenActionValidateBeforeCall(UUID serviceToke 404 Not Found - */ - public ServiceToken createServiceTokenAction(UUID serviceTokenId, ServiceTokenActionRequest serviceTokenActionRequest) throws ApiException { + public ServiceToken createServiceTokenAction(@javax.annotation.Nonnull UUID serviceTokenId, @javax.annotation.Nonnull ServiceTokenActionRequest serviceTokenActionRequest) throws ApiException { ApiResponse localVarResp = createServiceTokenActionWithHttpInfo(serviceTokenId, serviceTokenActionRequest); return localVarResp.getData(); } @@ -349,7 +349,7 @@ public ServiceToken createServiceTokenAction(UUID serviceTokenId, ServiceTokenAc 404 Not Found - */ - public ApiResponse createServiceTokenActionWithHttpInfo(UUID serviceTokenId, ServiceTokenActionRequest serviceTokenActionRequest) throws ApiException { + public ApiResponse createServiceTokenActionWithHttpInfo(@javax.annotation.Nonnull UUID serviceTokenId, @javax.annotation.Nonnull ServiceTokenActionRequest serviceTokenActionRequest) throws ApiException { okhttp3.Call localVarCall = createServiceTokenActionValidateBeforeCall(serviceTokenId, serviceTokenActionRequest, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -374,7 +374,7 @@ public ApiResponse createServiceTokenActionWithHttpInfo(UUID servi 404 Not Found - */ - public okhttp3.Call createServiceTokenActionAsync(UUID serviceTokenId, ServiceTokenActionRequest serviceTokenActionRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createServiceTokenActionAsync(@javax.annotation.Nonnull UUID serviceTokenId, @javax.annotation.Nonnull ServiceTokenActionRequest serviceTokenActionRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createServiceTokenActionValidateBeforeCall(serviceTokenId, serviceTokenActionRequest, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -397,7 +397,7 @@ public okhttp3.Call createServiceTokenActionAsync(UUID serviceTokenId, ServiceTo 500 Internal server error - */ - public okhttp3.Call deleteServiceTokenByUuidCall(UUID serviceTokenId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteServiceTokenByUuidCall(@javax.annotation.Nonnull UUID serviceTokenId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -443,7 +443,7 @@ public okhttp3.Call deleteServiceTokenByUuidCall(UUID serviceTokenId, final ApiC } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteServiceTokenByUuidValidateBeforeCall(UUID serviceTokenId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteServiceTokenByUuidValidateBeforeCall(@javax.annotation.Nonnull UUID serviceTokenId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'serviceTokenId' is set if (serviceTokenId == null) { throw new ApiException("Missing the required parameter 'serviceTokenId' when calling deleteServiceTokenByUuid(Async)"); @@ -469,7 +469,7 @@ private okhttp3.Call deleteServiceTokenByUuidValidateBeforeCall(UUID serviceToke 500 Internal server error - */ - public ServiceToken deleteServiceTokenByUuid(UUID serviceTokenId) throws ApiException { + public ServiceToken deleteServiceTokenByUuid(@javax.annotation.Nonnull UUID serviceTokenId) throws ApiException { ApiResponse localVarResp = deleteServiceTokenByUuidWithHttpInfo(serviceTokenId); return localVarResp.getData(); } @@ -490,7 +490,7 @@ public ServiceToken deleteServiceTokenByUuid(UUID serviceTokenId) throws ApiExce 500 Internal server error - */ - public ApiResponse deleteServiceTokenByUuidWithHttpInfo(UUID serviceTokenId) throws ApiException { + public ApiResponse deleteServiceTokenByUuidWithHttpInfo(@javax.annotation.Nonnull UUID serviceTokenId) throws ApiException { okhttp3.Call localVarCall = deleteServiceTokenByUuidValidateBeforeCall(serviceTokenId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -513,7 +513,7 @@ public ApiResponse deleteServiceTokenByUuidWithHttpInfo(UUID servi 500 Internal server error - */ - public okhttp3.Call deleteServiceTokenByUuidAsync(UUID serviceTokenId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteServiceTokenByUuidAsync(@javax.annotation.Nonnull UUID serviceTokenId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteServiceTokenByUuidValidateBeforeCall(serviceTokenId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -536,7 +536,7 @@ public okhttp3.Call deleteServiceTokenByUuidAsync(UUID serviceTokenId, final Api 500 Internal server error - */ - public okhttp3.Call getServiceTokenByUuidCall(UUID serviceTokenId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getServiceTokenByUuidCall(@javax.annotation.Nonnull UUID serviceTokenId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -582,7 +582,7 @@ public okhttp3.Call getServiceTokenByUuidCall(UUID serviceTokenId, final ApiCall } @SuppressWarnings("rawtypes") - private okhttp3.Call getServiceTokenByUuidValidateBeforeCall(UUID serviceTokenId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getServiceTokenByUuidValidateBeforeCall(@javax.annotation.Nonnull UUID serviceTokenId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'serviceTokenId' is set if (serviceTokenId == null) { throw new ApiException("Missing the required parameter 'serviceTokenId' when calling getServiceTokenByUuid(Async)"); @@ -608,7 +608,7 @@ private okhttp3.Call getServiceTokenByUuidValidateBeforeCall(UUID serviceTokenId 500 Internal server error - */ - public ServiceToken getServiceTokenByUuid(UUID serviceTokenId) throws ApiException { + public ServiceToken getServiceTokenByUuid(@javax.annotation.Nonnull UUID serviceTokenId) throws ApiException { ApiResponse localVarResp = getServiceTokenByUuidWithHttpInfo(serviceTokenId); return localVarResp.getData(); } @@ -629,7 +629,7 @@ public ServiceToken getServiceTokenByUuid(UUID serviceTokenId) throws ApiExcepti 500 Internal server error - */ - public ApiResponse getServiceTokenByUuidWithHttpInfo(UUID serviceTokenId) throws ApiException { + public ApiResponse getServiceTokenByUuidWithHttpInfo(@javax.annotation.Nonnull UUID serviceTokenId) throws ApiException { okhttp3.Call localVarCall = getServiceTokenByUuidValidateBeforeCall(serviceTokenId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -652,7 +652,7 @@ public ApiResponse getServiceTokenByUuidWithHttpInfo(UUID serviceT 500 Internal server error - */ - public okhttp3.Call getServiceTokenByUuidAsync(UUID serviceTokenId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getServiceTokenByUuidAsync(@javax.annotation.Nonnull UUID serviceTokenId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getServiceTokenByUuidValidateBeforeCall(serviceTokenId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -674,7 +674,7 @@ public okhttp3.Call getServiceTokenByUuidAsync(UUID serviceTokenId, final ApiCal 403 Forbidden - */ - public okhttp3.Call getServiceTokensCall(BigDecimal offset, BigDecimal limit, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getServiceTokensCall(@javax.annotation.Nullable BigDecimal offset, @javax.annotation.Nullable BigDecimal limit, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -727,7 +727,7 @@ public okhttp3.Call getServiceTokensCall(BigDecimal offset, BigDecimal limit, fi } @SuppressWarnings("rawtypes") - private okhttp3.Call getServiceTokensValidateBeforeCall(BigDecimal offset, BigDecimal limit, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getServiceTokensValidateBeforeCall(@javax.annotation.Nullable BigDecimal offset, @javax.annotation.Nullable BigDecimal limit, final ApiCallback _callback) throws ApiException { return getServiceTokensCall(offset, limit, _callback); } @@ -747,7 +747,7 @@ private okhttp3.Call getServiceTokensValidateBeforeCall(BigDecimal offset, BigDe 403 Forbidden - */ - public ServiceTokens getServiceTokens(BigDecimal offset, BigDecimal limit) throws ApiException { + public ServiceTokens getServiceTokens(@javax.annotation.Nullable BigDecimal offset, @javax.annotation.Nullable BigDecimal limit) throws ApiException { ApiResponse localVarResp = getServiceTokensWithHttpInfo(offset, limit); return localVarResp.getData(); } @@ -767,7 +767,7 @@ public ServiceTokens getServiceTokens(BigDecimal offset, BigDecimal limit) throw 403 Forbidden - */ - public ApiResponse getServiceTokensWithHttpInfo(BigDecimal offset, BigDecimal limit) throws ApiException { + public ApiResponse getServiceTokensWithHttpInfo(@javax.annotation.Nullable BigDecimal offset, @javax.annotation.Nullable BigDecimal limit) throws ApiException { okhttp3.Call localVarCall = getServiceTokensValidateBeforeCall(offset, limit, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -789,7 +789,7 @@ public ApiResponse getServiceTokensWithHttpInfo(BigDecimal offset 403 Forbidden - */ - public okhttp3.Call getServiceTokensAsync(BigDecimal offset, BigDecimal limit, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getServiceTokensAsync(@javax.annotation.Nullable BigDecimal offset, @javax.annotation.Nullable BigDecimal limit, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getServiceTokensValidateBeforeCall(offset, limit, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -815,7 +815,7 @@ public okhttp3.Call getServiceTokensAsync(BigDecimal offset, BigDecimal limit, f 500 Internal server error - */ - public okhttp3.Call searchServiceTokensCall(ServiceTokenSearchRequest serviceTokenSearchRequest, BigDecimal offset, BigDecimal limit, final ApiCallback _callback) throws ApiException { + public okhttp3.Call searchServiceTokensCall(@javax.annotation.Nonnull ServiceTokenSearchRequest serviceTokenSearchRequest, @javax.annotation.Nullable BigDecimal offset, @javax.annotation.Nullable BigDecimal limit, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -869,7 +869,7 @@ public okhttp3.Call searchServiceTokensCall(ServiceTokenSearchRequest serviceTok } @SuppressWarnings("rawtypes") - private okhttp3.Call searchServiceTokensValidateBeforeCall(ServiceTokenSearchRequest serviceTokenSearchRequest, BigDecimal offset, BigDecimal limit, final ApiCallback _callback) throws ApiException { + private okhttp3.Call searchServiceTokensValidateBeforeCall(@javax.annotation.Nonnull ServiceTokenSearchRequest serviceTokenSearchRequest, @javax.annotation.Nullable BigDecimal offset, @javax.annotation.Nullable BigDecimal limit, final ApiCallback _callback) throws ApiException { // verify the required parameter 'serviceTokenSearchRequest' is set if (serviceTokenSearchRequest == null) { throw new ApiException("Missing the required parameter 'serviceTokenSearchRequest' when calling searchServiceTokens(Async)"); @@ -898,7 +898,7 @@ private okhttp3.Call searchServiceTokensValidateBeforeCall(ServiceTokenSearchReq 500 Internal server error - */ - public ServiceTokens searchServiceTokens(ServiceTokenSearchRequest serviceTokenSearchRequest, BigDecimal offset, BigDecimal limit) throws ApiException { + public ServiceTokens searchServiceTokens(@javax.annotation.Nonnull ServiceTokenSearchRequest serviceTokenSearchRequest, @javax.annotation.Nullable BigDecimal offset, @javax.annotation.Nullable BigDecimal limit) throws ApiException { ApiResponse localVarResp = searchServiceTokensWithHttpInfo(serviceTokenSearchRequest, offset, limit); return localVarResp.getData(); } @@ -922,7 +922,7 @@ public ServiceTokens searchServiceTokens(ServiceTokenSearchRequest serviceTokenS 500 Internal server error - */ - public ApiResponse searchServiceTokensWithHttpInfo(ServiceTokenSearchRequest serviceTokenSearchRequest, BigDecimal offset, BigDecimal limit) throws ApiException { + public ApiResponse searchServiceTokensWithHttpInfo(@javax.annotation.Nonnull ServiceTokenSearchRequest serviceTokenSearchRequest, @javax.annotation.Nullable BigDecimal offset, @javax.annotation.Nullable BigDecimal limit) throws ApiException { okhttp3.Call localVarCall = searchServiceTokensValidateBeforeCall(serviceTokenSearchRequest, offset, limit, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -948,7 +948,7 @@ public ApiResponse searchServiceTokensWithHttpInfo(ServiceTokenSe 500 Internal server error - */ - public okhttp3.Call searchServiceTokensAsync(ServiceTokenSearchRequest serviceTokenSearchRequest, BigDecimal offset, BigDecimal limit, final ApiCallback _callback) throws ApiException { + public okhttp3.Call searchServiceTokensAsync(@javax.annotation.Nonnull ServiceTokenSearchRequest serviceTokenSearchRequest, @javax.annotation.Nullable BigDecimal offset, @javax.annotation.Nullable BigDecimal limit, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = searchServiceTokensValidateBeforeCall(serviceTokenSearchRequest, offset, limit, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -973,7 +973,7 @@ public okhttp3.Call searchServiceTokensAsync(ServiceTokenSearchRequest serviceTo 500 Internal server error - */ - public okhttp3.Call updateServiceTokenByUuidCall(UUID serviceTokenId, List serviceTokenChangeOperation, Boolean dryRun, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateServiceTokenByUuidCall(@javax.annotation.Nonnull UUID serviceTokenId, @javax.annotation.Nonnull List serviceTokenChangeOperation, @javax.annotation.Nullable Boolean dryRun, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1024,7 +1024,7 @@ public okhttp3.Call updateServiceTokenByUuidCall(UUID serviceTokenId, List serviceTokenChangeOperation, Boolean dryRun, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updateServiceTokenByUuidValidateBeforeCall(@javax.annotation.Nonnull UUID serviceTokenId, @javax.annotation.Nonnull List serviceTokenChangeOperation, @javax.annotation.Nullable Boolean dryRun, final ApiCallback _callback) throws ApiException { // verify the required parameter 'serviceTokenId' is set if (serviceTokenId == null) { throw new ApiException("Missing the required parameter 'serviceTokenId' when calling updateServiceTokenByUuid(Async)"); @@ -1057,7 +1057,7 @@ private okhttp3.Call updateServiceTokenByUuidValidateBeforeCall(UUID serviceToke 500 Internal server error - */ - public ServiceToken updateServiceTokenByUuid(UUID serviceTokenId, List serviceTokenChangeOperation, Boolean dryRun) throws ApiException { + public ServiceToken updateServiceTokenByUuid(@javax.annotation.Nonnull UUID serviceTokenId, @javax.annotation.Nonnull List serviceTokenChangeOperation, @javax.annotation.Nullable Boolean dryRun) throws ApiException { ApiResponse localVarResp = updateServiceTokenByUuidWithHttpInfo(serviceTokenId, serviceTokenChangeOperation, dryRun); return localVarResp.getData(); } @@ -1080,7 +1080,7 @@ public ServiceToken updateServiceTokenByUuid(UUID serviceTokenId, List 500 Internal server error - */ - public ApiResponse updateServiceTokenByUuidWithHttpInfo(UUID serviceTokenId, List serviceTokenChangeOperation, Boolean dryRun) throws ApiException { + public ApiResponse updateServiceTokenByUuidWithHttpInfo(@javax.annotation.Nonnull UUID serviceTokenId, @javax.annotation.Nonnull List serviceTokenChangeOperation, @javax.annotation.Nullable Boolean dryRun) throws ApiException { okhttp3.Call localVarCall = updateServiceTokenByUuidValidateBeforeCall(serviceTokenId, serviceTokenChangeOperation, dryRun, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1105,7 +1105,7 @@ public ApiResponse updateServiceTokenByUuidWithHttpInfo(UUID servi 500 Internal server error - */ - public okhttp3.Call updateServiceTokenByUuidAsync(UUID serviceTokenId, List serviceTokenChangeOperation, Boolean dryRun, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateServiceTokenByUuidAsync(@javax.annotation.Nonnull UUID serviceTokenId, @javax.annotation.Nonnull List serviceTokenChangeOperation, @javax.annotation.Nullable Boolean dryRun, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateServiceTokenByUuidValidateBeforeCall(serviceTokenId, serviceTokenChangeOperation, dryRun, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/StatisticsApi.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/StatisticsApi.java index 50f5d43a..9fef73d0 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/StatisticsApi.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/StatisticsApi.java @@ -94,7 +94,7 @@ public void setCustomBaseUrl(String customBaseUrl) { * @deprecated */ @Deprecated - public okhttp3.Call getConnectionStatsByPortUuidCall(String connectionId, OffsetDateTime startDateTime, OffsetDateTime endDateTime, ViewPoint viewPoint, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getConnectionStatsByPortUuidCall(@javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull OffsetDateTime startDateTime, @javax.annotation.Nonnull OffsetDateTime endDateTime, @javax.annotation.Nonnull ViewPoint viewPoint, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -153,7 +153,7 @@ public okhttp3.Call getConnectionStatsByPortUuidCall(String connectionId, Offset @Deprecated @SuppressWarnings("rawtypes") - private okhttp3.Call getConnectionStatsByPortUuidValidateBeforeCall(String connectionId, OffsetDateTime startDateTime, OffsetDateTime endDateTime, ViewPoint viewPoint, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getConnectionStatsByPortUuidValidateBeforeCall(@javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull OffsetDateTime startDateTime, @javax.annotation.Nonnull OffsetDateTime endDateTime, @javax.annotation.Nonnull ViewPoint viewPoint, final ApiCallback _callback) throws ApiException { // verify the required parameter 'connectionId' is set if (connectionId == null) { throw new ApiException("Missing the required parameter 'connectionId' when calling getConnectionStatsByPortUuid(Async)"); @@ -198,7 +198,7 @@ private okhttp3.Call getConnectionStatsByPortUuidValidateBeforeCall(String conne * @deprecated */ @Deprecated - public Statistics getConnectionStatsByPortUuid(String connectionId, OffsetDateTime startDateTime, OffsetDateTime endDateTime, ViewPoint viewPoint) throws ApiException { + public Statistics getConnectionStatsByPortUuid(@javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull OffsetDateTime startDateTime, @javax.annotation.Nonnull OffsetDateTime endDateTime, @javax.annotation.Nonnull ViewPoint viewPoint) throws ApiException { ApiResponse localVarResp = getConnectionStatsByPortUuidWithHttpInfo(connectionId, startDateTime, endDateTime, viewPoint); return localVarResp.getData(); } @@ -223,7 +223,7 @@ public Statistics getConnectionStatsByPortUuid(String connectionId, OffsetDateTi * @deprecated */ @Deprecated - public ApiResponse getConnectionStatsByPortUuidWithHttpInfo(String connectionId, OffsetDateTime startDateTime, OffsetDateTime endDateTime, ViewPoint viewPoint) throws ApiException { + public ApiResponse getConnectionStatsByPortUuidWithHttpInfo(@javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull OffsetDateTime startDateTime, @javax.annotation.Nonnull OffsetDateTime endDateTime, @javax.annotation.Nonnull ViewPoint viewPoint) throws ApiException { okhttp3.Call localVarCall = getConnectionStatsByPortUuidValidateBeforeCall(connectionId, startDateTime, endDateTime, viewPoint, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -250,7 +250,7 @@ public ApiResponse getConnectionStatsByPortUuidWithHttpInfo(String c * @deprecated */ @Deprecated - public okhttp3.Call getConnectionStatsByPortUuidAsync(String connectionId, OffsetDateTime startDateTime, OffsetDateTime endDateTime, ViewPoint viewPoint, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getConnectionStatsByPortUuidAsync(@javax.annotation.Nonnull String connectionId, @javax.annotation.Nonnull OffsetDateTime startDateTime, @javax.annotation.Nonnull OffsetDateTime endDateTime, @javax.annotation.Nonnull ViewPoint viewPoint, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getConnectionStatsByPortUuidValidateBeforeCall(connectionId, startDateTime, endDateTime, viewPoint, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -277,7 +277,7 @@ public okhttp3.Call getConnectionStatsByPortUuidAsync(String connectionId, Offse * @deprecated */ @Deprecated - public okhttp3.Call getPortStatsByPortUuidCall(UUID portId, OffsetDateTime startDateTime, OffsetDateTime endDateTime, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getPortStatsByPortUuidCall(@javax.annotation.Nonnull UUID portId, @javax.annotation.Nonnull OffsetDateTime startDateTime, @javax.annotation.Nonnull OffsetDateTime endDateTime, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -332,7 +332,7 @@ public okhttp3.Call getPortStatsByPortUuidCall(UUID portId, OffsetDateTime start @Deprecated @SuppressWarnings("rawtypes") - private okhttp3.Call getPortStatsByPortUuidValidateBeforeCall(UUID portId, OffsetDateTime startDateTime, OffsetDateTime endDateTime, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getPortStatsByPortUuidValidateBeforeCall(@javax.annotation.Nonnull UUID portId, @javax.annotation.Nonnull OffsetDateTime startDateTime, @javax.annotation.Nonnull OffsetDateTime endDateTime, final ApiCallback _callback) throws ApiException { // verify the required parameter 'portId' is set if (portId == null) { throw new ApiException("Missing the required parameter 'portId' when calling getPortStatsByPortUuid(Async)"); @@ -372,7 +372,7 @@ private okhttp3.Call getPortStatsByPortUuidValidateBeforeCall(UUID portId, Offse * @deprecated */ @Deprecated - public Statistics getPortStatsByPortUuid(UUID portId, OffsetDateTime startDateTime, OffsetDateTime endDateTime) throws ApiException { + public Statistics getPortStatsByPortUuid(@javax.annotation.Nonnull UUID portId, @javax.annotation.Nonnull OffsetDateTime startDateTime, @javax.annotation.Nonnull OffsetDateTime endDateTime) throws ApiException { ApiResponse localVarResp = getPortStatsByPortUuidWithHttpInfo(portId, startDateTime, endDateTime); return localVarResp.getData(); } @@ -397,7 +397,7 @@ public Statistics getPortStatsByPortUuid(UUID portId, OffsetDateTime startDateTi * @deprecated */ @Deprecated - public ApiResponse getPortStatsByPortUuidWithHttpInfo(UUID portId, OffsetDateTime startDateTime, OffsetDateTime endDateTime) throws ApiException { + public ApiResponse getPortStatsByPortUuidWithHttpInfo(@javax.annotation.Nonnull UUID portId, @javax.annotation.Nonnull OffsetDateTime startDateTime, @javax.annotation.Nonnull OffsetDateTime endDateTime) throws ApiException { okhttp3.Call localVarCall = getPortStatsByPortUuidValidateBeforeCall(portId, startDateTime, endDateTime, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -424,7 +424,7 @@ public ApiResponse getPortStatsByPortUuidWithHttpInfo(UUID portId, O * @deprecated */ @Deprecated - public okhttp3.Call getPortStatsByPortUuidAsync(UUID portId, OffsetDateTime startDateTime, OffsetDateTime endDateTime, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getPortStatsByPortUuidAsync(@javax.annotation.Nonnull UUID portId, @javax.annotation.Nonnull OffsetDateTime startDateTime, @javax.annotation.Nonnull OffsetDateTime endDateTime, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getPortStatsByPortUuidValidateBeforeCall(portId, startDateTime, endDateTime, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/StreamAlertRulesApi.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/StreamAlertRulesApi.java index 82131fe0..d499a941 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/StreamAlertRulesApi.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/StreamAlertRulesApi.java @@ -94,7 +94,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 500 Internal server error - */ - public okhttp3.Call createStreamAlertRulesCall(UUID streamId, AlertRulePostRequest alertRulePostRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createStreamAlertRulesCall(@javax.annotation.Nonnull UUID streamId, @javax.annotation.Nonnull AlertRulePostRequest alertRulePostRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -141,7 +141,7 @@ public okhttp3.Call createStreamAlertRulesCall(UUID streamId, AlertRulePostReque } @SuppressWarnings("rawtypes") - private okhttp3.Call createStreamAlertRulesValidateBeforeCall(UUID streamId, AlertRulePostRequest alertRulePostRequest, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createStreamAlertRulesValidateBeforeCall(@javax.annotation.Nonnull UUID streamId, @javax.annotation.Nonnull AlertRulePostRequest alertRulePostRequest, final ApiCallback _callback) throws ApiException { // verify the required parameter 'streamId' is set if (streamId == null) { throw new ApiException("Missing the required parameter 'streamId' when calling createStreamAlertRules(Async)"); @@ -175,7 +175,7 @@ private okhttp3.Call createStreamAlertRulesValidateBeforeCall(UUID streamId, Ale 500 Internal server error - */ - public StreamAlertRule createStreamAlertRules(UUID streamId, AlertRulePostRequest alertRulePostRequest) throws ApiException { + public StreamAlertRule createStreamAlertRules(@javax.annotation.Nonnull UUID streamId, @javax.annotation.Nonnull AlertRulePostRequest alertRulePostRequest) throws ApiException { ApiResponse localVarResp = createStreamAlertRulesWithHttpInfo(streamId, alertRulePostRequest); return localVarResp.getData(); } @@ -199,7 +199,7 @@ public StreamAlertRule createStreamAlertRules(UUID streamId, AlertRulePostReques 500 Internal server error - */ - public ApiResponse createStreamAlertRulesWithHttpInfo(UUID streamId, AlertRulePostRequest alertRulePostRequest) throws ApiException { + public ApiResponse createStreamAlertRulesWithHttpInfo(@javax.annotation.Nonnull UUID streamId, @javax.annotation.Nonnull AlertRulePostRequest alertRulePostRequest) throws ApiException { okhttp3.Call localVarCall = createStreamAlertRulesValidateBeforeCall(streamId, alertRulePostRequest, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -225,7 +225,7 @@ public ApiResponse createStreamAlertRulesWithHttpInfo(UUID stre 500 Internal server error - */ - public okhttp3.Call createStreamAlertRulesAsync(UUID streamId, AlertRulePostRequest alertRulePostRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createStreamAlertRulesAsync(@javax.annotation.Nonnull UUID streamId, @javax.annotation.Nonnull AlertRulePostRequest alertRulePostRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createStreamAlertRulesValidateBeforeCall(streamId, alertRulePostRequest, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -251,7 +251,7 @@ public okhttp3.Call createStreamAlertRulesAsync(UUID streamId, AlertRulePostRequ 500 Internal server error - */ - public okhttp3.Call deleteStreamAlertRuleByUuidCall(UUID streamId, UUID alertRuleId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteStreamAlertRuleByUuidCall(@javax.annotation.Nonnull UUID streamId, @javax.annotation.Nonnull UUID alertRuleId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -298,7 +298,7 @@ public okhttp3.Call deleteStreamAlertRuleByUuidCall(UUID streamId, UUID alertRul } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteStreamAlertRuleByUuidValidateBeforeCall(UUID streamId, UUID alertRuleId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteStreamAlertRuleByUuidValidateBeforeCall(@javax.annotation.Nonnull UUID streamId, @javax.annotation.Nonnull UUID alertRuleId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'streamId' is set if (streamId == null) { throw new ApiException("Missing the required parameter 'streamId' when calling deleteStreamAlertRuleByUuid(Async)"); @@ -332,7 +332,7 @@ private okhttp3.Call deleteStreamAlertRuleByUuidValidateBeforeCall(UUID streamId 500 Internal server error - */ - public StreamAlertRule deleteStreamAlertRuleByUuid(UUID streamId, UUID alertRuleId) throws ApiException { + public StreamAlertRule deleteStreamAlertRuleByUuid(@javax.annotation.Nonnull UUID streamId, @javax.annotation.Nonnull UUID alertRuleId) throws ApiException { ApiResponse localVarResp = deleteStreamAlertRuleByUuidWithHttpInfo(streamId, alertRuleId); return localVarResp.getData(); } @@ -356,7 +356,7 @@ public StreamAlertRule deleteStreamAlertRuleByUuid(UUID streamId, UUID alertRule 500 Internal server error - */ - public ApiResponse deleteStreamAlertRuleByUuidWithHttpInfo(UUID streamId, UUID alertRuleId) throws ApiException { + public ApiResponse deleteStreamAlertRuleByUuidWithHttpInfo(@javax.annotation.Nonnull UUID streamId, @javax.annotation.Nonnull UUID alertRuleId) throws ApiException { okhttp3.Call localVarCall = deleteStreamAlertRuleByUuidValidateBeforeCall(streamId, alertRuleId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -382,7 +382,7 @@ public ApiResponse deleteStreamAlertRuleByUuidWithHttpInfo(UUID 500 Internal server error - */ - public okhttp3.Call deleteStreamAlertRuleByUuidAsync(UUID streamId, UUID alertRuleId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteStreamAlertRuleByUuidAsync(@javax.annotation.Nonnull UUID streamId, @javax.annotation.Nonnull UUID alertRuleId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteStreamAlertRuleByUuidValidateBeforeCall(streamId, alertRuleId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -408,7 +408,7 @@ public okhttp3.Call deleteStreamAlertRuleByUuidAsync(UUID streamId, UUID alertRu 500 Internal server error - */ - public okhttp3.Call getStreamAlertRuleByUuidCall(UUID streamId, UUID alertRuleId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getStreamAlertRuleByUuidCall(@javax.annotation.Nonnull UUID streamId, @javax.annotation.Nonnull UUID alertRuleId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -455,7 +455,7 @@ public okhttp3.Call getStreamAlertRuleByUuidCall(UUID streamId, UUID alertRuleId } @SuppressWarnings("rawtypes") - private okhttp3.Call getStreamAlertRuleByUuidValidateBeforeCall(UUID streamId, UUID alertRuleId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getStreamAlertRuleByUuidValidateBeforeCall(@javax.annotation.Nonnull UUID streamId, @javax.annotation.Nonnull UUID alertRuleId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'streamId' is set if (streamId == null) { throw new ApiException("Missing the required parameter 'streamId' when calling getStreamAlertRuleByUuid(Async)"); @@ -489,7 +489,7 @@ private okhttp3.Call getStreamAlertRuleByUuidValidateBeforeCall(UUID streamId, U 500 Internal server error - */ - public StreamAlertRule getStreamAlertRuleByUuid(UUID streamId, UUID alertRuleId) throws ApiException { + public StreamAlertRule getStreamAlertRuleByUuid(@javax.annotation.Nonnull UUID streamId, @javax.annotation.Nonnull UUID alertRuleId) throws ApiException { ApiResponse localVarResp = getStreamAlertRuleByUuidWithHttpInfo(streamId, alertRuleId); return localVarResp.getData(); } @@ -513,7 +513,7 @@ public StreamAlertRule getStreamAlertRuleByUuid(UUID streamId, UUID alertRuleId) 500 Internal server error - */ - public ApiResponse getStreamAlertRuleByUuidWithHttpInfo(UUID streamId, UUID alertRuleId) throws ApiException { + public ApiResponse getStreamAlertRuleByUuidWithHttpInfo(@javax.annotation.Nonnull UUID streamId, @javax.annotation.Nonnull UUID alertRuleId) throws ApiException { okhttp3.Call localVarCall = getStreamAlertRuleByUuidValidateBeforeCall(streamId, alertRuleId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -539,7 +539,7 @@ public ApiResponse getStreamAlertRuleByUuidWithHttpInfo(UUID st 500 Internal server error - */ - public okhttp3.Call getStreamAlertRuleByUuidAsync(UUID streamId, UUID alertRuleId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getStreamAlertRuleByUuidAsync(@javax.annotation.Nonnull UUID streamId, @javax.annotation.Nonnull UUID alertRuleId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getStreamAlertRuleByUuidValidateBeforeCall(streamId, alertRuleId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -565,7 +565,7 @@ public okhttp3.Call getStreamAlertRuleByUuidAsync(UUID streamId, UUID alertRuleI 500 Internal server error - */ - public okhttp3.Call getStreamAlertRulesCall(UUID streamId, Integer offset, Integer limit, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getStreamAlertRulesCall(@javax.annotation.Nonnull UUID streamId, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -619,7 +619,7 @@ public okhttp3.Call getStreamAlertRulesCall(UUID streamId, Integer offset, Integ } @SuppressWarnings("rawtypes") - private okhttp3.Call getStreamAlertRulesValidateBeforeCall(UUID streamId, Integer offset, Integer limit, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getStreamAlertRulesValidateBeforeCall(@javax.annotation.Nonnull UUID streamId, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit, final ApiCallback _callback) throws ApiException { // verify the required parameter 'streamId' is set if (streamId == null) { throw new ApiException("Missing the required parameter 'streamId' when calling getStreamAlertRules(Async)"); @@ -648,7 +648,7 @@ private okhttp3.Call getStreamAlertRulesValidateBeforeCall(UUID streamId, Intege 500 Internal server error - */ - public GetAllStreamAlertRuleResponse getStreamAlertRules(UUID streamId, Integer offset, Integer limit) throws ApiException { + public GetAllStreamAlertRuleResponse getStreamAlertRules(@javax.annotation.Nonnull UUID streamId, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit) throws ApiException { ApiResponse localVarResp = getStreamAlertRulesWithHttpInfo(streamId, offset, limit); return localVarResp.getData(); } @@ -672,7 +672,7 @@ public GetAllStreamAlertRuleResponse getStreamAlertRules(UUID streamId, Integer 500 Internal server error - */ - public ApiResponse getStreamAlertRulesWithHttpInfo(UUID streamId, Integer offset, Integer limit) throws ApiException { + public ApiResponse getStreamAlertRulesWithHttpInfo(@javax.annotation.Nonnull UUID streamId, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit) throws ApiException { okhttp3.Call localVarCall = getStreamAlertRulesValidateBeforeCall(streamId, offset, limit, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -698,7 +698,7 @@ public ApiResponse getStreamAlertRulesWithHttpInf 500 Internal server error - */ - public okhttp3.Call getStreamAlertRulesAsync(UUID streamId, Integer offset, Integer limit, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getStreamAlertRulesAsync(@javax.annotation.Nonnull UUID streamId, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getStreamAlertRulesValidateBeforeCall(streamId, offset, limit, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -726,7 +726,7 @@ public okhttp3.Call getStreamAlertRulesAsync(UUID streamId, Integer offset, Inte 500 Internal server error - */ - public okhttp3.Call updateStreamAlertRuleByUuidCall(UUID streamId, UUID alertRuleId, AlertRulePutRequest alertRulePutRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateStreamAlertRuleByUuidCall(@javax.annotation.Nonnull UUID streamId, @javax.annotation.Nonnull UUID alertRuleId, @javax.annotation.Nonnull AlertRulePutRequest alertRulePutRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -774,7 +774,7 @@ public okhttp3.Call updateStreamAlertRuleByUuidCall(UUID streamId, UUID alertRul } @SuppressWarnings("rawtypes") - private okhttp3.Call updateStreamAlertRuleByUuidValidateBeforeCall(UUID streamId, UUID alertRuleId, AlertRulePutRequest alertRulePutRequest, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updateStreamAlertRuleByUuidValidateBeforeCall(@javax.annotation.Nonnull UUID streamId, @javax.annotation.Nonnull UUID alertRuleId, @javax.annotation.Nonnull AlertRulePutRequest alertRulePutRequest, final ApiCallback _callback) throws ApiException { // verify the required parameter 'streamId' is set if (streamId == null) { throw new ApiException("Missing the required parameter 'streamId' when calling updateStreamAlertRuleByUuid(Async)"); @@ -815,7 +815,7 @@ private okhttp3.Call updateStreamAlertRuleByUuidValidateBeforeCall(UUID streamId 500 Internal server error - */ - public StreamAlertRule updateStreamAlertRuleByUuid(UUID streamId, UUID alertRuleId, AlertRulePutRequest alertRulePutRequest) throws ApiException { + public StreamAlertRule updateStreamAlertRuleByUuid(@javax.annotation.Nonnull UUID streamId, @javax.annotation.Nonnull UUID alertRuleId, @javax.annotation.Nonnull AlertRulePutRequest alertRulePutRequest) throws ApiException { ApiResponse localVarResp = updateStreamAlertRuleByUuidWithHttpInfo(streamId, alertRuleId, alertRulePutRequest); return localVarResp.getData(); } @@ -841,7 +841,7 @@ public StreamAlertRule updateStreamAlertRuleByUuid(UUID streamId, UUID alertRule 500 Internal server error - */ - public ApiResponse updateStreamAlertRuleByUuidWithHttpInfo(UUID streamId, UUID alertRuleId, AlertRulePutRequest alertRulePutRequest) throws ApiException { + public ApiResponse updateStreamAlertRuleByUuidWithHttpInfo(@javax.annotation.Nonnull UUID streamId, @javax.annotation.Nonnull UUID alertRuleId, @javax.annotation.Nonnull AlertRulePutRequest alertRulePutRequest) throws ApiException { okhttp3.Call localVarCall = updateStreamAlertRuleByUuidValidateBeforeCall(streamId, alertRuleId, alertRulePutRequest, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -869,7 +869,7 @@ public ApiResponse updateStreamAlertRuleByUuidWithHttpInfo(UUID 500 Internal server error - */ - public okhttp3.Call updateStreamAlertRuleByUuidAsync(UUID streamId, UUID alertRuleId, AlertRulePutRequest alertRulePutRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateStreamAlertRuleByUuidAsync(@javax.annotation.Nonnull UUID streamId, @javax.annotation.Nonnull UUID alertRuleId, @javax.annotation.Nonnull AlertRulePutRequest alertRulePutRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateStreamAlertRuleByUuidValidateBeforeCall(streamId, alertRuleId, alertRulePutRequest, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/StreamSubscriptionsApi.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/StreamSubscriptionsApi.java index 5fc2cccf..2587b2f0 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/StreamSubscriptionsApi.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/StreamSubscriptionsApi.java @@ -94,7 +94,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 500 Internal server error - */ - public okhttp3.Call createStreamSubscriptionsCall(UUID streamId, StreamSubscriptionPostRequest streamSubscriptionPostRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createStreamSubscriptionsCall(@javax.annotation.Nonnull UUID streamId, @javax.annotation.Nonnull StreamSubscriptionPostRequest streamSubscriptionPostRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -141,7 +141,7 @@ public okhttp3.Call createStreamSubscriptionsCall(UUID streamId, StreamSubscript } @SuppressWarnings("rawtypes") - private okhttp3.Call createStreamSubscriptionsValidateBeforeCall(UUID streamId, StreamSubscriptionPostRequest streamSubscriptionPostRequest, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createStreamSubscriptionsValidateBeforeCall(@javax.annotation.Nonnull UUID streamId, @javax.annotation.Nonnull StreamSubscriptionPostRequest streamSubscriptionPostRequest, final ApiCallback _callback) throws ApiException { // verify the required parameter 'streamId' is set if (streamId == null) { throw new ApiException("Missing the required parameter 'streamId' when calling createStreamSubscriptions(Async)"); @@ -175,7 +175,7 @@ private okhttp3.Call createStreamSubscriptionsValidateBeforeCall(UUID streamId, 500 Internal server error - */ - public StreamSubscription createStreamSubscriptions(UUID streamId, StreamSubscriptionPostRequest streamSubscriptionPostRequest) throws ApiException { + public StreamSubscription createStreamSubscriptions(@javax.annotation.Nonnull UUID streamId, @javax.annotation.Nonnull StreamSubscriptionPostRequest streamSubscriptionPostRequest) throws ApiException { ApiResponse localVarResp = createStreamSubscriptionsWithHttpInfo(streamId, streamSubscriptionPostRequest); return localVarResp.getData(); } @@ -199,7 +199,7 @@ public StreamSubscription createStreamSubscriptions(UUID streamId, StreamSubscri 500 Internal server error - */ - public ApiResponse createStreamSubscriptionsWithHttpInfo(UUID streamId, StreamSubscriptionPostRequest streamSubscriptionPostRequest) throws ApiException { + public ApiResponse createStreamSubscriptionsWithHttpInfo(@javax.annotation.Nonnull UUID streamId, @javax.annotation.Nonnull StreamSubscriptionPostRequest streamSubscriptionPostRequest) throws ApiException { okhttp3.Call localVarCall = createStreamSubscriptionsValidateBeforeCall(streamId, streamSubscriptionPostRequest, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -225,7 +225,7 @@ public ApiResponse createStreamSubscriptionsWithHttpInfo(UUI 500 Internal server error - */ - public okhttp3.Call createStreamSubscriptionsAsync(UUID streamId, StreamSubscriptionPostRequest streamSubscriptionPostRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createStreamSubscriptionsAsync(@javax.annotation.Nonnull UUID streamId, @javax.annotation.Nonnull StreamSubscriptionPostRequest streamSubscriptionPostRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createStreamSubscriptionsValidateBeforeCall(streamId, streamSubscriptionPostRequest, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -251,7 +251,7 @@ public okhttp3.Call createStreamSubscriptionsAsync(UUID streamId, StreamSubscrip 500 Internal server error - */ - public okhttp3.Call deleteStreamSubscriptionByUuidCall(UUID streamId, UUID subscriptionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteStreamSubscriptionByUuidCall(@javax.annotation.Nonnull UUID streamId, @javax.annotation.Nonnull UUID subscriptionId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -298,7 +298,7 @@ public okhttp3.Call deleteStreamSubscriptionByUuidCall(UUID streamId, UUID subsc } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteStreamSubscriptionByUuidValidateBeforeCall(UUID streamId, UUID subscriptionId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteStreamSubscriptionByUuidValidateBeforeCall(@javax.annotation.Nonnull UUID streamId, @javax.annotation.Nonnull UUID subscriptionId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'streamId' is set if (streamId == null) { throw new ApiException("Missing the required parameter 'streamId' when calling deleteStreamSubscriptionByUuid(Async)"); @@ -332,7 +332,7 @@ private okhttp3.Call deleteStreamSubscriptionByUuidValidateBeforeCall(UUID strea 500 Internal server error - */ - public StreamSubscription deleteStreamSubscriptionByUuid(UUID streamId, UUID subscriptionId) throws ApiException { + public StreamSubscription deleteStreamSubscriptionByUuid(@javax.annotation.Nonnull UUID streamId, @javax.annotation.Nonnull UUID subscriptionId) throws ApiException { ApiResponse localVarResp = deleteStreamSubscriptionByUuidWithHttpInfo(streamId, subscriptionId); return localVarResp.getData(); } @@ -356,7 +356,7 @@ public StreamSubscription deleteStreamSubscriptionByUuid(UUID streamId, UUID sub 500 Internal server error - */ - public ApiResponse deleteStreamSubscriptionByUuidWithHttpInfo(UUID streamId, UUID subscriptionId) throws ApiException { + public ApiResponse deleteStreamSubscriptionByUuidWithHttpInfo(@javax.annotation.Nonnull UUID streamId, @javax.annotation.Nonnull UUID subscriptionId) throws ApiException { okhttp3.Call localVarCall = deleteStreamSubscriptionByUuidValidateBeforeCall(streamId, subscriptionId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -382,7 +382,7 @@ public ApiResponse deleteStreamSubscriptionByUuidWithHttpInf 500 Internal server error - */ - public okhttp3.Call deleteStreamSubscriptionByUuidAsync(UUID streamId, UUID subscriptionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteStreamSubscriptionByUuidAsync(@javax.annotation.Nonnull UUID streamId, @javax.annotation.Nonnull UUID subscriptionId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteStreamSubscriptionByUuidValidateBeforeCall(streamId, subscriptionId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -408,7 +408,7 @@ public okhttp3.Call deleteStreamSubscriptionByUuidAsync(UUID streamId, UUID subs 500 Internal server error - */ - public okhttp3.Call getStreamSubscriptionByUuidCall(UUID streamId, UUID subscriptionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getStreamSubscriptionByUuidCall(@javax.annotation.Nonnull UUID streamId, @javax.annotation.Nonnull UUID subscriptionId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -455,7 +455,7 @@ public okhttp3.Call getStreamSubscriptionByUuidCall(UUID streamId, UUID subscrip } @SuppressWarnings("rawtypes") - private okhttp3.Call getStreamSubscriptionByUuidValidateBeforeCall(UUID streamId, UUID subscriptionId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getStreamSubscriptionByUuidValidateBeforeCall(@javax.annotation.Nonnull UUID streamId, @javax.annotation.Nonnull UUID subscriptionId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'streamId' is set if (streamId == null) { throw new ApiException("Missing the required parameter 'streamId' when calling getStreamSubscriptionByUuid(Async)"); @@ -489,7 +489,7 @@ private okhttp3.Call getStreamSubscriptionByUuidValidateBeforeCall(UUID streamId 500 Internal server error - */ - public StreamSubscription getStreamSubscriptionByUuid(UUID streamId, UUID subscriptionId) throws ApiException { + public StreamSubscription getStreamSubscriptionByUuid(@javax.annotation.Nonnull UUID streamId, @javax.annotation.Nonnull UUID subscriptionId) throws ApiException { ApiResponse localVarResp = getStreamSubscriptionByUuidWithHttpInfo(streamId, subscriptionId); return localVarResp.getData(); } @@ -513,7 +513,7 @@ public StreamSubscription getStreamSubscriptionByUuid(UUID streamId, UUID subscr 500 Internal server error - */ - public ApiResponse getStreamSubscriptionByUuidWithHttpInfo(UUID streamId, UUID subscriptionId) throws ApiException { + public ApiResponse getStreamSubscriptionByUuidWithHttpInfo(@javax.annotation.Nonnull UUID streamId, @javax.annotation.Nonnull UUID subscriptionId) throws ApiException { okhttp3.Call localVarCall = getStreamSubscriptionByUuidValidateBeforeCall(streamId, subscriptionId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -539,7 +539,7 @@ public ApiResponse getStreamSubscriptionByUuidWithHttpInfo(U 500 Internal server error - */ - public okhttp3.Call getStreamSubscriptionByUuidAsync(UUID streamId, UUID subscriptionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getStreamSubscriptionByUuidAsync(@javax.annotation.Nonnull UUID streamId, @javax.annotation.Nonnull UUID subscriptionId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getStreamSubscriptionByUuidValidateBeforeCall(streamId, subscriptionId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -565,7 +565,7 @@ public okhttp3.Call getStreamSubscriptionByUuidAsync(UUID streamId, UUID subscri 500 Internal server error - */ - public okhttp3.Call getStreamSubscriptionsCall(UUID streamId, Integer offset, Integer limit, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getStreamSubscriptionsCall(@javax.annotation.Nonnull UUID streamId, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -619,7 +619,7 @@ public okhttp3.Call getStreamSubscriptionsCall(UUID streamId, Integer offset, In } @SuppressWarnings("rawtypes") - private okhttp3.Call getStreamSubscriptionsValidateBeforeCall(UUID streamId, Integer offset, Integer limit, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getStreamSubscriptionsValidateBeforeCall(@javax.annotation.Nonnull UUID streamId, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit, final ApiCallback _callback) throws ApiException { // verify the required parameter 'streamId' is set if (streamId == null) { throw new ApiException("Missing the required parameter 'streamId' when calling getStreamSubscriptions(Async)"); @@ -648,7 +648,7 @@ private okhttp3.Call getStreamSubscriptionsValidateBeforeCall(UUID streamId, Int 500 Internal server error - */ - public GetAllStreamSubscriptionResponse getStreamSubscriptions(UUID streamId, Integer offset, Integer limit) throws ApiException { + public GetAllStreamSubscriptionResponse getStreamSubscriptions(@javax.annotation.Nonnull UUID streamId, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit) throws ApiException { ApiResponse localVarResp = getStreamSubscriptionsWithHttpInfo(streamId, offset, limit); return localVarResp.getData(); } @@ -672,7 +672,7 @@ public GetAllStreamSubscriptionResponse getStreamSubscriptions(UUID streamId, In 500 Internal server error - */ - public ApiResponse getStreamSubscriptionsWithHttpInfo(UUID streamId, Integer offset, Integer limit) throws ApiException { + public ApiResponse getStreamSubscriptionsWithHttpInfo(@javax.annotation.Nonnull UUID streamId, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit) throws ApiException { okhttp3.Call localVarCall = getStreamSubscriptionsValidateBeforeCall(streamId, offset, limit, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -698,7 +698,7 @@ public ApiResponse getStreamSubscriptionsWithH 500 Internal server error - */ - public okhttp3.Call getStreamSubscriptionsAsync(UUID streamId, Integer offset, Integer limit, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getStreamSubscriptionsAsync(@javax.annotation.Nonnull UUID streamId, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getStreamSubscriptionsValidateBeforeCall(streamId, offset, limit, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -726,7 +726,7 @@ public okhttp3.Call getStreamSubscriptionsAsync(UUID streamId, Integer offset, I 500 Internal server error - */ - public okhttp3.Call updateStreamSubscriptionByUuidCall(UUID streamId, UUID subscriptionId, StreamSubscriptionPutRequest streamSubscriptionPutRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateStreamSubscriptionByUuidCall(@javax.annotation.Nonnull UUID streamId, @javax.annotation.Nonnull UUID subscriptionId, @javax.annotation.Nonnull StreamSubscriptionPutRequest streamSubscriptionPutRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -774,7 +774,7 @@ public okhttp3.Call updateStreamSubscriptionByUuidCall(UUID streamId, UUID subsc } @SuppressWarnings("rawtypes") - private okhttp3.Call updateStreamSubscriptionByUuidValidateBeforeCall(UUID streamId, UUID subscriptionId, StreamSubscriptionPutRequest streamSubscriptionPutRequest, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updateStreamSubscriptionByUuidValidateBeforeCall(@javax.annotation.Nonnull UUID streamId, @javax.annotation.Nonnull UUID subscriptionId, @javax.annotation.Nonnull StreamSubscriptionPutRequest streamSubscriptionPutRequest, final ApiCallback _callback) throws ApiException { // verify the required parameter 'streamId' is set if (streamId == null) { throw new ApiException("Missing the required parameter 'streamId' when calling updateStreamSubscriptionByUuid(Async)"); @@ -815,7 +815,7 @@ private okhttp3.Call updateStreamSubscriptionByUuidValidateBeforeCall(UUID strea 500 Internal server error - */ - public StreamSubscription updateStreamSubscriptionByUuid(UUID streamId, UUID subscriptionId, StreamSubscriptionPutRequest streamSubscriptionPutRequest) throws ApiException { + public StreamSubscription updateStreamSubscriptionByUuid(@javax.annotation.Nonnull UUID streamId, @javax.annotation.Nonnull UUID subscriptionId, @javax.annotation.Nonnull StreamSubscriptionPutRequest streamSubscriptionPutRequest) throws ApiException { ApiResponse localVarResp = updateStreamSubscriptionByUuidWithHttpInfo(streamId, subscriptionId, streamSubscriptionPutRequest); return localVarResp.getData(); } @@ -841,7 +841,7 @@ public StreamSubscription updateStreamSubscriptionByUuid(UUID streamId, UUID sub 500 Internal server error - */ - public ApiResponse updateStreamSubscriptionByUuidWithHttpInfo(UUID streamId, UUID subscriptionId, StreamSubscriptionPutRequest streamSubscriptionPutRequest) throws ApiException { + public ApiResponse updateStreamSubscriptionByUuidWithHttpInfo(@javax.annotation.Nonnull UUID streamId, @javax.annotation.Nonnull UUID subscriptionId, @javax.annotation.Nonnull StreamSubscriptionPutRequest streamSubscriptionPutRequest) throws ApiException { okhttp3.Call localVarCall = updateStreamSubscriptionByUuidValidateBeforeCall(streamId, subscriptionId, streamSubscriptionPutRequest, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -869,7 +869,7 @@ public ApiResponse updateStreamSubscriptionByUuidWithHttpInf 500 Internal server error - */ - public okhttp3.Call updateStreamSubscriptionByUuidAsync(UUID streamId, UUID subscriptionId, StreamSubscriptionPutRequest streamSubscriptionPutRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateStreamSubscriptionByUuidAsync(@javax.annotation.Nonnull UUID streamId, @javax.annotation.Nonnull UUID subscriptionId, @javax.annotation.Nonnull StreamSubscriptionPutRequest streamSubscriptionPutRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateStreamSubscriptionByUuidValidateBeforeCall(streamId, subscriptionId, streamSubscriptionPutRequest, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/StreamsApi.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/StreamsApi.java index 52b2ab2f..fb7fc65d 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/StreamsApi.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/api/StreamsApi.java @@ -98,7 +98,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 500 Internal server error - */ - public okhttp3.Call createStreamsCall(StreamPostRequest streamPostRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createStreamsCall(@javax.annotation.Nonnull StreamPostRequest streamPostRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -144,7 +144,7 @@ public okhttp3.Call createStreamsCall(StreamPostRequest streamPostRequest, final } @SuppressWarnings("rawtypes") - private okhttp3.Call createStreamsValidateBeforeCall(StreamPostRequest streamPostRequest, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createStreamsValidateBeforeCall(@javax.annotation.Nonnull StreamPostRequest streamPostRequest, final ApiCallback _callback) throws ApiException { // verify the required parameter 'streamPostRequest' is set if (streamPostRequest == null) { throw new ApiException("Missing the required parameter 'streamPostRequest' when calling createStreams(Async)"); @@ -172,7 +172,7 @@ private okhttp3.Call createStreamsValidateBeforeCall(StreamPostRequest streamPos 500 Internal server error - */ - public Stream createStreams(StreamPostRequest streamPostRequest) throws ApiException { + public Stream createStreams(@javax.annotation.Nonnull StreamPostRequest streamPostRequest) throws ApiException { ApiResponse localVarResp = createStreamsWithHttpInfo(streamPostRequest); return localVarResp.getData(); } @@ -195,7 +195,7 @@ public Stream createStreams(StreamPostRequest streamPostRequest) throws ApiExcep 500 Internal server error - */ - public ApiResponse createStreamsWithHttpInfo(StreamPostRequest streamPostRequest) throws ApiException { + public ApiResponse createStreamsWithHttpInfo(@javax.annotation.Nonnull StreamPostRequest streamPostRequest) throws ApiException { okhttp3.Call localVarCall = createStreamsValidateBeforeCall(streamPostRequest, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -220,7 +220,7 @@ public ApiResponse createStreamsWithHttpInfo(StreamPostRequest streamPos 500 Internal server error - */ - public okhttp3.Call createStreamsAsync(StreamPostRequest streamPostRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createStreamsAsync(@javax.annotation.Nonnull StreamPostRequest streamPostRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createStreamsValidateBeforeCall(streamPostRequest, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -247,7 +247,7 @@ public okhttp3.Call createStreamsAsync(StreamPostRequest streamPostRequest, fina 500 Internal server error - */ - public okhttp3.Call deleteStreamAssetByUuidCall(UUID assetId, Asset asset, UUID streamId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteStreamAssetByUuidCall(@javax.annotation.Nonnull UUID assetId, @javax.annotation.Nonnull Asset asset, @javax.annotation.Nonnull UUID streamId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -295,7 +295,7 @@ public okhttp3.Call deleteStreamAssetByUuidCall(UUID assetId, Asset asset, UUID } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteStreamAssetByUuidValidateBeforeCall(UUID assetId, Asset asset, UUID streamId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteStreamAssetByUuidValidateBeforeCall(@javax.annotation.Nonnull UUID assetId, @javax.annotation.Nonnull Asset asset, @javax.annotation.Nonnull UUID streamId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'assetId' is set if (assetId == null) { throw new ApiException("Missing the required parameter 'assetId' when calling deleteStreamAssetByUuid(Async)"); @@ -335,7 +335,7 @@ private okhttp3.Call deleteStreamAssetByUuidValidateBeforeCall(UUID assetId, Ass 500 Internal server error - */ - public StreamAsset deleteStreamAssetByUuid(UUID assetId, Asset asset, UUID streamId) throws ApiException { + public StreamAsset deleteStreamAssetByUuid(@javax.annotation.Nonnull UUID assetId, @javax.annotation.Nonnull Asset asset, @javax.annotation.Nonnull UUID streamId) throws ApiException { ApiResponse localVarResp = deleteStreamAssetByUuidWithHttpInfo(assetId, asset, streamId); return localVarResp.getData(); } @@ -360,7 +360,7 @@ public StreamAsset deleteStreamAssetByUuid(UUID assetId, Asset asset, UUID strea 500 Internal server error - */ - public ApiResponse deleteStreamAssetByUuidWithHttpInfo(UUID assetId, Asset asset, UUID streamId) throws ApiException { + public ApiResponse deleteStreamAssetByUuidWithHttpInfo(@javax.annotation.Nonnull UUID assetId, @javax.annotation.Nonnull Asset asset, @javax.annotation.Nonnull UUID streamId) throws ApiException { okhttp3.Call localVarCall = deleteStreamAssetByUuidValidateBeforeCall(assetId, asset, streamId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -387,7 +387,7 @@ public ApiResponse deleteStreamAssetByUuidWithHttpInfo(UUID assetId 500 Internal server error - */ - public okhttp3.Call deleteStreamAssetByUuidAsync(UUID assetId, Asset asset, UUID streamId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteStreamAssetByUuidAsync(@javax.annotation.Nonnull UUID assetId, @javax.annotation.Nonnull Asset asset, @javax.annotation.Nonnull UUID streamId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteStreamAssetByUuidValidateBeforeCall(assetId, asset, streamId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -412,7 +412,7 @@ public okhttp3.Call deleteStreamAssetByUuidAsync(UUID assetId, Asset asset, UUID 500 Internal server error - */ - public okhttp3.Call deleteStreamByUuidCall(UUID streamId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteStreamByUuidCall(@javax.annotation.Nonnull UUID streamId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -458,7 +458,7 @@ public okhttp3.Call deleteStreamByUuidCall(UUID streamId, final ApiCallback _cal } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteStreamByUuidValidateBeforeCall(UUID streamId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteStreamByUuidValidateBeforeCall(@javax.annotation.Nonnull UUID streamId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'streamId' is set if (streamId == null) { throw new ApiException("Missing the required parameter 'streamId' when calling deleteStreamByUuid(Async)"); @@ -486,7 +486,7 @@ private okhttp3.Call deleteStreamByUuidValidateBeforeCall(UUID streamId, final A 500 Internal server error - */ - public Stream deleteStreamByUuid(UUID streamId) throws ApiException { + public Stream deleteStreamByUuid(@javax.annotation.Nonnull UUID streamId) throws ApiException { ApiResponse localVarResp = deleteStreamByUuidWithHttpInfo(streamId); return localVarResp.getData(); } @@ -509,7 +509,7 @@ public Stream deleteStreamByUuid(UUID streamId) throws ApiException { 500 Internal server error - */ - public ApiResponse deleteStreamByUuidWithHttpInfo(UUID streamId) throws ApiException { + public ApiResponse deleteStreamByUuidWithHttpInfo(@javax.annotation.Nonnull UUID streamId) throws ApiException { okhttp3.Call localVarCall = deleteStreamByUuidValidateBeforeCall(streamId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -534,7 +534,7 @@ public ApiResponse deleteStreamByUuidWithHttpInfo(UUID streamId) throws 500 Internal server error - */ - public okhttp3.Call deleteStreamByUuidAsync(UUID streamId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteStreamByUuidAsync(@javax.annotation.Nonnull UUID streamId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteStreamByUuidValidateBeforeCall(streamId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -561,7 +561,7 @@ public okhttp3.Call deleteStreamByUuidAsync(UUID streamId, final ApiCallback 500 Internal server error - */ - public okhttp3.Call getStreamAssetByUuidCall(UUID assetId, Asset asset, UUID streamId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getStreamAssetByUuidCall(@javax.annotation.Nonnull UUID assetId, @javax.annotation.Nonnull Asset asset, @javax.annotation.Nonnull UUID streamId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -609,7 +609,7 @@ public okhttp3.Call getStreamAssetByUuidCall(UUID assetId, Asset asset, UUID str } @SuppressWarnings("rawtypes") - private okhttp3.Call getStreamAssetByUuidValidateBeforeCall(UUID assetId, Asset asset, UUID streamId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getStreamAssetByUuidValidateBeforeCall(@javax.annotation.Nonnull UUID assetId, @javax.annotation.Nonnull Asset asset, @javax.annotation.Nonnull UUID streamId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'assetId' is set if (assetId == null) { throw new ApiException("Missing the required parameter 'assetId' when calling getStreamAssetByUuid(Async)"); @@ -649,7 +649,7 @@ private okhttp3.Call getStreamAssetByUuidValidateBeforeCall(UUID assetId, Asset 500 Internal server error - */ - public StreamAsset getStreamAssetByUuid(UUID assetId, Asset asset, UUID streamId) throws ApiException { + public StreamAsset getStreamAssetByUuid(@javax.annotation.Nonnull UUID assetId, @javax.annotation.Nonnull Asset asset, @javax.annotation.Nonnull UUID streamId) throws ApiException { ApiResponse localVarResp = getStreamAssetByUuidWithHttpInfo(assetId, asset, streamId); return localVarResp.getData(); } @@ -674,7 +674,7 @@ public StreamAsset getStreamAssetByUuid(UUID assetId, Asset asset, UUID streamId 500 Internal server error - */ - public ApiResponse getStreamAssetByUuidWithHttpInfo(UUID assetId, Asset asset, UUID streamId) throws ApiException { + public ApiResponse getStreamAssetByUuidWithHttpInfo(@javax.annotation.Nonnull UUID assetId, @javax.annotation.Nonnull Asset asset, @javax.annotation.Nonnull UUID streamId) throws ApiException { okhttp3.Call localVarCall = getStreamAssetByUuidValidateBeforeCall(assetId, asset, streamId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -701,7 +701,7 @@ public ApiResponse getStreamAssetByUuidWithHttpInfo(UUID assetId, A 500 Internal server error - */ - public okhttp3.Call getStreamAssetByUuidAsync(UUID assetId, Asset asset, UUID streamId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getStreamAssetByUuidAsync(@javax.annotation.Nonnull UUID assetId, @javax.annotation.Nonnull Asset asset, @javax.annotation.Nonnull UUID streamId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getStreamAssetByUuidValidateBeforeCall(assetId, asset, streamId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -726,7 +726,7 @@ public okhttp3.Call getStreamAssetByUuidAsync(UUID assetId, Asset asset, UUID st 500 Internal server error - */ - public okhttp3.Call getStreamByUuidCall(UUID streamId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getStreamByUuidCall(@javax.annotation.Nonnull UUID streamId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -772,7 +772,7 @@ public okhttp3.Call getStreamByUuidCall(UUID streamId, final ApiCallback _callba } @SuppressWarnings("rawtypes") - private okhttp3.Call getStreamByUuidValidateBeforeCall(UUID streamId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getStreamByUuidValidateBeforeCall(@javax.annotation.Nonnull UUID streamId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'streamId' is set if (streamId == null) { throw new ApiException("Missing the required parameter 'streamId' when calling getStreamByUuid(Async)"); @@ -800,7 +800,7 @@ private okhttp3.Call getStreamByUuidValidateBeforeCall(UUID streamId, final ApiC 500 Internal server error - */ - public Stream getStreamByUuid(UUID streamId) throws ApiException { + public Stream getStreamByUuid(@javax.annotation.Nonnull UUID streamId) throws ApiException { ApiResponse localVarResp = getStreamByUuidWithHttpInfo(streamId); return localVarResp.getData(); } @@ -823,7 +823,7 @@ public Stream getStreamByUuid(UUID streamId) throws ApiException { 500 Internal server error - */ - public ApiResponse getStreamByUuidWithHttpInfo(UUID streamId) throws ApiException { + public ApiResponse getStreamByUuidWithHttpInfo(@javax.annotation.Nonnull UUID streamId) throws ApiException { okhttp3.Call localVarCall = getStreamByUuidValidateBeforeCall(streamId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -848,7 +848,7 @@ public ApiResponse getStreamByUuidWithHttpInfo(UUID streamId) throws Api 500 Internal server error - */ - public okhttp3.Call getStreamByUuidAsync(UUID streamId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getStreamByUuidAsync(@javax.annotation.Nonnull UUID streamId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getStreamByUuidValidateBeforeCall(streamId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -873,7 +873,7 @@ public okhttp3.Call getStreamByUuidAsync(UUID streamId, final ApiCallback 500 Internal server error - */ - public okhttp3.Call getStreamsCall(Integer offset, Integer limit, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getStreamsCall(@javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -926,7 +926,7 @@ public okhttp3.Call getStreamsCall(Integer offset, Integer limit, final ApiCallb } @SuppressWarnings("rawtypes") - private okhttp3.Call getStreamsValidateBeforeCall(Integer offset, Integer limit, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getStreamsValidateBeforeCall(@javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit, final ApiCallback _callback) throws ApiException { return getStreamsCall(offset, limit, _callback); } @@ -949,7 +949,7 @@ private okhttp3.Call getStreamsValidateBeforeCall(Integer offset, Integer limit, 500 Internal server error - */ - public GetAllStreamResponse getStreams(Integer offset, Integer limit) throws ApiException { + public GetAllStreamResponse getStreams(@javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit) throws ApiException { ApiResponse localVarResp = getStreamsWithHttpInfo(offset, limit); return localVarResp.getData(); } @@ -972,7 +972,7 @@ public GetAllStreamResponse getStreams(Integer offset, Integer limit) throws Api 500 Internal server error - */ - public ApiResponse getStreamsWithHttpInfo(Integer offset, Integer limit) throws ApiException { + public ApiResponse getStreamsWithHttpInfo(@javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit) throws ApiException { okhttp3.Call localVarCall = getStreamsValidateBeforeCall(offset, limit, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -997,7 +997,7 @@ public ApiResponse getStreamsWithHttpInfo(Integer offset, 500 Internal server error - */ - public okhttp3.Call getStreamsAsync(Integer offset, Integer limit, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getStreamsAsync(@javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getStreamsValidateBeforeCall(offset, limit, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1023,7 +1023,7 @@ public okhttp3.Call getStreamsAsync(Integer offset, Integer limit, final ApiCall 500 Internal server error - */ - public okhttp3.Call getStreamsAssetsCall(StreamAssetSearchRequest streamAssetSearchRequest, Integer offset, Integer limit, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getStreamsAssetsCall(@javax.annotation.Nonnull StreamAssetSearchRequest streamAssetSearchRequest, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1077,7 +1077,7 @@ public okhttp3.Call getStreamsAssetsCall(StreamAssetSearchRequest streamAssetSea } @SuppressWarnings("rawtypes") - private okhttp3.Call getStreamsAssetsValidateBeforeCall(StreamAssetSearchRequest streamAssetSearchRequest, Integer offset, Integer limit, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getStreamsAssetsValidateBeforeCall(@javax.annotation.Nonnull StreamAssetSearchRequest streamAssetSearchRequest, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit, final ApiCallback _callback) throws ApiException { // verify the required parameter 'streamAssetSearchRequest' is set if (streamAssetSearchRequest == null) { throw new ApiException("Missing the required parameter 'streamAssetSearchRequest' when calling getStreamsAssets(Async)"); @@ -1106,7 +1106,7 @@ private okhttp3.Call getStreamsAssetsValidateBeforeCall(StreamAssetSearchRequest 500 Internal server error - */ - public GetAllStreamAssetResponse getStreamsAssets(StreamAssetSearchRequest streamAssetSearchRequest, Integer offset, Integer limit) throws ApiException { + public GetAllStreamAssetResponse getStreamsAssets(@javax.annotation.Nonnull StreamAssetSearchRequest streamAssetSearchRequest, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit) throws ApiException { ApiResponse localVarResp = getStreamsAssetsWithHttpInfo(streamAssetSearchRequest, offset, limit); return localVarResp.getData(); } @@ -1130,7 +1130,7 @@ public GetAllStreamAssetResponse getStreamsAssets(StreamAssetSearchRequest strea 500 Internal server error - */ - public ApiResponse getStreamsAssetsWithHttpInfo(StreamAssetSearchRequest streamAssetSearchRequest, Integer offset, Integer limit) throws ApiException { + public ApiResponse getStreamsAssetsWithHttpInfo(@javax.annotation.Nonnull StreamAssetSearchRequest streamAssetSearchRequest, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit) throws ApiException { okhttp3.Call localVarCall = getStreamsAssetsValidateBeforeCall(streamAssetSearchRequest, offset, limit, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1156,7 +1156,7 @@ public ApiResponse getStreamsAssetsWithHttpInfo(Strea 500 Internal server error - */ - public okhttp3.Call getStreamsAssetsAsync(StreamAssetSearchRequest streamAssetSearchRequest, Integer offset, Integer limit, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getStreamsAssetsAsync(@javax.annotation.Nonnull StreamAssetSearchRequest streamAssetSearchRequest, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable Integer limit, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getStreamsAssetsValidateBeforeCall(streamAssetSearchRequest, offset, limit, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1185,7 +1185,7 @@ public okhttp3.Call getStreamsAssetsAsync(StreamAssetSearchRequest streamAssetSe 500 Internal server error - */ - public okhttp3.Call updateStreamAssetByUuidCall(UUID assetId, Asset asset, UUID streamId, StreamAssetPutRequest streamAssetPutRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateStreamAssetByUuidCall(@javax.annotation.Nonnull UUID assetId, @javax.annotation.Nonnull Asset asset, @javax.annotation.Nonnull UUID streamId, @javax.annotation.Nonnull StreamAssetPutRequest streamAssetPutRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1234,7 +1234,7 @@ public okhttp3.Call updateStreamAssetByUuidCall(UUID assetId, Asset asset, UUID } @SuppressWarnings("rawtypes") - private okhttp3.Call updateStreamAssetByUuidValidateBeforeCall(UUID assetId, Asset asset, UUID streamId, StreamAssetPutRequest streamAssetPutRequest, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updateStreamAssetByUuidValidateBeforeCall(@javax.annotation.Nonnull UUID assetId, @javax.annotation.Nonnull Asset asset, @javax.annotation.Nonnull UUID streamId, @javax.annotation.Nonnull StreamAssetPutRequest streamAssetPutRequest, final ApiCallback _callback) throws ApiException { // verify the required parameter 'assetId' is set if (assetId == null) { throw new ApiException("Missing the required parameter 'assetId' when calling updateStreamAssetByUuid(Async)"); @@ -1281,7 +1281,7 @@ private okhttp3.Call updateStreamAssetByUuidValidateBeforeCall(UUID assetId, Ass 500 Internal server error - */ - public StreamAsset updateStreamAssetByUuid(UUID assetId, Asset asset, UUID streamId, StreamAssetPutRequest streamAssetPutRequest) throws ApiException { + public StreamAsset updateStreamAssetByUuid(@javax.annotation.Nonnull UUID assetId, @javax.annotation.Nonnull Asset asset, @javax.annotation.Nonnull UUID streamId, @javax.annotation.Nonnull StreamAssetPutRequest streamAssetPutRequest) throws ApiException { ApiResponse localVarResp = updateStreamAssetByUuidWithHttpInfo(assetId, asset, streamId, streamAssetPutRequest); return localVarResp.getData(); } @@ -1308,7 +1308,7 @@ public StreamAsset updateStreamAssetByUuid(UUID assetId, Asset asset, UUID strea 500 Internal server error - */ - public ApiResponse updateStreamAssetByUuidWithHttpInfo(UUID assetId, Asset asset, UUID streamId, StreamAssetPutRequest streamAssetPutRequest) throws ApiException { + public ApiResponse updateStreamAssetByUuidWithHttpInfo(@javax.annotation.Nonnull UUID assetId, @javax.annotation.Nonnull Asset asset, @javax.annotation.Nonnull UUID streamId, @javax.annotation.Nonnull StreamAssetPutRequest streamAssetPutRequest) throws ApiException { okhttp3.Call localVarCall = updateStreamAssetByUuidValidateBeforeCall(assetId, asset, streamId, streamAssetPutRequest, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1337,7 +1337,7 @@ public ApiResponse updateStreamAssetByUuidWithHttpInfo(UUID assetId 500 Internal server error - */ - public okhttp3.Call updateStreamAssetByUuidAsync(UUID assetId, Asset asset, UUID streamId, StreamAssetPutRequest streamAssetPutRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateStreamAssetByUuidAsync(@javax.annotation.Nonnull UUID assetId, @javax.annotation.Nonnull Asset asset, @javax.annotation.Nonnull UUID streamId, @javax.annotation.Nonnull StreamAssetPutRequest streamAssetPutRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateStreamAssetByUuidValidateBeforeCall(assetId, asset, streamId, streamAssetPutRequest, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1364,7 +1364,7 @@ public okhttp3.Call updateStreamAssetByUuidAsync(UUID assetId, Asset asset, UUID 500 Internal server error - */ - public okhttp3.Call updateStreamByUuidCall(UUID streamId, StreamPutRequest streamPutRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateStreamByUuidCall(@javax.annotation.Nonnull UUID streamId, @javax.annotation.Nonnull StreamPutRequest streamPutRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1411,7 +1411,7 @@ public okhttp3.Call updateStreamByUuidCall(UUID streamId, StreamPutRequest strea } @SuppressWarnings("rawtypes") - private okhttp3.Call updateStreamByUuidValidateBeforeCall(UUID streamId, StreamPutRequest streamPutRequest, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updateStreamByUuidValidateBeforeCall(@javax.annotation.Nonnull UUID streamId, @javax.annotation.Nonnull StreamPutRequest streamPutRequest, final ApiCallback _callback) throws ApiException { // verify the required parameter 'streamId' is set if (streamId == null) { throw new ApiException("Missing the required parameter 'streamId' when calling updateStreamByUuid(Async)"); @@ -1446,7 +1446,7 @@ private okhttp3.Call updateStreamByUuidValidateBeforeCall(UUID streamId, StreamP 500 Internal server error - */ - public Stream updateStreamByUuid(UUID streamId, StreamPutRequest streamPutRequest) throws ApiException { + public Stream updateStreamByUuid(@javax.annotation.Nonnull UUID streamId, @javax.annotation.Nonnull StreamPutRequest streamPutRequest) throws ApiException { ApiResponse localVarResp = updateStreamByUuidWithHttpInfo(streamId, streamPutRequest); return localVarResp.getData(); } @@ -1471,7 +1471,7 @@ public Stream updateStreamByUuid(UUID streamId, StreamPutRequest streamPutReques 500 Internal server error - */ - public ApiResponse updateStreamByUuidWithHttpInfo(UUID streamId, StreamPutRequest streamPutRequest) throws ApiException { + public ApiResponse updateStreamByUuidWithHttpInfo(@javax.annotation.Nonnull UUID streamId, @javax.annotation.Nonnull StreamPutRequest streamPutRequest) throws ApiException { okhttp3.Call localVarCall = updateStreamByUuidValidateBeforeCall(streamId, streamPutRequest, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1498,7 +1498,7 @@ public ApiResponse updateStreamByUuidWithHttpInfo(UUID streamId, StreamP 500 Internal server error - */ - public okhttp3.Call updateStreamByUuidAsync(UUID streamId, StreamPutRequest streamPutRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateStreamByUuidAsync(@javax.annotation.Nonnull UUID streamId, @javax.annotation.Nonnull StreamPutRequest streamPutRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateStreamByUuidValidateBeforeCall(streamId, streamPutRequest, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/auth/ApiKeyAuth.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/auth/ApiKeyAuth.java index 76d2280b..764c5842 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/auth/ApiKeyAuth.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/auth/ApiKeyAuth.java @@ -18,7 +18,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/auth/Authentication.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/auth/Authentication.java index 06bfcf5b..45646a38 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/auth/Authentication.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/auth/Authentication.java @@ -18,6 +18,7 @@ import java.util.Map; import java.util.List; +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public interface Authentication { /** * Apply authentication settings to header and query params. diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/auth/HttpBearerAuth.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/auth/HttpBearerAuth.java index 9e8469ad..ca2a2959 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/auth/HttpBearerAuth.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/auth/HttpBearerAuth.java @@ -20,7 +20,7 @@ import java.util.Optional; import java.util.function.Supplier; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class HttpBearerAuth implements Authentication { private final String scheme; private Supplier tokenSupplier; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/AbstractOpenApiSchema.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/AbstractOpenApiSchema.java index 1e0a23ef..e0947960 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/AbstractOpenApiSchema.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/AbstractOpenApiSchema.java @@ -19,7 +19,7 @@ /** * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public abstract class AbstractOpenApiSchema { // store the actual instance of the schema/object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/AccessPoint.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/AccessPoint.java index e62bde45..2b128ed5 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/AccessPoint.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/AccessPoint.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.AccessPointType; import com.equinix.sdk.fabricv4.model.CloudRouter; import com.equinix.sdk.fabricv4.model.MetalInterconnection; @@ -54,13 +55,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Access point object */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class AccessPoint { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -673,28 +675,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("type"); - openapiFields.add("account"); - openapiFields.add("location"); - openapiFields.add("port"); - openapiFields.add("profile"); - openapiFields.add("router"); - openapiFields.add("linkProtocol"); - openapiFields.add("virtualDevice"); - openapiFields.add("interface"); - openapiFields.add("network"); - openapiFields.add("sellerRegion"); - openapiFields.add("peeringType"); - openapiFields.add("authenticationKey"); - openapiFields.add("providerConnectionId"); - openapiFields.add("virtualNetwork"); - openapiFields.add("interconnection"); - openapiFields.add("vpic_interface"); - openapiFields.add("role"); + openapiFields = new HashSet(Arrays.asList("type", "account", "location", "port", "profile", "router", "linkProtocol", "virtualDevice", "interface", "network", "sellerRegion", "peeringType", "authenticationKey", "providerConnectionId", "virtualNetwork", "interconnection", "vpic_interface", "role")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -706,7 +690,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!AccessPoint.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in AccessPoint is not found in the empty JSON string", AccessPoint.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AccessPoint is not found in the empty JSON string", AccessPoint.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -751,17 +735,17 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti SimplifiedNetwork.validateJsonElement(jsonObj.get("network")); } if ((jsonObj.get("sellerRegion") != null && !jsonObj.get("sellerRegion").isJsonNull()) && !jsonObj.get("sellerRegion").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `sellerRegion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("sellerRegion").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `sellerRegion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("sellerRegion").toString())); } // validate the optional field `peeringType` if (jsonObj.get("peeringType") != null && !jsonObj.get("peeringType").isJsonNull()) { PeeringType.validateJsonElement(jsonObj.get("peeringType")); } if ((jsonObj.get("authenticationKey") != null && !jsonObj.get("authenticationKey").isJsonNull()) && !jsonObj.get("authenticationKey").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `authenticationKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("authenticationKey").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `authenticationKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("authenticationKey").toString())); } if ((jsonObj.get("providerConnectionId") != null && !jsonObj.get("providerConnectionId").isJsonNull()) && !jsonObj.get("providerConnectionId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `providerConnectionId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("providerConnectionId").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `providerConnectionId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("providerConnectionId").toString())); } // validate the optional field `virtualNetwork` if (jsonObj.get("virtualNetwork") != null && !jsonObj.get("virtualNetwork").isJsonNull()) { @@ -776,7 +760,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti VpicInterface.validateJsonElement(jsonObj.get("vpic_interface")); } if ((jsonObj.get("role") != null && !jsonObj.get("role").isJsonNull()) && !jsonObj.get("role").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `role` to be a primitive type in the JSON string but got `%s`", jsonObj.get("role").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `role` to be a primitive type in the JSON string but got `%s`", jsonObj.get("role").toString())); } // validate the optional field `role` if (jsonObj.get("role") != null && !jsonObj.get("role").isJsonNull()) { @@ -841,7 +825,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/AccessPointSelector.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/AccessPointSelector.java index 0d4632ac..922f5c17 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/AccessPointSelector.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/AccessPointSelector.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.SimplifiedLinkProtocol; import com.equinix.sdk.fabricv4.model.SimplifiedMetadataEntity; import com.equinix.sdk.fabricv4.model.SimplifiedTokenNetwork; @@ -45,13 +46,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * List of criteria for selecting network access points with optimal efficiency, security, compatibility, and availability. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class AccessPointSelector { /** * Type of Access point @@ -385,17 +387,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("type"); - openapiFields.add("hideAssetInfo"); - openapiFields.add("port"); - openapiFields.add("linkProtocol"); - openapiFields.add("virtualDevice"); - openapiFields.add("interface"); - openapiFields.add("network"); + openapiFields = new HashSet(Arrays.asList("type", "hideAssetInfo", "port", "linkProtocol", "virtualDevice", "interface", "network")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -407,12 +402,12 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!AccessPointSelector.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in AccessPointSelector is not found in the empty JSON string", AccessPointSelector.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AccessPointSelector is not found in the empty JSON string", AccessPointSelector.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the optional field `type` if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { @@ -497,7 +492,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/AccessPointType.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/AccessPointType.java index 1998604b..9fabf93e 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/AccessPointType.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/AccessPointType.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Actions.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Actions.java index 11e8b027..15a526d0 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Actions.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Actions.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/AddOperation.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/AddOperation.java index 63f77dc8..4a87dd55 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/AddOperation.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/AddOperation.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.OpEnum; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Add Sub-Resource to the existing model */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class AddOperation { public static final String SERIALIZED_NAME_OP = "op"; @SerializedName(SERIALIZED_NAME_OP) @@ -218,16 +220,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("op"); - openapiFields.add("path"); - openapiFields.add("value"); + openapiFields = new HashSet(Arrays.asList("op", "path", "value")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("op"); - openapiRequiredFields.add("path"); - openapiRequiredFields.add("value"); + openapiRequiredFields = new HashSet(Arrays.asList("op", "path", "value")); } /** @@ -239,21 +235,21 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!AddOperation.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in AddOperation is not found in the empty JSON string", AddOperation.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddOperation is not found in the empty JSON string", AddOperation.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : AddOperation.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the required field `op` OpEnum.validateJsonElement(jsonObj.get("op")); if (!jsonObj.get("path").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); } } @@ -314,7 +310,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/AlertRulePostRequest.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/AlertRulePostRequest.java index 016296ea..feb0e132 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/AlertRulePostRequest.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/AlertRulePostRequest.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.DetectionMethod; import com.equinix.sdk.fabricv4.model.MetricSelector; import com.equinix.sdk.fabricv4.model.ResourceSelector; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Create Stream Alert Rules */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class AlertRulePostRequest { /** * Gets or Sets type @@ -374,22 +376,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("type"); - openapiFields.add("name"); - openapiFields.add("description"); - openapiFields.add("enabled"); - openapiFields.add("metricSelector"); - openapiFields.add("resourceSelector"); - openapiFields.add("detectionMethod"); + openapiFields = new HashSet(Arrays.asList("type", "name", "description", "enabled", "metricSelector", "resourceSelector", "detectionMethod")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("type"); - openapiRequiredFields.add("name"); - openapiRequiredFields.add("metricSelector"); - openapiRequiredFields.add("resourceSelector"); - openapiRequiredFields.add("detectionMethod"); + openapiRequiredFields = new HashSet(Arrays.asList("type", "name", "metricSelector", "resourceSelector", "detectionMethod")); } /** @@ -401,27 +391,27 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!AlertRulePostRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in AlertRulePostRequest is not found in the empty JSON string", AlertRulePostRequest.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AlertRulePostRequest is not found in the empty JSON string", AlertRulePostRequest.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : AlertRulePostRequest.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the required field `type` TypeEnum.validateJsonElement(jsonObj.get("type")); if (!jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); } // validate the required field `metricSelector` MetricSelector.validateJsonElement(jsonObj.get("metricSelector")); @@ -488,7 +478,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/AlertRulePutRequest.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/AlertRulePutRequest.java index 8104ba09..a8fc0a1d 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/AlertRulePutRequest.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/AlertRulePutRequest.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.DetectionMethod; import com.equinix.sdk.fabricv4.model.MetricSelector; import com.equinix.sdk.fabricv4.model.ResourceSelector; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Create Stream Alert Rules */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class AlertRulePutRequest { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -374,22 +376,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("name"); - openapiFields.add("type"); - openapiFields.add("description"); - openapiFields.add("enabled"); - openapiFields.add("metricSelector"); - openapiFields.add("resourceSelector"); - openapiFields.add("detectionMethod"); + openapiFields = new HashSet(Arrays.asList("name", "type", "description", "enabled", "metricSelector", "resourceSelector", "detectionMethod")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("name"); - openapiRequiredFields.add("type"); - openapiRequiredFields.add("metricSelector"); - openapiRequiredFields.add("resourceSelector"); - openapiRequiredFields.add("detectionMethod"); + openapiRequiredFields = new HashSet(Arrays.asList("name", "type", "metricSelector", "resourceSelector", "detectionMethod")); } /** @@ -401,27 +391,27 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!AlertRulePutRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in AlertRulePutRequest is not found in the empty JSON string", AlertRulePutRequest.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AlertRulePutRequest is not found in the empty JSON string", AlertRulePutRequest.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : AlertRulePutRequest.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } if (!jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the required field `type` TypeEnum.validateJsonElement(jsonObj.get("type")); if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); } // validate the required field `metricSelector` MetricSelector.validateJsonElement(jsonObj.get("metricSelector")); @@ -488,7 +478,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/AllPhysicalPortsResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/AllPhysicalPortsResponse.java index 54367738..14147e78 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/AllPhysicalPortsResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/AllPhysicalPortsResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Pagination; import com.equinix.sdk.fabricv4.model.PhysicalPort; import com.google.gson.TypeAdapter; @@ -44,13 +45,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * GET All Physical Ports */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class AllPhysicalPortsResponse { public static final String SERIALIZED_NAME_PAGINATION = "pagination"; @SerializedName(SERIALIZED_NAME_PAGINATION) @@ -203,12 +205,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("pagination"); - openapiFields.add("data"); + openapiFields = new HashSet(Arrays.asList("pagination", "data")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -220,7 +220,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!AllPhysicalPortsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in AllPhysicalPortsResponse is not found in the empty JSON string", AllPhysicalPortsResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AllPhysicalPortsResponse is not found in the empty JSON string", AllPhysicalPortsResponse.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -233,7 +233,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraydata != null) { // ensure the json data is an array if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); } // validate the optional field `data` (array) @@ -301,7 +301,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/AllPortPackagesResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/AllPortPackagesResponse.java index 050d5539..e46cca4d 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/AllPortPackagesResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/AllPortPackagesResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.PortPackage; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Port Packages response */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class AllPortPackagesResponse { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @@ -176,12 +178,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("data"); + openapiFields = new HashSet(Arrays.asList("data")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("data"); + openapiRequiredFields = new HashSet(Arrays.asList("data")); } /** @@ -193,20 +193,20 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!AllPortPackagesResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in AllPortPackagesResponse is not found in the empty JSON string", AllPortPackagesResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AllPortPackagesResponse is not found in the empty JSON string", AllPortPackagesResponse.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : AllPortPackagesResponse.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the json data is an array if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); } JsonArray jsonArraydata = jsonObj.getAsJsonArray("data"); @@ -273,7 +273,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/AllPortsResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/AllPortsResponse.java index 2dd0f8ad..6ae73bb8 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/AllPortsResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/AllPortsResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Pagination; import com.equinix.sdk.fabricv4.model.Port; import com.google.gson.TypeAdapter; @@ -44,13 +45,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * GET All User Port Across Fabric Metros */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class AllPortsResponse { public static final String SERIALIZED_NAME_PAGINATION = "pagination"; @SerializedName(SERIALIZED_NAME_PAGINATION) @@ -203,12 +205,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("pagination"); - openapiFields.add("data"); + openapiFields = new HashSet(Arrays.asList("pagination", "data")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -220,7 +220,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!AllPortsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in AllPortsResponse is not found in the empty JSON string", AllPortsResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AllPortsResponse is not found in the empty JSON string", AllPortsResponse.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -233,7 +233,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraydata != null) { // ensure the json data is an array if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); } // validate the optional field `data` (array) @@ -301,7 +301,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ApiConfig.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ApiConfig.java index 01640290..0f0456bb 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ApiConfig.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ApiConfig.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Configuration for API based Integration for Service Profile */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ApiConfig { public static final String SERIALIZED_NAME_API_AVAILABLE = "apiAvailable"; @SerializedName(SERIALIZED_NAME_API_AVAILABLE) @@ -323,17 +325,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("apiAvailable"); - openapiFields.add("integrationId"); - openapiFields.add("equinixManagedPort"); - openapiFields.add("equinixManagedVlan"); - openapiFields.add("allowOverSubscription"); - openapiFields.add("overSubscriptionLimit"); - openapiFields.add("bandwidthFromApi"); + openapiFields = new HashSet(Arrays.asList("apiAvailable", "integrationId", "equinixManagedPort", "equinixManagedVlan", "allowOverSubscription", "overSubscriptionLimit", "bandwidthFromApi")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -345,12 +340,12 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ApiConfig.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ApiConfig is not found in the empty JSON string", ApiConfig.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ApiConfig is not found in the empty JSON string", ApiConfig.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("integrationId") != null && !jsonObj.get("integrationId").isJsonNull()) && !jsonObj.get("integrationId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `integrationId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("integrationId").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `integrationId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("integrationId").toString())); } } @@ -411,7 +406,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ApiServices.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ApiServices.java index aa5a74a9..59dda5e6 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ApiServices.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ApiServices.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Available services details */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ApiServices { public static final String SERIALIZED_NAME_ROUTE = "route"; @SerializedName(SERIALIZED_NAME_ROUTE) @@ -217,13 +219,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("route"); - openapiFields.add("status"); - openapiFields.add("changedDateTime"); + openapiFields = new HashSet(Arrays.asList("route", "status", "changedDateTime")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -235,18 +234,18 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ApiServices.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ApiServices is not found in the empty JSON string", ApiServices.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ApiServices is not found in the empty JSON string", ApiServices.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("route") != null && !jsonObj.get("route").isJsonNull()) && !jsonObj.get("route").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `route` to be a primitive type in the JSON string but got `%s`", jsonObj.get("route").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `route` to be a primitive type in the JSON string but got `%s`", jsonObj.get("route").toString())); } if ((jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) && !jsonObj.get("status").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); } if ((jsonObj.get("changedDateTime") != null && !jsonObj.get("changedDateTime").isJsonNull()) && !jsonObj.get("changedDateTime").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `changedDateTime` to be a primitive type in the JSON string but got `%s`", jsonObj.get("changedDateTime").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `changedDateTime` to be a primitive type in the JSON string but got `%s`", jsonObj.get("changedDateTime").toString())); } } @@ -307,7 +306,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Asset.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Asset.java index dcc14681..a1014589 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Asset.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Asset.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/AttachLogoResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/AttachLogoResponse.java index 4befdf79..8676bb6d 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/AttachLogoResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/AttachLogoResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * AttachLogoResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class AttachLogoResponse { public static final String SERIALIZED_NAME_HREF = "href"; @SerializedName(SERIALIZED_NAME_HREF) @@ -243,16 +245,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("href"); - openapiFields.add("type"); - openapiFields.add("uuid"); - openapiFields.add("attachmentStatus"); + openapiFields = new HashSet(Arrays.asList("href", "type", "uuid", "attachmentStatus")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("type"); - openapiRequiredFields.add("uuid"); + openapiRequiredFields = new HashSet(Arrays.asList("type", "uuid")); } /** @@ -264,28 +260,28 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!AttachLogoResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in AttachLogoResponse is not found in the empty JSON string", AttachLogoResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AttachLogoResponse is not found in the empty JSON string", AttachLogoResponse.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : AttachLogoResponse.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } if (!jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } if (!jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } if ((jsonObj.get("attachmentStatus") != null && !jsonObj.get("attachmentStatus").isJsonNull()) && !jsonObj.get("attachmentStatus").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `attachmentStatus` to be a primitive type in the JSON string but got `%s`", jsonObj.get("attachmentStatus").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `attachmentStatus` to be a primitive type in the JSON string but got `%s`", jsonObj.get("attachmentStatus").toString())); } } @@ -346,7 +342,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/AttachPrivateServiceResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/AttachPrivateServiceResponse.java index 70236a75..ce8979ec 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/AttachPrivateServiceResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/AttachPrivateServiceResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * AttachPrivateServiceResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class AttachPrivateServiceResponse { public static final String SERIALIZED_NAME_HREF = "href"; @SerializedName(SERIALIZED_NAME_HREF) @@ -243,16 +245,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("href"); - openapiFields.add("type"); - openapiFields.add("uuid"); - openapiFields.add("attachmentStatus"); + openapiFields = new HashSet(Arrays.asList("href", "type", "uuid", "attachmentStatus")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("type"); - openapiRequiredFields.add("uuid"); + openapiRequiredFields = new HashSet(Arrays.asList("type", "uuid")); } /** @@ -264,28 +260,28 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!AttachPrivateServiceResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in AttachPrivateServiceResponse is not found in the empty JSON string", AttachPrivateServiceResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AttachPrivateServiceResponse is not found in the empty JSON string", AttachPrivateServiceResponse.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : AttachPrivateServiceResponse.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } if (!jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } if (!jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } if ((jsonObj.get("attachmentStatus") != null && !jsonObj.get("attachmentStatus").isJsonNull()) && !jsonObj.get("attachmentStatus").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `attachmentStatus` to be a primitive type in the JSON string but got `%s`", jsonObj.get("attachmentStatus").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `attachmentStatus` to be a primitive type in the JSON string but got `%s`", jsonObj.get("attachmentStatus").toString())); } } @@ -346,7 +342,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/AttachServiceProfileResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/AttachServiceProfileResponse.java index c9cec402..6da7a14f 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/AttachServiceProfileResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/AttachServiceProfileResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * AttachServiceProfileResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class AttachServiceProfileResponse { public static final String SERIALIZED_NAME_HREF = "href"; @SerializedName(SERIALIZED_NAME_HREF) @@ -243,16 +245,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("href"); - openapiFields.add("type"); - openapiFields.add("uuid"); - openapiFields.add("attachmentStatus"); + openapiFields = new HashSet(Arrays.asList("href", "type", "uuid", "attachmentStatus")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("type"); - openapiRequiredFields.add("uuid"); + openapiRequiredFields = new HashSet(Arrays.asList("type", "uuid")); } /** @@ -264,28 +260,28 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!AttachServiceProfileResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in AttachServiceProfileResponse is not found in the empty JSON string", AttachServiceProfileResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AttachServiceProfileResponse is not found in the empty JSON string", AttachServiceProfileResponse.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : AttachServiceProfileResponse.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } if (!jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } if (!jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } if ((jsonObj.get("attachmentStatus") != null && !jsonObj.get("attachmentStatus").isJsonNull()) && !jsonObj.get("attachmentStatus").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `attachmentStatus` to be a primitive type in the JSON string but got `%s`", jsonObj.get("attachmentStatus").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `attachmentStatus` to be a primitive type in the JSON string but got `%s`", jsonObj.get("attachmentStatus").toString())); } } @@ -346,7 +342,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/AttachTagResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/AttachTagResponse.java index 2f4e24b5..e2ddb6c1 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/AttachTagResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/AttachTagResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * AttachTagResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class AttachTagResponse { public static final String SERIALIZED_NAME_HREF = "href"; @SerializedName(SERIALIZED_NAME_HREF) @@ -243,16 +245,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("href"); - openapiFields.add("type"); - openapiFields.add("uuid"); - openapiFields.add("attachmentStatus"); + openapiFields = new HashSet(Arrays.asList("href", "type", "uuid", "attachmentStatus")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("type"); - openapiRequiredFields.add("uuid"); + openapiRequiredFields = new HashSet(Arrays.asList("type", "uuid")); } /** @@ -264,28 +260,28 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!AttachTagResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in AttachTagResponse is not found in the empty JSON string", AttachTagResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AttachTagResponse is not found in the empty JSON string", AttachTagResponse.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : AttachTagResponse.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } if (!jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } if (!jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } if ((jsonObj.get("attachmentStatus") != null && !jsonObj.get("attachmentStatus").isJsonNull()) && !jsonObj.get("attachmentStatus").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `attachmentStatus` to be a primitive type in the JSON string but got `%s`", jsonObj.get("attachmentStatus").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `attachmentStatus` to be a primitive type in the JSON string but got `%s`", jsonObj.get("attachmentStatus").toString())); } } @@ -346,7 +342,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/AuthContext.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/AuthContext.java index 21720c99..032b9c9f 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/AuthContext.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/AuthContext.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * AuthContext */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class AuthContext { /** * Cloud Event auth type @@ -347,14 +349,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("authtype"); - openapiFields.add("authid"); - openapiFields.add("name"); - openapiFields.add("email"); + openapiFields = new HashSet(Arrays.asList("authtype", "authid", "name", "email")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -366,29 +364,29 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!AuthContext.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in AuthContext is not found in the empty JSON string", AuthContext.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AuthContext is not found in the empty JSON string", AuthContext.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("authtype") != null && !jsonObj.get("authtype").isJsonNull()) && !jsonObj.get("authtype").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `authtype` to be a primitive type in the JSON string but got `%s`", jsonObj.get("authtype").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `authtype` to be a primitive type in the JSON string but got `%s`", jsonObj.get("authtype").toString())); } // validate the optional field `authtype` if (jsonObj.get("authtype") != null && !jsonObj.get("authtype").isJsonNull()) { AuthtypeEnum.validateJsonElement(jsonObj.get("authtype")); } if ((jsonObj.get("authid") != null && !jsonObj.get("authid").isJsonNull()) && !jsonObj.get("authid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `authid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("authid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `authid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("authid").toString())); } // validate the optional field `authid` if (jsonObj.get("authid") != null && !jsonObj.get("authid").isJsonNull()) { AuthidEnum.validateJsonElement(jsonObj.get("authid")); } if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } if ((jsonObj.get("email") != null && !jsonObj.get("email").isJsonNull()) && !jsonObj.get("email").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `email` to be a primitive type in the JSON string but got `%s`", jsonObj.get("email").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `email` to be a primitive type in the JSON string but got `%s`", jsonObj.get("email").toString())); } } @@ -449,7 +447,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/AuthenticationKey.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/AuthenticationKey.java index 811de72a..35ef1873 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/AuthenticationKey.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/AuthenticationKey.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Authentication Key Support and Customization */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class AuthenticationKey { public static final String SERIALIZED_NAME_REQUIRED = "required"; @SerializedName(SERIALIZED_NAME_REQUIRED) @@ -217,13 +219,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("required"); - openapiFields.add("label"); - openapiFields.add("description"); + openapiFields = new HashSet(Arrays.asList("required", "label", "description")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -235,15 +234,15 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!AuthenticationKey.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in AuthenticationKey is not found in the empty JSON string", AuthenticationKey.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AuthenticationKey is not found in the empty JSON string", AuthenticationKey.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("label") != null && !jsonObj.get("label").isJsonNull()) && !jsonObj.get("label").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `label` to be a primitive type in the JSON string but got `%s`", jsonObj.get("label").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `label` to be a primitive type in the JSON string but got `%s`", jsonObj.get("label").toString())); } if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); } } @@ -304,7 +303,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/BGPActionData.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/BGPActionData.java index 2686803c..705bdc8e 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/BGPActionData.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/BGPActionData.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.BGPActionStates; import com.equinix.sdk.fabricv4.model.BGPActions; import com.equinix.sdk.fabricv4.model.Changelog; @@ -45,13 +46,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * BGPActionData */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class BGPActionData { public static final String SERIALIZED_NAME_HREF = "href"; @SerializedName(SERIALIZED_NAME_HREF) @@ -300,16 +302,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("href"); - openapiFields.add("uuid"); - openapiFields.add("type"); - openapiFields.add("description"); - openapiFields.add("state"); - openapiFields.add("changelog"); + openapiFields = new HashSet(Arrays.asList("href", "uuid", "type", "description", "state", "changelog")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -321,22 +317,22 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!BGPActionData.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in BGPActionData is not found in the empty JSON string", BGPActionData.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in BGPActionData is not found in the empty JSON string", BGPActionData.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } // validate the optional field `type` if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { BGPActions.validateJsonElement(jsonObj.get("type")); } if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); } // validate the optional field `state` if (jsonObj.get("state") != null && !jsonObj.get("state").isJsonNull()) { @@ -405,7 +401,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/BGPActionRequest.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/BGPActionRequest.java index 6c488055..d8a4cf4c 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/BGPActionRequest.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/BGPActionRequest.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.BGPActions; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * BGP action request */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class BGPActionRequest { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -166,12 +168,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("type"); + openapiFields = new HashSet(Arrays.asList("type")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("type"); + openapiRequiredFields = new HashSet(Arrays.asList("type")); } /** @@ -183,14 +183,14 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!BGPActionRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in BGPActionRequest is not found in the empty JSON string", BGPActionRequest.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in BGPActionRequest is not found in the empty JSON string", BGPActionRequest.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : BGPActionRequest.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -255,7 +255,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/BGPActionStates.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/BGPActionStates.java index 74c402f4..0407ba9a 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/BGPActionStates.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/BGPActionStates.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/BGPActions.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/BGPActions.java index 7c2f402a..dde6db9b 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/BGPActions.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/BGPActions.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/BGPActionsBulkData.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/BGPActionsBulkData.java index db5ae9ff..13277391 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/BGPActionsBulkData.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/BGPActionsBulkData.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.BGPActionData; import com.equinix.sdk.fabricv4.model.Pagination; import com.google.gson.TypeAdapter; @@ -44,13 +45,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * List of BGP Actions */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class BGPActionsBulkData { public static final String SERIALIZED_NAME_PAGINATION = "pagination"; @SerializedName(SERIALIZED_NAME_PAGINATION) @@ -203,12 +205,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("pagination"); - openapiFields.add("data"); + openapiFields = new HashSet(Arrays.asList("pagination", "data")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -220,7 +220,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!BGPActionsBulkData.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in BGPActionsBulkData is not found in the empty JSON string", BGPActionsBulkData.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in BGPActionsBulkData is not found in the empty JSON string", BGPActionsBulkData.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -233,7 +233,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraydata != null) { // ensure the json data is an array if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); } // validate the optional field `data` (array) @@ -301,7 +301,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/BGPConnectionIpv4.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/BGPConnectionIpv4.java index 09963227..b277c67d 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/BGPConnectionIpv4.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/BGPConnectionIpv4.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.BGPConnectionOperation; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * BGPConnectionIpv4 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class BGPConnectionIpv4 { public static final String SERIALIZED_NAME_CUSTOMER_PEER_IP = "customerPeerIp"; @SerializedName(SERIALIZED_NAME_CUSTOMER_PEER_IP) @@ -348,20 +350,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("customerPeerIp"); - openapiFields.add("equinixPeerIp"); - openapiFields.add("enabled"); - openapiFields.add("outboundASPrependCount"); - openapiFields.add("inboundMED"); - openapiFields.add("outboundMED"); - openapiFields.add("routesMax"); - openapiFields.add("operation"); + openapiFields = new HashSet(Arrays.asList("customerPeerIp", "equinixPeerIp", "enabled", "outboundASPrependCount", "inboundMED", "outboundMED", "routesMax", "operation")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("customerPeerIp"); - openapiRequiredFields.add("enabled"); + openapiRequiredFields = new HashSet(Arrays.asList("customerPeerIp", "enabled")); } /** @@ -373,22 +365,22 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!BGPConnectionIpv4.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in BGPConnectionIpv4 is not found in the empty JSON string", BGPConnectionIpv4.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in BGPConnectionIpv4 is not found in the empty JSON string", BGPConnectionIpv4.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : BGPConnectionIpv4.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("customerPeerIp").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `customerPeerIp` to be a primitive type in the JSON string but got `%s`", jsonObj.get("customerPeerIp").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `customerPeerIp` to be a primitive type in the JSON string but got `%s`", jsonObj.get("customerPeerIp").toString())); } if ((jsonObj.get("equinixPeerIp") != null && !jsonObj.get("equinixPeerIp").isJsonNull()) && !jsonObj.get("equinixPeerIp").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `equinixPeerIp` to be a primitive type in the JSON string but got `%s`", jsonObj.get("equinixPeerIp").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `equinixPeerIp` to be a primitive type in the JSON string but got `%s`", jsonObj.get("equinixPeerIp").toString())); } // validate the optional field `operation` if (jsonObj.get("operation") != null && !jsonObj.get("operation").isJsonNull()) { @@ -453,7 +445,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/BGPConnectionIpv6.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/BGPConnectionIpv6.java index c19f9665..74affb45 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/BGPConnectionIpv6.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/BGPConnectionIpv6.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.BGPConnectionOperation; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * BGPConnectionIpv6 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class BGPConnectionIpv6 { public static final String SERIALIZED_NAME_CUSTOMER_PEER_IP = "customerPeerIp"; @SerializedName(SERIALIZED_NAME_CUSTOMER_PEER_IP) @@ -348,20 +350,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("customerPeerIp"); - openapiFields.add("equinixPeerIp"); - openapiFields.add("enabled"); - openapiFields.add("outboundASPrependCount"); - openapiFields.add("inboundMED"); - openapiFields.add("outboundMED"); - openapiFields.add("routesMax"); - openapiFields.add("operation"); + openapiFields = new HashSet(Arrays.asList("customerPeerIp", "equinixPeerIp", "enabled", "outboundASPrependCount", "inboundMED", "outboundMED", "routesMax", "operation")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("customerPeerIp"); - openapiRequiredFields.add("enabled"); + openapiRequiredFields = new HashSet(Arrays.asList("customerPeerIp", "enabled")); } /** @@ -373,22 +365,22 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!BGPConnectionIpv6.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in BGPConnectionIpv6 is not found in the empty JSON string", BGPConnectionIpv6.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in BGPConnectionIpv6 is not found in the empty JSON string", BGPConnectionIpv6.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : BGPConnectionIpv6.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("customerPeerIp").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `customerPeerIp` to be a primitive type in the JSON string but got `%s`", jsonObj.get("customerPeerIp").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `customerPeerIp` to be a primitive type in the JSON string but got `%s`", jsonObj.get("customerPeerIp").toString())); } if ((jsonObj.get("equinixPeerIp") != null && !jsonObj.get("equinixPeerIp").isJsonNull()) && !jsonObj.get("equinixPeerIp").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `equinixPeerIp` to be a primitive type in the JSON string but got `%s`", jsonObj.get("equinixPeerIp").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `equinixPeerIp` to be a primitive type in the JSON string but got `%s`", jsonObj.get("equinixPeerIp").toString())); } // validate the optional field `operation` if (jsonObj.get("operation") != null && !jsonObj.get("operation").isJsonNull()) { @@ -453,7 +445,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/BGPConnectionOperation.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/BGPConnectionOperation.java index 49bba503..1106a20d 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/BGPConnectionOperation.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/BGPConnectionOperation.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * BGP IPv4 or IPv6 Connection State operational data */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class BGPConnectionOperation { /** * BGP IPv4 or IPv6 Connection State operational status @@ -246,12 +248,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("operationalStatus"); - openapiFields.add("opStatusChangedAt"); + openapiFields = new HashSet(Arrays.asList("operationalStatus", "opStatusChangedAt")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -263,12 +263,12 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!BGPConnectionOperation.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in BGPConnectionOperation is not found in the empty JSON string", BGPConnectionOperation.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in BGPConnectionOperation is not found in the empty JSON string", BGPConnectionOperation.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("operationalStatus") != null && !jsonObj.get("operationalStatus").isJsonNull()) && !jsonObj.get("operationalStatus").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `operationalStatus` to be a primitive type in the JSON string but got `%s`", jsonObj.get("operationalStatus").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `operationalStatus` to be a primitive type in the JSON string but got `%s`", jsonObj.get("operationalStatus").toString())); } // validate the optional field `operationalStatus` if (jsonObj.get("operationalStatus") != null && !jsonObj.get("operationalStatus").isJsonNull()) { @@ -333,7 +333,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/BandwidthUtilization.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/BandwidthUtilization.java index c580e2da..bc52d638 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/BandwidthUtilization.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/BandwidthUtilization.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Direction; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Bandwidth utilization statistics (octet counters-based) */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class BandwidthUtilization { /** * Aggregated data transfer capacity. Possible values- Mbps, megabits (1 million bits) per second; Gbps, gigabits (1 billion bits) per second. @@ -294,14 +296,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("unit"); - openapiFields.add("metricInterval"); - openapiFields.add("inbound"); - openapiFields.add("outbound"); + openapiFields = new HashSet(Arrays.asList("unit", "metricInterval", "inbound", "outbound")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -313,19 +311,19 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!BandwidthUtilization.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in BandwidthUtilization is not found in the empty JSON string", BandwidthUtilization.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in BandwidthUtilization is not found in the empty JSON string", BandwidthUtilization.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("unit") != null && !jsonObj.get("unit").isJsonNull()) && !jsonObj.get("unit").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `unit` to be a primitive type in the JSON string but got `%s`", jsonObj.get("unit").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `unit` to be a primitive type in the JSON string but got `%s`", jsonObj.get("unit").toString())); } // validate the optional field `unit` if (jsonObj.get("unit") != null && !jsonObj.get("unit").isJsonNull()) { UnitEnum.validateJsonElement(jsonObj.get("unit")); } if ((jsonObj.get("metricInterval") != null && !jsonObj.get("metricInterval").isJsonNull()) && !jsonObj.get("metricInterval").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `metricInterval` to be a primitive type in the JSON string but got `%s`", jsonObj.get("metricInterval").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `metricInterval` to be a primitive type in the JSON string but got `%s`", jsonObj.get("metricInterval").toString())); } // validate the optional field `inbound` if (jsonObj.get("inbound") != null && !jsonObj.get("inbound").isJsonNull()) { @@ -394,7 +392,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/BulkPhysicalPort.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/BulkPhysicalPort.java index cbd7f42c..c486898e 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/BulkPhysicalPort.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/BulkPhysicalPort.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.PhysicalPort; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Add to Lag request */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class BulkPhysicalPort { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @@ -176,11 +178,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("data"); + openapiFields = new HashSet(Arrays.asList("data")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -192,7 +193,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!BulkPhysicalPort.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in BulkPhysicalPort is not found in the empty JSON string", BulkPhysicalPort.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in BulkPhysicalPort is not found in the empty JSON string", BulkPhysicalPort.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -201,7 +202,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraydata != null) { // ensure the json data is an array if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); } // validate the optional field `data` (array) @@ -269,7 +270,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/BulkPortRequest.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/BulkPortRequest.java index 046c786f..dc9f1b6f 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/BulkPortRequest.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/BulkPortRequest.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.PortRequest; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Create bulk port request */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class BulkPortRequest { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @@ -176,11 +178,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("data"); + openapiFields = new HashSet(Arrays.asList("data")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -192,7 +193,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!BulkPortRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in BulkPortRequest is not found in the empty JSON string", BulkPortRequest.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in BulkPortRequest is not found in the empty JSON string", BulkPortRequest.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -201,7 +202,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraydata != null) { // ensure the json data is an array if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); } // validate the optional field `data` (array) @@ -269,7 +270,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Change.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Change.java index 80741d36..3548166d 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Change.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Change.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.ConnectionChangeOperation; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Current state of latest connection change */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class Change { public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) @@ -439,19 +441,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("uuid"); - openapiFields.add("type"); - openapiFields.add("status"); - openapiFields.add("createdDateTime"); - openapiFields.add("updatedDateTime"); - openapiFields.add("information"); - openapiFields.add("data"); + openapiFields = new HashSet(Arrays.asList("uuid", "type", "status", "createdDateTime", "updatedDateTime", "information", "data")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("type"); - openapiRequiredFields.add("createdDateTime"); + openapiRequiredFields = new HashSet(Arrays.asList("type", "createdDateTime")); } /** @@ -463,34 +456,34 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!Change.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in Change is not found in the empty JSON string", Change.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in Change is not found in the empty JSON string", Change.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : Change.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } if (!jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the required field `type` TypeEnum.validateJsonElement(jsonObj.get("type")); if ((jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) && !jsonObj.get("status").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); } // validate the optional field `status` if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { StatusEnum.validateJsonElement(jsonObj.get("status")); } if ((jsonObj.get("information") != null && !jsonObj.get("information").isJsonNull()) && !jsonObj.get("information").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `information` to be a primitive type in the JSON string but got `%s`", jsonObj.get("information").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `information` to be a primitive type in the JSON string but got `%s`", jsonObj.get("information").toString())); } // validate the optional field `data` if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { @@ -555,7 +548,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Changelog.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Changelog.java index 6f4222c7..fc69586f 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Changelog.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Changelog.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Change log */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class Changelog { public static final String SERIALIZED_NAME_CREATED_BY = "createdBy"; @SerializedName(SERIALIZED_NAME_CREATED_BY) @@ -452,22 +454,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("createdBy"); - openapiFields.add("createdByFullName"); - openapiFields.add("createdByEmail"); - openapiFields.add("createdDateTime"); - openapiFields.add("updatedBy"); - openapiFields.add("updatedByFullName"); - openapiFields.add("updatedByEmail"); - openapiFields.add("updatedDateTime"); - openapiFields.add("deletedBy"); - openapiFields.add("deletedByFullName"); - openapiFields.add("deletedByEmail"); - openapiFields.add("deletedDateTime"); + openapiFields = new HashSet(Arrays.asList("createdBy", "createdByFullName", "createdByEmail", "createdDateTime", "updatedBy", "updatedByFullName", "updatedByEmail", "updatedDateTime", "deletedBy", "deletedByFullName", "deletedByEmail", "deletedDateTime")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -479,36 +469,36 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!Changelog.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in Changelog is not found in the empty JSON string", Changelog.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in Changelog is not found in the empty JSON string", Changelog.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("createdBy") != null && !jsonObj.get("createdBy").isJsonNull()) && !jsonObj.get("createdBy").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `createdBy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("createdBy").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `createdBy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("createdBy").toString())); } if ((jsonObj.get("createdByFullName") != null && !jsonObj.get("createdByFullName").isJsonNull()) && !jsonObj.get("createdByFullName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `createdByFullName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("createdByFullName").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `createdByFullName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("createdByFullName").toString())); } if ((jsonObj.get("createdByEmail") != null && !jsonObj.get("createdByEmail").isJsonNull()) && !jsonObj.get("createdByEmail").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `createdByEmail` to be a primitive type in the JSON string but got `%s`", jsonObj.get("createdByEmail").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `createdByEmail` to be a primitive type in the JSON string but got `%s`", jsonObj.get("createdByEmail").toString())); } if ((jsonObj.get("updatedBy") != null && !jsonObj.get("updatedBy").isJsonNull()) && !jsonObj.get("updatedBy").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `updatedBy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("updatedBy").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `updatedBy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("updatedBy").toString())); } if ((jsonObj.get("updatedByFullName") != null && !jsonObj.get("updatedByFullName").isJsonNull()) && !jsonObj.get("updatedByFullName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `updatedByFullName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("updatedByFullName").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `updatedByFullName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("updatedByFullName").toString())); } if ((jsonObj.get("updatedByEmail") != null && !jsonObj.get("updatedByEmail").isJsonNull()) && !jsonObj.get("updatedByEmail").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `updatedByEmail` to be a primitive type in the JSON string but got `%s`", jsonObj.get("updatedByEmail").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `updatedByEmail` to be a primitive type in the JSON string but got `%s`", jsonObj.get("updatedByEmail").toString())); } if ((jsonObj.get("deletedBy") != null && !jsonObj.get("deletedBy").isJsonNull()) && !jsonObj.get("deletedBy").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `deletedBy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("deletedBy").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `deletedBy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("deletedBy").toString())); } if ((jsonObj.get("deletedByFullName") != null && !jsonObj.get("deletedByFullName").isJsonNull()) && !jsonObj.get("deletedByFullName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `deletedByFullName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("deletedByFullName").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `deletedByFullName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("deletedByFullName").toString())); } if ((jsonObj.get("deletedByEmail") != null && !jsonObj.get("deletedByEmail").isJsonNull()) && !jsonObj.get("deletedByEmail").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `deletedByEmail` to be a primitive type in the JSON string but got `%s`", jsonObj.get("deletedByEmail").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `deletedByEmail` to be a primitive type in the JSON string but got `%s`", jsonObj.get("deletedByEmail").toString())); } } @@ -569,7 +559,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudEvent.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudEvent.java index 403bb404..1b086d33 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudEvent.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudEvent.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.CloudEventData; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Cloud Event object */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class CloudEvent { public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) @@ -609,28 +611,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("spec"); - openapiFields.add("source"); - openapiFields.add("id"); - openapiFields.add("type"); - openapiFields.add("subject"); - openapiFields.add("time"); - openapiFields.add("dataschema"); - openapiFields.add("datacontenttype"); - openapiFields.add("severitynumber"); - openapiFields.add("severitytext"); - openapiFields.add("equinixalert"); - openapiFields.add("equinixorganization"); - openapiFields.add("equinixproject"); - openapiFields.add("authtype"); - openapiFields.add("authid"); - openapiFields.add("traceparent"); - openapiFields.add("tracestate"); - openapiFields.add("data"); + openapiFields = new HashSet(Arrays.asList("spec", "source", "id", "type", "subject", "time", "dataschema", "datacontenttype", "severitynumber", "severitytext", "equinixalert", "equinixorganization", "equinixproject", "authtype", "authid", "traceparent", "tracestate", "data")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -642,57 +626,57 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CloudEvent.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in CloudEvent is not found in the empty JSON string", CloudEvent.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in CloudEvent is not found in the empty JSON string", CloudEvent.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("spec") != null && !jsonObj.get("spec").isJsonNull()) && !jsonObj.get("spec").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `spec` to be a primitive type in the JSON string but got `%s`", jsonObj.get("spec").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `spec` to be a primitive type in the JSON string but got `%s`", jsonObj.get("spec").toString())); } if ((jsonObj.get("source") != null && !jsonObj.get("source").isJsonNull()) && !jsonObj.get("source").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `source` to be a primitive type in the JSON string but got `%s`", jsonObj.get("source").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `source` to be a primitive type in the JSON string but got `%s`", jsonObj.get("source").toString())); } if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); } if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } if ((jsonObj.get("subject") != null && !jsonObj.get("subject").isJsonNull()) && !jsonObj.get("subject").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `subject` to be a primitive type in the JSON string but got `%s`", jsonObj.get("subject").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `subject` to be a primitive type in the JSON string but got `%s`", jsonObj.get("subject").toString())); } if ((jsonObj.get("dataschema") != null && !jsonObj.get("dataschema").isJsonNull()) && !jsonObj.get("dataschema").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `dataschema` to be a primitive type in the JSON string but got `%s`", jsonObj.get("dataschema").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `dataschema` to be a primitive type in the JSON string but got `%s`", jsonObj.get("dataschema").toString())); } if ((jsonObj.get("datacontenttype") != null && !jsonObj.get("datacontenttype").isJsonNull()) && !jsonObj.get("datacontenttype").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `datacontenttype` to be a primitive type in the JSON string but got `%s`", jsonObj.get("datacontenttype").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `datacontenttype` to be a primitive type in the JSON string but got `%s`", jsonObj.get("datacontenttype").toString())); } if ((jsonObj.get("severitynumber") != null && !jsonObj.get("severitynumber").isJsonNull()) && !jsonObj.get("severitynumber").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `severitynumber` to be a primitive type in the JSON string but got `%s`", jsonObj.get("severitynumber").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `severitynumber` to be a primitive type in the JSON string but got `%s`", jsonObj.get("severitynumber").toString())); } if ((jsonObj.get("severitytext") != null && !jsonObj.get("severitytext").isJsonNull()) && !jsonObj.get("severitytext").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `severitytext` to be a primitive type in the JSON string but got `%s`", jsonObj.get("severitytext").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `severitytext` to be a primitive type in the JSON string but got `%s`", jsonObj.get("severitytext").toString())); } if ((jsonObj.get("equinixalert") != null && !jsonObj.get("equinixalert").isJsonNull()) && !jsonObj.get("equinixalert").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `equinixalert` to be a primitive type in the JSON string but got `%s`", jsonObj.get("equinixalert").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `equinixalert` to be a primitive type in the JSON string but got `%s`", jsonObj.get("equinixalert").toString())); } if ((jsonObj.get("equinixorganization") != null && !jsonObj.get("equinixorganization").isJsonNull()) && !jsonObj.get("equinixorganization").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `equinixorganization` to be a primitive type in the JSON string but got `%s`", jsonObj.get("equinixorganization").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `equinixorganization` to be a primitive type in the JSON string but got `%s`", jsonObj.get("equinixorganization").toString())); } if ((jsonObj.get("equinixproject") != null && !jsonObj.get("equinixproject").isJsonNull()) && !jsonObj.get("equinixproject").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `equinixproject` to be a primitive type in the JSON string but got `%s`", jsonObj.get("equinixproject").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `equinixproject` to be a primitive type in the JSON string but got `%s`", jsonObj.get("equinixproject").toString())); } if ((jsonObj.get("authtype") != null && !jsonObj.get("authtype").isJsonNull()) && !jsonObj.get("authtype").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `authtype` to be a primitive type in the JSON string but got `%s`", jsonObj.get("authtype").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `authtype` to be a primitive type in the JSON string but got `%s`", jsonObj.get("authtype").toString())); } if ((jsonObj.get("authid") != null && !jsonObj.get("authid").isJsonNull()) && !jsonObj.get("authid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `authid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("authid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `authid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("authid").toString())); } if ((jsonObj.get("traceparent") != null && !jsonObj.get("traceparent").isJsonNull()) && !jsonObj.get("traceparent").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `traceparent` to be a primitive type in the JSON string but got `%s`", jsonObj.get("traceparent").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `traceparent` to be a primitive type in the JSON string but got `%s`", jsonObj.get("traceparent").toString())); } if ((jsonObj.get("tracestate") != null && !jsonObj.get("tracestate").isJsonNull()) && !jsonObj.get("tracestate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `tracestate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("tracestate").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `tracestate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("tracestate").toString())); } // validate the optional field `data` if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { @@ -757,7 +741,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudEventAssetType.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudEventAssetType.java index f8feafe6..80de6922 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudEventAssetType.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudEventAssetType.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudEventData.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudEventData.java index 1875d102..34e5d238 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudEventData.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudEventData.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.AuthContext; import com.equinix.sdk.fabricv4.model.ResourceData; import com.google.gson.TypeAdapter; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * CloudEventData */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class CloudEventData { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @@ -219,13 +221,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("message"); - openapiFields.add("resource"); - openapiFields.add("auth"); + openapiFields = new HashSet(Arrays.asList("message", "resource", "auth")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -237,12 +236,12 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CloudEventData.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in CloudEventData is not found in the empty JSON string", CloudEventData.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in CloudEventData is not found in the empty JSON string", CloudEventData.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); } // validate the optional field `resource` if (jsonObj.get("resource") != null && !jsonObj.get("resource").isJsonNull()) { @@ -311,7 +310,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudEventFilters.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudEventFilters.java index d13931bf..2ece01f3 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudEventFilters.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudEventFilters.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.CloudEventSimpleExpression; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * CloudEventFilters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class CloudEventFilters { public static final String SERIALIZED_NAME_AND = "and"; @SerializedName(SERIALIZED_NAME_AND) @@ -176,11 +178,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("and"); + openapiFields = new HashSet(Arrays.asList("and")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -192,7 +193,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CloudEventFilters.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in CloudEventFilters is not found in the empty JSON string", CloudEventFilters.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in CloudEventFilters is not found in the empty JSON string", CloudEventFilters.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -201,7 +202,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayand != null) { // ensure the json data is an array if (!jsonObj.get("and").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `and` to be an array in the JSON string but got `%s`", jsonObj.get("and").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `and` to be an array in the JSON string but got `%s`", jsonObj.get("and").toString())); } // validate the optional field `and` (array) @@ -269,7 +270,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudEventSearchRequest.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudEventSearchRequest.java index e68a8983..1d8beddc 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudEventSearchRequest.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudEventSearchRequest.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.CloudEventFilters; import com.equinix.sdk.fabricv4.model.PaginationRequest; import com.google.gson.TypeAdapter; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Search requests containing criteria */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class CloudEventSearchRequest { public static final String SERIALIZED_NAME_FILTER = "filter"; @SerializedName(SERIALIZED_NAME_FILTER) @@ -193,13 +195,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("filter"); - openapiFields.add("pagination"); + openapiFields = new HashSet(Arrays.asList("filter", "pagination")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("filter"); + openapiRequiredFields = new HashSet(Arrays.asList("filter")); } /** @@ -211,14 +210,14 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CloudEventSearchRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in CloudEventSearchRequest is not found in the empty JSON string", CloudEventSearchRequest.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in CloudEventSearchRequest is not found in the empty JSON string", CloudEventSearchRequest.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : CloudEventSearchRequest.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -287,7 +286,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudEventSimpleExpression.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudEventSimpleExpression.java index dcb1e5a7..9d9ac188 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudEventSimpleExpression.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudEventSimpleExpression.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * CloudEventSimpleExpression */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class CloudEventSimpleExpression { public static final String SERIALIZED_NAME_PROPERTY = "property"; @SerializedName(SERIALIZED_NAME_PROPERTY) @@ -227,13 +229,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("property"); - openapiFields.add("operator"); - openapiFields.add("values"); + openapiFields = new HashSet(Arrays.asList("property", "operator", "values")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -245,19 +244,19 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CloudEventSimpleExpression.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in CloudEventSimpleExpression is not found in the empty JSON string", CloudEventSimpleExpression.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in CloudEventSimpleExpression is not found in the empty JSON string", CloudEventSimpleExpression.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("property") != null && !jsonObj.get("property").isJsonNull()) && !jsonObj.get("property").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `property` to be a primitive type in the JSON string but got `%s`", jsonObj.get("property").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `property` to be a primitive type in the JSON string but got `%s`", jsonObj.get("property").toString())); } if ((jsonObj.get("operator") != null && !jsonObj.get("operator").isJsonNull()) && !jsonObj.get("operator").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `operator` to be a primitive type in the JSON string but got `%s`", jsonObj.get("operator").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `operator` to be a primitive type in the JSON string but got `%s`", jsonObj.get("operator").toString())); } // ensure the optional json data is an array if present if (jsonObj.get("values") != null && !jsonObj.get("values").isJsonNull() && !jsonObj.get("values").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); } } @@ -318,7 +317,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouter.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouter.java index b0b9db71..d253a8fb 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouter.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouter.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Changelog; import com.equinix.sdk.fabricv4.model.CloudRouterAccessPointState; import com.equinix.sdk.fabricv4.model.CloudRouterChange; @@ -54,13 +55,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Fabric Cloud Router object */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class CloudRouter { public static final String SERIALIZED_NAME_HREF = "href"; @SerializedName(SERIALIZED_NAME_HREF) @@ -627,19 +629,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("type"); - openapiFields.add("name"); - openapiFields.add("location"); - openapiFields.add("package"); - openapiFields.add("order"); - openapiFields.add("project"); - openapiFields.add("account"); - openapiFields.add("notifications"); - openapiFields.add("marketplaceSubscription"); + openapiFields = new HashSet(Arrays.asList("type", "name", "location", "package", "order", "project", "account", "notifications", "marketplaceSubscription")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -651,18 +644,18 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CloudRouter.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in CloudRouter is not found in the empty JSON string", CloudRouter.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in CloudRouter is not found in the empty JSON string", CloudRouter.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } // validate the optional field `state` if (jsonObj.get("state") != null && !jsonObj.get("state").isJsonNull()) { @@ -681,7 +674,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti CloudRouterChange.validateJsonElement(jsonObj.get("change")); } if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the optional field `type` if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { @@ -712,7 +705,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraynotifications != null) { // ensure the json data is an array if (!jsonObj.get("notifications").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `notifications` to be an array in the JSON string but got `%s`", jsonObj.get("notifications").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `notifications` to be an array in the JSON string but got `%s`", jsonObj.get("notifications").toString())); } // validate the optional field `notifications` (array) @@ -780,7 +773,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterAccessPointState.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterAccessPointState.java index 5c3962d7..07c2f6ae 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterAccessPointState.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterAccessPointState.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterActionRequest.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterActionRequest.java index 46c3535f..16772eda 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterActionRequest.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterActionRequest.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.CloudRouterActionType; import com.equinix.sdk.fabricv4.model.RouterActionsConnection; import com.google.gson.TypeAdapter; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Cloud router action request */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class CloudRouterActionRequest { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -193,13 +195,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("type"); - openapiFields.add("connection"); + openapiFields = new HashSet(Arrays.asList("type", "connection")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("type"); + openapiRequiredFields = new HashSet(Arrays.asList("type")); } /** @@ -211,14 +210,14 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CloudRouterActionRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in CloudRouterActionRequest is not found in the empty JSON string", CloudRouterActionRequest.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in CloudRouterActionRequest is not found in the empty JSON string", CloudRouterActionRequest.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : CloudRouterActionRequest.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -287,7 +286,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterActionResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterActionResponse.java index 0fcd6a79..d4a3e389 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterActionResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterActionResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Changelog; import com.equinix.sdk.fabricv4.model.CloudRouterActionState; import com.equinix.sdk.fabricv4.model.CloudRouterActionType; @@ -46,13 +47,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Cloud router actions response object */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class CloudRouterActionResponse { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -353,22 +355,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("type"); - openapiFields.add("uuid"); - openapiFields.add("description"); - openapiFields.add("state"); - openapiFields.add("changeLog"); - openapiFields.add("href"); - openapiFields.add("connection"); - openapiFields.add("router"); + openapiFields = new HashSet(Arrays.asList("type", "uuid", "description", "state", "changeLog", "href", "connection", "router")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("type"); - openapiRequiredFields.add("uuid"); - openapiRequiredFields.add("state"); - openapiRequiredFields.add("changeLog"); + openapiRequiredFields = new HashSet(Arrays.asList("type", "uuid", "state", "changeLog")); } /** @@ -380,31 +370,31 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CloudRouterActionResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in CloudRouterActionResponse is not found in the empty JSON string", CloudRouterActionResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in CloudRouterActionResponse is not found in the empty JSON string", CloudRouterActionResponse.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : CloudRouterActionResponse.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the required field `type` CloudRouterActionType.validateJsonElement(jsonObj.get("type")); if (!jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); } // validate the required field `state` CloudRouterActionState.validateJsonElement(jsonObj.get("state")); // validate the required field `changeLog` Changelog.validateJsonElement(jsonObj.get("changeLog")); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } // validate the optional field `connection` if (jsonObj.get("connection") != null && !jsonObj.get("connection").isJsonNull()) { @@ -473,7 +463,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterActionState.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterActionState.java index c9976566..6520cbfb 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterActionState.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterActionState.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterActionType.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterActionType.java index 4543a9f6..2a27af81 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterActionType.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterActionType.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterActionsSearchExpression.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterActionsSearchExpression.java index 16a3e1b0..c2401dcd 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterActionsSearchExpression.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterActionsSearchExpression.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * CloudRouterActionsSearchExpression */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class CloudRouterActionsSearchExpression { public static final String SERIALIZED_NAME_PROPERTY = "property"; @SerializedName(SERIALIZED_NAME_PROPERTY) @@ -227,13 +229,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("property"); - openapiFields.add("operator"); - openapiFields.add("values"); + openapiFields = new HashSet(Arrays.asList("property", "operator", "values")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -245,19 +244,19 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CloudRouterActionsSearchExpression.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in CloudRouterActionsSearchExpression is not found in the empty JSON string", CloudRouterActionsSearchExpression.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in CloudRouterActionsSearchExpression is not found in the empty JSON string", CloudRouterActionsSearchExpression.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("property") != null && !jsonObj.get("property").isJsonNull()) && !jsonObj.get("property").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `property` to be a primitive type in the JSON string but got `%s`", jsonObj.get("property").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `property` to be a primitive type in the JSON string but got `%s`", jsonObj.get("property").toString())); } if ((jsonObj.get("operator") != null && !jsonObj.get("operator").isJsonNull()) && !jsonObj.get("operator").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `operator` to be a primitive type in the JSON string but got `%s`", jsonObj.get("operator").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `operator` to be a primitive type in the JSON string but got `%s`", jsonObj.get("operator").toString())); } // ensure the optional json data is an array if present if (jsonObj.get("values") != null && !jsonObj.get("values").isJsonNull() && !jsonObj.get("values").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); } } @@ -318,7 +317,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterActionsSearchFilter.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterActionsSearchFilter.java index bdfdc2b3..8b97a9fe 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterActionsSearchFilter.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterActionsSearchFilter.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.CloudRouterActionsSearchExpression; import com.equinix.sdk.fabricv4.model.CloudRouterActionsSearchOrFilter; import com.google.gson.TypeAdapter; @@ -36,6 +37,7 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import java.util.Locale; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -59,7 +61,7 @@ import com.equinix.sdk.fabricv4.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class CloudRouterActionsSearchFilter extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(CloudRouterActionsSearchFilter.class.getName()); @@ -115,7 +117,7 @@ public CloudRouterActionsSearchFilter read(JsonReader in) throws IOException { return ret; } catch (Exception e) { // deserialization failed, continue - errorMessages.add(String.format("Deserialization for CloudRouterActionsSearchExpression failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for CloudRouterActionsSearchExpression failed with `%s`.", e.getMessage())); log.log(Level.FINER, "Input data does not match schema 'CloudRouterActionsSearchExpression'", e); } // deserialize CloudRouterActionsSearchOrFilter @@ -128,11 +130,11 @@ public CloudRouterActionsSearchFilter read(JsonReader in) throws IOException { return ret; } catch (Exception e) { // deserialization failed, continue - errorMessages.add(String.format("Deserialization for CloudRouterActionsSearchOrFilter failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for CloudRouterActionsSearchOrFilter failed with `%s`.", e.getMessage())); log.log(Level.FINER, "Input data does not match schema 'CloudRouterActionsSearchOrFilter'", e); } - throw new IOException(String.format("Failed deserialization for CloudRouterActionsSearchFilter: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); + throw new IOException(String.format(Locale.ROOT, "Failed deserialization for CloudRouterActionsSearchFilter: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); } }.nullSafe(); } @@ -230,7 +232,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti CloudRouterActionsSearchExpression.validateJsonElement(jsonElement); return; } catch (Exception e) { - errorMessages.add(String.format("Deserialization for CloudRouterActionsSearchExpression failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for CloudRouterActionsSearchExpression failed with `%s`.", e.getMessage())); // continue to the next one } // validate the json string with CloudRouterActionsSearchOrFilter @@ -238,10 +240,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti CloudRouterActionsSearchOrFilter.validateJsonElement(jsonElement); return; } catch (Exception e) { - errorMessages.add(String.format("Deserialization for CloudRouterActionsSearchOrFilter failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for CloudRouterActionsSearchOrFilter failed with `%s`.", e.getMessage())); // continue to the next one } - throw new IOException(String.format("The JSON string is invalid for CloudRouterActionsSearchFilter with anyOf schemas: CloudRouterActionsSearchExpression, CloudRouterActionsSearchOrFilter. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); + throw new IOException(String.format(Locale.ROOT, "The JSON string is invalid for CloudRouterActionsSearchFilter with anyOf schemas: CloudRouterActionsSearchExpression, CloudRouterActionsSearchOrFilter. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); } /** diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterActionsSearchFilters.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterActionsSearchFilters.java index a6c44987..5cd0f589 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterActionsSearchFilters.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterActionsSearchFilters.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.CloudRouterActionsSearchFilter; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * CloudRouterActionsSearchFilters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class CloudRouterActionsSearchFilters { public static final String SERIALIZED_NAME_AND = "and"; @SerializedName(SERIALIZED_NAME_AND) @@ -176,11 +178,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("and"); + openapiFields = new HashSet(Arrays.asList("and")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -192,7 +193,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CloudRouterActionsSearchFilters.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in CloudRouterActionsSearchFilters is not found in the empty JSON string", CloudRouterActionsSearchFilters.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in CloudRouterActionsSearchFilters is not found in the empty JSON string", CloudRouterActionsSearchFilters.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -201,7 +202,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayand != null) { // ensure the json data is an array if (!jsonObj.get("and").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `and` to be an array in the JSON string but got `%s`", jsonObj.get("and").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `and` to be an array in the JSON string but got `%s`", jsonObj.get("and").toString())); } // validate the optional field `and` (array) @@ -269,7 +270,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterActionsSearchOrFilter.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterActionsSearchOrFilter.java index 7b2107c8..76898bc8 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterActionsSearchOrFilter.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterActionsSearchOrFilter.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.CloudRouterActionsSearchExpression; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * CloudRouterActionsSearchOrFilter */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class CloudRouterActionsSearchOrFilter { public static final String SERIALIZED_NAME_OR = "or"; @SerializedName(SERIALIZED_NAME_OR) @@ -176,11 +178,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("or"); + openapiFields = new HashSet(Arrays.asList("or")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -192,7 +193,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CloudRouterActionsSearchOrFilter.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in CloudRouterActionsSearchOrFilter is not found in the empty JSON string", CloudRouterActionsSearchOrFilter.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in CloudRouterActionsSearchOrFilter is not found in the empty JSON string", CloudRouterActionsSearchOrFilter.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -201,7 +202,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayor != null) { // ensure the json data is an array if (!jsonObj.get("or").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `or` to be an array in the JSON string but got `%s`", jsonObj.get("or").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `or` to be an array in the JSON string but got `%s`", jsonObj.get("or").toString())); } // validate the optional field `or` (array) @@ -269,7 +270,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterActionsSearchRequest.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterActionsSearchRequest.java index 68b251f0..7591fec6 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterActionsSearchRequest.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterActionsSearchRequest.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.CloudRouterActionsSearchFilters; import com.equinix.sdk.fabricv4.model.CloudRouterActionsSearchSortCriteria; import com.equinix.sdk.fabricv4.model.PaginationRequest; @@ -45,13 +46,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Search requests containing criteria */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class CloudRouterActionsSearchRequest { public static final String SERIALIZED_NAME_FILTER = "filter"; @SerializedName(SERIALIZED_NAME_FILTER) @@ -230,13 +232,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("filter"); - openapiFields.add("pagination"); - openapiFields.add("sort"); + openapiFields = new HashSet(Arrays.asList("filter", "pagination", "sort")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -248,7 +247,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CloudRouterActionsSearchRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in CloudRouterActionsSearchRequest is not found in the empty JSON string", CloudRouterActionsSearchRequest.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in CloudRouterActionsSearchRequest is not found in the empty JSON string", CloudRouterActionsSearchRequest.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -265,7 +264,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraysort != null) { // ensure the json data is an array if (!jsonObj.get("sort").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `sort` to be an array in the JSON string but got `%s`", jsonObj.get("sort").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `sort` to be an array in the JSON string but got `%s`", jsonObj.get("sort").toString())); } // validate the optional field `sort` (array) @@ -333,7 +332,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterActionsSearchResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterActionsSearchResponse.java index ea6d16ff..d86be3f2 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterActionsSearchResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterActionsSearchResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.CloudRouterActionResponse; import com.equinix.sdk.fabricv4.model.Pagination; import com.google.gson.TypeAdapter; @@ -44,13 +45,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * CloudRouterActionsSearchResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class CloudRouterActionsSearchResponse { public static final String SERIALIZED_NAME_PAGINATION = "pagination"; @SerializedName(SERIALIZED_NAME_PAGINATION) @@ -203,12 +205,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("pagination"); - openapiFields.add("data"); + openapiFields = new HashSet(Arrays.asList("pagination", "data")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -220,7 +220,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CloudRouterActionsSearchResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in CloudRouterActionsSearchResponse is not found in the empty JSON string", CloudRouterActionsSearchResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in CloudRouterActionsSearchResponse is not found in the empty JSON string", CloudRouterActionsSearchResponse.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -233,7 +233,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraydata != null) { // ensure the json data is an array if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); } // validate the optional field `data` (array) @@ -301,7 +301,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterActionsSearchSortBy.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterActionsSearchSortBy.java index 5fca00cf..e7b226a9 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterActionsSearchSortBy.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterActionsSearchSortBy.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterActionsSearchSortCriteria.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterActionsSearchSortCriteria.java index a4ec40ee..1e24fea9 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterActionsSearchSortCriteria.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterActionsSearchSortCriteria.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.CloudRouterActionsSearchSortBy; import com.equinix.sdk.fabricv4.model.CloudRouterActionsSearchSortDirection; import com.google.gson.TypeAdapter; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * CloudRouterActionsSearchSortCriteria */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class CloudRouterActionsSearchSortCriteria { public static final String SERIALIZED_NAME_DIRECTION = "direction"; @SerializedName(SERIALIZED_NAME_DIRECTION) @@ -193,12 +195,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("direction"); - openapiFields.add("property"); + openapiFields = new HashSet(Arrays.asList("direction", "property")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -210,7 +210,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CloudRouterActionsSearchSortCriteria.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in CloudRouterActionsSearchSortCriteria is not found in the empty JSON string", CloudRouterActionsSearchSortCriteria.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in CloudRouterActionsSearchSortCriteria is not found in the empty JSON string", CloudRouterActionsSearchSortCriteria.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -281,7 +281,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterActionsSearchSortDirection.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterActionsSearchSortDirection.java index 161fa27c..024b64da 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterActionsSearchSortDirection.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterActionsSearchSortDirection.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterChange.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterChange.java index a7cbf191..c02498d7 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterChange.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterChange.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.CloudRouterChangeOperation; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -44,13 +45,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Current state of latest CloudRouter change */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class CloudRouterChange { public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) @@ -437,19 +439,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("uuid"); - openapiFields.add("type"); - openapiFields.add("status"); - openapiFields.add("createdDateTime"); - openapiFields.add("updatedDateTime"); - openapiFields.add("information"); - openapiFields.add("data"); + openapiFields = new HashSet(Arrays.asList("uuid", "type", "status", "createdDateTime", "updatedDateTime", "information", "data")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("type"); - openapiRequiredFields.add("updatedDateTime"); + openapiRequiredFields = new HashSet(Arrays.asList("type", "updatedDateTime")); } /** @@ -461,41 +454,41 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CloudRouterChange.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in CloudRouterChange is not found in the empty JSON string", CloudRouterChange.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in CloudRouterChange is not found in the empty JSON string", CloudRouterChange.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : CloudRouterChange.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } if (!jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the required field `type` TypeEnum.validateJsonElement(jsonObj.get("type")); if ((jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) && !jsonObj.get("status").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); } // validate the optional field `status` if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { StatusEnum.validateJsonElement(jsonObj.get("status")); } if ((jsonObj.get("information") != null && !jsonObj.get("information").isJsonNull()) && !jsonObj.get("information").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `information` to be a primitive type in the JSON string but got `%s`", jsonObj.get("information").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `information` to be a primitive type in the JSON string but got `%s`", jsonObj.get("information").toString())); } if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { JsonArray jsonArraydata = jsonObj.getAsJsonArray("data"); if (jsonArraydata != null) { // ensure the json data is an array if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); } // validate the optional field `data` (array) @@ -563,7 +556,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterChangeOperation.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterChangeOperation.java index 980bf8de..8369c4df 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterChangeOperation.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterChangeOperation.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Fabric Cloud Router change operation data */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class CloudRouterChangeOperation { /** * Handy shortcut for operation name @@ -271,16 +273,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("op"); - openapiFields.add("path"); - openapiFields.add("value"); + openapiFields = new HashSet(Arrays.asList("op", "path", "value")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("op"); - openapiRequiredFields.add("path"); - openapiRequiredFields.add("value"); + openapiRequiredFields = new HashSet(Arrays.asList("op", "path", "value")); } /** @@ -292,24 +288,24 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CloudRouterChangeOperation.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in CloudRouterChangeOperation is not found in the empty JSON string", CloudRouterChangeOperation.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in CloudRouterChangeOperation is not found in the empty JSON string", CloudRouterChangeOperation.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : CloudRouterChangeOperation.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("op").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `op` to be a primitive type in the JSON string but got `%s`", jsonObj.get("op").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `op` to be a primitive type in the JSON string but got `%s`", jsonObj.get("op").toString())); } // validate the required field `op` OpEnum.validateJsonElement(jsonObj.get("op")); if (!jsonObj.get("path").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); } } @@ -370,7 +366,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommand.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommand.java index 1ad951d1..0b16bf2e 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommand.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommand.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Changelog; import com.equinix.sdk.fabricv4.model.CloudRouterCommandRequestResponse; import com.equinix.sdk.fabricv4.model.CloudRouterCommandResponse; @@ -47,13 +48,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Get Fabric Cloud Router Command response object */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class CloudRouterCommand { public static final String SERIALIZED_NAME_HREF = "href"; @SerializedName(SERIALIZED_NAME_HREF) @@ -406,20 +408,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("href"); - openapiFields.add("type"); - openapiFields.add("uuid"); - openapiFields.add("name"); - openapiFields.add("description"); - openapiFields.add("state"); - openapiFields.add("project"); - openapiFields.add("request"); - openapiFields.add("response"); - openapiFields.add("changeLog"); + openapiFields = new HashSet(Arrays.asList("href", "type", "uuid", "name", "description", "state", "project", "request", "response", "changeLog")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -431,25 +423,25 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CloudRouterCommand.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in CloudRouterCommand is not found in the empty JSON string", CloudRouterCommand.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in CloudRouterCommand is not found in the empty JSON string", CloudRouterCommand.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } // validate the optional field `type` if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { CloudRouterCommandType.validateJsonElement(jsonObj.get("type")); } if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); } // validate the optional field `state` if (jsonObj.get("state") != null && !jsonObj.get("state").isJsonNull()) { @@ -530,7 +522,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandPingResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandPingResponse.java index b8d3e278..bd856c3d 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandPingResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandPingResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Error; import com.equinix.sdk.fabricv4.model.OutputStructuredPing; import com.google.gson.TypeAdapter; @@ -44,13 +45,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * CloudRouterCommandPingResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class CloudRouterCommandPingResponse { public static final String SERIALIZED_NAME_OUTPUT = "output"; @SerializedName(SERIALIZED_NAME_OUTPUT) @@ -229,13 +231,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("output"); - openapiFields.add("outputStructuredPing"); - openapiFields.add("errors"); + openapiFields = new HashSet(Arrays.asList("output", "outputStructuredPing", "errors")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -247,12 +246,12 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CloudRouterCommandPingResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in CloudRouterCommandPingResponse is not found in the empty JSON string", CloudRouterCommandPingResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in CloudRouterCommandPingResponse is not found in the empty JSON string", CloudRouterCommandPingResponse.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("output") != null && !jsonObj.get("output").isJsonNull()) && !jsonObj.get("output").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `output` to be a primitive type in the JSON string but got `%s`", jsonObj.get("output").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `output` to be a primitive type in the JSON string but got `%s`", jsonObj.get("output").toString())); } // validate the optional field `outputStructuredPing` if (jsonObj.get("outputStructuredPing") != null && !jsonObj.get("outputStructuredPing").isJsonNull()) { @@ -263,7 +262,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayerrors != null) { // ensure the json data is an array if (!jsonObj.get("errors").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `errors` to be an array in the JSON string but got `%s`", jsonObj.get("errors").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `errors` to be an array in the JSON string but got `%s`", jsonObj.get("errors").toString())); } // validate the optional field `errors` (array) @@ -331,7 +330,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandPostRequest.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandPostRequest.java index 9acfe4da..eea49693 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandPostRequest.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandPostRequest.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.CloudRouterCommandRequestPayload; import com.equinix.sdk.fabricv4.model.CloudRouterCommandType; import com.equinix.sdk.fabricv4.model.Project; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Execute Cloud Router Command Request */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class CloudRouterCommandPostRequest { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -272,18 +274,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("type"); - openapiFields.add("name"); - openapiFields.add("description"); - openapiFields.add("project"); - openapiFields.add("request"); + openapiFields = new HashSet(Arrays.asList("type", "name", "description", "project", "request")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("type"); - openapiRequiredFields.add("project"); - openapiRequiredFields.add("request"); + openapiRequiredFields = new HashSet(Arrays.asList("type", "project", "request")); } /** @@ -295,24 +289,24 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CloudRouterCommandPostRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in CloudRouterCommandPostRequest is not found in the empty JSON string", CloudRouterCommandPostRequest.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in CloudRouterCommandPostRequest is not found in the empty JSON string", CloudRouterCommandPostRequest.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : CloudRouterCommandPostRequest.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the required field `type` CloudRouterCommandType.validateJsonElement(jsonObj.get("type")); if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); } // validate the required field `project` Project.validateJsonElement(jsonObj.get("project")); @@ -377,7 +371,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandRequestConnection.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandRequestConnection.java index 8ebdc173..1398f861 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandRequestConnection.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandRequestConnection.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Connection object for Cloud Router Command */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class CloudRouterCommandRequestConnection { public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) @@ -165,12 +167,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("uuid"); + openapiFields = new HashSet(Arrays.asList("uuid")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("uuid"); + openapiRequiredFields = new HashSet(Arrays.asList("uuid")); } /** @@ -182,19 +182,19 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CloudRouterCommandRequestConnection.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in CloudRouterCommandRequestConnection is not found in the empty JSON string", CloudRouterCommandRequestConnection.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in CloudRouterCommandRequestConnection is not found in the empty JSON string", CloudRouterCommandRequestConnection.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : CloudRouterCommandRequestConnection.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } } @@ -255,7 +255,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandRequestPayload.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandRequestPayload.java index 3cecde55..63d9922c 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandRequestPayload.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandRequestPayload.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.CloudRouterCommandRequestConnection; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Fabric Cloud Router Command Request */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class CloudRouterCommandRequestPayload { public static final String SERIALIZED_NAME_DESTINATION = "destination"; @SerializedName(SERIALIZED_NAME_DESTINATION) @@ -299,18 +301,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("destination"); - openapiFields.add("sourceConnection"); - openapiFields.add("timeout"); - openapiFields.add("dataBytes"); - openapiFields.add("probes"); - openapiFields.add("hopsMax"); + openapiFields = new HashSet(Arrays.asList("destination", "sourceConnection", "timeout", "dataBytes", "probes", "hopsMax")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("destination"); - openapiRequiredFields.add("sourceConnection"); + openapiRequiredFields = new HashSet(Arrays.asList("destination", "sourceConnection")); } /** @@ -322,19 +316,19 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CloudRouterCommandRequestPayload.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in CloudRouterCommandRequestPayload is not found in the empty JSON string", CloudRouterCommandRequestPayload.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in CloudRouterCommandRequestPayload is not found in the empty JSON string", CloudRouterCommandRequestPayload.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : CloudRouterCommandRequestPayload.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("destination").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `destination` to be a primitive type in the JSON string but got `%s`", jsonObj.get("destination").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `destination` to be a primitive type in the JSON string but got `%s`", jsonObj.get("destination").toString())); } // validate the required field `sourceConnection` CloudRouterCommandRequestConnection.validateJsonElement(jsonObj.get("sourceConnection")); @@ -397,7 +391,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandRequestResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandRequestResponse.java index c75485e2..aa1ed337 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandRequestResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandRequestResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.CloudRouterCommandRequestConnection; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Fabric Cloud Router Command Request */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class CloudRouterCommandRequestResponse { public static final String SERIALIZED_NAME_DESTINATION = "destination"; @SerializedName(SERIALIZED_NAME_DESTINATION) @@ -351,18 +353,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("destination"); - openapiFields.add("sourceConnection"); - openapiFields.add("timeout"); - openapiFields.add("dataBytes"); - openapiFields.add("interval"); - openapiFields.add("count"); - openapiFields.add("probes"); - openapiFields.add("hopsMax"); + openapiFields = new HashSet(Arrays.asList("destination", "sourceConnection", "timeout", "dataBytes", "interval", "count", "probes", "hopsMax")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -374,12 +368,12 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CloudRouterCommandRequestResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in CloudRouterCommandRequestResponse is not found in the empty JSON string", CloudRouterCommandRequestResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in CloudRouterCommandRequestResponse is not found in the empty JSON string", CloudRouterCommandRequestResponse.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("destination") != null && !jsonObj.get("destination").isJsonNull()) && !jsonObj.get("destination").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `destination` to be a primitive type in the JSON string but got `%s`", jsonObj.get("destination").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `destination` to be a primitive type in the JSON string but got `%s`", jsonObj.get("destination").toString())); } // validate the optional field `sourceConnection` if (jsonObj.get("sourceConnection") != null && !jsonObj.get("sourceConnection").isJsonNull()) { @@ -444,7 +438,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandResponse.java index be363b1c..b842ea84 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.CloudRouterCommandPingResponse; import com.equinix.sdk.fabricv4.model.CloudRouterCommandTracerouteResponse; import com.equinix.sdk.fabricv4.model.Error; @@ -39,6 +40,7 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import java.util.Locale; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -62,7 +64,7 @@ import com.equinix.sdk.fabricv4.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class CloudRouterCommandResponse extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(CloudRouterCommandResponse.class.getName()); @@ -118,7 +120,7 @@ public CloudRouterCommandResponse read(JsonReader in) throws IOException { log.log(Level.FINER, "Input data matches schema 'CloudRouterCommandPingResponse'"); } catch (Exception e) { // deserialization failed, continue - errorMessages.add(String.format("Deserialization for CloudRouterCommandPingResponse failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for CloudRouterCommandPingResponse failed with `%s`.", e.getMessage())); log.log(Level.FINER, "Input data does not match schema 'CloudRouterCommandPingResponse'", e); } // deserialize CloudRouterCommandTracerouteResponse @@ -130,7 +132,7 @@ public CloudRouterCommandResponse read(JsonReader in) throws IOException { log.log(Level.FINER, "Input data matches schema 'CloudRouterCommandTracerouteResponse'"); } catch (Exception e) { // deserialization failed, continue - errorMessages.add(String.format("Deserialization for CloudRouterCommandTracerouteResponse failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for CloudRouterCommandTracerouteResponse failed with `%s`.", e.getMessage())); log.log(Level.FINER, "Input data does not match schema 'CloudRouterCommandTracerouteResponse'", e); } @@ -140,7 +142,7 @@ public CloudRouterCommandResponse read(JsonReader in) throws IOException { return ret; } - throw new IOException(String.format("Failed deserialization for CloudRouterCommandResponse: %d classes match result, expected 1. Detailed failure message for oneOf schemas: %s. JSON: %s", match, errorMessages, jsonElement.toString())); + throw new IOException(String.format(Locale.ROOT, "Failed deserialization for CloudRouterCommandResponse: %d classes match result, expected 1. Detailed failure message for oneOf schemas: %s. JSON: %s", match, errorMessages, jsonElement.toString())); } }.nullSafe(); } @@ -239,7 +241,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti CloudRouterCommandPingResponse.validateJsonElement(jsonElement); validCount++; } catch (Exception e) { - errorMessages.add(String.format("Deserialization for CloudRouterCommandPingResponse failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for CloudRouterCommandPingResponse failed with `%s`.", e.getMessage())); // continue to the next one } // validate the json string with CloudRouterCommandTracerouteResponse @@ -247,11 +249,11 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti CloudRouterCommandTracerouteResponse.validateJsonElement(jsonElement); validCount++; } catch (Exception e) { - errorMessages.add(String.format("Deserialization for CloudRouterCommandTracerouteResponse failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for CloudRouterCommandTracerouteResponse failed with `%s`.", e.getMessage())); // continue to the next one } if (validCount != 1) { - throw new IOException(String.format("The JSON string is invalid for CloudRouterCommandResponse with oneOf schemas: CloudRouterCommandPingResponse, CloudRouterCommandTracerouteResponse. %d class(es) match the result, expected 1. Detailed failure message for oneOf schemas: %s. JSON: %s", validCount, errorMessages, jsonElement.toString())); + throw new IOException(String.format(Locale.ROOT, "The JSON string is invalid for CloudRouterCommandResponse with oneOf schemas: CloudRouterCommandPingResponse, CloudRouterCommandTracerouteResponse. %d class(es) match the result, expected 1. Detailed failure message for oneOf schemas: %s. JSON: %s", validCount, errorMessages, jsonElement.toString())); } } diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandSearchExpression.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandSearchExpression.java index e707ca3f..fa2554ff 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandSearchExpression.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandSearchExpression.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * CloudRouterCommandSearchExpression */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class CloudRouterCommandSearchExpression { public static final String SERIALIZED_NAME_PROPERTY = "property"; @SerializedName(SERIALIZED_NAME_PROPERTY) @@ -227,13 +229,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("property"); - openapiFields.add("operator"); - openapiFields.add("values"); + openapiFields = new HashSet(Arrays.asList("property", "operator", "values")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -245,19 +244,19 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CloudRouterCommandSearchExpression.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in CloudRouterCommandSearchExpression is not found in the empty JSON string", CloudRouterCommandSearchExpression.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in CloudRouterCommandSearchExpression is not found in the empty JSON string", CloudRouterCommandSearchExpression.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("property") != null && !jsonObj.get("property").isJsonNull()) && !jsonObj.get("property").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `property` to be a primitive type in the JSON string but got `%s`", jsonObj.get("property").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `property` to be a primitive type in the JSON string but got `%s`", jsonObj.get("property").toString())); } if ((jsonObj.get("operator") != null && !jsonObj.get("operator").isJsonNull()) && !jsonObj.get("operator").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `operator` to be a primitive type in the JSON string but got `%s`", jsonObj.get("operator").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `operator` to be a primitive type in the JSON string but got `%s`", jsonObj.get("operator").toString())); } // ensure the optional json data is an array if present if (jsonObj.get("values") != null && !jsonObj.get("values").isJsonNull() && !jsonObj.get("values").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); } } @@ -318,7 +317,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandSearchFilter.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandSearchFilter.java index d79491a4..ebba3d87 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandSearchFilter.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandSearchFilter.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.CloudRouterCommandSearchExpression; import com.equinix.sdk.fabricv4.model.CloudRouterCommandSearchOrFilter; import com.google.gson.TypeAdapter; @@ -36,6 +37,7 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import java.util.Locale; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -59,7 +61,7 @@ import com.equinix.sdk.fabricv4.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class CloudRouterCommandSearchFilter extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(CloudRouterCommandSearchFilter.class.getName()); @@ -115,7 +117,7 @@ public CloudRouterCommandSearchFilter read(JsonReader in) throws IOException { return ret; } catch (Exception e) { // deserialization failed, continue - errorMessages.add(String.format("Deserialization for CloudRouterCommandSearchExpression failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for CloudRouterCommandSearchExpression failed with `%s`.", e.getMessage())); log.log(Level.FINER, "Input data does not match schema 'CloudRouterCommandSearchExpression'", e); } // deserialize CloudRouterCommandSearchOrFilter @@ -128,11 +130,11 @@ public CloudRouterCommandSearchFilter read(JsonReader in) throws IOException { return ret; } catch (Exception e) { // deserialization failed, continue - errorMessages.add(String.format("Deserialization for CloudRouterCommandSearchOrFilter failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for CloudRouterCommandSearchOrFilter failed with `%s`.", e.getMessage())); log.log(Level.FINER, "Input data does not match schema 'CloudRouterCommandSearchOrFilter'", e); } - throw new IOException(String.format("Failed deserialization for CloudRouterCommandSearchFilter: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); + throw new IOException(String.format(Locale.ROOT, "Failed deserialization for CloudRouterCommandSearchFilter: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); } }.nullSafe(); } @@ -230,7 +232,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti CloudRouterCommandSearchExpression.validateJsonElement(jsonElement); return; } catch (Exception e) { - errorMessages.add(String.format("Deserialization for CloudRouterCommandSearchExpression failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for CloudRouterCommandSearchExpression failed with `%s`.", e.getMessage())); // continue to the next one } // validate the json string with CloudRouterCommandSearchOrFilter @@ -238,10 +240,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti CloudRouterCommandSearchOrFilter.validateJsonElement(jsonElement); return; } catch (Exception e) { - errorMessages.add(String.format("Deserialization for CloudRouterCommandSearchOrFilter failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for CloudRouterCommandSearchOrFilter failed with `%s`.", e.getMessage())); // continue to the next one } - throw new IOException(String.format("The JSON string is invalid for CloudRouterCommandSearchFilter with anyOf schemas: CloudRouterCommandSearchExpression, CloudRouterCommandSearchOrFilter. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); + throw new IOException(String.format(Locale.ROOT, "The JSON string is invalid for CloudRouterCommandSearchFilter with anyOf schemas: CloudRouterCommandSearchExpression, CloudRouterCommandSearchOrFilter. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); } /** diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandSearchFilters.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandSearchFilters.java index 6909454e..1928629b 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandSearchFilters.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandSearchFilters.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.CloudRouterCommandSearchFilter; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * CloudRouterCommandSearchFilters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class CloudRouterCommandSearchFilters { public static final String SERIALIZED_NAME_AND = "and"; @SerializedName(SERIALIZED_NAME_AND) @@ -176,11 +178,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("and"); + openapiFields = new HashSet(Arrays.asList("and")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -192,7 +193,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CloudRouterCommandSearchFilters.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in CloudRouterCommandSearchFilters is not found in the empty JSON string", CloudRouterCommandSearchFilters.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in CloudRouterCommandSearchFilters is not found in the empty JSON string", CloudRouterCommandSearchFilters.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -201,7 +202,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayand != null) { // ensure the json data is an array if (!jsonObj.get("and").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `and` to be an array in the JSON string but got `%s`", jsonObj.get("and").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `and` to be an array in the JSON string but got `%s`", jsonObj.get("and").toString())); } // validate the optional field `and` (array) @@ -269,7 +270,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandSearchOrFilter.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandSearchOrFilter.java index c2a8b9c9..0cb83da6 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandSearchOrFilter.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandSearchOrFilter.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.CloudRouterCommandSearchExpression; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * CloudRouterCommandSearchOrFilter */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class CloudRouterCommandSearchOrFilter { public static final String SERIALIZED_NAME_OR = "or"; @SerializedName(SERIALIZED_NAME_OR) @@ -176,11 +178,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("or"); + openapiFields = new HashSet(Arrays.asList("or")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -192,7 +193,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CloudRouterCommandSearchOrFilter.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in CloudRouterCommandSearchOrFilter is not found in the empty JSON string", CloudRouterCommandSearchOrFilter.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in CloudRouterCommandSearchOrFilter is not found in the empty JSON string", CloudRouterCommandSearchOrFilter.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -201,7 +202,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayor != null) { // ensure the json data is an array if (!jsonObj.get("or").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `or` to be an array in the JSON string but got `%s`", jsonObj.get("or").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `or` to be an array in the JSON string but got `%s`", jsonObj.get("or").toString())); } // validate the optional field `or` (array) @@ -269,7 +270,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandSearchRequest.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandSearchRequest.java index 74044b56..5e765524 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandSearchRequest.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandSearchRequest.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.CloudRouterCommandSearchFilters; import com.equinix.sdk.fabricv4.model.CloudRouterCommandSearchSortCriteria; import com.equinix.sdk.fabricv4.model.PaginationRequest; @@ -45,13 +46,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Search requests containing criteria */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class CloudRouterCommandSearchRequest { public static final String SERIALIZED_NAME_FILTER = "filter"; @SerializedName(SERIALIZED_NAME_FILTER) @@ -230,13 +232,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("filter"); - openapiFields.add("pagination"); - openapiFields.add("sort"); + openapiFields = new HashSet(Arrays.asList("filter", "pagination", "sort")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -248,7 +247,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CloudRouterCommandSearchRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in CloudRouterCommandSearchRequest is not found in the empty JSON string", CloudRouterCommandSearchRequest.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in CloudRouterCommandSearchRequest is not found in the empty JSON string", CloudRouterCommandSearchRequest.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -265,7 +264,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraysort != null) { // ensure the json data is an array if (!jsonObj.get("sort").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `sort` to be an array in the JSON string but got `%s`", jsonObj.get("sort").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `sort` to be an array in the JSON string but got `%s`", jsonObj.get("sort").toString())); } // validate the optional field `sort` (array) @@ -333,7 +332,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandSearchResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandSearchResponse.java index 526f9064..a57eaf13 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandSearchResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandSearchResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.CloudRouterCommand; import com.equinix.sdk.fabricv4.model.Pagination; import com.google.gson.TypeAdapter; @@ -44,13 +45,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * CloudRouterCommandSearchResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class CloudRouterCommandSearchResponse { public static final String SERIALIZED_NAME_PAGINATION = "pagination"; @SerializedName(SERIALIZED_NAME_PAGINATION) @@ -203,12 +205,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("pagination"); - openapiFields.add("data"); + openapiFields = new HashSet(Arrays.asList("pagination", "data")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -220,7 +220,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CloudRouterCommandSearchResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in CloudRouterCommandSearchResponse is not found in the empty JSON string", CloudRouterCommandSearchResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in CloudRouterCommandSearchResponse is not found in the empty JSON string", CloudRouterCommandSearchResponse.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -233,7 +233,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraydata != null) { // ensure the json data is an array if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); } // validate the optional field `data` (array) @@ -301,7 +301,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandSearchSortBy.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandSearchSortBy.java index 6cce3343..61eabf93 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandSearchSortBy.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandSearchSortBy.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandSearchSortCriteria.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandSearchSortCriteria.java index 6793e73a..93b4d58e 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandSearchSortCriteria.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandSearchSortCriteria.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.CloudRouterCommandSearchSortBy; import com.equinix.sdk.fabricv4.model.CloudRouterCommandSearchSortDirection; import com.google.gson.TypeAdapter; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * CloudRouterCommandSearchSortCriteria */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class CloudRouterCommandSearchSortCriteria { public static final String SERIALIZED_NAME_DIRECTION = "direction"; @SerializedName(SERIALIZED_NAME_DIRECTION) @@ -193,12 +195,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("direction"); - openapiFields.add("property"); + openapiFields = new HashSet(Arrays.asList("direction", "property")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -210,7 +210,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CloudRouterCommandSearchSortCriteria.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in CloudRouterCommandSearchSortCriteria is not found in the empty JSON string", CloudRouterCommandSearchSortCriteria.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in CloudRouterCommandSearchSortCriteria is not found in the empty JSON string", CloudRouterCommandSearchSortCriteria.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -281,7 +281,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandSearchSortDirection.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandSearchSortDirection.java index 80db9e35..3d37331a 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandSearchSortDirection.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandSearchSortDirection.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandState.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandState.java index e2f550b4..2383046a 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandState.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandState.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandTracerouteResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandTracerouteResponse.java index 2eac2ed0..44058d62 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandTracerouteResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandTracerouteResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Error; import com.equinix.sdk.fabricv4.model.OutputStructuredTraceroute; import com.google.gson.TypeAdapter; @@ -44,13 +45,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * CloudRouterCommandTracerouteResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class CloudRouterCommandTracerouteResponse { public static final String SERIALIZED_NAME_OUTPUT = "output"; @SerializedName(SERIALIZED_NAME_OUTPUT) @@ -229,13 +231,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("output"); - openapiFields.add("outputStructuredTraceroute"); - openapiFields.add("errors"); + openapiFields = new HashSet(Arrays.asList("output", "outputStructuredTraceroute", "errors")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -247,12 +246,12 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CloudRouterCommandTracerouteResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in CloudRouterCommandTracerouteResponse is not found in the empty JSON string", CloudRouterCommandTracerouteResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in CloudRouterCommandTracerouteResponse is not found in the empty JSON string", CloudRouterCommandTracerouteResponse.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("output") != null && !jsonObj.get("output").isJsonNull()) && !jsonObj.get("output").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `output` to be a primitive type in the JSON string but got `%s`", jsonObj.get("output").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `output` to be a primitive type in the JSON string but got `%s`", jsonObj.get("output").toString())); } // validate the optional field `outputStructuredTraceroute` if (jsonObj.get("outputStructuredTraceroute") != null && !jsonObj.get("outputStructuredTraceroute").isJsonNull()) { @@ -263,7 +262,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayerrors != null) { // ensure the json data is an array if (!jsonObj.get("errors").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `errors` to be an array in the JSON string but got `%s`", jsonObj.get("errors").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `errors` to be an array in the JSON string but got `%s`", jsonObj.get("errors").toString())); } // validate the optional field `errors` (array) @@ -331,7 +330,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandType.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandType.java index 8c0672a2..ac3e8ac1 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandType.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterCommandType.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterFilter.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterFilter.java index 93164c01..809592b8 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterFilter.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterFilter.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.CloudRouterOrFilter; import com.equinix.sdk.fabricv4.model.CloudRouterSimpleExpression; import com.google.gson.TypeAdapter; @@ -36,6 +37,7 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import java.util.Locale; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -59,7 +61,7 @@ import com.equinix.sdk.fabricv4.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class CloudRouterFilter extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(CloudRouterFilter.class.getName()); @@ -115,7 +117,7 @@ public CloudRouterFilter read(JsonReader in) throws IOException { return ret; } catch (Exception e) { // deserialization failed, continue - errorMessages.add(String.format("Deserialization for CloudRouterSimpleExpression failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for CloudRouterSimpleExpression failed with `%s`.", e.getMessage())); log.log(Level.FINER, "Input data does not match schema 'CloudRouterSimpleExpression'", e); } // deserialize CloudRouterOrFilter @@ -128,11 +130,11 @@ public CloudRouterFilter read(JsonReader in) throws IOException { return ret; } catch (Exception e) { // deserialization failed, continue - errorMessages.add(String.format("Deserialization for CloudRouterOrFilter failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for CloudRouterOrFilter failed with `%s`.", e.getMessage())); log.log(Level.FINER, "Input data does not match schema 'CloudRouterOrFilter'", e); } - throw new IOException(String.format("Failed deserialization for CloudRouterFilter: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); + throw new IOException(String.format(Locale.ROOT, "Failed deserialization for CloudRouterFilter: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); } }.nullSafe(); } @@ -230,7 +232,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti CloudRouterSimpleExpression.validateJsonElement(jsonElement); return; } catch (Exception e) { - errorMessages.add(String.format("Deserialization for CloudRouterSimpleExpression failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for CloudRouterSimpleExpression failed with `%s`.", e.getMessage())); // continue to the next one } // validate the json string with CloudRouterOrFilter @@ -238,10 +240,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti CloudRouterOrFilter.validateJsonElement(jsonElement); return; } catch (Exception e) { - errorMessages.add(String.format("Deserialization for CloudRouterOrFilter failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for CloudRouterOrFilter failed with `%s`.", e.getMessage())); // continue to the next one } - throw new IOException(String.format("The JSON string is invalid for CloudRouterFilter with anyOf schemas: CloudRouterOrFilter, CloudRouterSimpleExpression. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); + throw new IOException(String.format(Locale.ROOT, "The JSON string is invalid for CloudRouterFilter with anyOf schemas: CloudRouterOrFilter, CloudRouterSimpleExpression. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); } /** diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterFilters.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterFilters.java index 09dc9cc8..b47ef043 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterFilters.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterFilters.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.CloudRouterFilter; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * CloudRouterFilters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class CloudRouterFilters { public static final String SERIALIZED_NAME_AND = "and"; @SerializedName(SERIALIZED_NAME_AND) @@ -176,11 +178,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("and"); + openapiFields = new HashSet(Arrays.asList("and")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -192,7 +193,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CloudRouterFilters.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in CloudRouterFilters is not found in the empty JSON string", CloudRouterFilters.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in CloudRouterFilters is not found in the empty JSON string", CloudRouterFilters.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -201,7 +202,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayand != null) { // ensure the json data is an array if (!jsonObj.get("and").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `and` to be an array in the JSON string but got `%s`", jsonObj.get("and").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `and` to be an array in the JSON string but got `%s`", jsonObj.get("and").toString())); } // validate the optional field `and` (array) @@ -269,7 +270,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterOrFilter.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterOrFilter.java index 52ab5213..b508e091 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterOrFilter.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterOrFilter.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.CloudRouterSimpleExpression; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * CloudRouterOrFilter */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class CloudRouterOrFilter { public static final String SERIALIZED_NAME_OR = "or"; @SerializedName(SERIALIZED_NAME_OR) @@ -176,11 +178,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("or"); + openapiFields = new HashSet(Arrays.asList("or")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -192,7 +193,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CloudRouterOrFilter.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in CloudRouterOrFilter is not found in the empty JSON string", CloudRouterOrFilter.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in CloudRouterOrFilter is not found in the empty JSON string", CloudRouterOrFilter.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -201,7 +202,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayor != null) { // ensure the json data is an array if (!jsonObj.get("or").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `or` to be an array in the JSON string but got `%s`", jsonObj.get("or").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `or` to be an array in the JSON string but got `%s`", jsonObj.get("or").toString())); } // validate the optional field `or` (array) @@ -269,7 +270,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterPackage.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterPackage.java index fcb39832..4a0cb121 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterPackage.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterPackage.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Code; import com.equinix.sdk.fabricv4.model.PackageChangeLog; import com.google.gson.TypeAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Fabric Cloud Router Package */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class CloudRouterPackage { public static final String SERIALIZED_NAME_HREF = "href"; @SerializedName(SERIALIZED_NAME_HREF) @@ -482,21 +484,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("href"); - openapiFields.add("type"); - openapiFields.add("code"); - openapiFields.add("description"); - openapiFields.add("totalIPv4RoutesMax"); - openapiFields.add("totalIPv6RoutesMax"); - openapiFields.add("routeFilterSupported"); - openapiFields.add("vcCountMax"); - openapiFields.add("crCountMax"); - openapiFields.add("vcBandwidthMax"); - openapiFields.add("changeLog"); + openapiFields = new HashSet(Arrays.asList("href", "type", "code", "description", "totalIPv4RoutesMax", "totalIPv6RoutesMax", "routeFilterSupported", "vcCountMax", "crCountMax", "vcBandwidthMax", "changeLog")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -508,15 +499,15 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CloudRouterPackage.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in CloudRouterPackage is not found in the empty JSON string", CloudRouterPackage.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in CloudRouterPackage is not found in the empty JSON string", CloudRouterPackage.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the optional field `type` if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { @@ -527,7 +518,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti Code.validateJsonElement(jsonObj.get("code")); } if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); } // validate the optional field `changeLog` if (jsonObj.get("changeLog") != null && !jsonObj.get("changeLog").isJsonNull()) { @@ -592,7 +583,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterPostRequest.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterPostRequest.java index 00e6b2f6..d45ff113 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterPostRequest.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterPostRequest.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.CloudRouterPostRequestPackage; import com.equinix.sdk.fabricv4.model.MarketplaceSubscription; import com.equinix.sdk.fabricv4.model.Order; @@ -49,13 +50,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * CloudRouterPostRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class CloudRouterPostRequest { /** * Gets or Sets type @@ -440,23 +442,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("type"); - openapiFields.add("name"); - openapiFields.add("location"); - openapiFields.add("package"); - openapiFields.add("order"); - openapiFields.add("project"); - openapiFields.add("account"); - openapiFields.add("notifications"); - openapiFields.add("marketplaceSubscription"); + openapiFields = new HashSet(Arrays.asList("type", "name", "location", "package", "order", "project", "account", "notifications", "marketplaceSubscription")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("type"); - openapiRequiredFields.add("name"); - openapiRequiredFields.add("location"); - openapiRequiredFields.add("package"); + openapiRequiredFields = new HashSet(Arrays.asList("type", "name", "location", "package")); } /** @@ -468,24 +457,24 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CloudRouterPostRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in CloudRouterPostRequest is not found in the empty JSON string", CloudRouterPostRequest.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in CloudRouterPostRequest is not found in the empty JSON string", CloudRouterPostRequest.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : CloudRouterPostRequest.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the required field `type` TypeEnum.validateJsonElement(jsonObj.get("type")); if (!jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } // validate the required field `location` SimplifiedLocationWithoutIBX.validateJsonElement(jsonObj.get("location")); @@ -508,7 +497,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraynotifications != null) { // ensure the json data is an array if (!jsonObj.get("notifications").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `notifications` to be an array in the JSON string but got `%s`", jsonObj.get("notifications").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `notifications` to be an array in the JSON string but got `%s`", jsonObj.get("notifications").toString())); } // validate the optional field `notifications` (array) @@ -580,7 +569,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterPostRequestBase.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterPostRequestBase.java index 73debe15..a9ca2a88 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterPostRequestBase.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterPostRequestBase.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.CloudRouterPostRequestPackage; import com.equinix.sdk.fabricv4.model.MarketplaceSubscription; import com.equinix.sdk.fabricv4.model.Order; @@ -49,13 +50,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Create Cloud Router */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class CloudRouterPostRequestBase { /** * Gets or Sets type @@ -440,19 +442,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("type"); - openapiFields.add("name"); - openapiFields.add("location"); - openapiFields.add("package"); - openapiFields.add("order"); - openapiFields.add("project"); - openapiFields.add("account"); - openapiFields.add("notifications"); - openapiFields.add("marketplaceSubscription"); + openapiFields = new HashSet(Arrays.asList("type", "name", "location", "package", "order", "project", "account", "notifications", "marketplaceSubscription")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -464,19 +457,19 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CloudRouterPostRequestBase.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in CloudRouterPostRequestBase is not found in the empty JSON string", CloudRouterPostRequestBase.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in CloudRouterPostRequestBase is not found in the empty JSON string", CloudRouterPostRequestBase.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the optional field `type` if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { TypeEnum.validateJsonElement(jsonObj.get("type")); } if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } // validate the optional field `location` if (jsonObj.get("location") != null && !jsonObj.get("location").isJsonNull()) { @@ -503,7 +496,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraynotifications != null) { // ensure the json data is an array if (!jsonObj.get("notifications").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `notifications` to be an array in the JSON string but got `%s`", jsonObj.get("notifications").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `notifications` to be an array in the JSON string but got `%s`", jsonObj.get("notifications").toString())); } // validate the optional field `notifications` (array) @@ -575,7 +568,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterPostRequestPackage.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterPostRequestPackage.java index 1387988f..b9968335 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterPostRequestPackage.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterPostRequestPackage.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Fabric Cloud Router Package Type */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class CloudRouterPostRequestPackage { public static final String SERIALIZED_NAME_HREF = "href"; @SerializedName(SERIALIZED_NAME_HREF) @@ -326,14 +328,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("href"); - openapiFields.add("type"); - openapiFields.add("code"); + openapiFields = new HashSet(Arrays.asList("href", "type", "code")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("code"); + openapiRequiredFields = new HashSet(Arrays.asList("code")); } /** @@ -345,29 +343,29 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CloudRouterPostRequestPackage.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in CloudRouterPostRequestPackage is not found in the empty JSON string", CloudRouterPostRequestPackage.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in CloudRouterPostRequestPackage is not found in the empty JSON string", CloudRouterPostRequestPackage.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : CloudRouterPostRequestPackage.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the optional field `type` if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { TypeEnum.validateJsonElement(jsonObj.get("type")); } if (!jsonObj.get("code").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); } // validate the required field `code` CodeEnum.validateJsonElement(jsonObj.get("code")); @@ -430,7 +428,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterSearchRequest.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterSearchRequest.java index d4703cb0..6b0ff66f 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterSearchRequest.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterSearchRequest.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.CloudRouterFilters; import com.equinix.sdk.fabricv4.model.CloudRouterSortCriteria; import com.equinix.sdk.fabricv4.model.PaginationRequest; @@ -45,13 +46,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Search requests containing criteria */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class CloudRouterSearchRequest { public static final String SERIALIZED_NAME_FILTER = "filter"; @SerializedName(SERIALIZED_NAME_FILTER) @@ -230,13 +232,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("filter"); - openapiFields.add("pagination"); - openapiFields.add("sort"); + openapiFields = new HashSet(Arrays.asList("filter", "pagination", "sort")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -248,7 +247,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CloudRouterSearchRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in CloudRouterSearchRequest is not found in the empty JSON string", CloudRouterSearchRequest.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in CloudRouterSearchRequest is not found in the empty JSON string", CloudRouterSearchRequest.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -265,7 +264,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraysort != null) { // ensure the json data is an array if (!jsonObj.get("sort").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `sort` to be an array in the JSON string but got `%s`", jsonObj.get("sort").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `sort` to be an array in the JSON string but got `%s`", jsonObj.get("sort").toString())); } // validate the optional field `sort` (array) @@ -333,7 +332,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterSimpleExpression.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterSimpleExpression.java index 42e4c8ed..4fa23f80 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterSimpleExpression.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterSimpleExpression.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * CloudRouterSimpleExpression */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class CloudRouterSimpleExpression { public static final String SERIALIZED_NAME_PROPERTY = "property"; @SerializedName(SERIALIZED_NAME_PROPERTY) @@ -227,13 +229,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("property"); - openapiFields.add("operator"); - openapiFields.add("values"); + openapiFields = new HashSet(Arrays.asList("property", "operator", "values")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -245,19 +244,19 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CloudRouterSimpleExpression.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in CloudRouterSimpleExpression is not found in the empty JSON string", CloudRouterSimpleExpression.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in CloudRouterSimpleExpression is not found in the empty JSON string", CloudRouterSimpleExpression.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("property") != null && !jsonObj.get("property").isJsonNull()) && !jsonObj.get("property").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `property` to be a primitive type in the JSON string but got `%s`", jsonObj.get("property").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `property` to be a primitive type in the JSON string but got `%s`", jsonObj.get("property").toString())); } if ((jsonObj.get("operator") != null && !jsonObj.get("operator").isJsonNull()) && !jsonObj.get("operator").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `operator` to be a primitive type in the JSON string but got `%s`", jsonObj.get("operator").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `operator` to be a primitive type in the JSON string but got `%s`", jsonObj.get("operator").toString())); } // ensure the optional json data is an array if present if (jsonObj.get("values") != null && !jsonObj.get("values").isJsonNull() && !jsonObj.get("values").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); } } @@ -318,7 +317,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterSortBy.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterSortBy.java index 59f8a077..fa2cdff8 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterSortBy.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterSortBy.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterSortCriteria.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterSortCriteria.java index 391f2303..534ae1aa 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterSortCriteria.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterSortCriteria.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.CloudRouterSortBy; import com.equinix.sdk.fabricv4.model.CloudRouterSortDirection; import com.google.gson.TypeAdapter; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * CloudRouterSortCriteria */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class CloudRouterSortCriteria { public static final String SERIALIZED_NAME_DIRECTION = "direction"; @SerializedName(SERIALIZED_NAME_DIRECTION) @@ -193,12 +195,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("direction"); - openapiFields.add("property"); + openapiFields = new HashSet(Arrays.asList("direction", "property")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -210,7 +210,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CloudRouterSortCriteria.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in CloudRouterSortCriteria is not found in the empty JSON string", CloudRouterSortCriteria.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in CloudRouterSortCriteria is not found in the empty JSON string", CloudRouterSortCriteria.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -281,7 +281,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterSortDirection.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterSortDirection.java index d4897750..a1922bfd 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterSortDirection.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CloudRouterSortDirection.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Code.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Code.java index d85f4b6c..34af68a0 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Code.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Code.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CompanyLogo.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CompanyLogo.java index bd6e2383..e6df492a 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CompanyLogo.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CompanyLogo.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * CompanyLogo */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class CompanyLogo { public static final String SERIALIZED_NAME_HREF = "href"; @SerializedName(SERIALIZED_NAME_HREF) @@ -191,12 +193,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("href"); - openapiFields.add("uuid"); + openapiFields = new HashSet(Arrays.asList("href", "uuid")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -208,15 +208,15 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CompanyLogo.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in CompanyLogo is not found in the empty JSON string", CompanyLogo.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in CompanyLogo is not found in the empty JSON string", CompanyLogo.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } } @@ -277,7 +277,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CompanyProfileActionRequest.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CompanyProfileActionRequest.java index 4d718f92..0c279a91 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CompanyProfileActionRequest.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CompanyProfileActionRequest.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * CompanyProfileActionRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class CompanyProfileActionRequest { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -191,13 +193,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("type"); - openapiFields.add("comments"); + openapiFields = new HashSet(Arrays.asList("type", "comments")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("type"); + openapiRequiredFields = new HashSet(Arrays.asList("type")); } /** @@ -209,22 +208,22 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CompanyProfileActionRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in CompanyProfileActionRequest is not found in the empty JSON string", CompanyProfileActionRequest.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in CompanyProfileActionRequest is not found in the empty JSON string", CompanyProfileActionRequest.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : CompanyProfileActionRequest.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } if ((jsonObj.get("comments") != null && !jsonObj.get("comments").isJsonNull()) && !jsonObj.get("comments").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `comments` to be a primitive type in the JSON string but got `%s`", jsonObj.get("comments").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `comments` to be a primitive type in the JSON string but got `%s`", jsonObj.get("comments").toString())); } } @@ -285,7 +284,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CompanyProfileChange.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CompanyProfileChange.java index f9298e1b..cbdec429 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CompanyProfileChange.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CompanyProfileChange.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * CompanyProfileChange */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class CompanyProfileChange { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -244,14 +246,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("type"); - openapiFields.add("status"); - openapiFields.add("createdDateTime"); - openapiFields.add("data"); + openapiFields = new HashSet(Arrays.asList("type", "status", "createdDateTime", "data")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -263,15 +261,15 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CompanyProfileChange.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in CompanyProfileChange is not found in the empty JSON string", CompanyProfileChange.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in CompanyProfileChange is not found in the empty JSON string", CompanyProfileChange.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } if ((jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) && !jsonObj.get("status").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); } } @@ -332,7 +330,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CompanyProfileRequest.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CompanyProfileRequest.java index cf4850b0..eabcc747 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CompanyProfileRequest.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CompanyProfileRequest.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * CompanyProfileRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class CompanyProfileRequest { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -305,20 +307,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("type"); - openapiFields.add("name"); - openapiFields.add("summary"); - openapiFields.add("description"); - openapiFields.add("notifications"); - openapiFields.add("webUrl"); + openapiFields = new HashSet(Arrays.asList("type", "name", "summary", "description", "notifications", "webUrl")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("type"); - openapiRequiredFields.add("name"); - openapiRequiredFields.add("summary"); - openapiRequiredFields.add("description"); + openapiRequiredFields = new HashSet(Arrays.asList("type", "name", "summary", "description")); } /** @@ -330,35 +322,35 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CompanyProfileRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in CompanyProfileRequest is not found in the empty JSON string", CompanyProfileRequest.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in CompanyProfileRequest is not found in the empty JSON string", CompanyProfileRequest.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : CompanyProfileRequest.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } if (!jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } if (!jsonObj.get("summary").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `summary` to be a primitive type in the JSON string but got `%s`", jsonObj.get("summary").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `summary` to be a primitive type in the JSON string but got `%s`", jsonObj.get("summary").toString())); } if (!jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); } // ensure the optional json data is an array if present if (jsonObj.get("notifications") != null && !jsonObj.get("notifications").isJsonNull() && !jsonObj.get("notifications").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `notifications` to be an array in the JSON string but got `%s`", jsonObj.get("notifications").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `notifications` to be an array in the JSON string but got `%s`", jsonObj.get("notifications").toString())); } if ((jsonObj.get("webUrl") != null && !jsonObj.get("webUrl").isJsonNull()) && !jsonObj.get("webUrl").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `webUrl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("webUrl").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `webUrl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("webUrl").toString())); } } @@ -419,7 +411,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CompanyProfileResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CompanyProfileResponse.java index ac84412b..37442755 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CompanyProfileResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CompanyProfileResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Changelog; import com.equinix.sdk.fabricv4.model.CompanyLogo; import com.equinix.sdk.fabricv4.model.CompanyServiceProfile; @@ -47,13 +48,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * CompanyProfileResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class CompanyProfileResponse { public static final String SERIALIZED_NAME_HREF = "href"; @SerializedName(SERIALIZED_NAME_HREF) @@ -542,24 +544,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("href"); - openapiFields.add("uuid"); - openapiFields.add("type"); - openapiFields.add("name"); - openapiFields.add("summary"); - openapiFields.add("description"); - openapiFields.add("state"); - openapiFields.add("logo"); - openapiFields.add("tags"); - openapiFields.add("serviceProfiles"); - openapiFields.add("privateServices"); - openapiFields.add("notifications"); - openapiFields.add("webUrl"); - openapiFields.add("changeLog"); + openapiFields = new HashSet(Arrays.asList("href", "uuid", "type", "name", "summary", "description", "state", "logo", "tags", "serviceProfiles", "privateServices", "notifications", "webUrl", "changeLog")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -571,27 +559,27 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CompanyProfileResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in CompanyProfileResponse is not found in the empty JSON string", CompanyProfileResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in CompanyProfileResponse is not found in the empty JSON string", CompanyProfileResponse.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } if ((jsonObj.get("summary") != null && !jsonObj.get("summary").isJsonNull()) && !jsonObj.get("summary").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `summary` to be a primitive type in the JSON string but got `%s`", jsonObj.get("summary").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `summary` to be a primitive type in the JSON string but got `%s`", jsonObj.get("summary").toString())); } if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); } // validate the optional field `logo` if (jsonObj.get("logo") != null && !jsonObj.get("logo").isJsonNull()) { @@ -602,7 +590,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraytags != null) { // ensure the json data is an array if (!jsonObj.get("tags").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString())); } // validate the optional field `tags` (array) @@ -616,7 +604,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayserviceProfiles != null) { // ensure the json data is an array if (!jsonObj.get("serviceProfiles").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `serviceProfiles` to be an array in the JSON string but got `%s`", jsonObj.get("serviceProfiles").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `serviceProfiles` to be an array in the JSON string but got `%s`", jsonObj.get("serviceProfiles").toString())); } // validate the optional field `serviceProfiles` (array) @@ -630,7 +618,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayprivateServices != null) { // ensure the json data is an array if (!jsonObj.get("privateServices").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `privateServices` to be an array in the JSON string but got `%s`", jsonObj.get("privateServices").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `privateServices` to be an array in the JSON string but got `%s`", jsonObj.get("privateServices").toString())); } // validate the optional field `privateServices` (array) @@ -641,10 +629,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } // ensure the optional json data is an array if present if (jsonObj.get("notifications") != null && !jsonObj.get("notifications").isJsonNull() && !jsonObj.get("notifications").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `notifications` to be an array in the JSON string but got `%s`", jsonObj.get("notifications").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `notifications` to be an array in the JSON string but got `%s`", jsonObj.get("notifications").toString())); } if ((jsonObj.get("webUrl") != null && !jsonObj.get("webUrl").isJsonNull()) && !jsonObj.get("webUrl").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `webUrl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("webUrl").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `webUrl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("webUrl").toString())); } // validate the optional field `changeLog` if (jsonObj.get("changeLog") != null && !jsonObj.get("changeLog").isJsonNull()) { @@ -709,7 +697,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CompanyProfileSearchFilter.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CompanyProfileSearchFilter.java index 1ed4b9a9..23f60ccb 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CompanyProfileSearchFilter.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CompanyProfileSearchFilter.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * CompanyProfileSearchFilter */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class CompanyProfileSearchFilter { public static final String SERIALIZED_NAME_AND = "and"; @SerializedName(SERIALIZED_NAME_AND) @@ -295,15 +297,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("and"); - openapiFields.add("or"); - openapiFields.add("property"); - openapiFields.add("operator"); - openapiFields.add("values"); + openapiFields = new HashSet(Arrays.asList("and", "or", "property", "operator", "values")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -315,7 +312,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CompanyProfileSearchFilter.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in CompanyProfileSearchFilter is not found in the empty JSON string", CompanyProfileSearchFilter.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in CompanyProfileSearchFilter is not found in the empty JSON string", CompanyProfileSearchFilter.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -324,7 +321,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayand != null) { // ensure the json data is an array if (!jsonObj.get("and").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `and` to be an array in the JSON string but got `%s`", jsonObj.get("and").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `and` to be an array in the JSON string but got `%s`", jsonObj.get("and").toString())); } // validate the optional field `and` (array) @@ -338,7 +335,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayor != null) { // ensure the json data is an array if (!jsonObj.get("or").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `or` to be an array in the JSON string but got `%s`", jsonObj.get("or").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `or` to be an array in the JSON string but got `%s`", jsonObj.get("or").toString())); } // validate the optional field `or` (array) @@ -348,14 +345,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } if ((jsonObj.get("property") != null && !jsonObj.get("property").isJsonNull()) && !jsonObj.get("property").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `property` to be a primitive type in the JSON string but got `%s`", jsonObj.get("property").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `property` to be a primitive type in the JSON string but got `%s`", jsonObj.get("property").toString())); } if ((jsonObj.get("operator") != null && !jsonObj.get("operator").isJsonNull()) && !jsonObj.get("operator").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `operator` to be a primitive type in the JSON string but got `%s`", jsonObj.get("operator").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `operator` to be a primitive type in the JSON string but got `%s`", jsonObj.get("operator").toString())); } // ensure the optional json data is an array if present if (jsonObj.get("values") != null && !jsonObj.get("values").isJsonNull() && !jsonObj.get("values").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); } } @@ -416,7 +413,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CompanyProfileSearchRequest.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CompanyProfileSearchRequest.java index d33a7615..5d6d3885 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CompanyProfileSearchRequest.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CompanyProfileSearchRequest.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.CompanyProfileSearchFilter; import com.equinix.sdk.fabricv4.model.Pagination; import com.google.gson.TypeAdapter; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * CompanyProfileSearchRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class CompanyProfileSearchRequest { public static final String SERIALIZED_NAME_FILTER = "filter"; @SerializedName(SERIALIZED_NAME_FILTER) @@ -193,12 +195,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("filter"); - openapiFields.add("pagination"); + openapiFields = new HashSet(Arrays.asList("filter", "pagination")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -210,7 +210,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CompanyProfileSearchRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in CompanyProfileSearchRequest is not found in the empty JSON string", CompanyProfileSearchRequest.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in CompanyProfileSearchRequest is not found in the empty JSON string", CompanyProfileSearchRequest.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -281,7 +281,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CompanyProfileSearchResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CompanyProfileSearchResponse.java index d65bbd86..efebe48a 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CompanyProfileSearchResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CompanyProfileSearchResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.CompanyProfileResponse; import com.equinix.sdk.fabricv4.model.Pagination; import com.google.gson.TypeAdapter; @@ -44,13 +45,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * CompanyProfileSearchResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class CompanyProfileSearchResponse { public static final String SERIALIZED_NAME_PAGINATION = "pagination"; @SerializedName(SERIALIZED_NAME_PAGINATION) @@ -203,14 +205,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("pagination"); - openapiFields.add("data"); + openapiFields = new HashSet(Arrays.asList("pagination", "data")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("pagination"); - openapiRequiredFields.add("data"); + openapiRequiredFields = new HashSet(Arrays.asList("pagination", "data")); } /** @@ -222,14 +220,14 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CompanyProfileSearchResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in CompanyProfileSearchResponse is not found in the empty JSON string", CompanyProfileSearchResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in CompanyProfileSearchResponse is not found in the empty JSON string", CompanyProfileSearchResponse.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : CompanyProfileSearchResponse.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -237,7 +235,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti Pagination.validateJsonElement(jsonObj.get("pagination")); // ensure the json data is an array if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); } JsonArray jsonArraydata = jsonObj.getAsJsonArray("data"); @@ -304,7 +302,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CompanyProfileUpdateResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CompanyProfileUpdateResponse.java index 216ee50a..06125571 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CompanyProfileUpdateResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CompanyProfileUpdateResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.CompanyProfileChange; import com.equinix.sdk.fabricv4.model.CompanyProfileResponse; import com.google.gson.TypeAdapter; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * CompanyProfileUpdateResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class CompanyProfileUpdateResponse { public static final String SERIALIZED_NAME_COMPANY_PROFILE = "companyProfile"; @SerializedName(SERIALIZED_NAME_COMPANY_PROFILE) @@ -193,12 +195,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("companyProfile"); - openapiFields.add("change"); + openapiFields = new HashSet(Arrays.asList("companyProfile", "change")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -210,7 +210,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CompanyProfileUpdateResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in CompanyProfileUpdateResponse is not found in the empty JSON string", CompanyProfileUpdateResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in CompanyProfileUpdateResponse is not found in the empty JSON string", CompanyProfileUpdateResponse.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -281,7 +281,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CompanyServiceProfile.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CompanyServiceProfile.java index 4471c23e..453fa102 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CompanyServiceProfile.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CompanyServiceProfile.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * CompanyServiceProfile */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class CompanyServiceProfile { public static final String SERIALIZED_NAME_HREF = "href"; @SerializedName(SERIALIZED_NAME_HREF) @@ -191,12 +193,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("href"); - openapiFields.add("uuid"); + openapiFields = new HashSet(Arrays.asList("href", "uuid")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -208,15 +208,15 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CompanyServiceProfile.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in CompanyServiceProfile is not found in the empty JSON string", CompanyServiceProfile.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in CompanyServiceProfile is not found in the empty JSON string", CompanyServiceProfile.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } } @@ -277,7 +277,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectedMetro.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectedMetro.java index 94ae39b8..5d8cefdb 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectedMetro.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectedMetro.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Arrays of objects containing latency data for the specified metros */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ConnectedMetro { public static final String SERIALIZED_NAME_HREF = "href"; @SerializedName(SERIALIZED_NAME_HREF) @@ -244,14 +246,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("href"); - openapiFields.add("code"); - openapiFields.add("avgLatency"); - openapiFields.add("remoteVCBandwidthMax"); + openapiFields = new HashSet(Arrays.asList("href", "code", "avgLatency", "remoteVCBandwidthMax")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -263,15 +261,15 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ConnectedMetro.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ConnectedMetro is not found in the empty JSON string", ConnectedMetro.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ConnectedMetro is not found in the empty JSON string", ConnectedMetro.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } if ((jsonObj.get("code") != null && !jsonObj.get("code").isJsonNull()) && !jsonObj.get("code").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); } } @@ -332,7 +330,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Connection.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Connection.java index b66a853a..305adf7e 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Connection.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Connection.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Change; import com.equinix.sdk.fabricv4.model.Changelog; import com.equinix.sdk.fabricv4.model.ConnectionDirection; @@ -58,13 +59,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Connection specification */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class Connection { public static final String SERIALIZED_NAME_HREF = "href"; @SerializedName(SERIALIZED_NAME_HREF) @@ -746,37 +748,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("href"); - openapiFields.add("type"); - openapiFields.add("uuid"); - openapiFields.add("name"); - openapiFields.add("description"); - openapiFields.add("state"); - openapiFields.add("change"); - openapiFields.add("operation"); - openapiFields.add("order"); - openapiFields.add("notifications"); - openapiFields.add("account"); - openapiFields.add("changeLog"); - openapiFields.add("bandwidth"); - openapiFields.add("geoScope"); - openapiFields.add("redundancy"); - openapiFields.add("isRemote"); - openapiFields.add("direction"); - openapiFields.add("aSide"); - openapiFields.add("zSide"); - openapiFields.add("marketplaceSubscription"); - openapiFields.add("additionalInfo"); - openapiFields.add("project"); + openapiFields = new HashSet(Arrays.asList("href", "type", "uuid", "name", "description", "state", "change", "operation", "order", "notifications", "account", "changeLog", "bandwidth", "geoScope", "redundancy", "isRemote", "direction", "aSide", "zSide", "marketplaceSubscription", "additionalInfo", "project")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("type"); - openapiRequiredFields.add("name"); - openapiRequiredFields.add("bandwidth"); - openapiRequiredFields.add("aSide"); - openapiRequiredFields.add("zSide"); + openapiRequiredFields = new HashSet(Arrays.asList("type", "name", "bandwidth", "aSide", "zSide")); } /** @@ -788,30 +763,30 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!Connection.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in Connection is not found in the empty JSON string", Connection.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in Connection is not found in the empty JSON string", Connection.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : Connection.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } // validate the required field `type` ConnectionType.validateJsonElement(jsonObj.get("type")); if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } if (!jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); } // validate the optional field `state` if (jsonObj.get("state") != null && !jsonObj.get("state").isJsonNull()) { @@ -834,7 +809,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraynotifications != null) { // ensure the json data is an array if (!jsonObj.get("notifications").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `notifications` to be an array in the JSON string but got `%s`", jsonObj.get("notifications").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `notifications` to be an array in the JSON string but got `%s`", jsonObj.get("notifications").toString())); } // validate the optional field `notifications` (array) @@ -876,7 +851,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayadditionalInfo != null) { // ensure the json data is an array if (!jsonObj.get("additionalInfo").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `additionalInfo` to be an array in the JSON string but got `%s`", jsonObj.get("additionalInfo").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `additionalInfo` to be an array in the JSON string but got `%s`", jsonObj.get("additionalInfo").toString())); } // validate the optional field `additionalInfo` (array) @@ -948,7 +923,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionAcceptanceData.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionAcceptanceData.java index f60e68ae..6e325669 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionAcceptanceData.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionAcceptanceData.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.ConnectionSide; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Connection acceptance data */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ConnectionAcceptanceData { public static final String SERIALIZED_NAME_Z_SIDE = "zSide"; @SerializedName(SERIALIZED_NAME_Z_SIDE) @@ -191,12 +193,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("zSide"); - openapiFields.add("providerBandwidth"); + openapiFields = new HashSet(Arrays.asList("zSide", "providerBandwidth")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -208,7 +208,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ConnectionAcceptanceData.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ConnectionAcceptanceData is not found in the empty JSON string", ConnectionAcceptanceData.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ConnectionAcceptanceData is not found in the empty JSON string", ConnectionAcceptanceData.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -275,7 +275,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionAction.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionAction.java index 220fa68e..3b77e629 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionAction.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionAction.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Actions; import com.equinix.sdk.fabricv4.model.Changelog; import com.equinix.sdk.fabricv4.model.ConnectionAcceptanceData; @@ -44,13 +45,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Connection action */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ConnectionAction { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -298,19 +300,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("type"); - openapiFields.add("href"); - openapiFields.add("uuid"); - openapiFields.add("description"); - openapiFields.add("data"); - openapiFields.add("changeLog"); + openapiFields = new HashSet(Arrays.asList("type", "href", "uuid", "description", "data", "changeLog")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("type"); - openapiRequiredFields.add("uuid"); - openapiRequiredFields.add("data"); + openapiRequiredFields = new HashSet(Arrays.asList("type", "uuid", "data")); } /** @@ -322,27 +315,27 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ConnectionAction.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ConnectionAction is not found in the empty JSON string", ConnectionAction.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ConnectionAction is not found in the empty JSON string", ConnectionAction.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : ConnectionAction.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the required field `type` Actions.validateJsonElement(jsonObj.get("type")); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } if (!jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); } // validate the required field `data` ConnectionAcceptanceData.validateJsonElement(jsonObj.get("data")); @@ -409,7 +402,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionActionRequest.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionActionRequest.java index 0dd3d917..e98caa06 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionActionRequest.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionActionRequest.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Actions; import com.equinix.sdk.fabricv4.model.ConnectionAcceptanceData; import com.google.gson.TypeAdapter; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Connection action request */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ConnectionActionRequest { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -219,14 +221,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("type"); - openapiFields.add("description"); - openapiFields.add("data"); + openapiFields = new HashSet(Arrays.asList("type", "description", "data")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("type"); + openapiRequiredFields = new HashSet(Arrays.asList("type")); } /** @@ -238,21 +236,21 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ConnectionActionRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ConnectionActionRequest is not found in the empty JSON string", ConnectionActionRequest.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ConnectionActionRequest is not found in the empty JSON string", ConnectionActionRequest.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : ConnectionActionRequest.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the required field `type` Actions.validateJsonElement(jsonObj.get("type")); if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); } // validate the optional field `data` if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { @@ -317,7 +315,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionChangeOperation.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionChangeOperation.java index 74baf32f..389b8f6b 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionChangeOperation.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionChangeOperation.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Connection change operation data */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ConnectionChangeOperation { public static final String SERIALIZED_NAME_OP = "op"; @SerializedName(SERIALIZED_NAME_OP) @@ -217,16 +219,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("op"); - openapiFields.add("path"); - openapiFields.add("value"); + openapiFields = new HashSet(Arrays.asList("op", "path", "value")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("op"); - openapiRequiredFields.add("path"); - openapiRequiredFields.add("value"); + openapiRequiredFields = new HashSet(Arrays.asList("op", "path", "value")); } /** @@ -238,22 +234,22 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ConnectionChangeOperation.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ConnectionChangeOperation is not found in the empty JSON string", ConnectionChangeOperation.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ConnectionChangeOperation is not found in the empty JSON string", ConnectionChangeOperation.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : ConnectionChangeOperation.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("op").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `op` to be a primitive type in the JSON string but got `%s`", jsonObj.get("op").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `op` to be a primitive type in the JSON string but got `%s`", jsonObj.get("op").toString())); } if (!jsonObj.get("path").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); } } @@ -314,7 +310,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionCompanyProfile.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionCompanyProfile.java index d79e8634..1668ae98 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionCompanyProfile.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionCompanyProfile.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Connection Company Profile Details */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ConnectionCompanyProfile { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -218,13 +220,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("id"); - openapiFields.add("name"); - openapiFields.add("globalOrgId"); + openapiFields = new HashSet(Arrays.asList("id", "name", "globalOrgId")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -236,15 +235,15 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ConnectionCompanyProfile.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ConnectionCompanyProfile is not found in the empty JSON string", ConnectionCompanyProfile.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ConnectionCompanyProfile is not found in the empty JSON string", ConnectionCompanyProfile.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } if ((jsonObj.get("globalOrgId") != null && !jsonObj.get("globalOrgId").isJsonNull()) && !jsonObj.get("globalOrgId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `globalOrgId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("globalOrgId").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `globalOrgId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("globalOrgId").toString())); } } @@ -305,7 +304,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionDirection.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionDirection.java index 0e9bdbea..c7aa4c93 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionDirection.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionDirection.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionInvitation.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionInvitation.java index 0cf42a41..2d2d87f3 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionInvitation.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionInvitation.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Connection Invitation Details */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ConnectionInvitation { public static final String SERIALIZED_NAME_EMAIL = "email"; @SerializedName(SERIALIZED_NAME_EMAIL) @@ -217,13 +219,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("email"); - openapiFields.add("message"); - openapiFields.add("ctrDraftOrderId"); + openapiFields = new HashSet(Arrays.asList("email", "message", "ctrDraftOrderId")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -235,18 +234,18 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ConnectionInvitation.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ConnectionInvitation is not found in the empty JSON string", ConnectionInvitation.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ConnectionInvitation is not found in the empty JSON string", ConnectionInvitation.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("email") != null && !jsonObj.get("email").isJsonNull()) && !jsonObj.get("email").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `email` to be a primitive type in the JSON string but got `%s`", jsonObj.get("email").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `email` to be a primitive type in the JSON string but got `%s`", jsonObj.get("email").toString())); } if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); } if ((jsonObj.get("ctrDraftOrderId") != null && !jsonObj.get("ctrDraftOrderId").isJsonNull()) && !jsonObj.get("ctrDraftOrderId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `ctrDraftOrderId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ctrDraftOrderId").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `ctrDraftOrderId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ctrDraftOrderId").toString())); } } @@ -307,7 +306,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionLink.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionLink.java index 729cc6ae..396034af 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionLink.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionLink.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * ConnectionLink */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ConnectionLink { public static final String SERIALIZED_NAME_HREF = "href"; @SerializedName(SERIALIZED_NAME_HREF) @@ -269,13 +271,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("href"); - openapiFields.add("type"); - openapiFields.add("uuid"); + openapiFields = new HashSet(Arrays.asList("href", "type", "uuid")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -287,22 +286,22 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ConnectionLink.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ConnectionLink is not found in the empty JSON string", ConnectionLink.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ConnectionLink is not found in the empty JSON string", ConnectionLink.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the optional field `type` if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { TypeEnum.validateJsonElement(jsonObj.get("type")); } if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } } @@ -363,7 +362,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionOperation.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionOperation.java index 3934679e..df2fc295 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionOperation.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionOperation.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.EquinixStatus; import com.equinix.sdk.fabricv4.model.Error; import com.equinix.sdk.fabricv4.model.ProviderStatus; @@ -46,13 +47,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Connection type-specific operational data */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ConnectionOperation { public static final String SERIALIZED_NAME_PROVIDER_STATUS = "providerStatus"; @SerializedName(SERIALIZED_NAME_PROVIDER_STATUS) @@ -335,15 +337,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("providerStatus"); - openapiFields.add("equinixStatus"); - openapiFields.add("operationalStatus"); - openapiFields.add("errors"); - openapiFields.add("opStatusChangedAt"); + openapiFields = new HashSet(Arrays.asList("providerStatus", "equinixStatus", "operationalStatus", "errors", "opStatusChangedAt")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -355,7 +352,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ConnectionOperation.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ConnectionOperation is not found in the empty JSON string", ConnectionOperation.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ConnectionOperation is not found in the empty JSON string", ConnectionOperation.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -368,7 +365,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti EquinixStatus.validateJsonElement(jsonObj.get("equinixStatus")); } if ((jsonObj.get("operationalStatus") != null && !jsonObj.get("operationalStatus").isJsonNull()) && !jsonObj.get("operationalStatus").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `operationalStatus` to be a primitive type in the JSON string but got `%s`", jsonObj.get("operationalStatus").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `operationalStatus` to be a primitive type in the JSON string but got `%s`", jsonObj.get("operationalStatus").toString())); } // validate the optional field `operationalStatus` if (jsonObj.get("operationalStatus") != null && !jsonObj.get("operationalStatus").isJsonNull()) { @@ -379,7 +376,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayerrors != null) { // ensure the json data is an array if (!jsonObj.get("errors").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `errors` to be an array in the JSON string but got `%s`", jsonObj.get("errors").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `errors` to be an array in the JSON string but got `%s`", jsonObj.get("errors").toString())); } // validate the optional field `errors` (array) @@ -447,7 +444,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionPostRequest.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionPostRequest.java index d2d56990..39256c96 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionPostRequest.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionPostRequest.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.ConnectionRedundancy; import com.equinix.sdk.fabricv4.model.ConnectionSide; import com.equinix.sdk.fabricv4.model.ConnectionSideAdditionalInfo; @@ -52,13 +53,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Create connection post request */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ConnectionPostRequest { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -507,29 +509,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("type"); - openapiFields.add("name"); - openapiFields.add("order"); - openapiFields.add("notifications"); - openapiFields.add("bandwidth"); - openapiFields.add("geoScope"); - openapiFields.add("redundancy"); - openapiFields.add("aSide"); - openapiFields.add("zSide"); - openapiFields.add("project"); - openapiFields.add("additionalInfo"); - openapiFields.add("marketplaceSubscription"); - openapiFields.add("endCustomer"); + openapiFields = new HashSet(Arrays.asList("type", "name", "order", "notifications", "bandwidth", "geoScope", "redundancy", "aSide", "zSide", "project", "additionalInfo", "marketplaceSubscription", "endCustomer")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("type"); - openapiRequiredFields.add("name"); - openapiRequiredFields.add("notifications"); - openapiRequiredFields.add("bandwidth"); - openapiRequiredFields.add("aSide"); - openapiRequiredFields.add("zSide"); + openapiRequiredFields = new HashSet(Arrays.asList("type", "name", "notifications", "bandwidth", "aSide", "zSide")); } /** @@ -541,21 +524,21 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ConnectionPostRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ConnectionPostRequest is not found in the empty JSON string", ConnectionPostRequest.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ConnectionPostRequest is not found in the empty JSON string", ConnectionPostRequest.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : ConnectionPostRequest.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the required field `type` ConnectionType.validateJsonElement(jsonObj.get("type")); if (!jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } // validate the optional field `order` if (jsonObj.get("order") != null && !jsonObj.get("order").isJsonNull()) { @@ -563,7 +546,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } // ensure the json data is an array if (!jsonObj.get("notifications").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `notifications` to be an array in the JSON string but got `%s`", jsonObj.get("notifications").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `notifications` to be an array in the JSON string but got `%s`", jsonObj.get("notifications").toString())); } JsonArray jsonArraynotifications = jsonObj.getAsJsonArray("notifications"); @@ -592,7 +575,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayadditionalInfo != null) { // ensure the json data is an array if (!jsonObj.get("additionalInfo").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `additionalInfo` to be an array in the JSON string but got `%s`", jsonObj.get("additionalInfo").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `additionalInfo` to be an array in the JSON string but got `%s`", jsonObj.get("additionalInfo").toString())); } // validate the optional field `additionalInfo` (array) @@ -668,7 +651,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionPriority.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionPriority.java index 7eb34704..11e3510d 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionPriority.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionPriority.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionRedundancy.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionRedundancy.java index cacc779a..f333f664 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionRedundancy.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionRedundancy.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.ConnectionPriority; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Connection redundancy configuration */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ConnectionRedundancy { public static final String SERIALIZED_NAME_GROUP = "group"; @SerializedName(SERIALIZED_NAME_GROUP) @@ -192,12 +194,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("group"); - openapiFields.add("priority"); + openapiFields = new HashSet(Arrays.asList("group", "priority")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -209,12 +209,12 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ConnectionRedundancy.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ConnectionRedundancy is not found in the empty JSON string", ConnectionRedundancy.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ConnectionRedundancy is not found in the empty JSON string", ConnectionRedundancy.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("group") != null && !jsonObj.get("group").isJsonNull()) && !jsonObj.get("group").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `group` to be a primitive type in the JSON string but got `%s`", jsonObj.get("group").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `group` to be a primitive type in the JSON string but got `%s`", jsonObj.get("group").toString())); } // validate the optional field `priority` if (jsonObj.get("priority") != null && !jsonObj.get("priority").isJsonNull()) { @@ -279,7 +279,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionResponse.java index 7b101140..48b16160 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.ConnectionSideAdditionalInfo; import com.equinix.sdk.fabricv4.model.ValidateConnectionResponse; import com.google.gson.TypeAdapter; @@ -44,13 +45,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * ValidateResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ConnectionResponse { public static final String SERIALIZED_NAME_ADDITIONAL_INFO = "additionalInfo"; @SerializedName(SERIALIZED_NAME_ADDITIONAL_INFO) @@ -211,12 +213,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("additionalInfo"); - openapiFields.add("data"); + openapiFields = new HashSet(Arrays.asList("additionalInfo", "data")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -228,7 +228,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ConnectionResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ConnectionResponse is not found in the empty JSON string", ConnectionResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ConnectionResponse is not found in the empty JSON string", ConnectionResponse.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -237,7 +237,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayadditionalInfo != null) { // ensure the json data is an array if (!jsonObj.get("additionalInfo").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `additionalInfo` to be an array in the JSON string but got `%s`", jsonObj.get("additionalInfo").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `additionalInfo` to be an array in the JSON string but got `%s`", jsonObj.get("additionalInfo").toString())); } // validate the optional field `additionalInfo` (array) @@ -251,7 +251,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraydata != null) { // ensure the json data is an array if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); } // validate the optional field `data` (array) @@ -319,7 +319,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionRouteAggregationData.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionRouteAggregationData.java index 73bc9367..1b740bff 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionRouteAggregationData.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionRouteAggregationData.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * ConnectionRouteAggregationData */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ConnectionRouteAggregationData { public static final String SERIALIZED_NAME_HREF = "href"; @SerializedName(SERIALIZED_NAME_HREF) @@ -355,14 +357,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("href"); - openapiFields.add("type"); - openapiFields.add("uuid"); - openapiFields.add("attachmentStatus"); + openapiFields = new HashSet(Arrays.asList("href", "type", "uuid", "attachmentStatus")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -374,25 +372,25 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ConnectionRouteAggregationData.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ConnectionRouteAggregationData is not found in the empty JSON string", ConnectionRouteAggregationData.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ConnectionRouteAggregationData is not found in the empty JSON string", ConnectionRouteAggregationData.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the optional field `type` if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { TypeEnum.validateJsonElement(jsonObj.get("type")); } if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } if ((jsonObj.get("attachmentStatus") != null && !jsonObj.get("attachmentStatus").isJsonNull()) && !jsonObj.get("attachmentStatus").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `attachmentStatus` to be a primitive type in the JSON string but got `%s`", jsonObj.get("attachmentStatus").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `attachmentStatus` to be a primitive type in the JSON string but got `%s`", jsonObj.get("attachmentStatus").toString())); } // validate the optional field `attachmentStatus` if (jsonObj.get("attachmentStatus") != null && !jsonObj.get("attachmentStatus").isJsonNull()) { @@ -457,7 +455,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionRouteEntryFilter.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionRouteEntryFilter.java index ca51ea07..4679721f 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionRouteEntryFilter.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionRouteEntryFilter.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.ConnectionRouteEntryOrFilter; import com.equinix.sdk.fabricv4.model.ConnectionRouteEntrySimpleExpression; import com.google.gson.TypeAdapter; @@ -36,6 +37,7 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import java.util.Locale; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -59,7 +61,7 @@ import com.equinix.sdk.fabricv4.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ConnectionRouteEntryFilter extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(ConnectionRouteEntryFilter.class.getName()); @@ -115,7 +117,7 @@ public ConnectionRouteEntryFilter read(JsonReader in) throws IOException { return ret; } catch (Exception e) { // deserialization failed, continue - errorMessages.add(String.format("Deserialization for ConnectionRouteEntrySimpleExpression failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for ConnectionRouteEntrySimpleExpression failed with `%s`.", e.getMessage())); log.log(Level.FINER, "Input data does not match schema 'ConnectionRouteEntrySimpleExpression'", e); } // deserialize ConnectionRouteEntryOrFilter @@ -128,11 +130,11 @@ public ConnectionRouteEntryFilter read(JsonReader in) throws IOException { return ret; } catch (Exception e) { // deserialization failed, continue - errorMessages.add(String.format("Deserialization for ConnectionRouteEntryOrFilter failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for ConnectionRouteEntryOrFilter failed with `%s`.", e.getMessage())); log.log(Level.FINER, "Input data does not match schema 'ConnectionRouteEntryOrFilter'", e); } - throw new IOException(String.format("Failed deserialization for ConnectionRouteEntryFilter: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); + throw new IOException(String.format(Locale.ROOT, "Failed deserialization for ConnectionRouteEntryFilter: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); } }.nullSafe(); } @@ -230,7 +232,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti ConnectionRouteEntrySimpleExpression.validateJsonElement(jsonElement); return; } catch (Exception e) { - errorMessages.add(String.format("Deserialization for ConnectionRouteEntrySimpleExpression failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for ConnectionRouteEntrySimpleExpression failed with `%s`.", e.getMessage())); // continue to the next one } // validate the json string with ConnectionRouteEntryOrFilter @@ -238,10 +240,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti ConnectionRouteEntryOrFilter.validateJsonElement(jsonElement); return; } catch (Exception e) { - errorMessages.add(String.format("Deserialization for ConnectionRouteEntryOrFilter failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for ConnectionRouteEntryOrFilter failed with `%s`.", e.getMessage())); // continue to the next one } - throw new IOException(String.format("The JSON string is invalid for ConnectionRouteEntryFilter with anyOf schemas: ConnectionRouteEntryOrFilter, ConnectionRouteEntrySimpleExpression. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); + throw new IOException(String.format(Locale.ROOT, "The JSON string is invalid for ConnectionRouteEntryFilter with anyOf schemas: ConnectionRouteEntryOrFilter, ConnectionRouteEntrySimpleExpression. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); } /** diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionRouteEntryFilters.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionRouteEntryFilters.java index 1b7b02ff..1926c320 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionRouteEntryFilters.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionRouteEntryFilters.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.ConnectionRouteEntryFilter; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * ConnectionRouteEntryFilters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ConnectionRouteEntryFilters { public static final String SERIALIZED_NAME_AND = "and"; @SerializedName(SERIALIZED_NAME_AND) @@ -176,11 +178,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("and"); + openapiFields = new HashSet(Arrays.asList("and")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -192,7 +193,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ConnectionRouteEntryFilters.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ConnectionRouteEntryFilters is not found in the empty JSON string", ConnectionRouteEntryFilters.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ConnectionRouteEntryFilters is not found in the empty JSON string", ConnectionRouteEntryFilters.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -201,7 +202,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayand != null) { // ensure the json data is an array if (!jsonObj.get("and").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `and` to be an array in the JSON string but got `%s`", jsonObj.get("and").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `and` to be an array in the JSON string but got `%s`", jsonObj.get("and").toString())); } // validate the optional field `and` (array) @@ -269,7 +270,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionRouteEntryOrFilter.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionRouteEntryOrFilter.java index eab6d37a..f0b7bb74 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionRouteEntryOrFilter.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionRouteEntryOrFilter.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.ConnectionRouteEntrySimpleExpression; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * ConnectionRouteEntryOrFilter */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ConnectionRouteEntryOrFilter { public static final String SERIALIZED_NAME_OR = "or"; @SerializedName(SERIALIZED_NAME_OR) @@ -176,11 +178,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("or"); + openapiFields = new HashSet(Arrays.asList("or")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -192,7 +193,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ConnectionRouteEntryOrFilter.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ConnectionRouteEntryOrFilter is not found in the empty JSON string", ConnectionRouteEntryOrFilter.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ConnectionRouteEntryOrFilter is not found in the empty JSON string", ConnectionRouteEntryOrFilter.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -201,7 +202,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayor != null) { // ensure the json data is an array if (!jsonObj.get("or").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `or` to be an array in the JSON string but got `%s`", jsonObj.get("or").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `or` to be an array in the JSON string but got `%s`", jsonObj.get("or").toString())); } // validate the optional field `or` (array) @@ -269,7 +270,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionRouteEntrySimpleExpression.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionRouteEntrySimpleExpression.java index e428409e..076bb477 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionRouteEntrySimpleExpression.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionRouteEntrySimpleExpression.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * ConnectionRouteEntrySimpleExpression */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ConnectionRouteEntrySimpleExpression { public static final String SERIALIZED_NAME_PROPERTY = "property"; @SerializedName(SERIALIZED_NAME_PROPERTY) @@ -227,13 +229,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("property"); - openapiFields.add("operator"); - openapiFields.add("values"); + openapiFields = new HashSet(Arrays.asList("property", "operator", "values")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -245,19 +244,19 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ConnectionRouteEntrySimpleExpression.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ConnectionRouteEntrySimpleExpression is not found in the empty JSON string", ConnectionRouteEntrySimpleExpression.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ConnectionRouteEntrySimpleExpression is not found in the empty JSON string", ConnectionRouteEntrySimpleExpression.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("property") != null && !jsonObj.get("property").isJsonNull()) && !jsonObj.get("property").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `property` to be a primitive type in the JSON string but got `%s`", jsonObj.get("property").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `property` to be a primitive type in the JSON string but got `%s`", jsonObj.get("property").toString())); } if ((jsonObj.get("operator") != null && !jsonObj.get("operator").isJsonNull()) && !jsonObj.get("operator").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `operator` to be a primitive type in the JSON string but got `%s`", jsonObj.get("operator").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `operator` to be a primitive type in the JSON string but got `%s`", jsonObj.get("operator").toString())); } // ensure the optional json data is an array if present if (jsonObj.get("values") != null && !jsonObj.get("values").isJsonNull() && !jsonObj.get("values").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); } } @@ -318,7 +317,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionRouteEntrySortBy.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionRouteEntrySortBy.java index 1b34dd0b..7484df66 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionRouteEntrySortBy.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionRouteEntrySortBy.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionRouteEntrySortDirection.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionRouteEntrySortDirection.java index 39c9569c..c8cebe8f 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionRouteEntrySortDirection.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionRouteEntrySortDirection.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionRouteFilterData.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionRouteFilterData.java index 5b7ac41d..b85cc15f 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionRouteFilterData.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionRouteFilterData.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * ConnectionRouteFilterData */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ConnectionRouteFilterData { public static final String SERIALIZED_NAME_HREF = "href"; @SerializedName(SERIALIZED_NAME_HREF) @@ -435,15 +437,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("href"); - openapiFields.add("type"); - openapiFields.add("uuid"); - openapiFields.add("attachmentStatus"); - openapiFields.add("direction"); + openapiFields = new HashSet(Arrays.asList("href", "type", "uuid", "attachmentStatus", "direction")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -455,32 +452,32 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ConnectionRouteFilterData.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ConnectionRouteFilterData is not found in the empty JSON string", ConnectionRouteFilterData.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ConnectionRouteFilterData is not found in the empty JSON string", ConnectionRouteFilterData.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the optional field `type` if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { TypeEnum.validateJsonElement(jsonObj.get("type")); } if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } if ((jsonObj.get("attachmentStatus") != null && !jsonObj.get("attachmentStatus").isJsonNull()) && !jsonObj.get("attachmentStatus").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `attachmentStatus` to be a primitive type in the JSON string but got `%s`", jsonObj.get("attachmentStatus").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `attachmentStatus` to be a primitive type in the JSON string but got `%s`", jsonObj.get("attachmentStatus").toString())); } // validate the optional field `attachmentStatus` if (jsonObj.get("attachmentStatus") != null && !jsonObj.get("attachmentStatus").isJsonNull()) { AttachmentStatusEnum.validateJsonElement(jsonObj.get("attachmentStatus")); } if ((jsonObj.get("direction") != null && !jsonObj.get("direction").isJsonNull()) && !jsonObj.get("direction").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `direction` to be a primitive type in the JSON string but got `%s`", jsonObj.get("direction").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `direction` to be a primitive type in the JSON string but got `%s`", jsonObj.get("direction").toString())); } // validate the optional field `direction` if (jsonObj.get("direction") != null && !jsonObj.get("direction").isJsonNull()) { @@ -545,7 +542,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionRouteFiltersBase.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionRouteFiltersBase.java index 0dcd16c5..8b084666 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionRouteFiltersBase.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionRouteFiltersBase.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * ConnectionRouteFiltersBase */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ConnectionRouteFiltersBase { /** * Route Filter direction to attach to a connection @@ -217,12 +219,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("direction"); + openapiFields = new HashSet(Arrays.asList("direction")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("direction"); + openapiRequiredFields = new HashSet(Arrays.asList("direction")); } /** @@ -234,19 +234,19 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ConnectionRouteFiltersBase.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ConnectionRouteFiltersBase is not found in the empty JSON string", ConnectionRouteFiltersBase.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ConnectionRouteFiltersBase is not found in the empty JSON string", ConnectionRouteFiltersBase.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : ConnectionRouteFiltersBase.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("direction").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `direction` to be a primitive type in the JSON string but got `%s`", jsonObj.get("direction").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `direction` to be a primitive type in the JSON string but got `%s`", jsonObj.get("direction").toString())); } // validate the required field `direction` DirectionEnum.validateJsonElement(jsonObj.get("direction")); @@ -309,7 +309,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionRouteSearchRequest.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionRouteSearchRequest.java index 01d7c960..422ff6dd 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionRouteSearchRequest.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionRouteSearchRequest.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.ConnectionRouteEntryFilters; import com.equinix.sdk.fabricv4.model.ConnectionRouteSortCriteria; import com.equinix.sdk.fabricv4.model.PaginationRequest; @@ -45,13 +46,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Search requests containing criteria */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ConnectionRouteSearchRequest { public static final String SERIALIZED_NAME_FILTER = "filter"; @SerializedName(SERIALIZED_NAME_FILTER) @@ -230,13 +232,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("filter"); - openapiFields.add("pagination"); - openapiFields.add("sort"); + openapiFields = new HashSet(Arrays.asList("filter", "pagination", "sort")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -248,7 +247,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ConnectionRouteSearchRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ConnectionRouteSearchRequest is not found in the empty JSON string", ConnectionRouteSearchRequest.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ConnectionRouteSearchRequest is not found in the empty JSON string", ConnectionRouteSearchRequest.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -265,7 +264,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraysort != null) { // ensure the json data is an array if (!jsonObj.get("sort").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `sort` to be an array in the JSON string but got `%s`", jsonObj.get("sort").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `sort` to be an array in the JSON string but got `%s`", jsonObj.get("sort").toString())); } // validate the optional field `sort` (array) @@ -333,7 +332,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionRouteSortCriteria.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionRouteSortCriteria.java index 8a02b610..b08bbf60 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionRouteSortCriteria.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionRouteSortCriteria.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.ConnectionRouteEntrySortBy; import com.equinix.sdk.fabricv4.model.ConnectionRouteEntrySortDirection; import com.google.gson.TypeAdapter; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * ConnectionRouteSortCriteria */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ConnectionRouteSortCriteria { public static final String SERIALIZED_NAME_DIRECTION = "direction"; @SerializedName(SERIALIZED_NAME_DIRECTION) @@ -193,12 +195,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("direction"); - openapiFields.add("property"); + openapiFields = new HashSet(Arrays.asList("direction", "property")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -210,7 +210,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ConnectionRouteSortCriteria.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ConnectionRouteSortCriteria is not found in the empty JSON string", ConnectionRouteSortCriteria.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ConnectionRouteSortCriteria is not found in the empty JSON string", ConnectionRouteSortCriteria.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -281,7 +281,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionRouteTableEntry.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionRouteTableEntry.java index 4ec96397..3298d2a6 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionRouteTableEntry.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionRouteTableEntry.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Changelog; import com.equinix.sdk.fabricv4.model.ConnectionRouteTableEntryConnection; import com.equinix.sdk.fabricv4.model.RouteTableEntryProtocolType; @@ -46,13 +47,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Advertised and received route table entry object */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ConnectionRouteTableEntry { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -465,23 +467,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("type"); - openapiFields.add("protocolType"); - openapiFields.add("state"); - openapiFields.add("prefix"); - openapiFields.add("nextHop"); - openapiFields.add("MED"); - openapiFields.add("localPreference"); - openapiFields.add("asPath"); - openapiFields.add("connection"); - openapiFields.add("changeLog"); + openapiFields = new HashSet(Arrays.asList("type", "protocolType", "state", "prefix", "nextHop", "MED", "localPreference", "asPath", "connection", "changeLog")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("type"); - openapiRequiredFields.add("state"); - openapiRequiredFields.add("changeLog"); + openapiRequiredFields = new HashSet(Arrays.asList("type", "state", "changeLog")); } /** @@ -493,14 +482,14 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ConnectionRouteTableEntry.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ConnectionRouteTableEntry is not found in the empty JSON string", ConnectionRouteTableEntry.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ConnectionRouteTableEntry is not found in the empty JSON string", ConnectionRouteTableEntry.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : ConnectionRouteTableEntry.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -511,19 +500,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti RouteTableEntryProtocolType.validateJsonElement(jsonObj.get("protocolType")); } if (!jsonObj.get("state").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `state` to be a primitive type in the JSON string but got `%s`", jsonObj.get("state").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `state` to be a primitive type in the JSON string but got `%s`", jsonObj.get("state").toString())); } // validate the required field `state` StateEnum.validateJsonElement(jsonObj.get("state")); if ((jsonObj.get("prefix") != null && !jsonObj.get("prefix").isJsonNull()) && !jsonObj.get("prefix").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `prefix` to be a primitive type in the JSON string but got `%s`", jsonObj.get("prefix").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `prefix` to be a primitive type in the JSON string but got `%s`", jsonObj.get("prefix").toString())); } if ((jsonObj.get("nextHop") != null && !jsonObj.get("nextHop").isJsonNull()) && !jsonObj.get("nextHop").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `nextHop` to be a primitive type in the JSON string but got `%s`", jsonObj.get("nextHop").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `nextHop` to be a primitive type in the JSON string but got `%s`", jsonObj.get("nextHop").toString())); } // ensure the optional json data is an array if present if (jsonObj.get("asPath") != null && !jsonObj.get("asPath").isJsonNull() && !jsonObj.get("asPath").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `asPath` to be an array in the JSON string but got `%s`", jsonObj.get("asPath").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `asPath` to be an array in the JSON string but got `%s`", jsonObj.get("asPath").toString())); } // validate the optional field `connection` if (jsonObj.get("connection") != null && !jsonObj.get("connection").isJsonNull()) { @@ -590,7 +579,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionRouteTableEntryConnection.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionRouteTableEntryConnection.java index e5f7991a..b1975369 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionRouteTableEntryConnection.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionRouteTableEntryConnection.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * ConnectionRouteTableEntryConnection */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ConnectionRouteTableEntryConnection { public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) @@ -217,13 +219,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("uuid"); - openapiFields.add("name"); - openapiFields.add("href"); + openapiFields = new HashSet(Arrays.asList("uuid", "name", "href")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -235,18 +234,18 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ConnectionRouteTableEntryConnection.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ConnectionRouteTableEntryConnection is not found in the empty JSON string", ConnectionRouteTableEntryConnection.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ConnectionRouteTableEntryConnection is not found in the empty JSON string", ConnectionRouteTableEntryConnection.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } } @@ -307,7 +306,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionRouteTableEntrySearchResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionRouteTableEntrySearchResponse.java index 32738df7..d492335d 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionRouteTableEntrySearchResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionRouteTableEntrySearchResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.ConnectionRouteTableEntry; import com.equinix.sdk.fabricv4.model.Pagination; import com.google.gson.TypeAdapter; @@ -44,13 +45,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * ConnectionRouteTableEntrySearchResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ConnectionRouteTableEntrySearchResponse { public static final String SERIALIZED_NAME_PAGINATION = "pagination"; @SerializedName(SERIALIZED_NAME_PAGINATION) @@ -203,12 +205,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("pagination"); - openapiFields.add("data"); + openapiFields = new HashSet(Arrays.asList("pagination", "data")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -220,7 +220,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ConnectionRouteTableEntrySearchResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ConnectionRouteTableEntrySearchResponse is not found in the empty JSON string", ConnectionRouteTableEntrySearchResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ConnectionRouteTableEntrySearchResponse is not found in the empty JSON string", ConnectionRouteTableEntrySearchResponse.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -233,7 +233,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraydata != null) { // ensure the json data is an array if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); } // validate the optional field `data` (array) @@ -301,7 +301,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionRoutingProtocolPostRequest.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionRoutingProtocolPostRequest.java index af21a6c1..0477fdc4 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionRoutingProtocolPostRequest.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionRoutingProtocolPostRequest.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.RoutingProtocolBase; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Create connection routing protocolpost request */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ConnectionRoutingProtocolPostRequest { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @@ -176,11 +178,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("data"); + openapiFields = new HashSet(Arrays.asList("data")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -192,7 +193,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ConnectionRoutingProtocolPostRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ConnectionRoutingProtocolPostRequest is not found in the empty JSON string", ConnectionRoutingProtocolPostRequest.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ConnectionRoutingProtocolPostRequest is not found in the empty JSON string", ConnectionRoutingProtocolPostRequest.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -201,7 +202,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraydata != null) { // ensure the json data is an array if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); } // validate the optional field `data` (array) @@ -269,7 +270,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionSearchResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionSearchResponse.java index 835cf1c0..7d72c2f3 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionSearchResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionSearchResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Connection; import com.equinix.sdk.fabricv4.model.Pagination; import com.equinix.sdk.fabricv4.model.SortCriteriaResponse; @@ -45,13 +46,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * List of connections */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ConnectionSearchResponse { public static final String SERIALIZED_NAME_PAGINATION = "pagination"; @SerializedName(SERIALIZED_NAME_PAGINATION) @@ -238,13 +240,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("pagination"); - openapiFields.add("sort"); - openapiFields.add("data"); + openapiFields = new HashSet(Arrays.asList("pagination", "sort", "data")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -256,7 +255,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ConnectionSearchResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ConnectionSearchResponse is not found in the empty JSON string", ConnectionSearchResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ConnectionSearchResponse is not found in the empty JSON string", ConnectionSearchResponse.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -269,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraysort != null) { // ensure the json data is an array if (!jsonObj.get("sort").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `sort` to be an array in the JSON string but got `%s`", jsonObj.get("sort").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `sort` to be an array in the JSON string but got `%s`", jsonObj.get("sort").toString())); } // validate the optional field `sort` (array) @@ -283,7 +282,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraydata != null) { // ensure the json data is an array if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); } // validate the optional field `data` (array) @@ -351,7 +350,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionSide.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionSide.java index 6952a1ee..4cf0cc83 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionSide.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionSide.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.AccessPoint; import com.equinix.sdk.fabricv4.model.ConnectionCompanyProfile; import com.equinix.sdk.fabricv4.model.ConnectionInvitation; @@ -48,13 +49,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Connection configuration object for each side of multi-segment connection */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ConnectionSide { public static final String SERIALIZED_NAME_SERVICE_TOKEN = "serviceToken"; @SerializedName(SERIALIZED_NAME_SERVICE_TOKEN) @@ -311,16 +313,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("serviceToken"); - openapiFields.add("accessPoint"); - openapiFields.add("internetAccess"); - openapiFields.add("companyProfile"); - openapiFields.add("invitation"); - openapiFields.add("additionalInfo"); + openapiFields = new HashSet(Arrays.asList("serviceToken", "accessPoint", "internetAccess", "companyProfile", "invitation", "additionalInfo")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -332,7 +328,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ConnectionSide.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ConnectionSide is not found in the empty JSON string", ConnectionSide.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ConnectionSide is not found in the empty JSON string", ConnectionSide.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -361,7 +357,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayadditionalInfo != null) { // ensure the json data is an array if (!jsonObj.get("additionalInfo").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `additionalInfo` to be an array in the JSON string but got `%s`", jsonObj.get("additionalInfo").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `additionalInfo` to be an array in the JSON string but got `%s`", jsonObj.get("additionalInfo").toString())); } // validate the optional field `additionalInfo` (array) @@ -429,7 +425,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionSideAdditionalInfo.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionSideAdditionalInfo.java index 44e7b093..923e1f4e 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionSideAdditionalInfo.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionSideAdditionalInfo.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Additional information */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ConnectionSideAdditionalInfo { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -191,12 +193,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("key"); - openapiFields.add("value"); + openapiFields = new HashSet(Arrays.asList("key", "value")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -208,15 +208,15 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ConnectionSideAdditionalInfo.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ConnectionSideAdditionalInfo is not found in the empty JSON string", ConnectionSideAdditionalInfo.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ConnectionSideAdditionalInfo is not found in the empty JSON string", ConnectionSideAdditionalInfo.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) && !jsonObj.get("key").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); } if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) && !jsonObj.get("value").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); } } @@ -277,7 +277,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionState.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionState.java index f946ca5d..75f37dc2 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionState.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionState.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionType.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionType.java index 485c327e..56bc75c1 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionType.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectionType.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectivitySource.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectivitySource.java index 6b45fc9d..f3d356c9 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectivitySource.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectivitySource.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.ConnectivitySourceType; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Physical or virtual port that houses the connection. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ConnectivitySource { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -166,11 +168,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("type"); + openapiFields = new HashSet(Arrays.asList("type")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -182,7 +183,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ConnectivitySource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ConnectivitySource is not found in the empty JSON string", ConnectivitySource.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ConnectivitySource is not found in the empty JSON string", ConnectivitySource.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -249,7 +250,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectivitySourceType.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectivitySourceType.java index b652e6f7..1604a23b 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectivitySourceType.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ConnectivitySourceType.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CustomField.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CustomField.java index d19e253c..66be8615 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CustomField.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/CustomField.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Define Custom Attributes */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class CustomField { public static final String SERIALIZED_NAME_LABEL = "label"; @SerializedName(SERIALIZED_NAME_LABEL) @@ -359,18 +361,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("label"); - openapiFields.add("description"); - openapiFields.add("required"); - openapiFields.add("dataType"); - openapiFields.add("options"); - openapiFields.add("captureInEmail"); + openapiFields = new HashSet(Arrays.asList("label", "description", "required", "dataType", "options", "captureInEmail")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("label"); - openapiRequiredFields.add("dataType"); + openapiRequiredFields = new HashSet(Arrays.asList("label", "dataType")); } /** @@ -382,31 +376,31 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CustomField.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in CustomField is not found in the empty JSON string", CustomField.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in CustomField is not found in the empty JSON string", CustomField.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : CustomField.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("label").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `label` to be a primitive type in the JSON string but got `%s`", jsonObj.get("label").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `label` to be a primitive type in the JSON string but got `%s`", jsonObj.get("label").toString())); } if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); } if (!jsonObj.get("dataType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `dataType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("dataType").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `dataType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("dataType").toString())); } // validate the required field `dataType` DataTypeEnum.validateJsonElement(jsonObj.get("dataType")); // ensure the optional json data is an array if present if (jsonObj.get("options") != null && !jsonObj.get("options").isJsonNull() && !jsonObj.get("options").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `options` to be an array in the JSON string but got `%s`", jsonObj.get("options").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `options` to be an array in the JSON string but got `%s`", jsonObj.get("options").toString())); } } @@ -467,7 +461,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/DetectionMethod.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/DetectionMethod.java index 5fb9c581..f91340dd 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/DetectionMethod.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/DetectionMethod.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * DetectionMethod */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class DetectionMethod { /** * * THRESHOLD - Alert when a metric crosses a defined threshold by user. * OUTLIER - Intelligent Alert that has an outlier behavior. This option is currently supported for metro latency metric. @@ -373,16 +375,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("type"); - openapiFields.add("windowSize"); - openapiFields.add("operand"); - openapiFields.add("warningThreshold"); - openapiFields.add("criticalThreshold"); + openapiFields = new HashSet(Arrays.asList("type", "windowSize", "operand", "warningThreshold", "criticalThreshold")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("type"); + openapiRequiredFields = new HashSet(Arrays.asList("type")); } /** @@ -394,37 +390,37 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!DetectionMethod.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in DetectionMethod is not found in the empty JSON string", DetectionMethod.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DetectionMethod is not found in the empty JSON string", DetectionMethod.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : DetectionMethod.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the required field `type` TypeEnum.validateJsonElement(jsonObj.get("type")); if ((jsonObj.get("windowSize") != null && !jsonObj.get("windowSize").isJsonNull()) && !jsonObj.get("windowSize").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `windowSize` to be a primitive type in the JSON string but got `%s`", jsonObj.get("windowSize").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `windowSize` to be a primitive type in the JSON string but got `%s`", jsonObj.get("windowSize").toString())); } if ((jsonObj.get("operand") != null && !jsonObj.get("operand").isJsonNull()) && !jsonObj.get("operand").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `operand` to be a primitive type in the JSON string but got `%s`", jsonObj.get("operand").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `operand` to be a primitive type in the JSON string but got `%s`", jsonObj.get("operand").toString())); } // validate the optional field `operand` if (jsonObj.get("operand") != null && !jsonObj.get("operand").isJsonNull()) { OperandEnum.validateJsonElement(jsonObj.get("operand")); } if ((jsonObj.get("warningThreshold") != null && !jsonObj.get("warningThreshold").isJsonNull()) && !jsonObj.get("warningThreshold").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `warningThreshold` to be a primitive type in the JSON string but got `%s`", jsonObj.get("warningThreshold").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `warningThreshold` to be a primitive type in the JSON string but got `%s`", jsonObj.get("warningThreshold").toString())); } if ((jsonObj.get("criticalThreshold") != null && !jsonObj.get("criticalThreshold").isJsonNull()) && !jsonObj.get("criticalThreshold").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `criticalThreshold` to be a primitive type in the JSON string but got `%s`", jsonObj.get("criticalThreshold").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `criticalThreshold` to be a primitive type in the JSON string but got `%s`", jsonObj.get("criticalThreshold").toString())); } } @@ -485,7 +481,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/DetectionMethodResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/DetectionMethodResponse.java index 84638d7c..ff61f16a 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/DetectionMethodResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/DetectionMethodResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * DetectionMethodResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class DetectionMethodResponse { /** * * THRESHOLD - Alert when a metric crosses a defined threshold by user. * OUTLIER - Intelligent Alert that has an outlier behavior. This option is currently supported for metro latency metric. @@ -373,15 +375,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("type"); - openapiFields.add("windowSize"); - openapiFields.add("operand"); - openapiFields.add("warningThreshold"); - openapiFields.add("criticalThreshold"); + openapiFields = new HashSet(Arrays.asList("type", "windowSize", "operand", "warningThreshold", "criticalThreshold")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -393,32 +390,32 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!DetectionMethodResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in DetectionMethodResponse is not found in the empty JSON string", DetectionMethodResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DetectionMethodResponse is not found in the empty JSON string", DetectionMethodResponse.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the optional field `type` if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { TypeEnum.validateJsonElement(jsonObj.get("type")); } if ((jsonObj.get("windowSize") != null && !jsonObj.get("windowSize").isJsonNull()) && !jsonObj.get("windowSize").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `windowSize` to be a primitive type in the JSON string but got `%s`", jsonObj.get("windowSize").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `windowSize` to be a primitive type in the JSON string but got `%s`", jsonObj.get("windowSize").toString())); } if ((jsonObj.get("operand") != null && !jsonObj.get("operand").isJsonNull()) && !jsonObj.get("operand").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `operand` to be a primitive type in the JSON string but got `%s`", jsonObj.get("operand").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `operand` to be a primitive type in the JSON string but got `%s`", jsonObj.get("operand").toString())); } // validate the optional field `operand` if (jsonObj.get("operand") != null && !jsonObj.get("operand").isJsonNull()) { OperandEnum.validateJsonElement(jsonObj.get("operand")); } if ((jsonObj.get("warningThreshold") != null && !jsonObj.get("warningThreshold").isJsonNull()) && !jsonObj.get("warningThreshold").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `warningThreshold` to be a primitive type in the JSON string but got `%s`", jsonObj.get("warningThreshold").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `warningThreshold` to be a primitive type in the JSON string but got `%s`", jsonObj.get("warningThreshold").toString())); } if ((jsonObj.get("criticalThreshold") != null && !jsonObj.get("criticalThreshold").isJsonNull()) && !jsonObj.get("criticalThreshold").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `criticalThreshold` to be a primitive type in the JSON string but got `%s`", jsonObj.get("criticalThreshold").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `criticalThreshold` to be a primitive type in the JSON string but got `%s`", jsonObj.get("criticalThreshold").toString())); } } @@ -479,7 +476,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/DirectConnectionIpv4.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/DirectConnectionIpv4.java index 17f3b266..d6b44c51 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/DirectConnectionIpv4.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/DirectConnectionIpv4.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * DirectConnectionIpv4 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class DirectConnectionIpv4 { public static final String SERIALIZED_NAME_EQUINIX_IFACE_IP = "equinixIfaceIp"; @SerializedName(SERIALIZED_NAME_EQUINIX_IFACE_IP) @@ -165,11 +167,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("equinixIfaceIp"); + openapiFields = new HashSet(Arrays.asList("equinixIfaceIp")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -181,12 +182,12 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!DirectConnectionIpv4.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in DirectConnectionIpv4 is not found in the empty JSON string", DirectConnectionIpv4.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DirectConnectionIpv4 is not found in the empty JSON string", DirectConnectionIpv4.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("equinixIfaceIp") != null && !jsonObj.get("equinixIfaceIp").isJsonNull()) && !jsonObj.get("equinixIfaceIp").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `equinixIfaceIp` to be a primitive type in the JSON string but got `%s`", jsonObj.get("equinixIfaceIp").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `equinixIfaceIp` to be a primitive type in the JSON string but got `%s`", jsonObj.get("equinixIfaceIp").toString())); } } @@ -247,7 +248,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/DirectConnectionIpv6.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/DirectConnectionIpv6.java index ee62c99b..80a86e25 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/DirectConnectionIpv6.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/DirectConnectionIpv6.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * DirectConnectionIpv6 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class DirectConnectionIpv6 { public static final String SERIALIZED_NAME_EQUINIX_IFACE_IP = "equinixIfaceIp"; @SerializedName(SERIALIZED_NAME_EQUINIX_IFACE_IP) @@ -165,12 +167,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("equinixIfaceIp"); + openapiFields = new HashSet(Arrays.asList("equinixIfaceIp")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("equinixIfaceIp"); + openapiRequiredFields = new HashSet(Arrays.asList("equinixIfaceIp")); } /** @@ -182,19 +182,19 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!DirectConnectionIpv6.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in DirectConnectionIpv6 is not found in the empty JSON string", DirectConnectionIpv6.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DirectConnectionIpv6 is not found in the empty JSON string", DirectConnectionIpv6.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : DirectConnectionIpv6.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("equinixIfaceIp").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `equinixIfaceIp` to be a primitive type in the JSON string but got `%s`", jsonObj.get("equinixIfaceIp").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `equinixIfaceIp` to be a primitive type in the JSON string but got `%s`", jsonObj.get("equinixIfaceIp").toString())); } } @@ -255,7 +255,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Direction.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Direction.java index 6d0e7d8c..d9bb74db 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Direction.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Direction.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Metrics; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Directional statistics */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class Direction { public static final String SERIALIZED_NAME_MAX = "max"; @SerializedName(SERIALIZED_NAME_MAX) @@ -228,13 +230,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("max"); - openapiFields.add("mean"); - openapiFields.add("metrics"); + openapiFields = new HashSet(Arrays.asList("max", "mean", "metrics")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -246,7 +245,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!Direction.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in Direction is not found in the empty JSON string", Direction.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in Direction is not found in the empty JSON string", Direction.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -255,7 +254,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraymetrics != null) { // ensure the json data is an array if (!jsonObj.get("metrics").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `metrics` to be an array in the JSON string but got `%s`", jsonObj.get("metrics").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `metrics` to be an array in the JSON string but got `%s`", jsonObj.get("metrics").toString())); } // validate the optional field `metrics` (array) @@ -323,7 +322,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/EndCustomer.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/EndCustomer.java index 55186606..cd0fbd04 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/EndCustomer.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/EndCustomer.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * EndCustomer */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class EndCustomer { public static final String SERIALIZED_NAME_IS_DISCLOSED = "isDisclosed"; @SerializedName(SERIALIZED_NAME_IS_DISCLOSED) @@ -217,13 +219,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("isDisclosed"); - openapiFields.add("name"); - openapiFields.add("mdmId"); + openapiFields = new HashSet(Arrays.asList("isDisclosed", "name", "mdmId")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -235,15 +234,15 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!EndCustomer.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in EndCustomer is not found in the empty JSON string", EndCustomer.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in EndCustomer is not found in the empty JSON string", EndCustomer.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } if ((jsonObj.get("mdmId") != null && !jsonObj.get("mdmId").isJsonNull()) && !jsonObj.get("mdmId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `mdmId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("mdmId").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `mdmId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("mdmId").toString())); } } @@ -304,7 +303,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/EquinixStatus.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/EquinixStatus.java index 311fbca2..ec93f1bc 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/EquinixStatus.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/EquinixStatus.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Error.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Error.java index ae91c064..3f95d283 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Error.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Error.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.PriceErrorAdditionalInfo; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Error Response with details */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class Error { public static final String SERIALIZED_NAME_ERROR_CODE = "errorCode"; @SerializedName(SERIALIZED_NAME_ERROR_CODE) @@ -306,18 +308,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("errorCode"); - openapiFields.add("errorMessage"); - openapiFields.add("correlationId"); - openapiFields.add("details"); - openapiFields.add("help"); - openapiFields.add("additionalInfo"); + openapiFields = new HashSet(Arrays.asList("errorCode", "errorMessage", "correlationId", "details", "help", "additionalInfo")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("errorCode"); - openapiRequiredFields.add("errorMessage"); + openapiRequiredFields = new HashSet(Arrays.asList("errorCode", "errorMessage")); } /** @@ -329,38 +323,38 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!Error.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in Error is not found in the empty JSON string", Error.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in Error is not found in the empty JSON string", Error.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : Error.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("errorCode").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `errorCode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("errorCode").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `errorCode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("errorCode").toString())); } if (!jsonObj.get("errorMessage").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `errorMessage` to be a primitive type in the JSON string but got `%s`", jsonObj.get("errorMessage").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `errorMessage` to be a primitive type in the JSON string but got `%s`", jsonObj.get("errorMessage").toString())); } if ((jsonObj.get("correlationId") != null && !jsonObj.get("correlationId").isJsonNull()) && !jsonObj.get("correlationId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `correlationId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("correlationId").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `correlationId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("correlationId").toString())); } if ((jsonObj.get("details") != null && !jsonObj.get("details").isJsonNull()) && !jsonObj.get("details").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `details` to be a primitive type in the JSON string but got `%s`", jsonObj.get("details").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `details` to be a primitive type in the JSON string but got `%s`", jsonObj.get("details").toString())); } if ((jsonObj.get("help") != null && !jsonObj.get("help").isJsonNull()) && !jsonObj.get("help").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `help` to be a primitive type in the JSON string but got `%s`", jsonObj.get("help").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `help` to be a primitive type in the JSON string but got `%s`", jsonObj.get("help").toString())); } if (jsonObj.get("additionalInfo") != null && !jsonObj.get("additionalInfo").isJsonNull()) { JsonArray jsonArrayadditionalInfo = jsonObj.getAsJsonArray("additionalInfo"); if (jsonArrayadditionalInfo != null) { // ensure the json data is an array if (!jsonObj.get("additionalInfo").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `additionalInfo` to be an array in the JSON string but got `%s`", jsonObj.get("additionalInfo").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `additionalInfo` to be an array in the JSON string but got `%s`", jsonObj.get("additionalInfo").toString())); } // validate the optional field `additionalInfo` (array) @@ -428,7 +422,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Expression.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Expression.java index 4102e0f4..33de6471 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Expression.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Expression.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.SearchFieldName; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Expression */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class Expression { public static final String SERIALIZED_NAME_AND = "and"; @SerializedName(SERIALIZED_NAME_AND) @@ -358,15 +360,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("and"); - openapiFields.add("or"); - openapiFields.add("property"); - openapiFields.add("operator"); - openapiFields.add("values"); + openapiFields = new HashSet(Arrays.asList("and", "or", "property", "operator", "values")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -378,7 +375,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!Expression.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in Expression is not found in the empty JSON string", Expression.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in Expression is not found in the empty JSON string", Expression.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -387,7 +384,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayand != null) { // ensure the json data is an array if (!jsonObj.get("and").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `and` to be an array in the JSON string but got `%s`", jsonObj.get("and").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `and` to be an array in the JSON string but got `%s`", jsonObj.get("and").toString())); } // validate the optional field `and` (array) @@ -401,7 +398,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayor != null) { // ensure the json data is an array if (!jsonObj.get("or").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `or` to be an array in the JSON string but got `%s`", jsonObj.get("or").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `or` to be an array in the JSON string but got `%s`", jsonObj.get("or").toString())); } // validate the optional field `or` (array) @@ -415,7 +412,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti SearchFieldName.validateJsonElement(jsonObj.get("property")); } if ((jsonObj.get("operator") != null && !jsonObj.get("operator").isJsonNull()) && !jsonObj.get("operator").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `operator` to be a primitive type in the JSON string but got `%s`", jsonObj.get("operator").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `operator` to be a primitive type in the JSON string but got `%s`", jsonObj.get("operator").toString())); } // validate the optional field `operator` if (jsonObj.get("operator") != null && !jsonObj.get("operator").isJsonNull()) { @@ -423,7 +420,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } // ensure the optional json data is an array if present if (jsonObj.get("values") != null && !jsonObj.get("values").isJsonNull() && !jsonObj.get("values").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); } } @@ -484,7 +481,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/FabricCloudRouterCode.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/FabricCloudRouterCode.java index 1a3aa517..95a32715 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/FabricCloudRouterCode.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/FabricCloudRouterCode.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/FabricCloudRouterPackages.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/FabricCloudRouterPackages.java index 35703519..e4851083 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/FabricCloudRouterPackages.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/FabricCloudRouterPackages.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.FabricCloudRouterCode; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Cloud Router package */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class FabricCloudRouterPackages { public static final String SERIALIZED_NAME_CODE = "code"; @SerializedName(SERIALIZED_NAME_CODE) @@ -166,11 +168,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("code"); + openapiFields = new HashSet(Arrays.asList("code")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -182,7 +183,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!FabricCloudRouterPackages.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in FabricCloudRouterPackages is not found in the empty JSON string", FabricCloudRouterPackages.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in FabricCloudRouterPackages is not found in the empty JSON string", FabricCloudRouterPackages.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -249,7 +250,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/FabricCloudRouterPrice.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/FabricCloudRouterPrice.java index b0a0816b..f4a53e3f 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/FabricCloudRouterPrice.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/FabricCloudRouterPrice.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.FabricCloudRouterPackages; import com.equinix.sdk.fabricv4.model.PriceLocation; import com.google.gson.TypeAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Cloud Router Product configuration */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class FabricCloudRouterPrice { public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) @@ -220,13 +222,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("uuid"); - openapiFields.add("location"); - openapiFields.add("package"); + openapiFields = new HashSet(Arrays.asList("uuid", "location", "package")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -238,12 +237,12 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!FabricCloudRouterPrice.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in FabricCloudRouterPrice is not found in the empty JSON string", FabricCloudRouterPrice.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in FabricCloudRouterPrice is not found in the empty JSON string", FabricCloudRouterPrice.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } // validate the optional field `location` if (jsonObj.get("location") != null && !jsonObj.get("location").isJsonNull()) { @@ -312,7 +311,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/FilterBody.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/FilterBody.java index 9adfbc42..2a58a855 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/FilterBody.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/FilterBody.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.SearchExpression; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Search requests containing criteria */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class FilterBody { public static final String SERIALIZED_NAME_FILTER = "filter"; @SerializedName(SERIALIZED_NAME_FILTER) @@ -166,11 +168,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("filter"); + openapiFields = new HashSet(Arrays.asList("filter")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -182,7 +183,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!FilterBody.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in FilterBody is not found in the empty JSON string", FilterBody.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in FilterBody is not found in the empty JSON string", FilterBody.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -249,7 +250,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GatewayAttachmentListResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GatewayAttachmentListResponse.java index a473795c..5bc175e1 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GatewayAttachmentListResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GatewayAttachmentListResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.GatewayAttachmentResponse; import com.equinix.sdk.fabricv4.model.Pagination; import com.google.gson.TypeAdapter; @@ -44,13 +45,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * GatewayAttachmentListResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class GatewayAttachmentListResponse { public static final String SERIALIZED_NAME_PAGINATION = "pagination"; @SerializedName(SERIALIZED_NAME_PAGINATION) @@ -203,14 +205,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("pagination"); - openapiFields.add("data"); + openapiFields = new HashSet(Arrays.asList("pagination", "data")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("pagination"); - openapiRequiredFields.add("data"); + openapiRequiredFields = new HashSet(Arrays.asList("pagination", "data")); } /** @@ -222,14 +220,14 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!GatewayAttachmentListResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in GatewayAttachmentListResponse is not found in the empty JSON string", GatewayAttachmentListResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GatewayAttachmentListResponse is not found in the empty JSON string", GatewayAttachmentListResponse.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : GatewayAttachmentListResponse.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -237,7 +235,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti Pagination.validateJsonElement(jsonObj.get("pagination")); // ensure the json data is an array if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); } JsonArray jsonArraydata = jsonObj.getAsJsonArray("data"); @@ -304,7 +302,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GatewayAttachmentResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GatewayAttachmentResponse.java index a741a103..b32841a3 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GatewayAttachmentResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GatewayAttachmentResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Changelog; import com.equinix.sdk.fabricv4.model.Error; import com.google.gson.TypeAdapter; @@ -46,13 +47,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Schema representing a Gateway attaching or detaching on a Cloud Router. This schema defines the structure of the response returned when a Gateway is attached or detached to a Cloud Router. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class GatewayAttachmentResponse { public static final String SERIALIZED_NAME_HREF = "href"; @SerializedName(SERIALIZED_NAME_HREF) @@ -417,16 +419,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("href"); - openapiFields.add("type"); - openapiFields.add("uuid"); - openapiFields.add("attachmentStatus"); - openapiFields.add("errors"); - openapiFields.add("changeLog"); + openapiFields = new HashSet(Arrays.asList("href", "type", "uuid", "attachmentStatus", "errors", "changeLog")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -438,25 +434,25 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!GatewayAttachmentResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in GatewayAttachmentResponse is not found in the empty JSON string", GatewayAttachmentResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GatewayAttachmentResponse is not found in the empty JSON string", GatewayAttachmentResponse.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the optional field `type` if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { TypeEnum.validateJsonElement(jsonObj.get("type")); } if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } if ((jsonObj.get("attachmentStatus") != null && !jsonObj.get("attachmentStatus").isJsonNull()) && !jsonObj.get("attachmentStatus").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `attachmentStatus` to be a primitive type in the JSON string but got `%s`", jsonObj.get("attachmentStatus").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `attachmentStatus` to be a primitive type in the JSON string but got `%s`", jsonObj.get("attachmentStatus").toString())); } // validate the optional field `attachmentStatus` if (jsonObj.get("attachmentStatus") != null && !jsonObj.get("attachmentStatus").isJsonNull()) { @@ -467,7 +463,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayerrors != null) { // ensure the json data is an array if (!jsonObj.get("errors").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `errors` to be an array in the JSON string but got `%s`", jsonObj.get("errors").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `errors` to be an array in the JSON string but got `%s`", jsonObj.get("errors").toString())); } // validate the optional field `errors` (array) @@ -539,7 +535,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GeoCoordinates.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GeoCoordinates.java index ab7d4bd0..29a97105 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GeoCoordinates.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GeoCoordinates.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Geographic location data of Fabric Metro */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class GeoCoordinates { public static final String SERIALIZED_NAME_LATITUDE = "latitude"; @SerializedName(SERIALIZED_NAME_LATITUDE) @@ -191,12 +193,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("latitude"); - openapiFields.add("longitude"); + openapiFields = new HashSet(Arrays.asList("latitude", "longitude")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -208,7 +208,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!GeoCoordinates.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in GeoCoordinates is not found in the empty JSON string", GeoCoordinates.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GeoCoordinates is not found in the empty JSON string", GeoCoordinates.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -271,7 +271,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GeoScopeType.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GeoScopeType.java index a8cd5ffc..1261a447 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GeoScopeType.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GeoScopeType.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GetAllCloudRouterCommands.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GetAllCloudRouterCommands.java index 5afa4397..94e1c877 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GetAllCloudRouterCommands.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GetAllCloudRouterCommands.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.CloudRouterCommand; import com.equinix.sdk.fabricv4.model.Pagination; import com.google.gson.TypeAdapter; @@ -44,13 +45,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * List of Fabric Cloud Router Command */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class GetAllCloudRouterCommands { public static final String SERIALIZED_NAME_PAGINATION = "pagination"; @SerializedName(SERIALIZED_NAME_PAGINATION) @@ -203,12 +205,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("pagination"); - openapiFields.add("data"); + openapiFields = new HashSet(Arrays.asList("pagination", "data")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -220,7 +220,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!GetAllCloudRouterCommands.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in GetAllCloudRouterCommands is not found in the empty JSON string", GetAllCloudRouterCommands.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetAllCloudRouterCommands is not found in the empty JSON string", GetAllCloudRouterCommands.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -233,7 +233,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraydata != null) { // ensure the json data is an array if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); } // validate the optional field `data` (array) @@ -301,7 +301,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GetAllConnectionRouteAggregationsResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GetAllConnectionRouteAggregationsResponse.java index d8f9ae07..a62b8f49 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GetAllConnectionRouteAggregationsResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GetAllConnectionRouteAggregationsResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.ConnectionRouteAggregationData; import com.equinix.sdk.fabricv4.model.Pagination; import com.google.gson.TypeAdapter; @@ -44,13 +45,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * GetAllConnectionRouteAggregationsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class GetAllConnectionRouteAggregationsResponse { public static final String SERIALIZED_NAME_PAGINATION = "pagination"; @SerializedName(SERIALIZED_NAME_PAGINATION) @@ -203,12 +205,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("pagination"); - openapiFields.add("data"); + openapiFields = new HashSet(Arrays.asList("pagination", "data")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -220,7 +220,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!GetAllConnectionRouteAggregationsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in GetAllConnectionRouteAggregationsResponse is not found in the empty JSON string", GetAllConnectionRouteAggregationsResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetAllConnectionRouteAggregationsResponse is not found in the empty JSON string", GetAllConnectionRouteAggregationsResponse.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -233,7 +233,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraydata != null) { // ensure the json data is an array if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); } // validate the optional field `data` (array) @@ -301,7 +301,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GetAllConnectionRouteFiltersResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GetAllConnectionRouteFiltersResponse.java index deea61a7..c9d25ab9 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GetAllConnectionRouteFiltersResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GetAllConnectionRouteFiltersResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.ConnectionRouteFilterData; import com.equinix.sdk.fabricv4.model.Pagination; import com.google.gson.TypeAdapter; @@ -44,13 +45,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * GetAllConnectionRouteFiltersResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class GetAllConnectionRouteFiltersResponse { public static final String SERIALIZED_NAME_PAGINATION = "pagination"; @SerializedName(SERIALIZED_NAME_PAGINATION) @@ -203,12 +205,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("pagination"); - openapiFields.add("data"); + openapiFields = new HashSet(Arrays.asList("pagination", "data")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -220,7 +220,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!GetAllConnectionRouteFiltersResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in GetAllConnectionRouteFiltersResponse is not found in the empty JSON string", GetAllConnectionRouteFiltersResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetAllConnectionRouteFiltersResponse is not found in the empty JSON string", GetAllConnectionRouteFiltersResponse.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -233,7 +233,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraydata != null) { // ensure the json data is an array if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); } // validate the optional field `data` (array) @@ -301,7 +301,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GetAllStreamAlertRuleResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GetAllStreamAlertRuleResponse.java index 53283596..bd1e8e90 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GetAllStreamAlertRuleResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GetAllStreamAlertRuleResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Pagination; import com.equinix.sdk.fabricv4.model.StreamAlertRule; import com.google.gson.TypeAdapter; @@ -44,13 +45,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * GetAllStreamAlertRuleResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class GetAllStreamAlertRuleResponse { public static final String SERIALIZED_NAME_PAGINATION = "pagination"; @SerializedName(SERIALIZED_NAME_PAGINATION) @@ -203,12 +205,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("pagination"); - openapiFields.add("data"); + openapiFields = new HashSet(Arrays.asList("pagination", "data")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -220,7 +220,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!GetAllStreamAlertRuleResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in GetAllStreamAlertRuleResponse is not found in the empty JSON string", GetAllStreamAlertRuleResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetAllStreamAlertRuleResponse is not found in the empty JSON string", GetAllStreamAlertRuleResponse.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -233,7 +233,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraydata != null) { // ensure the json data is an array if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); } // validate the optional field `data` (array) @@ -301,7 +301,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GetAllStreamAssetResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GetAllStreamAssetResponse.java index 4ff65310..93c2a30e 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GetAllStreamAssetResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GetAllStreamAssetResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Pagination; import com.equinix.sdk.fabricv4.model.StreamAsset; import com.google.gson.TypeAdapter; @@ -44,13 +45,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * GetAllStreamAssetResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class GetAllStreamAssetResponse { public static final String SERIALIZED_NAME_PAGINATION = "pagination"; @SerializedName(SERIALIZED_NAME_PAGINATION) @@ -203,12 +205,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("pagination"); - openapiFields.add("data"); + openapiFields = new HashSet(Arrays.asList("pagination", "data")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -220,7 +220,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!GetAllStreamAssetResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in GetAllStreamAssetResponse is not found in the empty JSON string", GetAllStreamAssetResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetAllStreamAssetResponse is not found in the empty JSON string", GetAllStreamAssetResponse.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -233,7 +233,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraydata != null) { // ensure the json data is an array if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); } // validate the optional field `data` (array) @@ -301,7 +301,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GetAllStreamResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GetAllStreamResponse.java index 66ba2138..ad4f2d35 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GetAllStreamResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GetAllStreamResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Pagination; import com.equinix.sdk.fabricv4.model.Stream; import com.google.gson.TypeAdapter; @@ -44,13 +45,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * GetAllStreamResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class GetAllStreamResponse { public static final String SERIALIZED_NAME_PAGINATION = "pagination"; @SerializedName(SERIALIZED_NAME_PAGINATION) @@ -203,12 +205,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("pagination"); - openapiFields.add("data"); + openapiFields = new HashSet(Arrays.asList("pagination", "data")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -220,7 +220,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!GetAllStreamResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in GetAllStreamResponse is not found in the empty JSON string", GetAllStreamResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetAllStreamResponse is not found in the empty JSON string", GetAllStreamResponse.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -233,7 +233,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraydata != null) { // ensure the json data is an array if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); } // validate the optional field `data` (array) @@ -301,7 +301,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GetAllStreamSubscriptionResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GetAllStreamSubscriptionResponse.java index 538cd9b3..015893ec 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GetAllStreamSubscriptionResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GetAllStreamSubscriptionResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Pagination; import com.equinix.sdk.fabricv4.model.StreamSubscription; import com.google.gson.TypeAdapter; @@ -44,13 +45,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * GetAllStreamSubscriptionResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class GetAllStreamSubscriptionResponse { public static final String SERIALIZED_NAME_PAGINATION = "pagination"; @SerializedName(SERIALIZED_NAME_PAGINATION) @@ -203,12 +205,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("pagination"); - openapiFields.add("data"); + openapiFields = new HashSet(Arrays.asList("pagination", "data")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -220,7 +220,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!GetAllStreamSubscriptionResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in GetAllStreamSubscriptionResponse is not found in the empty JSON string", GetAllStreamSubscriptionResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetAllStreamSubscriptionResponse is not found in the empty JSON string", GetAllStreamSubscriptionResponse.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -233,7 +233,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraydata != null) { // ensure the json data is an array if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); } // validate the optional field `data` (array) @@ -301,7 +301,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GetCloudEventsByAssetResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GetCloudEventsByAssetResponse.java index 31eeca32..37a34b43 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GetCloudEventsByAssetResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GetCloudEventsByAssetResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.CloudEvent; import com.equinix.sdk.fabricv4.model.Pagination; import com.google.gson.TypeAdapter; @@ -44,13 +45,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * GetCloudEventsByAssetResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class GetCloudEventsByAssetResponse { public static final String SERIALIZED_NAME_PAGINATION = "pagination"; @SerializedName(SERIALIZED_NAME_PAGINATION) @@ -203,12 +205,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("pagination"); - openapiFields.add("data"); + openapiFields = new HashSet(Arrays.asList("pagination", "data")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -220,7 +220,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!GetCloudEventsByAssetResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in GetCloudEventsByAssetResponse is not found in the empty JSON string", GetCloudEventsByAssetResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetCloudEventsByAssetResponse is not found in the empty JSON string", GetCloudEventsByAssetResponse.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -233,7 +233,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraydata != null) { // ensure the json data is an array if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); } // validate the optional field `data` (array) @@ -301,7 +301,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GetMetricsByAssetResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GetMetricsByAssetResponse.java index ee286545..fba92401 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GetMetricsByAssetResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GetMetricsByAssetResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Metric; import com.equinix.sdk.fabricv4.model.Pagination; import com.google.gson.TypeAdapter; @@ -44,13 +45,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * GetMetricsByAssetResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class GetMetricsByAssetResponse { public static final String SERIALIZED_NAME_PAGINATION = "pagination"; @SerializedName(SERIALIZED_NAME_PAGINATION) @@ -203,12 +205,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("pagination"); - openapiFields.add("data"); + openapiFields = new HashSet(Arrays.asList("pagination", "data")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -220,7 +220,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!GetMetricsByAssetResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in GetMetricsByAssetResponse is not found in the empty JSON string", GetMetricsByAssetResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetMetricsByAssetResponse is not found in the empty JSON string", GetMetricsByAssetResponse.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -233,7 +233,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraydata != null) { // ensure the json data is an array if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); } // validate the optional field `data` (array) @@ -301,7 +301,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GetResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GetResponse.java index 7d4dc3ed..341be1c8 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GetResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GetResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Pagination; import com.equinix.sdk.fabricv4.model.RoutingProtocolData; import com.google.gson.TypeAdapter; @@ -44,13 +45,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * GetResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class GetResponse { public static final String SERIALIZED_NAME_PAGINATION = "pagination"; @SerializedName(SERIALIZED_NAME_PAGINATION) @@ -203,12 +205,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("pagination"); - openapiFields.add("data"); + openapiFields = new HashSet(Arrays.asList("pagination", "data")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -220,7 +220,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!GetResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in GetResponse is not found in the empty JSON string", GetResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetResponse is not found in the empty JSON string", GetResponse.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -233,7 +233,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraydata != null) { // ensure the json data is an array if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); } // validate the optional field `data` (array) @@ -301,7 +301,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GetRouteAggregationGetConnectionsResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GetRouteAggregationGetConnectionsResponse.java index 766a5526..c7a1559e 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GetRouteAggregationGetConnectionsResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GetRouteAggregationGetConnectionsResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Pagination; import com.equinix.sdk.fabricv4.model.RouteAggregationConnectionsData; import com.google.gson.TypeAdapter; @@ -44,13 +45,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * GetRouteAggregationGetConnectionsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class GetRouteAggregationGetConnectionsResponse { public static final String SERIALIZED_NAME_PAGINATION = "pagination"; @SerializedName(SERIALIZED_NAME_PAGINATION) @@ -203,12 +205,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("pagination"); - openapiFields.add("data"); + openapiFields = new HashSet(Arrays.asList("pagination", "data")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -220,7 +220,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!GetRouteAggregationGetConnectionsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in GetRouteAggregationGetConnectionsResponse is not found in the empty JSON string", GetRouteAggregationGetConnectionsResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetRouteAggregationGetConnectionsResponse is not found in the empty JSON string", GetRouteAggregationGetConnectionsResponse.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -233,7 +233,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraydata != null) { // ensure the json data is an array if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); } // validate the optional field `data` (array) @@ -301,7 +301,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GetRouteAggregationRulesResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GetRouteAggregationRulesResponse.java index f16f19fd..0e6b8f2f 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GetRouteAggregationRulesResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GetRouteAggregationRulesResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Pagination; import com.equinix.sdk.fabricv4.model.RouteAggregationRulesData; import com.google.gson.TypeAdapter; @@ -44,13 +45,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * GetRouteAggregationRulesResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class GetRouteAggregationRulesResponse { public static final String SERIALIZED_NAME_PAGINATION = "pagination"; @SerializedName(SERIALIZED_NAME_PAGINATION) @@ -203,12 +205,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("pagination"); - openapiFields.add("data"); + openapiFields = new HashSet(Arrays.asList("pagination", "data")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -220,7 +220,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!GetRouteAggregationRulesResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in GetRouteAggregationRulesResponse is not found in the empty JSON string", GetRouteAggregationRulesResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetRouteAggregationRulesResponse is not found in the empty JSON string", GetRouteAggregationRulesResponse.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -233,7 +233,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraydata != null) { // ensure the json data is an array if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); } // validate the optional field `data` (array) @@ -301,7 +301,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GetRouteFilterGetConnectionsResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GetRouteFilterGetConnectionsResponse.java index 462ba195..566d58d5 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GetRouteFilterGetConnectionsResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GetRouteFilterGetConnectionsResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Pagination; import com.equinix.sdk.fabricv4.model.RouteFilterConnectionsData; import com.google.gson.TypeAdapter; @@ -44,13 +45,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * GetRouteFilterGetConnectionsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class GetRouteFilterGetConnectionsResponse { public static final String SERIALIZED_NAME_PAGINATION = "pagination"; @SerializedName(SERIALIZED_NAME_PAGINATION) @@ -203,12 +205,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("pagination"); - openapiFields.add("data"); + openapiFields = new HashSet(Arrays.asList("pagination", "data")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -220,7 +220,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!GetRouteFilterGetConnectionsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in GetRouteFilterGetConnectionsResponse is not found in the empty JSON string", GetRouteFilterGetConnectionsResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetRouteFilterGetConnectionsResponse is not found in the empty JSON string", GetRouteFilterGetConnectionsResponse.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -233,7 +233,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraydata != null) { // ensure the json data is an array if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); } // validate the optional field `data` (array) @@ -301,7 +301,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GetRouteFilterRulesResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GetRouteFilterRulesResponse.java index 6527b798..70794113 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GetRouteFilterRulesResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/GetRouteFilterRulesResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Pagination; import com.equinix.sdk.fabricv4.model.RouteFilterRulesData; import com.google.gson.TypeAdapter; @@ -44,13 +45,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * GetRouteFilterRulesResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class GetRouteFilterRulesResponse { public static final String SERIALIZED_NAME_PAGINATION = "pagination"; @SerializedName(SERIALIZED_NAME_PAGINATION) @@ -203,12 +205,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("pagination"); - openapiFields.add("data"); + openapiFields = new HashSet(Arrays.asList("pagination", "data")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -220,7 +220,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!GetRouteFilterRulesResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in GetRouteFilterRulesResponse is not found in the empty JSON string", GetRouteFilterRulesResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetRouteFilterRulesResponse is not found in the empty JSON string", GetRouteFilterRulesResponse.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -233,7 +233,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraydata != null) { // ensure the json data is an array if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); } // validate the optional field `data` (array) @@ -301,7 +301,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/HealthResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/HealthResponse.java index fba77587..e9324508 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/HealthResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/HealthResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.ApiServices; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * GET Services Health */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class HealthResponse { public static final String SERIALIZED_NAME_HREF = "href"; @SerializedName(SERIALIZED_NAME_HREF) @@ -270,15 +272,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("href"); - openapiFields.add("version"); - openapiFields.add("release"); - openapiFields.add("state"); - openapiFields.add("apiServices"); + openapiFields = new HashSet(Arrays.asList("href", "version", "release", "state", "apiServices")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -290,21 +287,21 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!HealthResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in HealthResponse is not found in the empty JSON string", HealthResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in HealthResponse is not found in the empty JSON string", HealthResponse.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } if ((jsonObj.get("version") != null && !jsonObj.get("version").isJsonNull()) && !jsonObj.get("version").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `version` to be a primitive type in the JSON string but got `%s`", jsonObj.get("version").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `version` to be a primitive type in the JSON string but got `%s`", jsonObj.get("version").toString())); } if ((jsonObj.get("release") != null && !jsonObj.get("release").isJsonNull()) && !jsonObj.get("release").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `release` to be a primitive type in the JSON string but got `%s`", jsonObj.get("release").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `release` to be a primitive type in the JSON string but got `%s`", jsonObj.get("release").toString())); } if ((jsonObj.get("state") != null && !jsonObj.get("state").isJsonNull()) && !jsonObj.get("state").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `state` to be a primitive type in the JSON string but got `%s`", jsonObj.get("state").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `state` to be a primitive type in the JSON string but got `%s`", jsonObj.get("state").toString())); } // validate the optional field `apiServices` if (jsonObj.get("apiServices") != null && !jsonObj.get("apiServices").isJsonNull()) { @@ -369,7 +366,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Hop.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Hop.java index 3519e468..e90fdb52 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Hop.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Hop.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.HopProbes; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Hop */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class Hop { public static final String SERIALIZED_NAME_HOP = "hop"; @SerializedName(SERIALIZED_NAME_HOP) @@ -202,12 +204,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("hop"); - openapiFields.add("probes"); + openapiFields = new HashSet(Arrays.asList("hop", "probes")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -219,7 +219,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!Hop.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in Hop is not found in the empty JSON string", Hop.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in Hop is not found in the empty JSON string", Hop.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -228,7 +228,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayprobes != null) { // ensure the json data is an array if (!jsonObj.get("probes").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `probes` to be an array in the JSON string but got `%s`", jsonObj.get("probes").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `probes` to be an array in the JSON string but got `%s`", jsonObj.get("probes").toString())); } // validate the optional field `probes` (array) @@ -296,7 +296,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/HopProbes.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/HopProbes.java index 701157f5..898f70df 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/HopProbes.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/HopProbes.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * HopProbes */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class HopProbes { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -269,15 +271,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("name"); - openapiFields.add("ip"); - openapiFields.add("asn"); - openapiFields.add("rtt"); - openapiFields.add("annotation"); + openapiFields = new HashSet(Arrays.asList("name", "ip", "asn", "rtt", "annotation")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -289,21 +286,21 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!HopProbes.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in HopProbes is not found in the empty JSON string", HopProbes.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in HopProbes is not found in the empty JSON string", HopProbes.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } if ((jsonObj.get("ip") != null && !jsonObj.get("ip").isJsonNull()) && !jsonObj.get("ip").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `ip` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ip").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `ip` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ip").toString())); } if ((jsonObj.get("rtt") != null && !jsonObj.get("rtt").isJsonNull()) && !jsonObj.get("rtt").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `rtt` to be a primitive type in the JSON string but got `%s`", jsonObj.get("rtt").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `rtt` to be a primitive type in the JSON string but got `%s`", jsonObj.get("rtt").toString())); } if ((jsonObj.get("annotation") != null && !jsonObj.get("annotation").isJsonNull()) && !jsonObj.get("annotation").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `annotation` to be a primitive type in the JSON string but got `%s`", jsonObj.get("annotation").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `annotation` to be a primitive type in the JSON string but got `%s`", jsonObj.get("annotation").toString())); } } @@ -364,7 +361,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/InternetAccess.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/InternetAccess.java index e723cfe6..1104e0eb 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/InternetAccess.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/InternetAccess.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Internet Access Details */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class InternetAccess { public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) @@ -166,11 +168,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("uuid"); + openapiFields = new HashSet(Arrays.asList("uuid")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -182,12 +183,12 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!InternetAccess.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in InternetAccess is not found in the empty JSON string", InternetAccess.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in InternetAccess is not found in the empty JSON string", InternetAccess.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } } @@ -248,7 +249,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/IpBlockPrice.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/IpBlockPrice.java index 0a333508..21e9e988 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/IpBlockPrice.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/IpBlockPrice.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.IpBlockType; import com.equinix.sdk.fabricv4.model.PriceLocation; import com.google.gson.TypeAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * IP Block Product configuration */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class IpBlockPrice { public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) @@ -246,14 +248,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("uuid"); - openapiFields.add("type"); - openapiFields.add("prefixLength"); - openapiFields.add("location"); + openapiFields = new HashSet(Arrays.asList("uuid", "type", "prefixLength", "location")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -265,12 +263,12 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!IpBlockPrice.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in IpBlockPrice is not found in the empty JSON string", IpBlockPrice.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in IpBlockPrice is not found in the empty JSON string", IpBlockPrice.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } // validate the optional field `type` if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { @@ -339,7 +337,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/IpBlockType.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/IpBlockType.java index 81dca239..d5b5f38b 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/IpBlockType.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/IpBlockType.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Ipv4.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Ipv4.java index 88f95621..aaf1de6b 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Ipv4.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Ipv4.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * EPT service network information */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class Ipv4 { public static final String SERIALIZED_NAME_PRIMARY = "primary"; @SerializedName(SERIALIZED_NAME_PRIMARY) @@ -243,17 +245,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("primary"); - openapiFields.add("secondary"); - openapiFields.add("networkMask"); - openapiFields.add("defaultGateway"); + openapiFields = new HashSet(Arrays.asList("primary", "secondary", "networkMask", "defaultGateway")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("primary"); - openapiRequiredFields.add("secondary"); - openapiRequiredFields.add("networkMask"); + openapiRequiredFields = new HashSet(Arrays.asList("primary", "secondary", "networkMask")); } /** @@ -265,28 +260,28 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!Ipv4.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in Ipv4 is not found in the empty JSON string", Ipv4.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in Ipv4 is not found in the empty JSON string", Ipv4.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : Ipv4.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("primary").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `primary` to be a primitive type in the JSON string but got `%s`", jsonObj.get("primary").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `primary` to be a primitive type in the JSON string but got `%s`", jsonObj.get("primary").toString())); } if (!jsonObj.get("secondary").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `secondary` to be a primitive type in the JSON string but got `%s`", jsonObj.get("secondary").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `secondary` to be a primitive type in the JSON string but got `%s`", jsonObj.get("secondary").toString())); } if (!jsonObj.get("networkMask").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `networkMask` to be a primitive type in the JSON string but got `%s`", jsonObj.get("networkMask").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `networkMask` to be a primitive type in the JSON string but got `%s`", jsonObj.get("networkMask").toString())); } if ((jsonObj.get("defaultGateway") != null && !jsonObj.get("defaultGateway").isJsonNull()) && !jsonObj.get("defaultGateway").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `defaultGateway` to be a primitive type in the JSON string but got `%s`", jsonObj.get("defaultGateway").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `defaultGateway` to be a primitive type in the JSON string but got `%s`", jsonObj.get("defaultGateway").toString())); } } @@ -347,7 +342,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/JsonPatchOperation.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/JsonPatchOperation.java index 180d649a..e3df2bc5 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/JsonPatchOperation.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/JsonPatchOperation.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.AddOperation; import com.equinix.sdk.fabricv4.model.OpEnum; import com.equinix.sdk.fabricv4.model.RemoveOperation; @@ -36,6 +37,7 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import java.util.Locale; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -59,7 +61,7 @@ import com.equinix.sdk.fabricv4.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class JsonPatchOperation extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(JsonPatchOperation.class.getName()); @@ -122,7 +124,7 @@ public JsonPatchOperation read(JsonReader in) throws IOException { log.log(Level.FINER, "Input data matches schema 'AddOperation'"); } catch (Exception e) { // deserialization failed, continue - errorMessages.add(String.format("Deserialization for AddOperation failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for AddOperation failed with `%s`.", e.getMessage())); log.log(Level.FINER, "Input data does not match schema 'AddOperation'", e); } // deserialize RemoveOperation @@ -134,7 +136,7 @@ public JsonPatchOperation read(JsonReader in) throws IOException { log.log(Level.FINER, "Input data matches schema 'RemoveOperation'"); } catch (Exception e) { // deserialization failed, continue - errorMessages.add(String.format("Deserialization for RemoveOperation failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for RemoveOperation failed with `%s`.", e.getMessage())); log.log(Level.FINER, "Input data does not match schema 'RemoveOperation'", e); } // deserialize ReplaceOperation @@ -146,7 +148,7 @@ public JsonPatchOperation read(JsonReader in) throws IOException { log.log(Level.FINER, "Input data matches schema 'ReplaceOperation'"); } catch (Exception e) { // deserialization failed, continue - errorMessages.add(String.format("Deserialization for ReplaceOperation failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for ReplaceOperation failed with `%s`.", e.getMessage())); log.log(Level.FINER, "Input data does not match schema 'ReplaceOperation'", e); } @@ -156,7 +158,7 @@ public JsonPatchOperation read(JsonReader in) throws IOException { return ret; } - throw new IOException(String.format("Failed deserialization for JsonPatchOperation: %d classes match result, expected 1. Detailed failure message for oneOf schemas: %s. JSON: %s", match, errorMessages, jsonElement.toString())); + throw new IOException(String.format(Locale.ROOT, "Failed deserialization for JsonPatchOperation: %d classes match result, expected 1. Detailed failure message for oneOf schemas: %s. JSON: %s", match, errorMessages, jsonElement.toString())); } }.nullSafe(); } @@ -272,7 +274,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti AddOperation.validateJsonElement(jsonElement); validCount++; } catch (Exception e) { - errorMessages.add(String.format("Deserialization for AddOperation failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for AddOperation failed with `%s`.", e.getMessage())); // continue to the next one } // validate the json string with RemoveOperation @@ -280,7 +282,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti RemoveOperation.validateJsonElement(jsonElement); validCount++; } catch (Exception e) { - errorMessages.add(String.format("Deserialization for RemoveOperation failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for RemoveOperation failed with `%s`.", e.getMessage())); // continue to the next one } // validate the json string with ReplaceOperation @@ -288,11 +290,11 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti ReplaceOperation.validateJsonElement(jsonElement); validCount++; } catch (Exception e) { - errorMessages.add(String.format("Deserialization for ReplaceOperation failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for ReplaceOperation failed with `%s`.", e.getMessage())); // continue to the next one } if (validCount != 1) { - throw new IOException(String.format("The JSON string is invalid for JsonPatchOperation with oneOf schemas: AddOperation, RemoveOperation, ReplaceOperation. %d class(es) match the result, expected 1. Detailed failure message for oneOf schemas: %s. JSON: %s", validCount, errorMessages, jsonElement.toString())); + throw new IOException(String.format(Locale.ROOT, "The JSON string is invalid for JsonPatchOperation with oneOf schemas: AddOperation, RemoveOperation, ReplaceOperation. %d class(es) match the result, expected 1. Detailed failure message for oneOf schemas: %s. JSON: %s", validCount, errorMessages, jsonElement.toString())); } } diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Link.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Link.java index 48c14a1e..b74e22ed 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Link.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Link.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Link */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class Link { public static final String SERIALIZED_NAME_HREF = "href"; @SerializedName(SERIALIZED_NAME_HREF) @@ -269,15 +271,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("href"); - openapiFields.add("rel"); - openapiFields.add("method"); - openapiFields.add("contentType"); - openapiFields.add("authenticate"); + openapiFields = new HashSet(Arrays.asList("href", "rel", "method", "contentType", "authenticate")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -289,21 +286,21 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!Link.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in Link is not found in the empty JSON string", Link.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in Link is not found in the empty JSON string", Link.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } if ((jsonObj.get("rel") != null && !jsonObj.get("rel").isJsonNull()) && !jsonObj.get("rel").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `rel` to be a primitive type in the JSON string but got `%s`", jsonObj.get("rel").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `rel` to be a primitive type in the JSON string but got `%s`", jsonObj.get("rel").toString())); } if ((jsonObj.get("method") != null && !jsonObj.get("method").isJsonNull()) && !jsonObj.get("method").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `method` to be a primitive type in the JSON string but got `%s`", jsonObj.get("method").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `method` to be a primitive type in the JSON string but got `%s`", jsonObj.get("method").toString())); } if ((jsonObj.get("contentType") != null && !jsonObj.get("contentType").isJsonNull()) && !jsonObj.get("contentType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("contentType").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("contentType").toString())); } } @@ -364,7 +361,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/LinkAggregationGroup.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/LinkAggregationGroup.java index f9bed6c2..83096102 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/LinkAggregationGroup.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/LinkAggregationGroup.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Link aggregation group (LAG) preferences and settings. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class LinkAggregationGroup { public static final String SERIALIZED_NAME_ENABLED = "enabled"; @SerializedName(SERIALIZED_NAME_ENABLED) @@ -165,11 +167,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("enabled"); + openapiFields = new HashSet(Arrays.asList("enabled")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -181,7 +182,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!LinkAggregationGroup.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in LinkAggregationGroup is not found in the empty JSON string", LinkAggregationGroup.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in LinkAggregationGroup is not found in the empty JSON string", LinkAggregationGroup.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -244,7 +245,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/LinkProtocolConnection.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/LinkProtocolConnection.java index 46b61397..29a8b256 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/LinkProtocolConnection.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/LinkProtocolConnection.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Connection details of Link Protocol */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class LinkProtocolConnection { public static final String SERIALIZED_NAME_HREF = "href"; @SerializedName(SERIALIZED_NAME_HREF) @@ -243,14 +245,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("href"); - openapiFields.add("uuid"); - openapiFields.add("type"); - openapiFields.add("bandwidth"); + openapiFields = new HashSet(Arrays.asList("href", "uuid", "type", "bandwidth")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -262,18 +260,18 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!LinkProtocolConnection.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in LinkProtocolConnection is not found in the empty JSON string", LinkProtocolConnection.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in LinkProtocolConnection is not found in the empty JSON string", LinkProtocolConnection.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } } @@ -334,7 +332,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/LinkProtocolGetResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/LinkProtocolGetResponse.java index 071c9348..4b390628 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/LinkProtocolGetResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/LinkProtocolGetResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.LinkProtocolResponse; import com.equinix.sdk.fabricv4.model.Pagination; import com.google.gson.TypeAdapter; @@ -44,13 +45,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * List of Vlans */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class LinkProtocolGetResponse { public static final String SERIALIZED_NAME_PAGINATION = "pagination"; @SerializedName(SERIALIZED_NAME_PAGINATION) @@ -203,12 +205,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("pagination"); - openapiFields.add("data"); + openapiFields = new HashSet(Arrays.asList("pagination", "data")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -220,7 +220,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!LinkProtocolGetResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in LinkProtocolGetResponse is not found in the empty JSON string", LinkProtocolGetResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in LinkProtocolGetResponse is not found in the empty JSON string", LinkProtocolGetResponse.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -233,7 +233,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraydata != null) { // ensure the json data is an array if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); } // validate the optional field `data` (array) @@ -301,7 +301,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/LinkProtocolRequestType.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/LinkProtocolRequestType.java index faf35a2f..0c0371a6 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/LinkProtocolRequestType.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/LinkProtocolRequestType.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/LinkProtocolResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/LinkProtocolResponse.java index 649e20b2..2b7d72fa 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/LinkProtocolResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/LinkProtocolResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Changelog; import com.equinix.sdk.fabricv4.model.LinkProtocolConnection; import com.equinix.sdk.fabricv4.model.LinkProtocolRequestType; @@ -48,13 +49,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Link Protocol response */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class LinkProtocolResponse { public static final String SERIALIZED_NAME_HREF = "href"; @SerializedName(SERIALIZED_NAME_HREF) @@ -562,26 +564,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("href"); - openapiFields.add("uuid"); - openapiFields.add("state"); - openapiFields.add("type"); - openapiFields.add("vlanTag"); - openapiFields.add("vni"); - openapiFields.add("vlanTagMin"); - openapiFields.add("vlanTagMax"); - openapiFields.add("vlanSTag"); - openapiFields.add("vlanCTag"); - openapiFields.add("vlanCTagMin"); - openapiFields.add("vlanCTagMax"); - openapiFields.add("subInterface"); - openapiFields.add("asset"); - openapiFields.add("serviceToken"); - openapiFields.add("changeLog"); + openapiFields = new HashSet(Arrays.asList("href", "uuid", "state", "type", "vlanTag", "vni", "vlanTagMin", "vlanTagMax", "vlanSTag", "vlanCTag", "vlanCTagMin", "vlanCTagMax", "subInterface", "asset", "serviceToken", "changeLog")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -593,15 +579,15 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!LinkProtocolResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in LinkProtocolResponse is not found in the empty JSON string", LinkProtocolResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in LinkProtocolResponse is not found in the empty JSON string", LinkProtocolResponse.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } // validate the optional field `state` if (jsonObj.get("state") != null && !jsonObj.get("state").isJsonNull()) { @@ -686,7 +672,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/LinkProtocolServiceToken.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/LinkProtocolServiceToken.java index 765cc870..8482f304 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/LinkProtocolServiceToken.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/LinkProtocolServiceToken.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Service Token details of Link Protocol */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class LinkProtocolServiceToken { public static final String SERIALIZED_NAME_HREF = "href"; @SerializedName(SERIALIZED_NAME_HREF) @@ -244,14 +246,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("href"); - openapiFields.add("uuid"); - openapiFields.add("type"); - openapiFields.add("bandwidth"); + openapiFields = new HashSet(Arrays.asList("href", "uuid", "type", "bandwidth")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -263,18 +261,18 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!LinkProtocolServiceToken.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in LinkProtocolServiceToken is not found in the empty JSON string", LinkProtocolServiceToken.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in LinkProtocolServiceToken is not found in the empty JSON string", LinkProtocolServiceToken.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } } @@ -335,7 +333,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/LinkProtocolState.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/LinkProtocolState.java index 95910a80..6e84ca81 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/LinkProtocolState.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/LinkProtocolState.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/LinkProtocolType.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/LinkProtocolType.java index a66951ec..cb1af251 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/LinkProtocolType.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/LinkProtocolType.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/LogoRequest.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/LogoRequest.java index 310a28ce..31b23102 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/LogoRequest.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/LogoRequest.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Equinix Fabric Logo Request Object */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class LogoRequest { public static final String SERIALIZED_NAME_LOGO = "logo"; @SerializedName(SERIALIZED_NAME_LOGO) @@ -244,18 +246,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("logo"); - openapiFields.add("name"); - openapiFields.add("description"); - openapiFields.add("type"); + openapiFields = new HashSet(Arrays.asList("logo", "name", "description", "type")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("logo"); - openapiRequiredFields.add("name"); - openapiRequiredFields.add("description"); - openapiRequiredFields.add("type"); + openapiRequiredFields = new HashSet(Arrays.asList("logo", "name", "description", "type")); } /** @@ -267,25 +261,25 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!LogoRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in LogoRequest is not found in the empty JSON string", LogoRequest.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in LogoRequest is not found in the empty JSON string", LogoRequest.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : LogoRequest.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } if (!jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); } if (!jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } } @@ -346,7 +340,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/LogoResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/LogoResponse.java index 659ddd90..4d2cecfc 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/LogoResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/LogoResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Changelog; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Equinix Fabric Logo Response Object */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class LogoResponse { public static final String SERIALIZED_NAME_HREF = "href"; @SerializedName(SERIALIZED_NAME_HREF) @@ -324,17 +326,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("href"); - openapiFields.add("uuid"); - openapiFields.add("type"); - openapiFields.add("name"); - openapiFields.add("description"); - openapiFields.add("status"); - openapiFields.add("changelog"); + openapiFields = new HashSet(Arrays.asList("href", "uuid", "type", "name", "description", "status", "changelog")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -346,27 +341,27 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!LogoResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in LogoResponse is not found in the empty JSON string", LogoResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in LogoResponse is not found in the empty JSON string", LogoResponse.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); } if ((jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) && !jsonObj.get("status").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); } // validate the optional field `changelog` if (jsonObj.get("changelog") != null && !jsonObj.get("changelog").isJsonNull()) { @@ -431,7 +426,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/MarketingInfo.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/MarketingInfo.java index aab6844e..38c41d23 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/MarketingInfo.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/MarketingInfo.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.ProcessStep; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * MarketingInfo */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class MarketingInfo { public static final String SERIALIZED_NAME_LOGO = "logo"; @SerializedName(SERIALIZED_NAME_LOGO) @@ -228,13 +230,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("logo"); - openapiFields.add("promotion"); - openapiFields.add("processSteps"); + openapiFields = new HashSet(Arrays.asList("logo", "promotion", "processSteps")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -246,19 +245,19 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!MarketingInfo.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MarketingInfo is not found in the empty JSON string", MarketingInfo.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in MarketingInfo is not found in the empty JSON string", MarketingInfo.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("logo") != null && !jsonObj.get("logo").isJsonNull()) && !jsonObj.get("logo").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `logo` to be a primitive type in the JSON string but got `%s`", jsonObj.get("logo").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `logo` to be a primitive type in the JSON string but got `%s`", jsonObj.get("logo").toString())); } if (jsonObj.get("processSteps") != null && !jsonObj.get("processSteps").isJsonNull()) { JsonArray jsonArrayprocessSteps = jsonObj.getAsJsonArray("processSteps"); if (jsonArrayprocessSteps != null) { // ensure the json data is an array if (!jsonObj.get("processSteps").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `processSteps` to be an array in the JSON string but got `%s`", jsonObj.get("processSteps").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `processSteps` to be an array in the JSON string but got `%s`", jsonObj.get("processSteps").toString())); } // validate the optional field `processSteps` (array) @@ -326,7 +325,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/MarketplaceSubscription.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/MarketplaceSubscription.java index bb3d8b77..c2f38af4 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/MarketplaceSubscription.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/MarketplaceSubscription.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Equinix Fabric Entity for Marketplace Subscription */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class MarketplaceSubscription { public static final String SERIALIZED_NAME_HREF = "href"; @SerializedName(SERIALIZED_NAME_HREF) @@ -271,13 +273,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("href"); - openapiFields.add("type"); - openapiFields.add("uuid"); + openapiFields = new HashSet(Arrays.asList("href", "type", "uuid")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -289,22 +288,22 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!MarketplaceSubscription.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MarketplaceSubscription is not found in the empty JSON string", MarketplaceSubscription.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in MarketplaceSubscription is not found in the empty JSON string", MarketplaceSubscription.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the optional field `type` if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { TypeEnum.validateJsonElement(jsonObj.get("type")); } if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } } @@ -365,7 +364,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Md5.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Md5.java index 67f40d69..9569e6ca 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Md5.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Md5.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Md5 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class Md5 { /** * Gets or Sets type @@ -271,13 +273,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("type"); - openapiFields.add("keyNumber"); - openapiFields.add("key"); + openapiFields = new HashSet(Arrays.asList("type", "keyNumber", "key")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -289,12 +288,12 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!Md5.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in Md5 is not found in the empty JSON string", Md5.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in Md5 is not found in the empty JSON string", Md5.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the optional field `type` if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { @@ -359,7 +358,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/MetalInterconnection.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/MetalInterconnection.java index 5b437f3c..e9b4f98b 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/MetalInterconnection.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/MetalInterconnection.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Metal Interconnection */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class MetalInterconnection { public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) @@ -166,11 +168,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("uuid"); + openapiFields = new HashSet(Arrays.asList("uuid")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -182,12 +183,12 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!MetalInterconnection.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MetalInterconnection is not found in the empty JSON string", MetalInterconnection.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in MetalInterconnection is not found in the empty JSON string", MetalInterconnection.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } } @@ -248,7 +249,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Metric.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Metric.java index 7353e5d7..c488073e 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Metric.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Metric.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.MetricDatapoints; import com.equinix.sdk.fabricv4.model.MetricResource; import com.google.gson.TypeAdapter; @@ -44,13 +45,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Metric object */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class Metric { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -333,17 +335,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("type"); - openapiFields.add("name"); - openapiFields.add("unit"); - openapiFields.add("interval"); - openapiFields.add("resource"); - openapiFields.add("summary"); - openapiFields.add("datapoints"); + openapiFields = new HashSet(Arrays.asList("type", "name", "unit", "interval", "resource", "summary", "datapoints")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -355,35 +350,35 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!Metric.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in Metric is not found in the empty JSON string", Metric.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in Metric is not found in the empty JSON string", Metric.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } if ((jsonObj.get("unit") != null && !jsonObj.get("unit").isJsonNull()) && !jsonObj.get("unit").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `unit` to be a primitive type in the JSON string but got `%s`", jsonObj.get("unit").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `unit` to be a primitive type in the JSON string but got `%s`", jsonObj.get("unit").toString())); } if ((jsonObj.get("interval") != null && !jsonObj.get("interval").isJsonNull()) && !jsonObj.get("interval").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `interval` to be a primitive type in the JSON string but got `%s`", jsonObj.get("interval").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `interval` to be a primitive type in the JSON string but got `%s`", jsonObj.get("interval").toString())); } // validate the optional field `resource` if (jsonObj.get("resource") != null && !jsonObj.get("resource").isJsonNull()) { MetricResource.validateJsonElement(jsonObj.get("resource")); } if ((jsonObj.get("summary") != null && !jsonObj.get("summary").isJsonNull()) && !jsonObj.get("summary").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `summary` to be a primitive type in the JSON string but got `%s`", jsonObj.get("summary").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `summary` to be a primitive type in the JSON string but got `%s`", jsonObj.get("summary").toString())); } if (jsonObj.get("datapoints") != null && !jsonObj.get("datapoints").isJsonNull()) { JsonArray jsonArraydatapoints = jsonObj.getAsJsonArray("datapoints"); if (jsonArraydatapoints != null) { // ensure the json data is an array if (!jsonObj.get("datapoints").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `datapoints` to be an array in the JSON string but got `%s`", jsonObj.get("datapoints").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `datapoints` to be an array in the JSON string but got `%s`", jsonObj.get("datapoints").toString())); } // validate the optional field `datapoints` (array) @@ -451,7 +446,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/MetricAssetType.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/MetricAssetType.java index 249b1ebd..a19dafe8 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/MetricAssetType.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/MetricAssetType.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/MetricDatapoints.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/MetricDatapoints.java index f898a112..11c20392 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/MetricDatapoints.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/MetricDatapoints.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * MetricDatapoints */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class MetricDatapoints { public static final String SERIALIZED_NAME_END_DATE_TIME = "endDateTime"; @SerializedName(SERIALIZED_NAME_END_DATE_TIME) @@ -219,13 +221,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("endDateTime"); - openapiFields.add("startDateTime"); - openapiFields.add("value"); + openapiFields = new HashSet(Arrays.asList("endDateTime", "startDateTime", "value")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -237,7 +236,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!MetricDatapoints.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MetricDatapoints is not found in the empty JSON string", MetricDatapoints.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in MetricDatapoints is not found in the empty JSON string", MetricDatapoints.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -300,7 +299,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/MetricFilters.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/MetricFilters.java index e73ebfe7..78c05959 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/MetricFilters.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/MetricFilters.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.MetricSimpleExpression; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * MetricFilters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class MetricFilters { public static final String SERIALIZED_NAME_AND = "and"; @SerializedName(SERIALIZED_NAME_AND) @@ -176,11 +178,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("and"); + openapiFields = new HashSet(Arrays.asList("and")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -192,7 +193,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!MetricFilters.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MetricFilters is not found in the empty JSON string", MetricFilters.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in MetricFilters is not found in the empty JSON string", MetricFilters.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -201,7 +202,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayand != null) { // ensure the json data is an array if (!jsonObj.get("and").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `and` to be an array in the JSON string but got `%s`", jsonObj.get("and").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `and` to be an array in the JSON string but got `%s`", jsonObj.get("and").toString())); } // validate the optional field `and` (array) @@ -269,7 +270,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/MetricResource.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/MetricResource.java index 4104697a..aaa5ccd3 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/MetricResource.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/MetricResource.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Metric resource */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class MetricResource { public static final String SERIALIZED_NAME_HREF = "href"; @SerializedName(SERIALIZED_NAME_HREF) @@ -269,15 +271,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("href"); - openapiFields.add("uuid"); - openapiFields.add("type"); - openapiFields.add("name"); - openapiFields.add("description"); + openapiFields = new HashSet(Arrays.asList("href", "uuid", "type", "name", "description")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -289,24 +286,24 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!MetricResource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MetricResource is not found in the empty JSON string", MetricResource.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in MetricResource is not found in the empty JSON string", MetricResource.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); } } @@ -367,7 +364,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/MetricSelector.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/MetricSelector.java index 0fbdb599..15509869 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/MetricSelector.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/MetricSelector.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * MetricSelector */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class MetricSelector { public static final String SERIALIZED_NAME_INCLUDE = "include"; @SerializedName(SERIALIZED_NAME_INCLUDE) @@ -175,12 +177,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("include"); + openapiFields = new HashSet(Arrays.asList("include")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("include"); + openapiRequiredFields = new HashSet(Arrays.asList("include")); } /** @@ -192,14 +192,14 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!MetricSelector.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MetricSelector is not found in the empty JSON string", MetricSelector.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in MetricSelector is not found in the empty JSON string", MetricSelector.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : MetricSelector.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -207,7 +207,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("include") == null) { throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); } else if (!jsonObj.get("include").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `include` to be an array in the JSON string but got `%s`", jsonObj.get("include").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `include` to be an array in the JSON string but got `%s`", jsonObj.get("include").toString())); } } @@ -268,7 +268,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/MetricSelectorResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/MetricSelectorResponse.java index a6446ffb..7352bea4 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/MetricSelectorResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/MetricSelectorResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * MetricSelectorResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class MetricSelectorResponse { public static final String SERIALIZED_NAME_INCLUDE = "include"; @SerializedName(SERIALIZED_NAME_INCLUDE) @@ -175,11 +177,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("include"); + openapiFields = new HashSet(Arrays.asList("include")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -191,13 +192,13 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!MetricSelectorResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MetricSelectorResponse is not found in the empty JSON string", MetricSelectorResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in MetricSelectorResponse is not found in the empty JSON string", MetricSelectorResponse.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the optional json data is an array if present if (jsonObj.get("include") != null && !jsonObj.get("include").isJsonNull() && !jsonObj.get("include").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `include` to be an array in the JSON string but got `%s`", jsonObj.get("include").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `include` to be an array in the JSON string but got `%s`", jsonObj.get("include").toString())); } } @@ -258,7 +259,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/MetricSimpleExpression.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/MetricSimpleExpression.java index 43bc98ab..c9346ed9 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/MetricSimpleExpression.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/MetricSimpleExpression.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * MetricSimpleExpression */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class MetricSimpleExpression { public static final String SERIALIZED_NAME_PROPERTY = "property"; @SerializedName(SERIALIZED_NAME_PROPERTY) @@ -227,13 +229,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("property"); - openapiFields.add("operator"); - openapiFields.add("values"); + openapiFields = new HashSet(Arrays.asList("property", "operator", "values")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -245,19 +244,19 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!MetricSimpleExpression.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MetricSimpleExpression is not found in the empty JSON string", MetricSimpleExpression.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in MetricSimpleExpression is not found in the empty JSON string", MetricSimpleExpression.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("property") != null && !jsonObj.get("property").isJsonNull()) && !jsonObj.get("property").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `property` to be a primitive type in the JSON string but got `%s`", jsonObj.get("property").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `property` to be a primitive type in the JSON string but got `%s`", jsonObj.get("property").toString())); } if ((jsonObj.get("operator") != null && !jsonObj.get("operator").isJsonNull()) && !jsonObj.get("operator").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `operator` to be a primitive type in the JSON string but got `%s`", jsonObj.get("operator").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `operator` to be a primitive type in the JSON string but got `%s`", jsonObj.get("operator").toString())); } // ensure the optional json data is an array if present if (jsonObj.get("values") != null && !jsonObj.get("values").isJsonNull() && !jsonObj.get("values").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); } } @@ -318,7 +317,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Metrics.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Metrics.java index af17f6f1..527422fd 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Metrics.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Metrics.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Bandwidth utilization statistics for a specified interval. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class Metrics { public static final String SERIALIZED_NAME_INTERVAL_END_TIMESTAMP = "intervalEndTimestamp"; @SerializedName(SERIALIZED_NAME_INTERVAL_END_TIMESTAMP) @@ -218,13 +220,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("intervalEndTimestamp"); - openapiFields.add("max"); - openapiFields.add("mean"); + openapiFields = new HashSet(Arrays.asList("intervalEndTimestamp", "max", "mean")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -236,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!Metrics.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in Metrics is not found in the empty JSON string", Metrics.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in Metrics is not found in the empty JSON string", Metrics.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -299,7 +298,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/MetricsSearchRequest.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/MetricsSearchRequest.java index 75b78264..ead16878 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/MetricsSearchRequest.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/MetricsSearchRequest.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.MetricFilters; import com.equinix.sdk.fabricv4.model.PaginationRequest; import com.google.gson.TypeAdapter; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Search requests containing criteria */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class MetricsSearchRequest { public static final String SERIALIZED_NAME_FILTER = "filter"; @SerializedName(SERIALIZED_NAME_FILTER) @@ -193,13 +195,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("filter"); - openapiFields.add("pagination"); + openapiFields = new HashSet(Arrays.asList("filter", "pagination")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("filter"); + openapiRequiredFields = new HashSet(Arrays.asList("filter")); } /** @@ -211,14 +210,14 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!MetricsSearchRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MetricsSearchRequest is not found in the empty JSON string", MetricsSearchRequest.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in MetricsSearchRequest is not found in the empty JSON string", MetricsSearchRequest.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : MetricsSearchRequest.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -287,7 +286,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Metro.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Metro.java index e200c158..29e12605 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Metro.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Metro.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.ConnectedMetro; import com.equinix.sdk.fabricv4.model.GeoCoordinates; import com.equinix.sdk.fabricv4.model.GeoScopeType; @@ -46,13 +47,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * GET Metros retrieves all Equinix® Fabric™ metros, as well as latency data for each location.This performance data helps network planning engineers and administrators make strategic decisions about port locations and traffic routes. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class Metro { public static final String SERIALIZED_NAME_HREF = "href"; @SerializedName(SERIALIZED_NAME_HREF) @@ -481,22 +483,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("href"); - openapiFields.add("type"); - openapiFields.add("code"); - openapiFields.add("region"); - openapiFields.add("name"); - openapiFields.add("country"); - openapiFields.add("equinixAsn"); - openapiFields.add("localVCBandwidthMax"); - openapiFields.add("geoCoordinates"); - openapiFields.add("connectedMetros"); - openapiFields.add("services"); - openapiFields.add("geoScopes"); + openapiFields = new HashSet(Arrays.asList("href", "type", "code", "region", "name", "country", "equinixAsn", "localVCBandwidthMax", "geoCoordinates", "connectedMetros", "services", "geoScopes")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -508,27 +498,27 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!Metro.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in Metro is not found in the empty JSON string", Metro.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in Metro is not found in the empty JSON string", Metro.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } if ((jsonObj.get("code") != null && !jsonObj.get("code").isJsonNull()) && !jsonObj.get("code").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); } if ((jsonObj.get("region") != null && !jsonObj.get("region").isJsonNull()) && !jsonObj.get("region").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `region` to be a primitive type in the JSON string but got `%s`", jsonObj.get("region").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `region` to be a primitive type in the JSON string but got `%s`", jsonObj.get("region").toString())); } if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } if ((jsonObj.get("country") != null && !jsonObj.get("country").isJsonNull()) && !jsonObj.get("country").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `country` to be a primitive type in the JSON string but got `%s`", jsonObj.get("country").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `country` to be a primitive type in the JSON string but got `%s`", jsonObj.get("country").toString())); } // validate the optional field `geoCoordinates` if (jsonObj.get("geoCoordinates") != null && !jsonObj.get("geoCoordinates").isJsonNull()) { @@ -539,7 +529,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayconnectedMetros != null) { // ensure the json data is an array if (!jsonObj.get("connectedMetros").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `connectedMetros` to be an array in the JSON string but got `%s`", jsonObj.get("connectedMetros").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `connectedMetros` to be an array in the JSON string but got `%s`", jsonObj.get("connectedMetros").toString())); } // validate the optional field `connectedMetros` (array) @@ -553,7 +543,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayservices != null) { // ensure the json data is an array if (!jsonObj.get("services").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `services` to be an array in the JSON string but got `%s`", jsonObj.get("services").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `services` to be an array in the JSON string but got `%s`", jsonObj.get("services").toString())); } // validate the optional field `services` (array) @@ -564,7 +554,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } // ensure the optional json data is an array if present if (jsonObj.get("geoScopes") != null && !jsonObj.get("geoScopes").isJsonNull() && !jsonObj.get("geoScopes").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `geoScopes` to be an array in the JSON string but got `%s`", jsonObj.get("geoScopes").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `geoScopes` to be an array in the JSON string but got `%s`", jsonObj.get("geoScopes").toString())); } } @@ -625,7 +615,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/MetroError.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/MetroError.java index 5b4a8fa3..cbf7fbc7 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/MetroError.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/MetroError.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.PriceErrorAdditionalInfo; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Error with details */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class MetroError { /** * Gets or Sets errorCode @@ -423,18 +425,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("errorCode"); - openapiFields.add("errorMessage"); - openapiFields.add("correlationId"); - openapiFields.add("details"); - openapiFields.add("help"); - openapiFields.add("additionalInfo"); + openapiFields = new HashSet(Arrays.asList("errorCode", "errorMessage", "correlationId", "details", "help", "additionalInfo")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("errorCode"); - openapiRequiredFields.add("errorMessage"); + openapiRequiredFields = new HashSet(Arrays.asList("errorCode", "errorMessage")); } /** @@ -446,14 +440,14 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!MetroError.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MetroError is not found in the empty JSON string", MetroError.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in MetroError is not found in the empty JSON string", MetroError.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : MetroError.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } } @@ -515,7 +509,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/MetroResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/MetroResponse.java index 9002306f..2d3e5e99 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/MetroResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/MetroResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Metro; import com.equinix.sdk.fabricv4.model.Pagination; import com.google.gson.TypeAdapter; @@ -44,13 +45,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * GET Metros retrieves all Equinix® Fabric™ metros, as well as latency data for each location.This performance data helps network planning engineers and administrators make strategic decisions about port locations and traffic routes. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class MetroResponse { public static final String SERIALIZED_NAME_PAGINATION = "pagination"; @SerializedName(SERIALIZED_NAME_PAGINATION) @@ -203,12 +205,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("pagination"); - openapiFields.add("data"); + openapiFields = new HashSet(Arrays.asList("pagination", "data")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -220,7 +220,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!MetroResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MetroResponse is not found in the empty JSON string", MetroResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in MetroResponse is not found in the empty JSON string", MetroResponse.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -233,7 +233,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraydata != null) { // ensure the json data is an array if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); } // validate the optional field `data` (array) @@ -301,7 +301,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ModelInterface.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ModelInterface.java index f7874f1b..00089fb7 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ModelInterface.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ModelInterface.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Interface Information */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ModelInterface { public static final String SERIALIZED_NAME_HREF = "href"; @SerializedName(SERIALIZED_NAME_HREF) @@ -322,15 +324,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("href"); - openapiFields.add("uuid"); - openapiFields.add("id"); - openapiFields.add("type"); - openapiFields.add("projectId"); + openapiFields = new HashSet(Arrays.asList("href", "uuid", "id", "type", "projectId")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -342,25 +339,25 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ModelInterface.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ModelInterface is not found in the empty JSON string", ModelInterface.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ModelInterface is not found in the empty JSON string", ModelInterface.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the optional field `type` if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { TypeEnum.validateJsonElement(jsonObj.get("type")); } if ((jsonObj.get("projectId") != null && !jsonObj.get("projectId").isJsonNull()) && !jsonObj.get("projectId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `projectId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("projectId").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `projectId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("projectId").toString())); } } @@ -421,7 +418,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ModelPackage.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ModelPackage.java index cd23d0b5..c6cbe912 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ModelPackage.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ModelPackage.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Package settings for port */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ModelPackage { /** * Type of Port Package @@ -297,12 +299,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("code"); - openapiFields.add("type"); + openapiFields = new HashSet(Arrays.asList("code", "type")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -314,19 +314,19 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ModelPackage.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ModelPackage is not found in the empty JSON string", ModelPackage.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ModelPackage is not found in the empty JSON string", ModelPackage.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("code") != null && !jsonObj.get("code").isJsonNull()) && !jsonObj.get("code").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); } // validate the optional field `code` if (jsonObj.get("code") != null && !jsonObj.get("code").isJsonNull()) { CodeEnum.validateJsonElement(jsonObj.get("code")); } if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the optional field `type` if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { @@ -391,7 +391,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Network.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Network.java index c033c4b1..6ce32a1f 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Network.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Network.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Changelog; import com.equinix.sdk.fabricv4.model.Link; import com.equinix.sdk.fabricv4.model.NetworkOperation; @@ -56,13 +57,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Network specification */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class Network { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -546,33 +548,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("type"); - openapiFields.add("name"); - openapiFields.add("scope"); - openapiFields.add("location"); - openapiFields.add("project"); - openapiFields.add("notifications"); - openapiFields.add("href"); - openapiFields.add("uuid"); - openapiFields.add("state"); - openapiFields.add("connectionsCount"); - openapiFields.add("account"); - openapiFields.add("change"); - openapiFields.add("operation"); - openapiFields.add("changeLog"); - openapiFields.add("links"); + openapiFields = new HashSet(Arrays.asList("type", "name", "scope", "location", "project", "notifications", "href", "uuid", "state", "connectionsCount", "account", "change", "operation", "changeLog", "links")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("type"); - openapiRequiredFields.add("name"); - openapiRequiredFields.add("scope"); - openapiRequiredFields.add("notifications"); - openapiRequiredFields.add("href"); - openapiRequiredFields.add("uuid"); - openapiRequiredFields.add("state"); - openapiRequiredFields.add("changeLog"); + openapiRequiredFields = new HashSet(Arrays.asList("type", "name", "scope", "notifications", "href", "uuid", "state", "changeLog")); } /** @@ -584,21 +563,21 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!Network.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in Network is not found in the empty JSON string", Network.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in Network is not found in the empty JSON string", Network.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : Network.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the required field `type` NetworkType.validateJsonElement(jsonObj.get("type")); if (!jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } // validate the required field `scope` NetworkScope.validateJsonElement(jsonObj.get("scope")); @@ -612,7 +591,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } // ensure the json data is an array if (!jsonObj.get("notifications").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `notifications` to be an array in the JSON string but got `%s`", jsonObj.get("notifications").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `notifications` to be an array in the JSON string but got `%s`", jsonObj.get("notifications").toString())); } JsonArray jsonArraynotifications = jsonObj.getAsJsonArray("notifications"); @@ -621,10 +600,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti SimplifiedNotification.validateJsonElement(jsonArraynotifications.get(i)); }; if (!jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } if (!jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } // validate the required field `state` NetworkState.validateJsonElement(jsonObj.get("state")); @@ -647,7 +626,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraylinks != null) { // ensure the json data is an array if (!jsonObj.get("links").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `links` to be an array in the JSON string but got `%s`", jsonObj.get("links").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `links` to be an array in the JSON string but got `%s`", jsonObj.get("links").toString())); } // validate the optional field `links` (array) @@ -715,7 +694,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkChange.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkChange.java index 03f7deae..3a62476a 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkChange.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkChange.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.NetworkChangeOperation; import com.equinix.sdk.fabricv4.model.NetworkChangeStatus; import com.equinix.sdk.fabricv4.model.NetworkChangeType; @@ -48,13 +49,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Current state of latest network change */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class NetworkChange { public static final String SERIALIZED_NAME_HREF = "href"; @SerializedName(SERIALIZED_NAME_HREF) @@ -336,17 +338,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("href"); - openapiFields.add("uuid"); - openapiFields.add("type"); - openapiFields.add("status"); - openapiFields.add("createdDateTime"); - openapiFields.add("updatedDateTime"); - openapiFields.add("data"); + openapiFields = new HashSet(Arrays.asList("href", "uuid", "type", "status", "createdDateTime", "updatedDateTime", "data")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -358,15 +353,15 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!NetworkChange.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in NetworkChange is not found in the empty JSON string", NetworkChange.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in NetworkChange is not found in the empty JSON string", NetworkChange.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } // validate the optional field `type` if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { @@ -381,7 +376,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraydata != null) { // ensure the json data is an array if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); } // validate the optional field `data` (array) @@ -449,7 +444,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkChangeOperation.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkChangeOperation.java index 067bd7ae..27a780f9 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkChangeOperation.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkChangeOperation.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Network change operation data */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class NetworkChangeOperation { /** * Handy shortcut for operation name @@ -271,16 +273,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("op"); - openapiFields.add("path"); - openapiFields.add("value"); + openapiFields = new HashSet(Arrays.asList("op", "path", "value")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("op"); - openapiRequiredFields.add("path"); - openapiRequiredFields.add("value"); + openapiRequiredFields = new HashSet(Arrays.asList("op", "path", "value")); } /** @@ -292,24 +288,24 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!NetworkChangeOperation.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in NetworkChangeOperation is not found in the empty JSON string", NetworkChangeOperation.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in NetworkChangeOperation is not found in the empty JSON string", NetworkChangeOperation.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : NetworkChangeOperation.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("op").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `op` to be a primitive type in the JSON string but got `%s`", jsonObj.get("op").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `op` to be a primitive type in the JSON string but got `%s`", jsonObj.get("op").toString())); } // validate the required field `op` OpEnum.validateJsonElement(jsonObj.get("op")); if (!jsonObj.get("path").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); } } @@ -370,7 +366,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkChangeResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkChangeResponse.java index 2e289316..597b4fc8 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkChangeResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkChangeResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.NetworkChange; import com.equinix.sdk.fabricv4.model.Pagination; import com.google.gson.TypeAdapter; @@ -44,13 +45,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * List of network changes */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class NetworkChangeResponse { public static final String SERIALIZED_NAME_PAGINATION = "pagination"; @SerializedName(SERIALIZED_NAME_PAGINATION) @@ -203,12 +205,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("pagination"); - openapiFields.add("data"); + openapiFields = new HashSet(Arrays.asList("pagination", "data")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -220,7 +220,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!NetworkChangeResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in NetworkChangeResponse is not found in the empty JSON string", NetworkChangeResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in NetworkChangeResponse is not found in the empty JSON string", NetworkChangeResponse.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -233,7 +233,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraydata != null) { // ensure the json data is an array if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); } // validate the optional field `data` (array) @@ -301,7 +301,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkChangeStatus.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkChangeStatus.java index a2a0ffb7..27fce795 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkChangeStatus.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkChangeStatus.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkChangeType.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkChangeType.java index 5c1bfb62..73fa98be 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkChangeType.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkChangeType.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkConnections.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkConnections.java index 788e32f6..169d8a51 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkConnections.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkConnections.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Connection; import com.equinix.sdk.fabricv4.model.Pagination; import com.google.gson.TypeAdapter; @@ -44,13 +45,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * List of network changes */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class NetworkConnections { public static final String SERIALIZED_NAME_PAGINATION = "pagination"; @SerializedName(SERIALIZED_NAME_PAGINATION) @@ -203,12 +205,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("pagination"); - openapiFields.add("data"); + openapiFields = new HashSet(Arrays.asList("pagination", "data")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -220,7 +220,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!NetworkConnections.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in NetworkConnections is not found in the empty JSON string", NetworkConnections.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in NetworkConnections is not found in the empty JSON string", NetworkConnections.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -233,7 +233,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraydata != null) { // ensure the json data is an array if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); } // validate the optional field `data` (array) @@ -301,7 +301,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkEquinixStatus.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkEquinixStatus.java index 18dd3586..e8c21602 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkEquinixStatus.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkEquinixStatus.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkFilter.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkFilter.java index 5f238fec..c47430c9 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkFilter.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkFilter.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.NetworkSearchFieldName; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * NetworkFilter */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class NetworkFilter { public static final String SERIALIZED_NAME_AND = "and"; @SerializedName(SERIALIZED_NAME_AND) @@ -372,15 +374,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("and"); - openapiFields.add("or"); - openapiFields.add("property"); - openapiFields.add("operator"); - openapiFields.add("values"); + openapiFields = new HashSet(Arrays.asList("and", "or", "property", "operator", "values")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -392,7 +389,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!NetworkFilter.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in NetworkFilter is not found in the empty JSON string", NetworkFilter.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in NetworkFilter is not found in the empty JSON string", NetworkFilter.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -401,7 +398,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayand != null) { // ensure the json data is an array if (!jsonObj.get("and").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `and` to be an array in the JSON string but got `%s`", jsonObj.get("and").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `and` to be an array in the JSON string but got `%s`", jsonObj.get("and").toString())); } // validate the optional field `and` (array) @@ -415,7 +412,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayor != null) { // ensure the json data is an array if (!jsonObj.get("or").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `or` to be an array in the JSON string but got `%s`", jsonObj.get("or").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `or` to be an array in the JSON string but got `%s`", jsonObj.get("or").toString())); } // validate the optional field `or` (array) @@ -429,7 +426,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti NetworkSearchFieldName.validateJsonElement(jsonObj.get("property")); } if ((jsonObj.get("operator") != null && !jsonObj.get("operator").isJsonNull()) && !jsonObj.get("operator").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `operator` to be a primitive type in the JSON string but got `%s`", jsonObj.get("operator").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `operator` to be a primitive type in the JSON string but got `%s`", jsonObj.get("operator").toString())); } // validate the optional field `operator` if (jsonObj.get("operator") != null && !jsonObj.get("operator").isJsonNull()) { @@ -437,7 +434,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } // ensure the optional json data is an array if present if (jsonObj.get("values") != null && !jsonObj.get("values").isJsonNull() && !jsonObj.get("values").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); } } @@ -498,7 +495,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkOperation.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkOperation.java index 7ed2fab8..94d0a436 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkOperation.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkOperation.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.NetworkEquinixStatus; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Network operational data */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class NetworkOperation { public static final String SERIALIZED_NAME_EQUINIX_STATUS = "equinixStatus"; @SerializedName(SERIALIZED_NAME_EQUINIX_STATUS) @@ -166,11 +168,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("equinixStatus"); + openapiFields = new HashSet(Arrays.asList("equinixStatus")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -182,7 +183,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!NetworkOperation.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in NetworkOperation is not found in the empty JSON string", NetworkOperation.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in NetworkOperation is not found in the empty JSON string", NetworkOperation.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -249,7 +250,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkPostRequest.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkPostRequest.java index 3202110d..3deed70a 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkPostRequest.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkPostRequest.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.NetworkScope; import com.equinix.sdk.fabricv4.model.NetworkType; import com.equinix.sdk.fabricv4.model.Project; @@ -47,13 +48,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Create Network */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class NetworkPostRequest { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -310,20 +312,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("type"); - openapiFields.add("name"); - openapiFields.add("scope"); - openapiFields.add("location"); - openapiFields.add("project"); - openapiFields.add("notifications"); + openapiFields = new HashSet(Arrays.asList("type", "name", "scope", "location", "project", "notifications")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("type"); - openapiRequiredFields.add("name"); - openapiRequiredFields.add("scope"); - openapiRequiredFields.add("notifications"); + openapiRequiredFields = new HashSet(Arrays.asList("type", "name", "scope", "notifications")); } /** @@ -335,21 +327,21 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!NetworkPostRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in NetworkPostRequest is not found in the empty JSON string", NetworkPostRequest.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in NetworkPostRequest is not found in the empty JSON string", NetworkPostRequest.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : NetworkPostRequest.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the required field `type` NetworkType.validateJsonElement(jsonObj.get("type")); if (!jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } // validate the required field `scope` NetworkScope.validateJsonElement(jsonObj.get("scope")); @@ -363,7 +355,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } // ensure the json data is an array if (!jsonObj.get("notifications").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `notifications` to be an array in the JSON string but got `%s`", jsonObj.get("notifications").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `notifications` to be an array in the JSON string but got `%s`", jsonObj.get("notifications").toString())); } JsonArray jsonArraynotifications = jsonObj.getAsJsonArray("notifications"); @@ -430,7 +422,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkScope.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkScope.java index 420d99e5..50d74658 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkScope.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkScope.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkSearchFieldName.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkSearchFieldName.java index ea00e607..18f1f4f0 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkSearchFieldName.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkSearchFieldName.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkSearchRequest.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkSearchRequest.java index fceba493..3a40fbc1 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkSearchRequest.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkSearchRequest.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.NetworkFilter; import com.equinix.sdk.fabricv4.model.NetworkSortCriteria; import com.equinix.sdk.fabricv4.model.PaginationRequest; @@ -45,13 +46,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Search requests containing criteria */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class NetworkSearchRequest { public static final String SERIALIZED_NAME_FILTER = "filter"; @SerializedName(SERIALIZED_NAME_FILTER) @@ -230,13 +232,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("filter"); - openapiFields.add("pagination"); - openapiFields.add("sort"); + openapiFields = new HashSet(Arrays.asList("filter", "pagination", "sort")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -248,7 +247,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!NetworkSearchRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in NetworkSearchRequest is not found in the empty JSON string", NetworkSearchRequest.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in NetworkSearchRequest is not found in the empty JSON string", NetworkSearchRequest.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -265,7 +264,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraysort != null) { // ensure the json data is an array if (!jsonObj.get("sort").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `sort` to be an array in the JSON string but got `%s`", jsonObj.get("sort").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `sort` to be an array in the JSON string but got `%s`", jsonObj.get("sort").toString())); } // validate the optional field `sort` (array) @@ -333,7 +332,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkSearchResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkSearchResponse.java index ccc1ff2a..325a8460 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkSearchResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkSearchResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Network; import com.equinix.sdk.fabricv4.model.NetworkSortCriteriaResponse; import com.equinix.sdk.fabricv4.model.Pagination; @@ -45,13 +46,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * List of networks */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class NetworkSearchResponse { public static final String SERIALIZED_NAME_PAGINATION = "pagination"; @SerializedName(SERIALIZED_NAME_PAGINATION) @@ -238,13 +240,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("pagination"); - openapiFields.add("sort"); - openapiFields.add("data"); + openapiFields = new HashSet(Arrays.asList("pagination", "sort", "data")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -256,7 +255,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!NetworkSearchResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in NetworkSearchResponse is not found in the empty JSON string", NetworkSearchResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in NetworkSearchResponse is not found in the empty JSON string", NetworkSearchResponse.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -269,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraysort != null) { // ensure the json data is an array if (!jsonObj.get("sort").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `sort` to be an array in the JSON string but got `%s`", jsonObj.get("sort").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `sort` to be an array in the JSON string but got `%s`", jsonObj.get("sort").toString())); } // validate the optional field `sort` (array) @@ -283,7 +282,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraydata != null) { // ensure the json data is an array if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); } // validate the optional field `data` (array) @@ -351,7 +350,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkSortBy.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkSortBy.java index a2344c8e..2ff7a0c9 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkSortBy.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkSortBy.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkSortByResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkSortByResponse.java index 2b4db2f3..1b6985b6 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkSortByResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkSortByResponse.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkSortCriteria.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkSortCriteria.java index 5d62348b..5e007d64 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkSortCriteria.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkSortCriteria.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.NetworkSortBy; import com.equinix.sdk.fabricv4.model.NetworkSortDirection; import com.google.gson.TypeAdapter; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * NetworkSortCriteria */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class NetworkSortCriteria { public static final String SERIALIZED_NAME_DIRECTION = "direction"; @SerializedName(SERIALIZED_NAME_DIRECTION) @@ -193,12 +195,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("direction"); - openapiFields.add("property"); + openapiFields = new HashSet(Arrays.asList("direction", "property")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -210,7 +210,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!NetworkSortCriteria.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in NetworkSortCriteria is not found in the empty JSON string", NetworkSortCriteria.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in NetworkSortCriteria is not found in the empty JSON string", NetworkSortCriteria.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -281,7 +281,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkSortCriteriaResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkSortCriteriaResponse.java index 9b10c43a..e2ddf8d2 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkSortCriteriaResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkSortCriteriaResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.NetworkSortByResponse; import com.equinix.sdk.fabricv4.model.NetworkSortDirectionResponse; import com.google.gson.TypeAdapter; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * NetworkSortCriteriaResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class NetworkSortCriteriaResponse { public static final String SERIALIZED_NAME_DIRECTION = "direction"; @SerializedName(SERIALIZED_NAME_DIRECTION) @@ -193,12 +195,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("direction"); - openapiFields.add("property"); + openapiFields = new HashSet(Arrays.asList("direction", "property")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -210,7 +210,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!NetworkSortCriteriaResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in NetworkSortCriteriaResponse is not found in the empty JSON string", NetworkSortCriteriaResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in NetworkSortCriteriaResponse is not found in the empty JSON string", NetworkSortCriteriaResponse.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -281,7 +281,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkSortDirection.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkSortDirection.java index 0369ed4b..9443ef1a 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkSortDirection.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkSortDirection.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkSortDirectionResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkSortDirectionResponse.java index 2f0054e8..102e55bf 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkSortDirectionResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkSortDirectionResponse.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkState.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkState.java index 1cc716da..fa4a2602 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkState.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkState.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkType.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkType.java index a73f605f..68a3de0b 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkType.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/NetworkType.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/OpEnum.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/OpEnum.java index 75224473..9537d68a 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/OpEnum.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/OpEnum.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Operation.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Operation.java index 3e08fa63..9b351b95 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Operation.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Operation.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Operation object for router actions */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class Operation { public static final String SERIALIZED_NAME_BGP_IPV4_ROUTES_COUNT = "bgpIpv4RoutesCount"; @SerializedName(SERIALIZED_NAME_BGP_IPV4_ROUTES_COUNT) @@ -243,14 +245,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("bgpIpv4RoutesCount"); - openapiFields.add("bgpIpv6RoutesCount"); - openapiFields.add("distinctIpv4PrefixesCount"); - openapiFields.add("distinctIpv6PrefixesCount"); + openapiFields = new HashSet(Arrays.asList("bgpIpv4RoutesCount", "bgpIpv6RoutesCount", "distinctIpv4PrefixesCount", "distinctIpv6PrefixesCount")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -262,7 +260,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!Operation.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in Operation is not found in the empty JSON string", Operation.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in Operation is not found in the empty JSON string", Operation.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -325,7 +323,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/OperationalStatus.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/OperationalStatus.java index f84e7acf..e6221779 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/OperationalStatus.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/OperationalStatus.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * OperationalStatus */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class OperationalStatus { public static final String SERIALIZED_NAME_OPERATIONAL_STATUS = "operationalStatus"; @SerializedName(SERIALIZED_NAME_OPERATIONAL_STATUS) @@ -165,11 +167,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("operationalStatus"); + openapiFields = new HashSet(Arrays.asList("operationalStatus")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -181,12 +182,12 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!OperationalStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in OperationalStatus is not found in the empty JSON string", OperationalStatus.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in OperationalStatus is not found in the empty JSON string", OperationalStatus.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("operationalStatus") != null && !jsonObj.get("operationalStatus").isJsonNull()) && !jsonObj.get("operationalStatus").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `operationalStatus` to be a primitive type in the JSON string but got `%s`", jsonObj.get("operationalStatus").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `operationalStatus` to be a primitive type in the JSON string but got `%s`", jsonObj.get("operationalStatus").toString())); } } @@ -247,7 +248,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Order.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Order.java index 5872a658..5fb04faa 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Order.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Order.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Order */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class Order { public static final String SERIALIZED_NAME_PURCHASE_ORDER_NUMBER = "purchaseOrderNumber"; @SerializedName(SERIALIZED_NAME_PURCHASE_ORDER_NUMBER) @@ -297,16 +299,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("purchaseOrderNumber"); - openapiFields.add("customerReferenceNumber"); - openapiFields.add("billingTier"); - openapiFields.add("orderId"); - openapiFields.add("orderNumber"); - openapiFields.add("termLength"); + openapiFields = new HashSet(Arrays.asList("purchaseOrderNumber", "customerReferenceNumber", "billingTier", "orderId", "orderNumber", "termLength")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -318,24 +314,24 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!Order.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in Order is not found in the empty JSON string", Order.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in Order is not found in the empty JSON string", Order.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("purchaseOrderNumber") != null && !jsonObj.get("purchaseOrderNumber").isJsonNull()) && !jsonObj.get("purchaseOrderNumber").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `purchaseOrderNumber` to be a primitive type in the JSON string but got `%s`", jsonObj.get("purchaseOrderNumber").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `purchaseOrderNumber` to be a primitive type in the JSON string but got `%s`", jsonObj.get("purchaseOrderNumber").toString())); } if ((jsonObj.get("customerReferenceNumber") != null && !jsonObj.get("customerReferenceNumber").isJsonNull()) && !jsonObj.get("customerReferenceNumber").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `customerReferenceNumber` to be a primitive type in the JSON string but got `%s`", jsonObj.get("customerReferenceNumber").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `customerReferenceNumber` to be a primitive type in the JSON string but got `%s`", jsonObj.get("customerReferenceNumber").toString())); } if ((jsonObj.get("billingTier") != null && !jsonObj.get("billingTier").isJsonNull()) && !jsonObj.get("billingTier").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `billingTier` to be a primitive type in the JSON string but got `%s`", jsonObj.get("billingTier").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `billingTier` to be a primitive type in the JSON string but got `%s`", jsonObj.get("billingTier").toString())); } if ((jsonObj.get("orderId") != null && !jsonObj.get("orderId").isJsonNull()) && !jsonObj.get("orderId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `orderId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("orderId").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `orderId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("orderId").toString())); } if ((jsonObj.get("orderNumber") != null && !jsonObj.get("orderNumber").isJsonNull()) && !jsonObj.get("orderNumber").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `orderNumber` to be a primitive type in the JSON string but got `%s`", jsonObj.get("orderNumber").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `orderNumber` to be a primitive type in the JSON string but got `%s`", jsonObj.get("orderNumber").toString())); } } @@ -396,7 +392,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/OutputStructuredPing.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/OutputStructuredPing.java index 4d7e6b43..f81d48e7 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/OutputStructuredPing.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/OutputStructuredPing.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.OutputStructuredPingResponseItem; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * OutputStructuredPing */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class OutputStructuredPing { public static final String SERIALIZED_NAME_DESTINATION_IP = "destinationIp"; @SerializedName(SERIALIZED_NAME_DESTINATION_IP) @@ -436,21 +438,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("destinationIp"); - openapiFields.add("destinationName"); - openapiFields.add("dataBytes"); - openapiFields.add("packetsTransmitted"); - openapiFields.add("packetsReceived"); - openapiFields.add("packetsLossPercent"); - openapiFields.add("rttMin"); - openapiFields.add("rttAvg"); - openapiFields.add("rttMax"); - openapiFields.add("rttStdDev"); - openapiFields.add("responses"); + openapiFields = new HashSet(Arrays.asList("destinationIp", "destinationName", "dataBytes", "packetsTransmitted", "packetsReceived", "packetsLossPercent", "rttMin", "rttAvg", "rttMax", "rttStdDev", "responses")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -462,22 +453,22 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!OutputStructuredPing.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in OutputStructuredPing is not found in the empty JSON string", OutputStructuredPing.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in OutputStructuredPing is not found in the empty JSON string", OutputStructuredPing.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("destinationIp") != null && !jsonObj.get("destinationIp").isJsonNull()) && !jsonObj.get("destinationIp").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `destinationIp` to be a primitive type in the JSON string but got `%s`", jsonObj.get("destinationIp").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `destinationIp` to be a primitive type in the JSON string but got `%s`", jsonObj.get("destinationIp").toString())); } if ((jsonObj.get("destinationName") != null && !jsonObj.get("destinationName").isJsonNull()) && !jsonObj.get("destinationName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `destinationName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("destinationName").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `destinationName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("destinationName").toString())); } if (jsonObj.get("responses") != null && !jsonObj.get("responses").isJsonNull()) { JsonArray jsonArrayresponses = jsonObj.getAsJsonArray("responses"); if (jsonArrayresponses != null) { // ensure the json data is an array if (!jsonObj.get("responses").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `responses` to be an array in the JSON string but got `%s`", jsonObj.get("responses").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `responses` to be an array in the JSON string but got `%s`", jsonObj.get("responses").toString())); } // validate the optional field `responses` (array) @@ -545,7 +536,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/OutputStructuredPingResponseItem.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/OutputStructuredPingResponseItem.java index 2e48dc9f..eabde16b 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/OutputStructuredPingResponseItem.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/OutputStructuredPingResponseItem.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * OutputStructuredPingResponseItem */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class OutputStructuredPingResponseItem { public static final String SERIALIZED_NAME_BYTES = "bytes"; @SerializedName(SERIALIZED_NAME_BYTES) @@ -269,15 +271,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("bytes"); - openapiFields.add("ip"); - openapiFields.add("icmpSeq"); - openapiFields.add("ttl"); - openapiFields.add("time"); + openapiFields = new HashSet(Arrays.asList("bytes", "ip", "icmpSeq", "ttl", "time")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -289,12 +286,12 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!OutputStructuredPingResponseItem.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in OutputStructuredPingResponseItem is not found in the empty JSON string", OutputStructuredPingResponseItem.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in OutputStructuredPingResponseItem is not found in the empty JSON string", OutputStructuredPingResponseItem.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("ip") != null && !jsonObj.get("ip").isJsonNull()) && !jsonObj.get("ip").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `ip` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ip").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `ip` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ip").toString())); } } @@ -355,7 +352,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/OutputStructuredTraceroute.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/OutputStructuredTraceroute.java index d9a375f0..f13d6971 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/OutputStructuredTraceroute.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/OutputStructuredTraceroute.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Hop; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * OutputStructuredTraceroute */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class OutputStructuredTraceroute { public static final String SERIALIZED_NAME_DESTINATION_IP = "destinationIp"; @SerializedName(SERIALIZED_NAME_DESTINATION_IP) @@ -280,15 +282,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("destinationIp"); - openapiFields.add("destinationName"); - openapiFields.add("packetBytes"); - openapiFields.add("hopsMax"); - openapiFields.add("hops"); + openapiFields = new HashSet(Arrays.asList("destinationIp", "destinationName", "packetBytes", "hopsMax", "hops")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -300,22 +297,22 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!OutputStructuredTraceroute.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in OutputStructuredTraceroute is not found in the empty JSON string", OutputStructuredTraceroute.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in OutputStructuredTraceroute is not found in the empty JSON string", OutputStructuredTraceroute.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("destinationIp") != null && !jsonObj.get("destinationIp").isJsonNull()) && !jsonObj.get("destinationIp").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `destinationIp` to be a primitive type in the JSON string but got `%s`", jsonObj.get("destinationIp").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `destinationIp` to be a primitive type in the JSON string but got `%s`", jsonObj.get("destinationIp").toString())); } if ((jsonObj.get("destinationName") != null && !jsonObj.get("destinationName").isJsonNull()) && !jsonObj.get("destinationName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `destinationName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("destinationName").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `destinationName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("destinationName").toString())); } if (jsonObj.get("hops") != null && !jsonObj.get("hops").isJsonNull()) { JsonArray jsonArrayhops = jsonObj.getAsJsonArray("hops"); if (jsonArrayhops != null) { // ensure the json data is an array if (!jsonObj.get("hops").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `hops` to be an array in the JSON string but got `%s`", jsonObj.get("hops").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `hops` to be an array in the JSON string but got `%s`", jsonObj.get("hops").toString())); } // validate the optional field `hops` (array) @@ -383,7 +380,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PackageChangeLog.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PackageChangeLog.java index 35226326..bac9a4ea 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PackageChangeLog.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PackageChangeLog.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Cloud Router package change log */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class PackageChangeLog { public static final String SERIALIZED_NAME_CREATED_DATE_TIME = "createdDateTime"; @SerializedName(SERIALIZED_NAME_CREATED_DATE_TIME) @@ -192,12 +194,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("createdDateTime"); - openapiFields.add("updatedDateTime"); + openapiFields = new HashSet(Arrays.asList("createdDateTime", "updatedDateTime")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -209,7 +209,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PackageChangeLog.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PackageChangeLog is not found in the empty JSON string", PackageChangeLog.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PackageChangeLog is not found in the empty JSON string", PackageChangeLog.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -272,7 +272,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PackageResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PackageResponse.java index aa59f95b..121a1990 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PackageResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PackageResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.CloudRouterPackage; import com.equinix.sdk.fabricv4.model.Pagination; import com.google.gson.TypeAdapter; @@ -44,13 +45,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * PackageResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class PackageResponse { public static final String SERIALIZED_NAME_PAGINATION = "pagination"; @SerializedName(SERIALIZED_NAME_PAGINATION) @@ -203,12 +205,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("pagination"); - openapiFields.add("data"); + openapiFields = new HashSet(Arrays.asList("pagination", "data")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -220,7 +220,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PackageResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PackageResponse is not found in the empty JSON string", PackageResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PackageResponse is not found in the empty JSON string", PackageResponse.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -233,7 +233,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraydata != null) { // ensure the json data is an array if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); } // validate the optional field `data` (array) @@ -301,7 +301,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Pagination.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Pagination.java index 057950af..b6c90ccf 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Pagination.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Pagination.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Pagination response information */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class Pagination { public static final String SERIALIZED_NAME_OFFSET = "offset"; @SerializedName(SERIALIZED_NAME_OFFSET) @@ -272,17 +274,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("offset"); - openapiFields.add("limit"); - openapiFields.add("total"); - openapiFields.add("next"); - openapiFields.add("previous"); + openapiFields = new HashSet(Arrays.asList("offset", "limit", "total", "next", "previous")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("limit"); - openapiRequiredFields.add("total"); + openapiRequiredFields = new HashSet(Arrays.asList("limit", "total")); } /** @@ -294,22 +289,22 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!Pagination.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in Pagination is not found in the empty JSON string", Pagination.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in Pagination is not found in the empty JSON string", Pagination.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : Pagination.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); } if ((jsonObj.get("previous") != null && !jsonObj.get("previous").isJsonNull()) && !jsonObj.get("previous").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `previous` to be a primitive type in the JSON string but got `%s`", jsonObj.get("previous").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `previous` to be a primitive type in the JSON string but got `%s`", jsonObj.get("previous").toString())); } } @@ -370,7 +365,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PaginationRequest.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PaginationRequest.java index 14b2e739..5723b62d 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PaginationRequest.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PaginationRequest.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Pagination request information */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class PaginationRequest { public static final String SERIALIZED_NAME_OFFSET = "offset"; @SerializedName(SERIALIZED_NAME_OFFSET) @@ -193,12 +195,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("offset"); - openapiFields.add("limit"); + openapiFields = new HashSet(Arrays.asList("offset", "limit")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -210,7 +210,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PaginationRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PaginationRequest is not found in the empty JSON string", PaginationRequest.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PaginationRequest is not found in the empty JSON string", PaginationRequest.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -273,7 +273,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PatchOperation.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PatchOperation.java index f1725ab4..0b2d63aa 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PatchOperation.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PatchOperation.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * PatchOperation */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class PatchOperation { /** * The operation to perform @@ -267,16 +269,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("op"); - openapiFields.add("path"); - openapiFields.add("value"); + openapiFields = new HashSet(Arrays.asList("op", "path", "value")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("op"); - openapiRequiredFields.add("path"); - openapiRequiredFields.add("value"); + openapiRequiredFields = new HashSet(Arrays.asList("op", "path", "value")); } /** @@ -288,24 +284,24 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PatchOperation.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PatchOperation is not found in the empty JSON string", PatchOperation.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PatchOperation is not found in the empty JSON string", PatchOperation.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : PatchOperation.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("op").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `op` to be a primitive type in the JSON string but got `%s`", jsonObj.get("op").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `op` to be a primitive type in the JSON string but got `%s`", jsonObj.get("op").toString())); } // validate the required field `op` OpEnum.validateJsonElement(jsonObj.get("op")); if (!jsonObj.get("path").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); } } @@ -366,7 +362,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PeeringType.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PeeringType.java index 221fb92a..2a9e168e 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PeeringType.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PeeringType.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PhysicalPort.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PhysicalPort.java index c5edcb5e..b85a750e 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PhysicalPort.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PhysicalPort.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.PhysicalPortSettings; import com.equinix.sdk.fabricv4.model.PhysicalPortType; import com.equinix.sdk.fabricv4.model.PortAdditionalInfo; @@ -56,13 +57,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Physical Port specification */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class PhysicalPort { public static final String SERIALIZED_NAME_HREF = "href"; @SerializedName(SERIALIZED_NAME_HREF) @@ -626,27 +628,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("href"); - openapiFields.add("type"); - openapiFields.add("id"); - openapiFields.add("state"); - openapiFields.add("account"); - openapiFields.add("interfaceSpeed"); - openapiFields.add("interfaceType"); - openapiFields.add("uuid"); - openapiFields.add("tether"); - openapiFields.add("demarcationPoint"); - openapiFields.add("settings"); - openapiFields.add("interface"); - openapiFields.add("notifications"); - openapiFields.add("additionalInfo"); - openapiFields.add("order"); - openapiFields.add("operation"); - openapiFields.add("loas"); + openapiFields = new HashSet(Arrays.asList("href", "type", "id", "state", "account", "interfaceSpeed", "interfaceType", "uuid", "tether", "demarcationPoint", "settings", "interface", "notifications", "additionalInfo", "order", "operation", "loas")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -658,12 +643,12 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PhysicalPort.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PhysicalPort is not found in the empty JSON string", PhysicalPort.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PhysicalPort is not found in the empty JSON string", PhysicalPort.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } // validate the optional field `type` if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { @@ -678,10 +663,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti SimplifiedAccount.validateJsonElement(jsonObj.get("account")); } if ((jsonObj.get("interfaceType") != null && !jsonObj.get("interfaceType").isJsonNull()) && !jsonObj.get("interfaceType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `interfaceType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("interfaceType").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `interfaceType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("interfaceType").toString())); } if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } // validate the optional field `tether` if (jsonObj.get("tether") != null && !jsonObj.get("tether").isJsonNull()) { @@ -704,7 +689,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraynotifications != null) { // ensure the json data is an array if (!jsonObj.get("notifications").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `notifications` to be an array in the JSON string but got `%s`", jsonObj.get("notifications").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `notifications` to be an array in the JSON string but got `%s`", jsonObj.get("notifications").toString())); } // validate the optional field `notifications` (array) @@ -718,7 +703,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayadditionalInfo != null) { // ensure the json data is an array if (!jsonObj.get("additionalInfo").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `additionalInfo` to be an array in the JSON string but got `%s`", jsonObj.get("additionalInfo").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `additionalInfo` to be an array in the JSON string but got `%s`", jsonObj.get("additionalInfo").toString())); } // validate the optional field `additionalInfo` (array) @@ -740,7 +725,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayloas != null) { // ensure the json data is an array if (!jsonObj.get("loas").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `loas` to be an array in the JSON string but got `%s`", jsonObj.get("loas").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `loas` to be an array in the JSON string but got `%s`", jsonObj.get("loas").toString())); } // validate the optional field `loas` (array) @@ -808,7 +793,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PhysicalPortSettings.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PhysicalPortSettings.java index 38ebcd41..a5eedf31 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PhysicalPortSettings.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PhysicalPortSettings.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Physical Port configuration settings */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class PhysicalPortSettings { public static final String SERIALIZED_NAME_ERROR_MESSAGE = "errorMessage"; @SerializedName(SERIALIZED_NAME_ERROR_MESSAGE) @@ -196,12 +198,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("errorMessage"); - openapiFields.add("packageType"); + openapiFields = new HashSet(Arrays.asList("errorMessage", "packageType")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -213,15 +213,15 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PhysicalPortSettings.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PhysicalPortSettings is not found in the empty JSON string", PhysicalPortSettings.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PhysicalPortSettings is not found in the empty JSON string", PhysicalPortSettings.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("errorMessage") != null && !jsonObj.get("errorMessage").isJsonNull()) && !jsonObj.get("errorMessage").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `errorMessage` to be a primitive type in the JSON string but got `%s`", jsonObj.get("errorMessage").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `errorMessage` to be a primitive type in the JSON string but got `%s`", jsonObj.get("errorMessage").toString())); } if ((jsonObj.get("packageType") != null && !jsonObj.get("packageType").isJsonNull()) && !jsonObj.get("packageType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `packageType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("packageType").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `packageType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("packageType").toString())); } } @@ -282,7 +282,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PhysicalPortType.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PhysicalPortType.java index 519918da..23ef470c 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PhysicalPortType.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PhysicalPortType.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Port.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Port.java index fdf2b726..c7f0666d 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Port.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Port.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Changelog; import com.equinix.sdk.fabricv4.model.EndCustomer; import com.equinix.sdk.fabricv4.model.MarketplaceSubscription; @@ -68,13 +69,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Port specification */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class Port { public static final String SERIALIZED_NAME_HREF = "href"; @SerializedName(SERIALIZED_NAME_HREF) @@ -1577,54 +1579,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("href"); - openapiFields.add("type"); - openapiFields.add("id"); - openapiFields.add("uuid"); - openapiFields.add("name"); - openapiFields.add("description"); - openapiFields.add("physicalPortsSpeed"); - openapiFields.add("connectionsCount"); - openapiFields.add("physicalPortsType"); - openapiFields.add("physicalPortsCount"); - openapiFields.add("connectivitySourceType"); - openapiFields.add("bmmrType"); - openapiFields.add("project"); - openapiFields.add("state"); - openapiFields.add("order"); - openapiFields.add("operation"); - openapiFields.add("account"); - openapiFields.add("change"); - openapiFields.add("changeLog"); - openapiFields.add("serviceType"); - openapiFields.add("serviceCode"); - openapiFields.add("bandwidth"); - openapiFields.add("availableBandwidth"); - openapiFields.add("usedBandwidth"); - openapiFields.add("location"); - openapiFields.add("device"); - openapiFields.add("interface"); - openapiFields.add("demarcationPointIbx"); - openapiFields.add("tetherIbx"); - openapiFields.add("demarcationPoint"); - openapiFields.add("redundancy"); - openapiFields.add("encapsulation"); - openapiFields.add("lagEnabled"); - openapiFields.add("lag"); - openapiFields.add("asn"); - openapiFields.add("package"); - openapiFields.add("settings"); - openapiFields.add("physicalPortQuantity"); - openapiFields.add("notifications"); - openapiFields.add("additionalInfo"); - openapiFields.add("endCustomer"); - openapiFields.add("physicalPorts"); - openapiFields.add("loas"); - openapiFields.add("marketplaceSubscription"); + openapiFields = new HashSet(Arrays.asList("href", "type", "id", "uuid", "name", "description", "physicalPortsSpeed", "connectionsCount", "physicalPortsType", "physicalPortsCount", "connectivitySourceType", "bmmrType", "project", "state", "order", "operation", "account", "change", "changeLog", "serviceType", "serviceCode", "bandwidth", "availableBandwidth", "usedBandwidth", "location", "device", "interface", "demarcationPointIbx", "tetherIbx", "demarcationPoint", "redundancy", "encapsulation", "lagEnabled", "lag", "asn", "package", "settings", "physicalPortQuantity", "notifications", "additionalInfo", "endCustomer", "physicalPorts", "loas", "marketplaceSubscription")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -1636,42 +1594,42 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!Port.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in Port is not found in the empty JSON string", Port.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in Port is not found in the empty JSON string", Port.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } // validate the optional field `type` if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { PortType.validateJsonElement(jsonObj.get("type")); } if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); } if ((jsonObj.get("physicalPortsType") != null && !jsonObj.get("physicalPortsType").isJsonNull()) && !jsonObj.get("physicalPortsType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `physicalPortsType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("physicalPortsType").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `physicalPortsType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("physicalPortsType").toString())); } // validate the optional field `physicalPortsType` if (jsonObj.get("physicalPortsType") != null && !jsonObj.get("physicalPortsType").isJsonNull()) { PhysicalPortsTypeEnum.validateJsonElement(jsonObj.get("physicalPortsType")); } if ((jsonObj.get("connectivitySourceType") != null && !jsonObj.get("connectivitySourceType").isJsonNull()) && !jsonObj.get("connectivitySourceType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `connectivitySourceType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("connectivitySourceType").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `connectivitySourceType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("connectivitySourceType").toString())); } // validate the optional field `connectivitySourceType` if (jsonObj.get("connectivitySourceType") != null && !jsonObj.get("connectivitySourceType").isJsonNull()) { ConnectivitySourceTypeEnum.validateJsonElement(jsonObj.get("connectivitySourceType")); } if ((jsonObj.get("bmmrType") != null && !jsonObj.get("bmmrType").isJsonNull()) && !jsonObj.get("bmmrType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `bmmrType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("bmmrType").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `bmmrType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("bmmrType").toString())); } // validate the optional field `bmmrType` if (jsonObj.get("bmmrType") != null && !jsonObj.get("bmmrType").isJsonNull()) { @@ -1706,7 +1664,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti Changelog.validateJsonElement(jsonObj.get("changeLog")); } if ((jsonObj.get("serviceType") != null && !jsonObj.get("serviceType").isJsonNull()) && !jsonObj.get("serviceType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `serviceType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("serviceType").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `serviceType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("serviceType").toString())); } // validate the optional field `serviceType` if (jsonObj.get("serviceType") != null && !jsonObj.get("serviceType").isJsonNull()) { @@ -1729,10 +1687,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti PortInterface.validateJsonElement(jsonObj.get("interface")); } if ((jsonObj.get("demarcationPointIbx") != null && !jsonObj.get("demarcationPointIbx").isJsonNull()) && !jsonObj.get("demarcationPointIbx").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `demarcationPointIbx` to be a primitive type in the JSON string but got `%s`", jsonObj.get("demarcationPointIbx").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `demarcationPointIbx` to be a primitive type in the JSON string but got `%s`", jsonObj.get("demarcationPointIbx").toString())); } if ((jsonObj.get("tetherIbx") != null && !jsonObj.get("tetherIbx").isJsonNull()) && !jsonObj.get("tetherIbx").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `tetherIbx` to be a primitive type in the JSON string but got `%s`", jsonObj.get("tetherIbx").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `tetherIbx` to be a primitive type in the JSON string but got `%s`", jsonObj.get("tetherIbx").toString())); } // validate the optional field `demarcationPoint` if (jsonObj.get("demarcationPoint") != null && !jsonObj.get("demarcationPoint").isJsonNull()) { @@ -1763,7 +1721,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraynotifications != null) { // ensure the json data is an array if (!jsonObj.get("notifications").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `notifications` to be an array in the JSON string but got `%s`", jsonObj.get("notifications").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `notifications` to be an array in the JSON string but got `%s`", jsonObj.get("notifications").toString())); } // validate the optional field `notifications` (array) @@ -1777,7 +1735,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayadditionalInfo != null) { // ensure the json data is an array if (!jsonObj.get("additionalInfo").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `additionalInfo` to be an array in the JSON string but got `%s`", jsonObj.get("additionalInfo").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `additionalInfo` to be an array in the JSON string but got `%s`", jsonObj.get("additionalInfo").toString())); } // validate the optional field `additionalInfo` (array) @@ -1795,7 +1753,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayphysicalPorts != null) { // ensure the json data is an array if (!jsonObj.get("physicalPorts").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `physicalPorts` to be an array in the JSON string but got `%s`", jsonObj.get("physicalPorts").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `physicalPorts` to be an array in the JSON string but got `%s`", jsonObj.get("physicalPorts").toString())); } // validate the optional field `physicalPorts` (array) @@ -1809,7 +1767,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayloas != null) { // ensure the json data is an array if (!jsonObj.get("loas").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `loas` to be an array in the JSON string but got `%s`", jsonObj.get("loas").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `loas` to be an array in the JSON string but got `%s`", jsonObj.get("loas").toString())); } // validate the optional field `loas` (array) @@ -1881,7 +1839,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortAdditionalInfo.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortAdditionalInfo.java index f35e9b63..9fd7a453 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortAdditionalInfo.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortAdditionalInfo.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Additional information */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class PortAdditionalInfo { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -191,12 +193,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("key"); - openapiFields.add("value"); + openapiFields = new HashSet(Arrays.asList("key", "value")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -208,15 +208,15 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PortAdditionalInfo.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PortAdditionalInfo is not found in the empty JSON string", PortAdditionalInfo.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PortAdditionalInfo is not found in the empty JSON string", PortAdditionalInfo.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) && !jsonObj.get("key").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); } if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) && !jsonObj.get("value").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); } } @@ -277,7 +277,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortChange.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortChange.java index 029ef6f3..2233945a 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortChange.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortChange.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.PortChangeOperation; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Current state of latest port change */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class PortChange { public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) @@ -431,17 +433,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("uuid"); - openapiFields.add("type"); - openapiFields.add("status"); - openapiFields.add("information"); - openapiFields.add("data"); - openapiFields.add("createdDateTime"); - openapiFields.add("updatedDateTime"); + openapiFields = new HashSet(Arrays.asList("uuid", "type", "status", "information", "data", "createdDateTime", "updatedDateTime")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -453,29 +448,29 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PortChange.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PortChange is not found in the empty JSON string", PortChange.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PortChange is not found in the empty JSON string", PortChange.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the optional field `type` if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { TypeEnum.validateJsonElement(jsonObj.get("type")); } if ((jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) && !jsonObj.get("status").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); } // validate the optional field `status` if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { StatusEnum.validateJsonElement(jsonObj.get("status")); } if ((jsonObj.get("information") != null && !jsonObj.get("information").isJsonNull()) && !jsonObj.get("information").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `information` to be a primitive type in the JSON string but got `%s`", jsonObj.get("information").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `information` to be a primitive type in the JSON string but got `%s`", jsonObj.get("information").toString())); } // validate the optional field `data` if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { @@ -540,7 +535,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortChangeOperation.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortChangeOperation.java index 14f0cfbd..cc3ac1d7 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortChangeOperation.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortChangeOperation.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Port change operation data */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class PortChangeOperation { public static final String SERIALIZED_NAME_OP = "op"; @SerializedName(SERIALIZED_NAME_OP) @@ -217,16 +219,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("op"); - openapiFields.add("path"); - openapiFields.add("value"); + openapiFields = new HashSet(Arrays.asList("op", "path", "value")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("op"); - openapiRequiredFields.add("path"); - openapiRequiredFields.add("value"); + openapiRequiredFields = new HashSet(Arrays.asList("op", "path", "value")); } /** @@ -238,22 +234,22 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PortChangeOperation.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PortChangeOperation is not found in the empty JSON string", PortChangeOperation.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PortChangeOperation is not found in the empty JSON string", PortChangeOperation.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : PortChangeOperation.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("op").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `op` to be a primitive type in the JSON string but got `%s`", jsonObj.get("op").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `op` to be a primitive type in the JSON string but got `%s`", jsonObj.get("op").toString())); } if (!jsonObj.get("path").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); } } @@ -314,7 +310,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortDemarcationPoint.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortDemarcationPoint.java index a8d73f5a..9bfa2801 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortDemarcationPoint.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortDemarcationPoint.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Customer physical Port */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class PortDemarcationPoint { public static final String SERIALIZED_NAME_CABINET_UNIQUE_SPACE_ID = "cabinetUniqueSpaceId"; @SerializedName(SERIALIZED_NAME_CABINET_UNIQUE_SPACE_ID) @@ -352,18 +354,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("cabinetUniqueSpaceId"); - openapiFields.add("cageUniqueSpaceId"); - openapiFields.add("patchPanel"); - openapiFields.add("patchPanelName"); - openapiFields.add("patchPanelPortA"); - openapiFields.add("patchPanelPortB"); - openapiFields.add("connectorType"); - openapiFields.add("ibx"); + openapiFields = new HashSet(Arrays.asList("cabinetUniqueSpaceId", "cageUniqueSpaceId", "patchPanel", "patchPanelName", "patchPanelPortA", "patchPanelPortB", "connectorType", "ibx")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -375,33 +369,33 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PortDemarcationPoint.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PortDemarcationPoint is not found in the empty JSON string", PortDemarcationPoint.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PortDemarcationPoint is not found in the empty JSON string", PortDemarcationPoint.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("cabinetUniqueSpaceId") != null && !jsonObj.get("cabinetUniqueSpaceId").isJsonNull()) && !jsonObj.get("cabinetUniqueSpaceId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `cabinetUniqueSpaceId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("cabinetUniqueSpaceId").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `cabinetUniqueSpaceId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("cabinetUniqueSpaceId").toString())); } if ((jsonObj.get("cageUniqueSpaceId") != null && !jsonObj.get("cageUniqueSpaceId").isJsonNull()) && !jsonObj.get("cageUniqueSpaceId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `cageUniqueSpaceId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("cageUniqueSpaceId").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `cageUniqueSpaceId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("cageUniqueSpaceId").toString())); } if ((jsonObj.get("patchPanel") != null && !jsonObj.get("patchPanel").isJsonNull()) && !jsonObj.get("patchPanel").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `patchPanel` to be a primitive type in the JSON string but got `%s`", jsonObj.get("patchPanel").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `patchPanel` to be a primitive type in the JSON string but got `%s`", jsonObj.get("patchPanel").toString())); } if ((jsonObj.get("patchPanelName") != null && !jsonObj.get("patchPanelName").isJsonNull()) && !jsonObj.get("patchPanelName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `patchPanelName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("patchPanelName").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `patchPanelName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("patchPanelName").toString())); } if ((jsonObj.get("patchPanelPortA") != null && !jsonObj.get("patchPanelPortA").isJsonNull()) && !jsonObj.get("patchPanelPortA").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `patchPanelPortA` to be a primitive type in the JSON string but got `%s`", jsonObj.get("patchPanelPortA").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `patchPanelPortA` to be a primitive type in the JSON string but got `%s`", jsonObj.get("patchPanelPortA").toString())); } if ((jsonObj.get("patchPanelPortB") != null && !jsonObj.get("patchPanelPortB").isJsonNull()) && !jsonObj.get("patchPanelPortB").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `patchPanelPortB` to be a primitive type in the JSON string but got `%s`", jsonObj.get("patchPanelPortB").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `patchPanelPortB` to be a primitive type in the JSON string but got `%s`", jsonObj.get("patchPanelPortB").toString())); } if ((jsonObj.get("connectorType") != null && !jsonObj.get("connectorType").isJsonNull()) && !jsonObj.get("connectorType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `connectorType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("connectorType").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `connectorType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("connectorType").toString())); } if ((jsonObj.get("ibx") != null && !jsonObj.get("ibx").isJsonNull()) && !jsonObj.get("ibx").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `ibx` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ibx").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `ibx` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ibx").toString())); } } @@ -462,7 +456,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortDevice.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortDevice.java index f23e8f6a..da5d93e7 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortDevice.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortDevice.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.PortDeviceRedundancy; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Port device */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class PortDevice { public static final String SERIALIZED_NAME_NAME = "name"; @Deprecated @@ -223,13 +225,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("name"); - openapiFields.add("redundancy"); - openapiFields.add("vcBandwidthMax"); + openapiFields = new HashSet(Arrays.asList("name", "redundancy", "vcBandwidthMax")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -241,12 +240,12 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PortDevice.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PortDevice is not found in the empty JSON string", PortDevice.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PortDevice is not found in the empty JSON string", PortDevice.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } // validate the optional field `redundancy` if (jsonObj.get("redundancy") != null && !jsonObj.get("redundancy").isJsonNull()) { @@ -311,7 +310,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortDeviceRedundancy.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortDeviceRedundancy.java index 69dcf53b..b3ac478c 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortDeviceRedundancy.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortDeviceRedundancy.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Device redundancy */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class PortDeviceRedundancy { public static final String SERIALIZED_NAME_GROUP = "group"; @SerializedName(SERIALIZED_NAME_GROUP) @@ -243,12 +245,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("group"); - openapiFields.add("priority"); + openapiFields = new HashSet(Arrays.asList("group", "priority")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -260,15 +260,15 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PortDeviceRedundancy.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PortDeviceRedundancy is not found in the empty JSON string", PortDeviceRedundancy.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PortDeviceRedundancy is not found in the empty JSON string", PortDeviceRedundancy.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("group") != null && !jsonObj.get("group").isJsonNull()) && !jsonObj.get("group").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `group` to be a primitive type in the JSON string but got `%s`", jsonObj.get("group").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `group` to be a primitive type in the JSON string but got `%s`", jsonObj.get("group").toString())); } if ((jsonObj.get("priority") != null && !jsonObj.get("priority").isJsonNull()) && !jsonObj.get("priority").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `priority` to be a primitive type in the JSON string but got `%s`", jsonObj.get("priority").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `priority` to be a primitive type in the JSON string but got `%s`", jsonObj.get("priority").toString())); } // validate the optional field `priority` if (jsonObj.get("priority") != null && !jsonObj.get("priority").isJsonNull()) { @@ -333,7 +333,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortEncapsulation.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortEncapsulation.java index 87b1c5a5..a9c6645f 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortEncapsulation.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortEncapsulation.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Port encapsulation configuration */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class PortEncapsulation { /** * Port encapsulation protocol type @@ -247,12 +249,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("type"); - openapiFields.add("tagProtocolId"); + openapiFields = new HashSet(Arrays.asList("type", "tagProtocolId")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -264,19 +264,19 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PortEncapsulation.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PortEncapsulation is not found in the empty JSON string", PortEncapsulation.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PortEncapsulation is not found in the empty JSON string", PortEncapsulation.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the optional field `type` if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { TypeEnum.validateJsonElement(jsonObj.get("type")); } if ((jsonObj.get("tagProtocolId") != null && !jsonObj.get("tagProtocolId").isJsonNull()) && !jsonObj.get("tagProtocolId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `tagProtocolId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("tagProtocolId").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `tagProtocolId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("tagProtocolId").toString())); } } @@ -337,7 +337,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortExpression.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortExpression.java index 2358d9c6..9c04f922 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortExpression.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortExpression.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.PortSearchFieldName; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Either use 'and' for AND operations, 'or' for OR operations, or specify 'property', 'operator', and 'values' for field filtering. Only one of these patterns should be used at a time. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class PortExpression { public static final String SERIALIZED_NAME_AND = "and"; @SerializedName(SERIALIZED_NAME_AND) @@ -346,15 +348,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("and"); - openapiFields.add("or"); - openapiFields.add("property"); - openapiFields.add("operator"); - openapiFields.add("values"); + openapiFields = new HashSet(Arrays.asList("and", "or", "property", "operator", "values")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -366,7 +363,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PortExpression.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PortExpression is not found in the empty JSON string", PortExpression.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PortExpression is not found in the empty JSON string", PortExpression.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -375,7 +372,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayand != null) { // ensure the json data is an array if (!jsonObj.get("and").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `and` to be an array in the JSON string but got `%s`", jsonObj.get("and").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `and` to be an array in the JSON string but got `%s`", jsonObj.get("and").toString())); } // validate the optional field `and` (array) @@ -389,7 +386,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayor != null) { // ensure the json data is an array if (!jsonObj.get("or").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `or` to be an array in the JSON string but got `%s`", jsonObj.get("or").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `or` to be an array in the JSON string but got `%s`", jsonObj.get("or").toString())); } // validate the optional field `or` (array) @@ -403,7 +400,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti PortSearchFieldName.validateJsonElement(jsonObj.get("property")); } if ((jsonObj.get("operator") != null && !jsonObj.get("operator").isJsonNull()) && !jsonObj.get("operator").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `operator` to be a primitive type in the JSON string but got `%s`", jsonObj.get("operator").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `operator` to be a primitive type in the JSON string but got `%s`", jsonObj.get("operator").toString())); } // validate the optional field `operator` if (jsonObj.get("operator") != null && !jsonObj.get("operator").isJsonNull()) { @@ -411,7 +408,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } // ensure the optional json data is an array if present if (jsonObj.get("values") != null && !jsonObj.get("values").isJsonNull() && !jsonObj.get("values").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); } } @@ -472,7 +469,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortInterface.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortInterface.java index f95c40e3..ed095494 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortInterface.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortInterface.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Port interface */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class PortInterface { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -165,11 +167,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("type"); + openapiFields = new HashSet(Arrays.asList("type")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -181,12 +182,12 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PortInterface.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PortInterface is not found in the empty JSON string", PortInterface.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PortInterface is not found in the empty JSON string", PortInterface.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } } @@ -247,7 +248,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortLag.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortLag.java index 75a3d183..22e76647 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortLag.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortLag.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Port Lag */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class PortLag { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -248,14 +250,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("id"); - openapiFields.add("enabled"); - openapiFields.add("name"); - openapiFields.add("memberStatus"); + openapiFields = new HashSet(Arrays.asList("id", "enabled", "name", "memberStatus")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -267,18 +265,18 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PortLag.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PortLag is not found in the empty JSON string", PortLag.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PortLag is not found in the empty JSON string", PortLag.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); } if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } if ((jsonObj.get("memberStatus") != null && !jsonObj.get("memberStatus").isJsonNull()) && !jsonObj.get("memberStatus").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `memberStatus` to be a primitive type in the JSON string but got `%s`", jsonObj.get("memberStatus").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `memberStatus` to be a primitive type in the JSON string but got `%s`", jsonObj.get("memberStatus").toString())); } } @@ -339,7 +337,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortLoa.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortLoa.java index 6bd66d7e..c9aeabc0 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortLoa.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortLoa.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Port Loas */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class PortLoa { public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) @@ -191,12 +193,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("uuid"); - openapiFields.add("type"); + openapiFields = new HashSet(Arrays.asList("uuid", "type")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -208,15 +208,15 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PortLoa.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PortLoa is not found in the empty JSON string", PortLoa.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PortLoa is not found in the empty JSON string", PortLoa.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } } @@ -277,7 +277,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortNotification.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortNotification.java index ad44e57d..3a536192 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortNotification.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortNotification.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * PortNotification */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class PortNotification { /** * Notification Type @@ -257,14 +259,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("type"); - openapiFields.add("registeredUsers"); + openapiFields = new HashSet(Arrays.asList("type", "registeredUsers")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("type"); - openapiRequiredFields.add("registeredUsers"); + openapiRequiredFields = new HashSet(Arrays.asList("type", "registeredUsers")); } /** @@ -276,19 +274,19 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PortNotification.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PortNotification is not found in the empty JSON string", PortNotification.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PortNotification is not found in the empty JSON string", PortNotification.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : PortNotification.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the required field `type` TypeEnum.validateJsonElement(jsonObj.get("type")); @@ -296,7 +294,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("registeredUsers") == null) { throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); } else if (!jsonObj.get("registeredUsers").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `registeredUsers` to be an array in the JSON string but got `%s`", jsonObj.get("registeredUsers").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `registeredUsers` to be an array in the JSON string but got `%s`", jsonObj.get("registeredUsers").toString())); } } @@ -357,7 +355,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortOperation.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortOperation.java index 3a015d89..57979528 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortOperation.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortOperation.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Operational specifications for ports. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class PortOperation { /** * Availability of a given physical port. @@ -350,16 +352,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("operationalStatus"); - openapiFields.add("connectionCount"); - openapiFields.add("evplVCCount"); - openapiFields.add("fgVCCount"); - openapiFields.add("accessVCCount"); - openapiFields.add("opStatusChangedAt"); + openapiFields = new HashSet(Arrays.asList("operationalStatus", "connectionCount", "evplVCCount", "fgVCCount", "accessVCCount", "opStatusChangedAt")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -371,12 +367,12 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PortOperation.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PortOperation is not found in the empty JSON string", PortOperation.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PortOperation is not found in the empty JSON string", PortOperation.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("operationalStatus") != null && !jsonObj.get("operationalStatus").isJsonNull()) && !jsonObj.get("operationalStatus").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `operationalStatus` to be a primitive type in the JSON string but got `%s`", jsonObj.get("operationalStatus").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `operationalStatus` to be a primitive type in the JSON string but got `%s`", jsonObj.get("operationalStatus").toString())); } // validate the optional field `operationalStatus` if (jsonObj.get("operationalStatus") != null && !jsonObj.get("operationalStatus").isJsonNull()) { @@ -441,7 +437,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortOrder.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortOrder.java index 1cb6dfae..39b6b93c 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortOrder.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortOrder.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.PortOrderPurchaseOrder; import com.equinix.sdk.fabricv4.model.PortOrderSignature; import com.google.gson.TypeAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * PortOrder */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class PortOrder { public static final String SERIALIZED_NAME_PURCHASE_ORDER = "purchaseOrder"; @SerializedName(SERIALIZED_NAME_PURCHASE_ORDER) @@ -303,16 +305,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("purchaseOrder"); - openapiFields.add("orderId"); - openapiFields.add("customerReferenceId"); - openapiFields.add("orderNumber"); - openapiFields.add("uuid"); - openapiFields.add("signature"); + openapiFields = new HashSet(Arrays.asList("purchaseOrder", "orderId", "customerReferenceId", "orderNumber", "uuid", "signature")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -324,7 +320,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PortOrder.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PortOrder is not found in the empty JSON string", PortOrder.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PortOrder is not found in the empty JSON string", PortOrder.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -333,16 +329,16 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti PortOrderPurchaseOrder.validateJsonElement(jsonObj.get("purchaseOrder")); } if ((jsonObj.get("orderId") != null && !jsonObj.get("orderId").isJsonNull()) && !jsonObj.get("orderId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `orderId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("orderId").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `orderId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("orderId").toString())); } if ((jsonObj.get("customerReferenceId") != null && !jsonObj.get("customerReferenceId").isJsonNull()) && !jsonObj.get("customerReferenceId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `customerReferenceId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("customerReferenceId").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `customerReferenceId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("customerReferenceId").toString())); } if ((jsonObj.get("orderNumber") != null && !jsonObj.get("orderNumber").isJsonNull()) && !jsonObj.get("orderNumber").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `orderNumber` to be a primitive type in the JSON string but got `%s`", jsonObj.get("orderNumber").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `orderNumber` to be a primitive type in the JSON string but got `%s`", jsonObj.get("orderNumber").toString())); } if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } // validate the optional field `signature` if (jsonObj.get("signature") != null && !jsonObj.get("signature").isJsonNull()) { @@ -407,7 +403,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortOrderPurchaseOrder.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortOrderPurchaseOrder.java index 5bebf613..0669e8ca 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortOrderPurchaseOrder.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortOrderPurchaseOrder.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * purchase order */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class PortOrderPurchaseOrder { public static final String SERIALIZED_NAME_NUMBER = "number"; @SerializedName(SERIALIZED_NAME_NUMBER) @@ -439,17 +441,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("number"); - openapiFields.add("amount"); - openapiFields.add("startDate"); - openapiFields.add("endDate"); - openapiFields.add("attachmentId"); - openapiFields.add("selectionType"); - openapiFields.add("type"); + openapiFields = new HashSet(Arrays.asList("number", "amount", "startDate", "endDate", "attachmentId", "selectionType", "type")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -461,34 +456,34 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PortOrderPurchaseOrder.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PortOrderPurchaseOrder is not found in the empty JSON string", PortOrderPurchaseOrder.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PortOrderPurchaseOrder is not found in the empty JSON string", PortOrderPurchaseOrder.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("number") != null && !jsonObj.get("number").isJsonNull()) && !jsonObj.get("number").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `number` to be a primitive type in the JSON string but got `%s`", jsonObj.get("number").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `number` to be a primitive type in the JSON string but got `%s`", jsonObj.get("number").toString())); } if ((jsonObj.get("amount") != null && !jsonObj.get("amount").isJsonNull()) && !jsonObj.get("amount").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `amount` to be a primitive type in the JSON string but got `%s`", jsonObj.get("amount").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `amount` to be a primitive type in the JSON string but got `%s`", jsonObj.get("amount").toString())); } if ((jsonObj.get("startDate") != null && !jsonObj.get("startDate").isJsonNull()) && !jsonObj.get("startDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `startDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("startDate").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `startDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("startDate").toString())); } if ((jsonObj.get("endDate") != null && !jsonObj.get("endDate").isJsonNull()) && !jsonObj.get("endDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `endDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("endDate").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `endDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("endDate").toString())); } if ((jsonObj.get("attachmentId") != null && !jsonObj.get("attachmentId").isJsonNull()) && !jsonObj.get("attachmentId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `attachmentId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("attachmentId").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `attachmentId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("attachmentId").toString())); } if ((jsonObj.get("selectionType") != null && !jsonObj.get("selectionType").isJsonNull()) && !jsonObj.get("selectionType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `selectionType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("selectionType").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `selectionType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("selectionType").toString())); } // validate the optional field `selectionType` if (jsonObj.get("selectionType") != null && !jsonObj.get("selectionType").isJsonNull()) { SelectionTypeEnum.validateJsonElement(jsonObj.get("selectionType")); } if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the optional field `type` if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { @@ -553,7 +548,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortOrderSignature.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortOrderSignature.java index 333f27a8..f1069cf7 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortOrderSignature.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortOrderSignature.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.PortOrderSignatureDelegate; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Port signature Type */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class PortOrderSignature { /** * Port signature Type @@ -246,12 +248,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("signatory"); - openapiFields.add("delegate"); + openapiFields = new HashSet(Arrays.asList("signatory", "delegate")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -263,12 +263,12 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PortOrderSignature.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PortOrderSignature is not found in the empty JSON string", PortOrderSignature.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PortOrderSignature is not found in the empty JSON string", PortOrderSignature.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("signatory") != null && !jsonObj.get("signatory").isJsonNull()) && !jsonObj.get("signatory").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `signatory` to be a primitive type in the JSON string but got `%s`", jsonObj.get("signatory").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `signatory` to be a primitive type in the JSON string but got `%s`", jsonObj.get("signatory").toString())); } // validate the optional field `signatory` if (jsonObj.get("signatory") != null && !jsonObj.get("signatory").isJsonNull()) { @@ -337,7 +337,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortOrderSignatureDelegate.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortOrderSignatureDelegate.java index 2d0045c6..d7504491 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortOrderSignatureDelegate.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortOrderSignatureDelegate.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * delegate oder details */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class PortOrderSignatureDelegate { public static final String SERIALIZED_NAME_FIRST_NAME = "firstName"; @SerializedName(SERIALIZED_NAME_FIRST_NAME) @@ -217,13 +219,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("firstName"); - openapiFields.add("lastName"); - openapiFields.add("email"); + openapiFields = new HashSet(Arrays.asList("firstName", "lastName", "email")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -235,18 +234,18 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PortOrderSignatureDelegate.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PortOrderSignatureDelegate is not found in the empty JSON string", PortOrderSignatureDelegate.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PortOrderSignatureDelegate is not found in the empty JSON string", PortOrderSignatureDelegate.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("firstName") != null && !jsonObj.get("firstName").isJsonNull()) && !jsonObj.get("firstName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `firstName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("firstName").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `firstName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("firstName").toString())); } if ((jsonObj.get("lastName") != null && !jsonObj.get("lastName").isJsonNull()) && !jsonObj.get("lastName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `lastName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("lastName").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `lastName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("lastName").toString())); } if ((jsonObj.get("email") != null && !jsonObj.get("email").isJsonNull()) && !jsonObj.get("email").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `email` to be a primitive type in the JSON string but got `%s`", jsonObj.get("email").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `email` to be a primitive type in the JSON string but got `%s`", jsonObj.get("email").toString())); } } @@ -307,7 +306,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortPackage.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortPackage.java index f17b3808..75b1e798 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortPackage.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortPackage.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.PortPackageSourceType; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Port Package details */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class PortPackage { public static final String SERIALIZED_NAME_HREF = "href"; @SerializedName(SERIALIZED_NAME_HREF) @@ -473,20 +475,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("href"); - openapiFields.add("type"); - openapiFields.add("code"); - openapiFields.add("vcBandwidthMax"); - openapiFields.add("vcRemoteSupported"); - openapiFields.add("supportedServiceTypes"); - openapiFields.add("supportedSourceTypes"); - openapiFields.add("supportedMetros"); + openapiFields = new HashSet(Arrays.asList("href", "type", "code", "vcBandwidthMax", "vcRemoteSupported", "supportedServiceTypes", "supportedSourceTypes", "supportedMetros")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("type"); - openapiRequiredFields.add("code"); + openapiRequiredFields = new HashSet(Arrays.asList("type", "code")); } /** @@ -498,39 +490,39 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PortPackage.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PortPackage is not found in the empty JSON string", PortPackage.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PortPackage is not found in the empty JSON string", PortPackage.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : PortPackage.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } if (!jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the required field `type` TypeEnum.validateJsonElement(jsonObj.get("type")); if (!jsonObj.get("code").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); } // ensure the optional json data is an array if present if (jsonObj.get("supportedServiceTypes") != null && !jsonObj.get("supportedServiceTypes").isJsonNull() && !jsonObj.get("supportedServiceTypes").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `supportedServiceTypes` to be an array in the JSON string but got `%s`", jsonObj.get("supportedServiceTypes").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `supportedServiceTypes` to be an array in the JSON string but got `%s`", jsonObj.get("supportedServiceTypes").toString())); } // ensure the optional json data is an array if present if (jsonObj.get("supportedSourceTypes") != null && !jsonObj.get("supportedSourceTypes").isJsonNull() && !jsonObj.get("supportedSourceTypes").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `supportedSourceTypes` to be an array in the JSON string but got `%s`", jsonObj.get("supportedSourceTypes").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `supportedSourceTypes` to be an array in the JSON string but got `%s`", jsonObj.get("supportedSourceTypes").toString())); } // ensure the optional json data is an array if present if (jsonObj.get("supportedMetros") != null && !jsonObj.get("supportedMetros").isJsonNull() && !jsonObj.get("supportedMetros").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `supportedMetros` to be an array in the JSON string but got `%s`", jsonObj.get("supportedMetros").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `supportedMetros` to be an array in the JSON string but got `%s`", jsonObj.get("supportedMetros").toString())); } } @@ -591,7 +583,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortPackageSourceType.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortPackageSourceType.java index e82104b9..6f44d875 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortPackageSourceType.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortPackageSourceType.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortPriority.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortPriority.java index 8447bf3e..f7fd3774 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortPriority.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortPriority.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortRedundancy.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortRedundancy.java index 2a561cd0..d78030d4 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortRedundancy.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortRedundancy.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.PortPriority; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Port redundancy configuration */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class PortRedundancy { public static final String SERIALIZED_NAME_ENABLED = "enabled"; @SerializedName(SERIALIZED_NAME_ENABLED) @@ -223,13 +225,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("enabled"); - openapiFields.add("group"); - openapiFields.add("priority"); + openapiFields = new HashSet(Arrays.asList("enabled", "group", "priority")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -241,12 +240,12 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PortRedundancy.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PortRedundancy is not found in the empty JSON string", PortRedundancy.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PortRedundancy is not found in the empty JSON string", PortRedundancy.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("group") != null && !jsonObj.get("group").isJsonNull()) && !jsonObj.get("group").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `group` to be a primitive type in the JSON string but got `%s`", jsonObj.get("group").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `group` to be a primitive type in the JSON string but got `%s`", jsonObj.get("group").toString())); } // validate the optional field `priority` if (jsonObj.get("priority") != null && !jsonObj.get("priority").isJsonNull()) { @@ -311,7 +310,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortRequest.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortRequest.java index 12a70517..ae6cd8b4 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortRequest.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortRequest.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.EndCustomer; import com.equinix.sdk.fabricv4.model.MarketplaceSubscription; import com.equinix.sdk.fabricv4.model.ModelPackage; @@ -63,13 +64,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * PortRequest is the Request Object for creating single and bulk fabric ports */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class PortRequest { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -1336,53 +1338,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("type"); - openapiFields.add("name"); - openapiFields.add("description"); - openapiFields.add("physicalPortsSpeed"); - openapiFields.add("physicalPortsType"); - openapiFields.add("physicalPortsCount"); - openapiFields.add("connectivitySourceType"); - openapiFields.add("bmmrType"); - openapiFields.add("project"); - openapiFields.add("state"); - openapiFields.add("order"); - openapiFields.add("account"); - openapiFields.add("serviceType"); - openapiFields.add("serviceCode"); - openapiFields.add("bandwidth"); - openapiFields.add("location"); - openapiFields.add("device"); - openapiFields.add("interface"); - openapiFields.add("demarcationPointIbx"); - openapiFields.add("tetherIbx"); - openapiFields.add("demarcationPoint"); - openapiFields.add("redundancy"); - openapiFields.add("encapsulation"); - openapiFields.add("lagEnabled"); - openapiFields.add("lag"); - openapiFields.add("asn"); - openapiFields.add("package"); - openapiFields.add("settings"); - openapiFields.add("physicalPortQuantity"); - openapiFields.add("notifications"); - openapiFields.add("additionalInfo"); - openapiFields.add("endCustomer"); - openapiFields.add("physicalPorts"); - openapiFields.add("loas"); - openapiFields.add("marketplaceSubscription"); + openapiFields = new HashSet(Arrays.asList("type", "name", "description", "physicalPortsSpeed", "physicalPortsType", "physicalPortsCount", "connectivitySourceType", "bmmrType", "project", "state", "order", "account", "serviceType", "serviceCode", "bandwidth", "location", "device", "interface", "demarcationPointIbx", "tetherIbx", "demarcationPoint", "redundancy", "encapsulation", "lagEnabled", "lag", "asn", "package", "settings", "physicalPortQuantity", "notifications", "additionalInfo", "endCustomer", "physicalPorts", "loas", "marketplaceSubscription")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("type"); - openapiRequiredFields.add("physicalPortsSpeed"); - openapiRequiredFields.add("physicalPortsType"); - openapiRequiredFields.add("connectivitySourceType"); - openapiRequiredFields.add("account"); - openapiRequiredFields.add("location"); - openapiRequiredFields.add("encapsulation"); - openapiRequiredFields.add("settings"); + openapiRequiredFields = new HashSet(Arrays.asList("type", "physicalPortsSpeed", "physicalPortsType", "connectivitySourceType", "account", "location", "encapsulation", "settings")); } /** @@ -1394,37 +1353,37 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PortRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PortRequest is not found in the empty JSON string", PortRequest.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PortRequest is not found in the empty JSON string", PortRequest.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : PortRequest.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the required field `type` PortType.validateJsonElement(jsonObj.get("type")); if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); } if (!jsonObj.get("physicalPortsType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `physicalPortsType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("physicalPortsType").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `physicalPortsType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("physicalPortsType").toString())); } // validate the required field `physicalPortsType` PhysicalPortsTypeEnum.validateJsonElement(jsonObj.get("physicalPortsType")); if (!jsonObj.get("connectivitySourceType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `connectivitySourceType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("connectivitySourceType").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `connectivitySourceType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("connectivitySourceType").toString())); } // validate the required field `connectivitySourceType` ConnectivitySourceTypeEnum.validateJsonElement(jsonObj.get("connectivitySourceType")); if ((jsonObj.get("bmmrType") != null && !jsonObj.get("bmmrType").isJsonNull()) && !jsonObj.get("bmmrType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `bmmrType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("bmmrType").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `bmmrType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("bmmrType").toString())); } // validate the optional field `bmmrType` if (jsonObj.get("bmmrType") != null && !jsonObj.get("bmmrType").isJsonNull()) { @@ -1445,7 +1404,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // validate the required field `account` SimplifiedAccount.validateJsonElement(jsonObj.get("account")); if ((jsonObj.get("serviceType") != null && !jsonObj.get("serviceType").isJsonNull()) && !jsonObj.get("serviceType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `serviceType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("serviceType").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `serviceType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("serviceType").toString())); } // validate the optional field `serviceType` if (jsonObj.get("serviceType") != null && !jsonObj.get("serviceType").isJsonNull()) { @@ -1466,10 +1425,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti PortInterface.validateJsonElement(jsonObj.get("interface")); } if ((jsonObj.get("demarcationPointIbx") != null && !jsonObj.get("demarcationPointIbx").isJsonNull()) && !jsonObj.get("demarcationPointIbx").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `demarcationPointIbx` to be a primitive type in the JSON string but got `%s`", jsonObj.get("demarcationPointIbx").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `demarcationPointIbx` to be a primitive type in the JSON string but got `%s`", jsonObj.get("demarcationPointIbx").toString())); } if ((jsonObj.get("tetherIbx") != null && !jsonObj.get("tetherIbx").isJsonNull()) && !jsonObj.get("tetherIbx").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `tetherIbx` to be a primitive type in the JSON string but got `%s`", jsonObj.get("tetherIbx").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `tetherIbx` to be a primitive type in the JSON string but got `%s`", jsonObj.get("tetherIbx").toString())); } // validate the optional field `demarcationPoint` if (jsonObj.get("demarcationPoint") != null && !jsonObj.get("demarcationPoint").isJsonNull()) { @@ -1496,7 +1455,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraynotifications != null) { // ensure the json data is an array if (!jsonObj.get("notifications").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `notifications` to be an array in the JSON string but got `%s`", jsonObj.get("notifications").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `notifications` to be an array in the JSON string but got `%s`", jsonObj.get("notifications").toString())); } // validate the optional field `notifications` (array) @@ -1510,7 +1469,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayadditionalInfo != null) { // ensure the json data is an array if (!jsonObj.get("additionalInfo").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `additionalInfo` to be an array in the JSON string but got `%s`", jsonObj.get("additionalInfo").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `additionalInfo` to be an array in the JSON string but got `%s`", jsonObj.get("additionalInfo").toString())); } // validate the optional field `additionalInfo` (array) @@ -1528,7 +1487,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayphysicalPorts != null) { // ensure the json data is an array if (!jsonObj.get("physicalPorts").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `physicalPorts` to be an array in the JSON string but got `%s`", jsonObj.get("physicalPorts").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `physicalPorts` to be an array in the JSON string but got `%s`", jsonObj.get("physicalPorts").toString())); } // validate the optional field `physicalPorts` (array) @@ -1542,7 +1501,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayloas != null) { // ensure the json data is an array if (!jsonObj.get("loas").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `loas` to be an array in the JSON string but got `%s`", jsonObj.get("loas").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `loas` to be an array in the JSON string but got `%s`", jsonObj.get("loas").toString())); } // validate the optional field `loas` (array) @@ -1614,7 +1573,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortSearchFieldName.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortSearchFieldName.java index e00ae78c..6c0fe0cc 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortSearchFieldName.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortSearchFieldName.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortServiceCode.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortServiceCode.java index e2312369..811f961d 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortServiceCode.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortServiceCode.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortSettings.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortSettings.java index b69b2bb2..400cfcb0 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortSettings.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortSettings.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Port configuration settings */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class PortSettings { public static final String SERIALIZED_NAME_BUYOUT = "buyout"; @Deprecated @@ -456,17 +458,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("buyout"); - openapiFields.add("viewPortPermission"); - openapiFields.add("placeVcOrderPermission"); - openapiFields.add("layer3Enabled"); - openapiFields.add("sharedPortType"); - openapiFields.add("sharedPortProduct"); - openapiFields.add("packageType"); + openapiFields = new HashSet(Arrays.asList("buyout", "viewPortPermission", "placeVcOrderPermission", "layer3Enabled", "sharedPortType", "sharedPortProduct", "packageType")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -478,19 +473,19 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PortSettings.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PortSettings is not found in the empty JSON string", PortSettings.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PortSettings is not found in the empty JSON string", PortSettings.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("sharedPortProduct") != null && !jsonObj.get("sharedPortProduct").isJsonNull()) && !jsonObj.get("sharedPortProduct").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `sharedPortProduct` to be a primitive type in the JSON string but got `%s`", jsonObj.get("sharedPortProduct").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `sharedPortProduct` to be a primitive type in the JSON string but got `%s`", jsonObj.get("sharedPortProduct").toString())); } // validate the optional field `sharedPortProduct` if (jsonObj.get("sharedPortProduct") != null && !jsonObj.get("sharedPortProduct").isJsonNull()) { SharedPortProductEnum.validateJsonElement(jsonObj.get("sharedPortProduct")); } if ((jsonObj.get("packageType") != null && !jsonObj.get("packageType").isJsonNull()) && !jsonObj.get("packageType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `packageType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("packageType").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `packageType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("packageType").toString())); } // validate the optional field `packageType` if (jsonObj.get("packageType") != null && !jsonObj.get("packageType").isJsonNull()) { @@ -555,7 +550,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortSortBy.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortSortBy.java index 069d384e..51373677 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortSortBy.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortSortBy.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortSortCriteria.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortSortCriteria.java index 3c6a2327..5c9f2a34 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortSortCriteria.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortSortCriteria.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.PortSortBy; import com.equinix.sdk.fabricv4.model.PortSortDirection; import com.google.gson.TypeAdapter; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * PortSortCriteria */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class PortSortCriteria { public static final String SERIALIZED_NAME_DIRECTION = "direction"; @SerializedName(SERIALIZED_NAME_DIRECTION) @@ -193,12 +195,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("direction"); - openapiFields.add("property"); + openapiFields = new HashSet(Arrays.asList("direction", "property")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -210,7 +210,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PortSortCriteria.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PortSortCriteria is not found in the empty JSON string", PortSortCriteria.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PortSortCriteria is not found in the empty JSON string", PortSortCriteria.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -281,7 +281,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortSortDirection.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortSortDirection.java index 0a537d89..68563c51 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortSortDirection.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortSortDirection.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortState.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortState.java index 5e96f8b2..acfe8bce 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortState.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortState.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortTether.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortTether.java index e4f8557c..4126134e 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortTether.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortTether.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Port physical connection */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class PortTether { public static final String SERIALIZED_NAME_CROSS_CONNECT_ID = "crossConnectId"; @SerializedName(SERIALIZED_NAME_CROSS_CONNECT_ID) @@ -321,17 +323,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("crossConnectId"); - openapiFields.add("cabinetNumber"); - openapiFields.add("systemName"); - openapiFields.add("patchPanel"); - openapiFields.add("patchPanelPortA"); - openapiFields.add("patchPanelPortB"); - openapiFields.add("ibx"); + openapiFields = new HashSet(Arrays.asList("crossConnectId", "cabinetNumber", "systemName", "patchPanel", "patchPanelPortA", "patchPanelPortB", "ibx")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -343,30 +338,30 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PortTether.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PortTether is not found in the empty JSON string", PortTether.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PortTether is not found in the empty JSON string", PortTether.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("crossConnectId") != null && !jsonObj.get("crossConnectId").isJsonNull()) && !jsonObj.get("crossConnectId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `crossConnectId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("crossConnectId").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `crossConnectId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("crossConnectId").toString())); } if ((jsonObj.get("cabinetNumber") != null && !jsonObj.get("cabinetNumber").isJsonNull()) && !jsonObj.get("cabinetNumber").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `cabinetNumber` to be a primitive type in the JSON string but got `%s`", jsonObj.get("cabinetNumber").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `cabinetNumber` to be a primitive type in the JSON string but got `%s`", jsonObj.get("cabinetNumber").toString())); } if ((jsonObj.get("systemName") != null && !jsonObj.get("systemName").isJsonNull()) && !jsonObj.get("systemName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `systemName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("systemName").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `systemName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("systemName").toString())); } if ((jsonObj.get("patchPanel") != null && !jsonObj.get("patchPanel").isJsonNull()) && !jsonObj.get("patchPanel").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `patchPanel` to be a primitive type in the JSON string but got `%s`", jsonObj.get("patchPanel").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `patchPanel` to be a primitive type in the JSON string but got `%s`", jsonObj.get("patchPanel").toString())); } if ((jsonObj.get("patchPanelPortA") != null && !jsonObj.get("patchPanelPortA").isJsonNull()) && !jsonObj.get("patchPanelPortA").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `patchPanelPortA` to be a primitive type in the JSON string but got `%s`", jsonObj.get("patchPanelPortA").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `patchPanelPortA` to be a primitive type in the JSON string but got `%s`", jsonObj.get("patchPanelPortA").toString())); } if ((jsonObj.get("patchPanelPortB") != null && !jsonObj.get("patchPanelPortB").isJsonNull()) && !jsonObj.get("patchPanelPortB").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `patchPanelPortB` to be a primitive type in the JSON string but got `%s`", jsonObj.get("patchPanelPortB").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `patchPanelPortB` to be a primitive type in the JSON string but got `%s`", jsonObj.get("patchPanelPortB").toString())); } if ((jsonObj.get("ibx") != null && !jsonObj.get("ibx").isJsonNull()) && !jsonObj.get("ibx").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `ibx` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ibx").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `ibx` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ibx").toString())); } } @@ -427,7 +422,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortType.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortType.java index 0eb2b41d..0c30b427 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortType.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortType.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortV4SearchRequest.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortV4SearchRequest.java index e2779a8f..1055078a 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortV4SearchRequest.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PortV4SearchRequest.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.PaginationRequest; import com.equinix.sdk.fabricv4.model.PortExpression; import com.equinix.sdk.fabricv4.model.PortSortCriteria; @@ -45,13 +46,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Search requests containing criteria */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class PortV4SearchRequest { public static final String SERIALIZED_NAME_FILTER = "filter"; @SerializedName(SERIALIZED_NAME_FILTER) @@ -230,14 +232,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("filter"); - openapiFields.add("pagination"); - openapiFields.add("sort"); + openapiFields = new HashSet(Arrays.asList("filter", "pagination", "sort")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("filter"); + openapiRequiredFields = new HashSet(Arrays.asList("filter")); } /** @@ -249,14 +247,14 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PortV4SearchRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PortV4SearchRequest is not found in the empty JSON string", PortV4SearchRequest.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PortV4SearchRequest is not found in the empty JSON string", PortV4SearchRequest.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : PortV4SearchRequest.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -271,7 +269,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraysort != null) { // ensure the json data is an array if (!jsonObj.get("sort").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `sort` to be an array in the JSON string but got `%s`", jsonObj.get("sort").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `sort` to be an array in the JSON string but got `%s`", jsonObj.get("sort").toString())); } // validate the optional field `sort` (array) @@ -339,7 +337,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PrecisionTimeChangeOperation.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PrecisionTimeChangeOperation.java index a7c2b30c..10dc4a91 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PrecisionTimeChangeOperation.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PrecisionTimeChangeOperation.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Fabric Precision Timing change operation data */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class PrecisionTimeChangeOperation { /** * Handy shortcut for operation name @@ -329,16 +331,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("op"); - openapiFields.add("path"); - openapiFields.add("value"); + openapiFields = new HashSet(Arrays.asList("op", "path", "value")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("op"); - openapiRequiredFields.add("path"); - openapiRequiredFields.add("value"); + openapiRequiredFields = new HashSet(Arrays.asList("op", "path", "value")); } /** @@ -350,24 +346,24 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PrecisionTimeChangeOperation.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PrecisionTimeChangeOperation is not found in the empty JSON string", PrecisionTimeChangeOperation.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PrecisionTimeChangeOperation is not found in the empty JSON string", PrecisionTimeChangeOperation.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : PrecisionTimeChangeOperation.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("op").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `op` to be a primitive type in the JSON string but got `%s`", jsonObj.get("op").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `op` to be a primitive type in the JSON string but got `%s`", jsonObj.get("op").toString())); } // validate the required field `op` OpEnum.validateJsonElement(jsonObj.get("op")); if (!jsonObj.get("path").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); } // validate the required field `path` PathEnum.validateJsonElement(jsonObj.get("path")); @@ -430,7 +426,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PrecisionTimeOrder.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PrecisionTimeOrder.java index b161c2cf..99accdea 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PrecisionTimeOrder.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PrecisionTimeOrder.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Precision Time Order */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class PrecisionTimeOrder { public static final String SERIALIZED_NAME_PURCHASE_ORDER_NUMBER = "purchaseOrderNumber"; @SerializedName(SERIALIZED_NAME_PURCHASE_ORDER_NUMBER) @@ -217,13 +219,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("purchaseOrderNumber"); - openapiFields.add("customerReferenceNumber"); - openapiFields.add("orderNumber"); + openapiFields = new HashSet(Arrays.asList("purchaseOrderNumber", "customerReferenceNumber", "orderNumber")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -235,18 +234,18 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PrecisionTimeOrder.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PrecisionTimeOrder is not found in the empty JSON string", PrecisionTimeOrder.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PrecisionTimeOrder is not found in the empty JSON string", PrecisionTimeOrder.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("purchaseOrderNumber") != null && !jsonObj.get("purchaseOrderNumber").isJsonNull()) && !jsonObj.get("purchaseOrderNumber").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `purchaseOrderNumber` to be a primitive type in the JSON string but got `%s`", jsonObj.get("purchaseOrderNumber").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `purchaseOrderNumber` to be a primitive type in the JSON string but got `%s`", jsonObj.get("purchaseOrderNumber").toString())); } if ((jsonObj.get("customerReferenceNumber") != null && !jsonObj.get("customerReferenceNumber").isJsonNull()) && !jsonObj.get("customerReferenceNumber").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `customerReferenceNumber` to be a primitive type in the JSON string but got `%s`", jsonObj.get("customerReferenceNumber").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `customerReferenceNumber` to be a primitive type in the JSON string but got `%s`", jsonObj.get("customerReferenceNumber").toString())); } if ((jsonObj.get("orderNumber") != null && !jsonObj.get("orderNumber").isJsonNull()) && !jsonObj.get("orderNumber").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `orderNumber` to be a primitive type in the JSON string but got `%s`", jsonObj.get("orderNumber").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `orderNumber` to be a primitive type in the JSON string but got `%s`", jsonObj.get("orderNumber").toString())); } } @@ -307,7 +306,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PrecisionTimePackagePostResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PrecisionTimePackagePostResponse.java index 021f5fba..6c212174 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PrecisionTimePackagePostResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PrecisionTimePackagePostResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * PrecisionTimePackagePostResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class PrecisionTimePackagePostResponse { public static final String SERIALIZED_NAME_HREF = "href"; @SerializedName(SERIALIZED_NAME_HREF) @@ -248,13 +250,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("href"); - openapiFields.add("code"); + openapiFields = new HashSet(Arrays.asList("href", "code")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("code"); + openapiRequiredFields = new HashSet(Arrays.asList("code")); } /** @@ -266,22 +265,22 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PrecisionTimePackagePostResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PrecisionTimePackagePostResponse is not found in the empty JSON string", PrecisionTimePackagePostResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PrecisionTimePackagePostResponse is not found in the empty JSON string", PrecisionTimePackagePostResponse.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : PrecisionTimePackagePostResponse.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } if (!jsonObj.get("code").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); } // validate the required field `code` CodeEnum.validateJsonElement(jsonObj.get("code")); @@ -344,7 +343,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PrecisionTimePackageRequest.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PrecisionTimePackageRequest.java index 68af09ce..dc4b1e7c 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PrecisionTimePackageRequest.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PrecisionTimePackageRequest.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Precision Time Service Level Request */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class PrecisionTimePackageRequest { /** * Precision Time Service Level @@ -221,12 +223,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("code"); + openapiFields = new HashSet(Arrays.asList("code")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("code"); + openapiRequiredFields = new HashSet(Arrays.asList("code")); } /** @@ -238,19 +238,19 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PrecisionTimePackageRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PrecisionTimePackageRequest is not found in the empty JSON string", PrecisionTimePackageRequest.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PrecisionTimePackageRequest is not found in the empty JSON string", PrecisionTimePackageRequest.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : PrecisionTimePackageRequest.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("code").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); } // validate the required field `code` CodeEnum.validateJsonElement(jsonObj.get("code")); @@ -313,7 +313,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PrecisionTimePackageResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PrecisionTimePackageResponse.java index b5069a49..69599268 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PrecisionTimePackageResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PrecisionTimePackageResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Changelog; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * EPT Service Package Information */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class PrecisionTimePackageResponse { public static final String SERIALIZED_NAME_HREF = "href"; @SerializedName(SERIALIZED_NAME_HREF) @@ -562,25 +564,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("href"); - openapiFields.add("type"); - openapiFields.add("code"); - openapiFields.add("bandwidth"); - openapiFields.add("clientsPerSecondMax"); - openapiFields.add("redundancySupported"); - openapiFields.add("multiSubnetSupported"); - openapiFields.add("accuracySlaUnit"); - openapiFields.add("accuracySla"); - openapiFields.add("accuracySlaMin"); - openapiFields.add("accuracySlaMax"); - openapiFields.add("changelog"); + openapiFields = new HashSet(Arrays.asList("href", "type", "code", "bandwidth", "clientsPerSecondMax", "redundancySupported", "multiSubnetSupported", "accuracySlaUnit", "accuracySla", "accuracySlaMin", "accuracySlaMax", "changelog")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("type"); - openapiRequiredFields.add("code"); - openapiRequiredFields.add("bandwidth"); + openapiRequiredFields = new HashSet(Arrays.asList("type", "code", "bandwidth")); } /** @@ -592,32 +579,32 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PrecisionTimePackageResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PrecisionTimePackageResponse is not found in the empty JSON string", PrecisionTimePackageResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PrecisionTimePackageResponse is not found in the empty JSON string", PrecisionTimePackageResponse.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : PrecisionTimePackageResponse.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } if (!jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the required field `type` TypeEnum.validateJsonElement(jsonObj.get("type")); if (!jsonObj.get("code").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); } // validate the required field `code` CodeEnum.validateJsonElement(jsonObj.get("code")); if ((jsonObj.get("accuracySlaUnit") != null && !jsonObj.get("accuracySlaUnit").isJsonNull()) && !jsonObj.get("accuracySlaUnit").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `accuracySlaUnit` to be a primitive type in the JSON string but got `%s`", jsonObj.get("accuracySlaUnit").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `accuracySlaUnit` to be a primitive type in the JSON string but got `%s`", jsonObj.get("accuracySlaUnit").toString())); } // validate the optional field `changelog` if (jsonObj.get("changelog") != null && !jsonObj.get("changelog").isJsonNull()) { @@ -682,7 +669,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PrecisionTimePrice.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PrecisionTimePrice.java index e0482c00..26766f96 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PrecisionTimePrice.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PrecisionTimePrice.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.PriceCharge; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Precision Time Price */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class PrecisionTimePrice { public static final String SERIALIZED_NAME_CURRENCY = "currency"; @SerializedName(SERIALIZED_NAME_CURRENCY) @@ -202,12 +204,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("currency"); - openapiFields.add("charges"); + openapiFields = new HashSet(Arrays.asList("currency", "charges")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -219,19 +219,19 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PrecisionTimePrice.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PrecisionTimePrice is not found in the empty JSON string", PrecisionTimePrice.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PrecisionTimePrice is not found in the empty JSON string", PrecisionTimePrice.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("currency") != null && !jsonObj.get("currency").isJsonNull()) && !jsonObj.get("currency").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `currency` to be a primitive type in the JSON string but got `%s`", jsonObj.get("currency").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `currency` to be a primitive type in the JSON string but got `%s`", jsonObj.get("currency").toString())); } if (jsonObj.get("charges") != null && !jsonObj.get("charges").isJsonNull()) { JsonArray jsonArraycharges = jsonObj.getAsJsonArray("charges"); if (jsonArraycharges != null) { // ensure the json data is an array if (!jsonObj.get("charges").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `charges` to be an array in the JSON string but got `%s`", jsonObj.get("charges").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `charges` to be an array in the JSON string but got `%s`", jsonObj.get("charges").toString())); } // validate the optional field `charges` (array) @@ -299,7 +299,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PrecisionTimeServiceConnectionsResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PrecisionTimeServiceConnectionsResponse.java index db3ce90c..881f14f6 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PrecisionTimeServiceConnectionsResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PrecisionTimeServiceConnectionsResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.ConnectionLink; import com.equinix.sdk.fabricv4.model.Pagination; import com.google.gson.TypeAdapter; @@ -44,13 +45,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * EPT service instance's L2 connections */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class PrecisionTimeServiceConnectionsResponse { public static final String SERIALIZED_NAME_PAGINATION = "pagination"; @SerializedName(SERIALIZED_NAME_PAGINATION) @@ -203,12 +205,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("pagination"); - openapiFields.add("data"); + openapiFields = new HashSet(Arrays.asList("pagination", "data")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -220,7 +220,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PrecisionTimeServiceConnectionsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PrecisionTimeServiceConnectionsResponse is not found in the empty JSON string", PrecisionTimeServiceConnectionsResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PrecisionTimeServiceConnectionsResponse is not found in the empty JSON string", PrecisionTimeServiceConnectionsResponse.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -233,7 +233,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraydata != null) { // ensure the json data is an array if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); } // validate the optional field `data` (array) @@ -301,7 +301,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PrecisionTimeServicePackagesResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PrecisionTimeServicePackagesResponse.java index d067e29a..cd9b495f 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PrecisionTimeServicePackagesResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PrecisionTimeServicePackagesResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Pagination; import com.equinix.sdk.fabricv4.model.PrecisionTimePackageResponse; import com.google.gson.TypeAdapter; @@ -44,13 +45,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Precision Packages */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class PrecisionTimeServicePackagesResponse { public static final String SERIALIZED_NAME_PAGINATION = "pagination"; @SerializedName(SERIALIZED_NAME_PAGINATION) @@ -203,12 +205,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("pagination"); - openapiFields.add("data"); + openapiFields = new HashSet(Arrays.asList("pagination", "data")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -220,7 +220,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PrecisionTimeServicePackagesResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PrecisionTimeServicePackagesResponse is not found in the empty JSON string", PrecisionTimeServicePackagesResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PrecisionTimeServicePackagesResponse is not found in the empty JSON string", PrecisionTimeServicePackagesResponse.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -233,7 +233,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraydata != null) { // ensure the json data is an array if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); } // validate the optional field `data` (array) @@ -301,7 +301,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PrecisionTimeServiceRequest.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PrecisionTimeServiceRequest.java index 04201853..76ec7fba 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PrecisionTimeServiceRequest.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PrecisionTimeServiceRequest.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Ipv4; import com.equinix.sdk.fabricv4.model.Md5; import com.equinix.sdk.fabricv4.model.PrecisionTimeOrder; @@ -49,13 +50,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Create Precision Time Service Request Schema. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class PrecisionTimeServiceRequest { /** * Precision Time Service Type refers to the corresponding Protocol. @@ -450,24 +452,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("type"); - openapiFields.add("name"); - openapiFields.add("package"); - openapiFields.add("connections"); - openapiFields.add("ipv4"); - openapiFields.add("ntpAdvancedConfiguration"); - openapiFields.add("ptpAdvancedConfiguration"); - openapiFields.add("project"); - openapiFields.add("order"); + openapiFields = new HashSet(Arrays.asList("type", "name", "package", "connections", "ipv4", "ntpAdvancedConfiguration", "ptpAdvancedConfiguration", "project", "order")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("type"); - openapiRequiredFields.add("name"); - openapiRequiredFields.add("package"); - openapiRequiredFields.add("connections"); - openapiRequiredFields.add("ipv4"); + openapiRequiredFields = new HashSet(Arrays.asList("type", "name", "package", "connections", "ipv4")); } /** @@ -479,30 +467,30 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PrecisionTimeServiceRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PrecisionTimeServiceRequest is not found in the empty JSON string", PrecisionTimeServiceRequest.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PrecisionTimeServiceRequest is not found in the empty JSON string", PrecisionTimeServiceRequest.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : PrecisionTimeServiceRequest.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the required field `type` TypeEnum.validateJsonElement(jsonObj.get("type")); if (!jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } // validate the required field `package` PrecisionTimePackageRequest.validateJsonElement(jsonObj.get("package")); // ensure the json data is an array if (!jsonObj.get("connections").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `connections` to be an array in the JSON string but got `%s`", jsonObj.get("connections").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `connections` to be an array in the JSON string but got `%s`", jsonObj.get("connections").toString())); } JsonArray jsonArrayconnections = jsonObj.getAsJsonArray("connections"); @@ -517,7 +505,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayntpAdvancedConfiguration != null) { // ensure the json data is an array if (!jsonObj.get("ntpAdvancedConfiguration").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `ntpAdvancedConfiguration` to be an array in the JSON string but got `%s`", jsonObj.get("ntpAdvancedConfiguration").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `ntpAdvancedConfiguration` to be an array in the JSON string but got `%s`", jsonObj.get("ntpAdvancedConfiguration").toString())); } // validate the optional field `ntpAdvancedConfiguration` (array) @@ -597,7 +585,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PrecisionTimeServiceResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PrecisionTimeServiceResponse.java index d1763d45..ab7fd9b7 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PrecisionTimeServiceResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PrecisionTimeServiceResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Changelog; import com.equinix.sdk.fabricv4.model.Ipv4; import com.equinix.sdk.fabricv4.model.Md5; @@ -57,13 +58,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Precision Time Service Response Schema. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class PrecisionTimeServiceResponse { public static final String SERIALIZED_NAME_HREF = "href"; @SerializedName(SERIALIZED_NAME_HREF) @@ -714,31 +716,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("href"); - openapiFields.add("type"); - openapiFields.add("name"); - openapiFields.add("uuid"); - openapiFields.add("state"); - openapiFields.add("operation"); - openapiFields.add("package"); - openapiFields.add("connections"); - openapiFields.add("ipv4"); - openapiFields.add("ntpAdvancedConfiguration"); - openapiFields.add("ptpAdvancedConfiguration"); - openapiFields.add("project"); - openapiFields.add("account"); - openapiFields.add("order"); - openapiFields.add("pricing"); - openapiFields.add("changeLog"); + openapiFields = new HashSet(Arrays.asList("href", "type", "name", "uuid", "state", "operation", "package", "connections", "ipv4", "ntpAdvancedConfiguration", "ptpAdvancedConfiguration", "project", "account", "order", "pricing", "changeLog")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("href"); - openapiRequiredFields.add("type"); - openapiRequiredFields.add("uuid"); - openapiRequiredFields.add("state"); - openapiRequiredFields.add("package"); + openapiRequiredFields = new HashSet(Arrays.asList("href", "type", "uuid", "state", "package")); } /** @@ -750,33 +731,33 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PrecisionTimeServiceResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PrecisionTimeServiceResponse is not found in the empty JSON string", PrecisionTimeServiceResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PrecisionTimeServiceResponse is not found in the empty JSON string", PrecisionTimeServiceResponse.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : PrecisionTimeServiceResponse.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } if (!jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the required field `type` TypeEnum.validateJsonElement(jsonObj.get("type")); if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } if (!jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } if (!jsonObj.get("state").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `state` to be a primitive type in the JSON string but got `%s`", jsonObj.get("state").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `state` to be a primitive type in the JSON string but got `%s`", jsonObj.get("state").toString())); } // validate the required field `state` StateEnum.validateJsonElement(jsonObj.get("state")); @@ -791,7 +772,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayconnections != null) { // ensure the json data is an array if (!jsonObj.get("connections").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `connections` to be an array in the JSON string but got `%s`", jsonObj.get("connections").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `connections` to be an array in the JSON string but got `%s`", jsonObj.get("connections").toString())); } // validate the optional field `connections` (array) @@ -809,7 +790,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayntpAdvancedConfiguration != null) { // ensure the json data is an array if (!jsonObj.get("ntpAdvancedConfiguration").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `ntpAdvancedConfiguration` to be an array in the JSON string but got `%s`", jsonObj.get("ntpAdvancedConfiguration").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `ntpAdvancedConfiguration` to be an array in the JSON string but got `%s`", jsonObj.get("ntpAdvancedConfiguration").toString())); } // validate the optional field `ntpAdvancedConfiguration` (array) @@ -901,7 +882,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Presence.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Presence.java index 183c1b09..bb98aaf4 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Presence.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Presence.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Price.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Price.java index 2fc14779..c216daf7 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Price.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Price.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.FabricCloudRouterPrice; import com.equinix.sdk.fabricv4.model.IpBlockPrice; import com.equinix.sdk.fabricv4.model.PriceCategory; @@ -51,13 +52,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Price */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class Price { public static final String SERIALIZED_NAME_HREF = "href"; @SerializedName(SERIALIZED_NAME_HREF) @@ -604,25 +606,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("href"); - openapiFields.add("type"); - openapiFields.add("code"); - openapiFields.add("name"); - openapiFields.add("description"); - openapiFields.add("account"); - openapiFields.add("charges"); - openapiFields.add("currency"); - openapiFields.add("termLength"); - openapiFields.add("catgory"); - openapiFields.add("connection"); - openapiFields.add("ipBlock"); - openapiFields.add("router"); - openapiFields.add("port"); - openapiFields.add("timeService"); + openapiFields = new HashSet(Arrays.asList("href", "type", "code", "name", "description", "account", "charges", "currency", "termLength", "catgory", "connection", "ipBlock", "router", "port", "timeService")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -634,25 +621,25 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!Price.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in Price is not found in the empty JSON string", Price.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in Price is not found in the empty JSON string", Price.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } // validate the optional field `type` if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { ProductType.validateJsonElement(jsonObj.get("type")); } if ((jsonObj.get("code") != null && !jsonObj.get("code").isJsonNull()) && !jsonObj.get("code").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); } if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); } // validate the optional field `account` if (jsonObj.get("account") != null && !jsonObj.get("account").isJsonNull()) { @@ -663,7 +650,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraycharges != null) { // ensure the json data is an array if (!jsonObj.get("charges").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `charges` to be an array in the JSON string but got `%s`", jsonObj.get("charges").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `charges` to be an array in the JSON string but got `%s`", jsonObj.get("charges").toString())); } // validate the optional field `charges` (array) @@ -673,7 +660,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } if ((jsonObj.get("currency") != null && !jsonObj.get("currency").isJsonNull()) && !jsonObj.get("currency").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `currency` to be a primitive type in the JSON string but got `%s`", jsonObj.get("currency").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `currency` to be a primitive type in the JSON string but got `%s`", jsonObj.get("currency").toString())); } // validate the optional field `termLength` if (jsonObj.get("termLength") != null && !jsonObj.get("termLength").isJsonNull()) { @@ -762,7 +749,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PriceCategory.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PriceCategory.java index 72f5eb2a..b9b43b1b 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PriceCategory.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PriceCategory.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PriceCharge.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PriceCharge.java index 4f4a4fb7..1d076982 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PriceCharge.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PriceCharge.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Price Charge */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class PriceCharge { /** * Price charge type @@ -244,12 +246,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("type"); - openapiFields.add("price"); + openapiFields = new HashSet(Arrays.asList("type", "price")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -261,12 +261,12 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PriceCharge.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PriceCharge is not found in the empty JSON string", PriceCharge.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PriceCharge is not found in the empty JSON string", PriceCharge.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the optional field `type` if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { @@ -331,7 +331,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PriceError.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PriceError.java index d218b515..6cd03af3 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PriceError.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PriceError.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.PriceErrorAdditionalInfo; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Error with details */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class PriceError { /** * Gets or Sets errorCode @@ -415,18 +417,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("errorCode"); - openapiFields.add("errorMessage"); - openapiFields.add("correlationId"); - openapiFields.add("details"); - openapiFields.add("help"); - openapiFields.add("additionalInfo"); + openapiFields = new HashSet(Arrays.asList("errorCode", "errorMessage", "correlationId", "details", "help", "additionalInfo")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("errorCode"); - openapiRequiredFields.add("errorMessage"); + openapiRequiredFields = new HashSet(Arrays.asList("errorCode", "errorMessage")); } /** @@ -438,14 +432,14 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PriceError.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PriceError is not found in the empty JSON string", PriceError.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PriceError is not found in the empty JSON string", PriceError.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : PriceError.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } } @@ -507,7 +501,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PriceErrorAdditionalInfo.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PriceErrorAdditionalInfo.java index 4ef0d856..7721ec5b 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PriceErrorAdditionalInfo.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PriceErrorAdditionalInfo.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * PriceErrorAdditionalInfo */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class PriceErrorAdditionalInfo { public static final String SERIALIZED_NAME_PROPERTY = "property"; @SerializedName(SERIALIZED_NAME_PROPERTY) @@ -191,12 +193,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("property"); - openapiFields.add("reason"); + openapiFields = new HashSet(Arrays.asList("property", "reason")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -208,15 +208,15 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PriceErrorAdditionalInfo.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PriceErrorAdditionalInfo is not found in the empty JSON string", PriceErrorAdditionalInfo.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PriceErrorAdditionalInfo is not found in the empty JSON string", PriceErrorAdditionalInfo.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("property") != null && !jsonObj.get("property").isJsonNull()) && !jsonObj.get("property").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `property` to be a primitive type in the JSON string but got `%s`", jsonObj.get("property").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `property` to be a primitive type in the JSON string but got `%s`", jsonObj.get("property").toString())); } if ((jsonObj.get("reason") != null && !jsonObj.get("reason").isJsonNull()) && !jsonObj.get("reason").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `reason` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reason").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `reason` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reason").toString())); } } @@ -277,7 +277,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PriceLocation.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PriceLocation.java index 49ad73fb..9c76d77e 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PriceLocation.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PriceLocation.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * PriceLocation */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class PriceLocation { public static final String SERIALIZED_NAME_METRO_CODE = "metroCode"; @SerializedName(SERIALIZED_NAME_METRO_CODE) @@ -191,12 +193,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("metroCode"); - openapiFields.add("ibx"); + openapiFields = new HashSet(Arrays.asList("metroCode", "ibx")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -208,15 +208,15 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PriceLocation.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PriceLocation is not found in the empty JSON string", PriceLocation.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PriceLocation is not found in the empty JSON string", PriceLocation.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("metroCode") != null && !jsonObj.get("metroCode").isJsonNull()) && !jsonObj.get("metroCode").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `metroCode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("metroCode").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `metroCode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("metroCode").toString())); } if ((jsonObj.get("ibx") != null && !jsonObj.get("ibx").isJsonNull()) && !jsonObj.get("ibx").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `ibx` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ibx").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `ibx` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ibx").toString())); } } @@ -277,7 +277,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PriceSearchResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PriceSearchResponse.java index 82a43fee..3ec794e9 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PriceSearchResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PriceSearchResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Pagination; import com.equinix.sdk.fabricv4.model.Price; import com.google.gson.TypeAdapter; @@ -44,13 +45,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * PriceSearchResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class PriceSearchResponse { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @@ -203,12 +205,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("data"); - openapiFields.add("pagination"); + openapiFields = new HashSet(Arrays.asList("data", "pagination")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -220,7 +220,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PriceSearchResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PriceSearchResponse is not found in the empty JSON string", PriceSearchResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PriceSearchResponse is not found in the empty JSON string", PriceSearchResponse.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -229,7 +229,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraydata != null) { // ensure the json data is an array if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); } // validate the optional field `data` (array) @@ -301,7 +301,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PrivateService.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PrivateService.java index 5044cdbb..bcf81c3e 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PrivateService.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PrivateService.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * PrivateService */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class PrivateService { public static final String SERIALIZED_NAME_HREF = "href"; @SerializedName(SERIALIZED_NAME_HREF) @@ -191,12 +193,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("href"); - openapiFields.add("uuid"); + openapiFields = new HashSet(Arrays.asList("href", "uuid")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -208,15 +208,15 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PrivateService.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PrivateService is not found in the empty JSON string", PrivateService.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PrivateService is not found in the empty JSON string", PrivateService.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } } @@ -277,7 +277,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PrivateServiceListResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PrivateServiceListResponse.java index 0ea23abf..28470506 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PrivateServiceListResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PrivateServiceListResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.PrivateService; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * PrivateServiceListResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class PrivateServiceListResponse { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @@ -176,11 +178,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("data"); + openapiFields = new HashSet(Arrays.asList("data")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -192,7 +193,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PrivateServiceListResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PrivateServiceListResponse is not found in the empty JSON string", PrivateServiceListResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PrivateServiceListResponse is not found in the empty JSON string", PrivateServiceListResponse.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -201,7 +202,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraydata != null) { // ensure the json data is an array if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); } // validate the optional field `data` (array) @@ -269,7 +270,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ProcessStep.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ProcessStep.java index bb012e83..55b3e957 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ProcessStep.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ProcessStep.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Definition of customized step while making connection */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ProcessStep { public static final String SERIALIZED_NAME_TITLE = "title"; @SerializedName(SERIALIZED_NAME_TITLE) @@ -217,13 +219,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("title"); - openapiFields.add("subTitle"); - openapiFields.add("description"); + openapiFields = new HashSet(Arrays.asList("title", "subTitle", "description")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -235,18 +234,18 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ProcessStep.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ProcessStep is not found in the empty JSON string", ProcessStep.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ProcessStep is not found in the empty JSON string", ProcessStep.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("title") != null && !jsonObj.get("title").isJsonNull()) && !jsonObj.get("title").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `title` to be a primitive type in the JSON string but got `%s`", jsonObj.get("title").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `title` to be a primitive type in the JSON string but got `%s`", jsonObj.get("title").toString())); } if ((jsonObj.get("subTitle") != null && !jsonObj.get("subTitle").isJsonNull()) && !jsonObj.get("subTitle").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `subTitle` to be a primitive type in the JSON string but got `%s`", jsonObj.get("subTitle").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `subTitle` to be a primitive type in the JSON string but got `%s`", jsonObj.get("subTitle").toString())); } if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); } } @@ -307,7 +306,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ProductType.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ProductType.java index 21a5cd94..78ad5faf 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ProductType.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ProductType.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Project.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Project.java index 3af322a8..1d5257de 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Project.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Project.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Project */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class Project { public static final String SERIALIZED_NAME_PROJECT_ID = "projectId"; @SerializedName(SERIALIZED_NAME_PROJECT_ID) @@ -165,12 +167,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("projectId"); + openapiFields = new HashSet(Arrays.asList("projectId")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("projectId"); + openapiRequiredFields = new HashSet(Arrays.asList("projectId")); } /** @@ -182,19 +182,19 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!Project.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in Project is not found in the empty JSON string", Project.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in Project is not found in the empty JSON string", Project.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : Project.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("projectId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `projectId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("projectId").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `projectId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("projectId").toString())); } } @@ -255,7 +255,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ProviderStatus.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ProviderStatus.java index a16eddc6..6c42bbc9 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ProviderStatus.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ProviderStatus.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PtpAdvanceConfiguration.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PtpAdvanceConfiguration.java index d8aa02ee..b6a35cc3 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PtpAdvanceConfiguration.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/PtpAdvanceConfiguration.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * PTP Advanced Configuration. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class PtpAdvanceConfiguration { /** * Time Scale value, ARB denotes Arbitrary and PTP denotes Precision Time Protocol. @@ -669,19 +671,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("timeScale"); - openapiFields.add("domain"); - openapiFields.add("priority1"); - openapiFields.add("priority2"); - openapiFields.add("logAnnounceInterval"); - openapiFields.add("logSyncInterval"); - openapiFields.add("logDelayReqInterval"); - openapiFields.add("transportMode"); - openapiFields.add("grantTime"); + openapiFields = new HashSet(Arrays.asList("timeScale", "domain", "priority1", "priority2", "logAnnounceInterval", "logSyncInterval", "logDelayReqInterval", "transportMode", "grantTime")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -693,12 +686,12 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PtpAdvanceConfiguration.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PtpAdvanceConfiguration is not found in the empty JSON string", PtpAdvanceConfiguration.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PtpAdvanceConfiguration is not found in the empty JSON string", PtpAdvanceConfiguration.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("timeScale") != null && !jsonObj.get("timeScale").isJsonNull()) && !jsonObj.get("timeScale").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `timeScale` to be a primitive type in the JSON string but got `%s`", jsonObj.get("timeScale").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `timeScale` to be a primitive type in the JSON string but got `%s`", jsonObj.get("timeScale").toString())); } // validate the optional field `timeScale` if (jsonObj.get("timeScale") != null && !jsonObj.get("timeScale").isJsonNull()) { @@ -717,7 +710,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti LogDelayReqIntervalEnum.validateJsonElement(jsonObj.get("logDelayReqInterval")); } if ((jsonObj.get("transportMode") != null && !jsonObj.get("transportMode").isJsonNull()) && !jsonObj.get("transportMode").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `transportMode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("transportMode").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `transportMode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("transportMode").toString())); } // validate the optional field `transportMode` if (jsonObj.get("transportMode") != null && !jsonObj.get("transportMode").isJsonNull()) { @@ -782,7 +775,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RemoveOperation.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RemoveOperation.java index 099145ca..b03e1b13 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RemoveOperation.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RemoveOperation.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.OpEnum; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Remove sub-resource from an existing model */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class RemoveOperation { public static final String SERIALIZED_NAME_OP = "op"; @SerializedName(SERIALIZED_NAME_OP) @@ -192,14 +194,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("op"); - openapiFields.add("path"); + openapiFields = new HashSet(Arrays.asList("op", "path")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("op"); - openapiRequiredFields.add("path"); + openapiRequiredFields = new HashSet(Arrays.asList("op", "path")); } /** @@ -211,21 +209,21 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RemoveOperation.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RemoveOperation is not found in the empty JSON string", RemoveOperation.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RemoveOperation is not found in the empty JSON string", RemoveOperation.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : RemoveOperation.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the required field `op` OpEnum.validateJsonElement(jsonObj.get("op")); if (!jsonObj.get("path").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); } } @@ -286,7 +284,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ReplaceOperation.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ReplaceOperation.java index 244cb8d0..af7babd0 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ReplaceOperation.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ReplaceOperation.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.OpEnum; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Replace attribute value or sub-resource in the existing model */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ReplaceOperation { public static final String SERIALIZED_NAME_OP = "op"; @SerializedName(SERIALIZED_NAME_OP) @@ -218,16 +220,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("op"); - openapiFields.add("path"); - openapiFields.add("value"); + openapiFields = new HashSet(Arrays.asList("op", "path", "value")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("op"); - openapiRequiredFields.add("path"); - openapiRequiredFields.add("value"); + openapiRequiredFields = new HashSet(Arrays.asList("op", "path", "value")); } /** @@ -239,21 +235,21 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ReplaceOperation.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ReplaceOperation is not found in the empty JSON string", ReplaceOperation.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ReplaceOperation is not found in the empty JSON string", ReplaceOperation.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : ReplaceOperation.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the required field `op` OpEnum.validateJsonElement(jsonObj.get("op")); if (!jsonObj.get("path").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); } } @@ -314,7 +310,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ResourceData.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ResourceData.java index 3bf81ea7..bf4fd3b2 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ResourceData.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ResourceData.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.OperationalStatus; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * ResourceData */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ResourceData { public static final String SERIALIZED_NAME_HREF = "href"; @SerializedName(SERIALIZED_NAME_HREF) @@ -296,16 +298,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("href"); - openapiFields.add("uuid"); - openapiFields.add("type"); - openapiFields.add("name"); - openapiFields.add("state"); - openapiFields.add("operation"); + openapiFields = new HashSet(Arrays.asList("href", "uuid", "type", "name", "state", "operation")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -317,24 +313,24 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ResourceData.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ResourceData is not found in the empty JSON string", ResourceData.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ResourceData is not found in the empty JSON string", ResourceData.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } if ((jsonObj.get("state") != null && !jsonObj.get("state").isJsonNull()) && !jsonObj.get("state").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `state` to be a primitive type in the JSON string but got `%s`", jsonObj.get("state").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `state` to be a primitive type in the JSON string but got `%s`", jsonObj.get("state").toString())); } // validate the optional field `operation` if (jsonObj.get("operation") != null && !jsonObj.get("operation").isJsonNull()) { @@ -399,7 +395,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ResourceSelector.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ResourceSelector.java index 4ccd5487..9e90b416 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ResourceSelector.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ResourceSelector.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * ResourceSelector */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ResourceSelector { public static final String SERIALIZED_NAME_INCLUDE = "include"; @SerializedName(SERIALIZED_NAME_INCLUDE) @@ -175,12 +177,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("include"); + openapiFields = new HashSet(Arrays.asList("include")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("include"); + openapiRequiredFields = new HashSet(Arrays.asList("include")); } /** @@ -192,14 +192,14 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ResourceSelector.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ResourceSelector is not found in the empty JSON string", ResourceSelector.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ResourceSelector is not found in the empty JSON string", ResourceSelector.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : ResourceSelector.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -207,7 +207,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("include") == null) { throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); } else if (!jsonObj.get("include").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `include` to be an array in the JSON string but got `%s`", jsonObj.get("include").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `include` to be an array in the JSON string but got `%s`", jsonObj.get("include").toString())); } } @@ -268,7 +268,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ResourceSelectorResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ResourceSelectorResponse.java index b92c58c8..77ae32be 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ResourceSelectorResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ResourceSelectorResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * ResourceSelectorResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ResourceSelectorResponse { public static final String SERIALIZED_NAME_INCLUDE = "include"; @SerializedName(SERIALIZED_NAME_INCLUDE) @@ -175,11 +177,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("include"); + openapiFields = new HashSet(Arrays.asList("include")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -191,13 +192,13 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ResourceSelectorResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ResourceSelectorResponse is not found in the empty JSON string", ResourceSelectorResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ResourceSelectorResponse is not found in the empty JSON string", ResourceSelectorResponse.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the optional json data is an array if present if (jsonObj.get("include") != null && !jsonObj.get("include").isJsonNull() && !jsonObj.get("include").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `include` to be an array in the JSON string but got `%s`", jsonObj.get("include").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `include` to be an array in the JSON string but got `%s`", jsonObj.get("include").toString())); } } @@ -258,7 +259,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationChangeData.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationChangeData.java index 3de4d16a..4d41c393 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationChangeData.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationChangeData.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.RouteAggregationsChangeOperation; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Current state of latest Route Aggregation change */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class RouteAggregationChangeData { /** * Current outcome of the change flow @@ -516,15 +518,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("uuid"); - openapiFields.add("type"); - openapiFields.add("href"); + openapiFields = new HashSet(Arrays.asList("uuid", "type", "href")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("uuid"); - openapiRequiredFields.add("type"); + openapiRequiredFields = new HashSet(Arrays.asList("uuid", "type")); } /** @@ -536,47 +533,47 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RouteAggregationChangeData.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RouteAggregationChangeData is not found in the empty JSON string", RouteAggregationChangeData.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RouteAggregationChangeData is not found in the empty JSON string", RouteAggregationChangeData.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : RouteAggregationChangeData.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) && !jsonObj.get("status").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); } // validate the optional field `status` if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { StatusEnum.validateJsonElement(jsonObj.get("status")); } if ((jsonObj.get("createdBy") != null && !jsonObj.get("createdBy").isJsonNull()) && !jsonObj.get("createdBy").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `createdBy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("createdBy").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `createdBy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("createdBy").toString())); } if ((jsonObj.get("updatedBy") != null && !jsonObj.get("updatedBy").isJsonNull()) && !jsonObj.get("updatedBy").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `updatedBy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("updatedBy").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `updatedBy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("updatedBy").toString())); } if ((jsonObj.get("information") != null && !jsonObj.get("information").isJsonNull()) && !jsonObj.get("information").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `information` to be a primitive type in the JSON string but got `%s`", jsonObj.get("information").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `information` to be a primitive type in the JSON string but got `%s`", jsonObj.get("information").toString())); } // validate the optional field `data` if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { RouteAggregationsChangeOperation.validateJsonElement(jsonObj.get("data")); } if (!jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } if (!jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the required field `type` TypeEnum.validateJsonElement(jsonObj.get("type")); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } } @@ -637,7 +634,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationChangeDataResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationChangeDataResponse.java index cae0cc88..87e799da 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationChangeDataResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationChangeDataResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Pagination; import com.equinix.sdk.fabricv4.model.RouteAggregationChangeData; import com.google.gson.TypeAdapter; @@ -44,13 +45,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * List of Route Aggregation changes */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class RouteAggregationChangeDataResponse { public static final String SERIALIZED_NAME_PAGINATION = "pagination"; @SerializedName(SERIALIZED_NAME_PAGINATION) @@ -203,12 +205,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("pagination"); - openapiFields.add("data"); + openapiFields = new HashSet(Arrays.asList("pagination", "data")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -220,7 +220,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RouteAggregationChangeDataResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RouteAggregationChangeDataResponse is not found in the empty JSON string", RouteAggregationChangeDataResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RouteAggregationChangeDataResponse is not found in the empty JSON string", RouteAggregationChangeDataResponse.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -233,7 +233,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraydata != null) { // ensure the json data is an array if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); } // validate the optional field `data` (array) @@ -301,7 +301,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationConnectionsData.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationConnectionsData.java index 16dfefad..37526184 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationConnectionsData.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationConnectionsData.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.ConnectionType; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * RouteAggregationConnectionsData */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class RouteAggregationConnectionsData { public static final String SERIALIZED_NAME_HREF = "href"; @SerializedName(SERIALIZED_NAME_HREF) @@ -246,14 +248,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("href"); - openapiFields.add("type"); - openapiFields.add("uuid"); - openapiFields.add("name"); + openapiFields = new HashSet(Arrays.asList("href", "type", "uuid", "name")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -265,22 +263,22 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RouteAggregationConnectionsData.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RouteAggregationConnectionsData is not found in the empty JSON string", RouteAggregationConnectionsData.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RouteAggregationConnectionsData is not found in the empty JSON string", RouteAggregationConnectionsData.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } // validate the optional field `type` if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { ConnectionType.validateJsonElement(jsonObj.get("type")); } if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } } @@ -341,7 +339,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationRuleState.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationRuleState.java index c0779052..9434767b 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationRuleState.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationRuleState.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationRulesBase.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationRulesBase.java index f8d9c478..b314558c 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationRulesBase.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationRulesBase.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * RouteAggregationRulesBase */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class RouteAggregationRulesBase { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -217,14 +219,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("name"); - openapiFields.add("description"); - openapiFields.add("prefix"); + openapiFields = new HashSet(Arrays.asList("name", "description", "prefix")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("prefix"); + openapiRequiredFields = new HashSet(Arrays.asList("prefix")); } /** @@ -236,25 +234,25 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RouteAggregationRulesBase.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RouteAggregationRulesBase is not found in the empty JSON string", RouteAggregationRulesBase.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RouteAggregationRulesBase is not found in the empty JSON string", RouteAggregationRulesBase.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : RouteAggregationRulesBase.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); } if (!jsonObj.get("prefix").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `prefix` to be a primitive type in the JSON string but got `%s`", jsonObj.get("prefix").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `prefix` to be a primitive type in the JSON string but got `%s`", jsonObj.get("prefix").toString())); } } @@ -315,7 +313,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationRulesChange.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationRulesChange.java index 948390dd..344bd288 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationRulesChange.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationRulesChange.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Current state of latest Route Aggregation Rule change */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class RouteAggregationRulesChange { public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) @@ -272,15 +274,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("uuid"); - openapiFields.add("type"); - openapiFields.add("href"); + openapiFields = new HashSet(Arrays.asList("uuid", "type", "href")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("uuid"); - openapiRequiredFields.add("type"); + openapiRequiredFields = new HashSet(Arrays.asList("uuid", "type")); } /** @@ -292,27 +289,27 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RouteAggregationRulesChange.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RouteAggregationRulesChange is not found in the empty JSON string", RouteAggregationRulesChange.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RouteAggregationRulesChange is not found in the empty JSON string", RouteAggregationRulesChange.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : RouteAggregationRulesChange.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } if (!jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the required field `type` TypeEnum.validateJsonElement(jsonObj.get("type")); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } } @@ -373,7 +370,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationRulesChangeData.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationRulesChangeData.java index b7a206cb..108e3a78 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationRulesChangeData.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationRulesChangeData.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.RouteAggregationRulesChangeOperation; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Current state of latest Route Aggregation Rules change */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class RouteAggregationRulesChangeData { /** * Current outcome of the change flow @@ -484,15 +486,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("uuid"); - openapiFields.add("type"); - openapiFields.add("href"); + openapiFields = new HashSet(Arrays.asList("uuid", "type", "href")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("uuid"); - openapiRequiredFields.add("type"); + openapiRequiredFields = new HashSet(Arrays.asList("uuid", "type")); } /** @@ -504,44 +501,44 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RouteAggregationRulesChangeData.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RouteAggregationRulesChangeData is not found in the empty JSON string", RouteAggregationRulesChangeData.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RouteAggregationRulesChangeData is not found in the empty JSON string", RouteAggregationRulesChangeData.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : RouteAggregationRulesChangeData.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) && !jsonObj.get("status").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); } // validate the optional field `status` if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { StatusEnum.validateJsonElement(jsonObj.get("status")); } if ((jsonObj.get("createdBy") != null && !jsonObj.get("createdBy").isJsonNull()) && !jsonObj.get("createdBy").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `createdBy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("createdBy").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `createdBy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("createdBy").toString())); } if ((jsonObj.get("updatedBy") != null && !jsonObj.get("updatedBy").isJsonNull()) && !jsonObj.get("updatedBy").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `updatedBy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("updatedBy").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `updatedBy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("updatedBy").toString())); } // validate the optional field `data` if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { RouteAggregationRulesChangeOperation.validateJsonElement(jsonObj.get("data")); } if (!jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } if (!jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the required field `type` TypeEnum.validateJsonElement(jsonObj.get("type")); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } } @@ -602,7 +599,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationRulesChangeDataResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationRulesChangeDataResponse.java index 47defa17..f2cff95f 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationRulesChangeDataResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationRulesChangeDataResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Pagination; import com.equinix.sdk.fabricv4.model.RouteAggregationRulesChangeData; import com.google.gson.TypeAdapter; @@ -44,13 +45,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * List of Route Aggregation Rule changes */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class RouteAggregationRulesChangeDataResponse { public static final String SERIALIZED_NAME_PAGINATION = "pagination"; @SerializedName(SERIALIZED_NAME_PAGINATION) @@ -203,12 +205,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("pagination"); - openapiFields.add("data"); + openapiFields = new HashSet(Arrays.asList("pagination", "data")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -220,7 +220,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RouteAggregationRulesChangeDataResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RouteAggregationRulesChangeDataResponse is not found in the empty JSON string", RouteAggregationRulesChangeDataResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RouteAggregationRulesChangeDataResponse is not found in the empty JSON string", RouteAggregationRulesChangeDataResponse.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -233,7 +233,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraydata != null) { // ensure the json data is an array if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); } // validate the optional field `data` (array) @@ -301,7 +301,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationRulesChangeOperation.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationRulesChangeOperation.java index 6f6a4a1b..4573b8e4 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationRulesChangeOperation.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationRulesChangeOperation.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.RouteAggregationRulesBase; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Route Aggregation Rule change operation data */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class RouteAggregationRulesChangeOperation { /** * Handy shortcut for operation name @@ -272,16 +274,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("op"); - openapiFields.add("path"); - openapiFields.add("value"); + openapiFields = new HashSet(Arrays.asList("op", "path", "value")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("op"); - openapiRequiredFields.add("path"); - openapiRequiredFields.add("value"); + openapiRequiredFields = new HashSet(Arrays.asList("op", "path", "value")); } /** @@ -293,24 +289,24 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RouteAggregationRulesChangeOperation.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RouteAggregationRulesChangeOperation is not found in the empty JSON string", RouteAggregationRulesChangeOperation.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RouteAggregationRulesChangeOperation is not found in the empty JSON string", RouteAggregationRulesChangeOperation.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : RouteAggregationRulesChangeOperation.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("op").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `op` to be a primitive type in the JSON string but got `%s`", jsonObj.get("op").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `op` to be a primitive type in the JSON string but got `%s`", jsonObj.get("op").toString())); } // validate the required field `op` OpEnum.validateJsonElement(jsonObj.get("op")); if (!jsonObj.get("path").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); } // validate the required field `value` RouteAggregationRulesBase.validateJsonElement(jsonObj.get("value")); @@ -373,7 +369,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationRulesData.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationRulesData.java index 8764a90a..cbdf8ead 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationRulesData.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationRulesData.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Changelog; import com.equinix.sdk.fabricv4.model.RouteAggregationRuleState; import com.equinix.sdk.fabricv4.model.RouteAggregationRulesChange; @@ -45,13 +46,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * RouteAggregationRulesData */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class RouteAggregationRulesData { public static final String SERIALIZED_NAME_HREF = "href"; @SerializedName(SERIALIZED_NAME_HREF) @@ -428,19 +430,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("href"); - openapiFields.add("type"); - openapiFields.add("uuid"); - openapiFields.add("name"); - openapiFields.add("description"); - openapiFields.add("state"); - openapiFields.add("change"); - openapiFields.add("prefix"); - openapiFields.add("changeLog"); + openapiFields = new HashSet(Arrays.asList("href", "type", "uuid", "name", "description", "state", "change", "prefix", "changeLog")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -452,28 +445,28 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RouteAggregationRulesData.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RouteAggregationRulesData is not found in the empty JSON string", RouteAggregationRulesData.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RouteAggregationRulesData is not found in the empty JSON string", RouteAggregationRulesData.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the optional field `type` if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { TypeEnum.validateJsonElement(jsonObj.get("type")); } if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); } // validate the optional field `state` if (jsonObj.get("state") != null && !jsonObj.get("state").isJsonNull()) { @@ -484,7 +477,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti RouteAggregationRulesChange.validateJsonElement(jsonObj.get("change")); } if ((jsonObj.get("prefix") != null && !jsonObj.get("prefix").isJsonNull()) && !jsonObj.get("prefix").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `prefix` to be a primitive type in the JSON string but got `%s`", jsonObj.get("prefix").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `prefix` to be a primitive type in the JSON string but got `%s`", jsonObj.get("prefix").toString())); } // validate the optional field `changeLog` if (jsonObj.get("changeLog") != null && !jsonObj.get("changeLog").isJsonNull()) { @@ -549,7 +542,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationRulesPatchRequestItem.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationRulesPatchRequestItem.java index d429a5ad..063280d8 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationRulesPatchRequestItem.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationRulesPatchRequestItem.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Route Aggregation Rule change operation data */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class RouteAggregationRulesPatchRequestItem { public static final String SERIALIZED_NAME_OP = "op"; @SerializedName(SERIALIZED_NAME_OP) @@ -217,16 +219,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("op"); - openapiFields.add("path"); - openapiFields.add("value"); + openapiFields = new HashSet(Arrays.asList("op", "path", "value")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("op"); - openapiRequiredFields.add("path"); - openapiRequiredFields.add("value"); + openapiRequiredFields = new HashSet(Arrays.asList("op", "path", "value")); } /** @@ -238,22 +234,22 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RouteAggregationRulesPatchRequestItem.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RouteAggregationRulesPatchRequestItem is not found in the empty JSON string", RouteAggregationRulesPatchRequestItem.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RouteAggregationRulesPatchRequestItem is not found in the empty JSON string", RouteAggregationRulesPatchRequestItem.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : RouteAggregationRulesPatchRequestItem.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("op").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `op` to be a primitive type in the JSON string but got `%s`", jsonObj.get("op").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `op` to be a primitive type in the JSON string but got `%s`", jsonObj.get("op").toString())); } if (!jsonObj.get("path").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); } } @@ -314,7 +310,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationRulesPostRequest.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationRulesPostRequest.java index 3d997904..f88ab4fa 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationRulesPostRequest.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationRulesPostRequest.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.RouteAggregationRulesBase; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Create Route Aggregation Rule POST request */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class RouteAggregationRulesPostRequest { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @@ -176,11 +178,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("data"); + openapiFields = new HashSet(Arrays.asList("data")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -192,7 +193,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RouteAggregationRulesPostRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RouteAggregationRulesPostRequest is not found in the empty JSON string", RouteAggregationRulesPostRequest.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RouteAggregationRulesPostRequest is not found in the empty JSON string", RouteAggregationRulesPostRequest.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -201,7 +202,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraydata != null) { // ensure the json data is an array if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); } // validate the optional field `data` (array) @@ -269,7 +270,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationSortItem.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationSortItem.java index 2a843d6a..23f294b6 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationSortItem.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationSortItem.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * RouteAggregationSortItem */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class RouteAggregationSortItem { /** * Possible field names to use on sorting @@ -307,12 +309,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("property"); - openapiFields.add("direction"); + openapiFields = new HashSet(Arrays.asList("property", "direction")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -324,19 +324,19 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RouteAggregationSortItem.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RouteAggregationSortItem is not found in the empty JSON string", RouteAggregationSortItem.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RouteAggregationSortItem is not found in the empty JSON string", RouteAggregationSortItem.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("property") != null && !jsonObj.get("property").isJsonNull()) && !jsonObj.get("property").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `property` to be a primitive type in the JSON string but got `%s`", jsonObj.get("property").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `property` to be a primitive type in the JSON string but got `%s`", jsonObj.get("property").toString())); } // validate the optional field `property` if (jsonObj.get("property") != null && !jsonObj.get("property").isJsonNull()) { PropertyEnum.validateJsonElement(jsonObj.get("property")); } if ((jsonObj.get("direction") != null && !jsonObj.get("direction").isJsonNull()) && !jsonObj.get("direction").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `direction` to be a primitive type in the JSON string but got `%s`", jsonObj.get("direction").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `direction` to be a primitive type in the JSON string but got `%s`", jsonObj.get("direction").toString())); } // validate the optional field `direction` if (jsonObj.get("direction") != null && !jsonObj.get("direction").isJsonNull()) { @@ -401,7 +401,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationState.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationState.java index 4720cbea..d43dab64 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationState.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationState.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationsBase.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationsBase.java index ad820b49..4ccd143c 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationsBase.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationsBase.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Project; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * RouteAggregationsBase */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class RouteAggregationsBase { /** * Route Aggregation type @@ -296,17 +298,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("type"); - openapiFields.add("name"); - openapiFields.add("description"); - openapiFields.add("project"); + openapiFields = new HashSet(Arrays.asList("type", "name", "description", "project")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("type"); - openapiRequiredFields.add("name"); - openapiRequiredFields.add("project"); + openapiRequiredFields = new HashSet(Arrays.asList("type", "name", "project")); } /** @@ -318,27 +313,27 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RouteAggregationsBase.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RouteAggregationsBase is not found in the empty JSON string", RouteAggregationsBase.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RouteAggregationsBase is not found in the empty JSON string", RouteAggregationsBase.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : RouteAggregationsBase.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the required field `type` TypeEnum.validateJsonElement(jsonObj.get("type")); if (!jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); } // validate the required field `project` Project.validateJsonElement(jsonObj.get("project")); @@ -401,7 +396,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationsChange.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationsChange.java index 475d5b78..9e1cbd96 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationsChange.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationsChange.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Current state of latest Route Aggregation change */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class RouteAggregationsChange { public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) @@ -278,15 +280,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("uuid"); - openapiFields.add("type"); - openapiFields.add("href"); + openapiFields = new HashSet(Arrays.asList("uuid", "type", "href")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("uuid"); - openapiRequiredFields.add("type"); + openapiRequiredFields = new HashSet(Arrays.asList("uuid", "type")); } /** @@ -298,27 +295,27 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RouteAggregationsChange.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RouteAggregationsChange is not found in the empty JSON string", RouteAggregationsChange.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RouteAggregationsChange is not found in the empty JSON string", RouteAggregationsChange.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : RouteAggregationsChange.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } if (!jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the required field `type` TypeEnum.validateJsonElement(jsonObj.get("type")); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } } @@ -379,7 +376,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationsChangeOperation.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationsChangeOperation.java index d9aa1574..5d67544f 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationsChangeOperation.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationsChangeOperation.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.RouteAggregationsBase; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Route Aggregation change operation data */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class RouteAggregationsChangeOperation { /** * Handy shortcut for operation name @@ -272,16 +274,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("op"); - openapiFields.add("path"); - openapiFields.add("value"); + openapiFields = new HashSet(Arrays.asList("op", "path", "value")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("op"); - openapiRequiredFields.add("path"); - openapiRequiredFields.add("value"); + openapiRequiredFields = new HashSet(Arrays.asList("op", "path", "value")); } /** @@ -293,24 +289,24 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RouteAggregationsChangeOperation.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RouteAggregationsChangeOperation is not found in the empty JSON string", RouteAggregationsChangeOperation.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RouteAggregationsChangeOperation is not found in the empty JSON string", RouteAggregationsChangeOperation.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : RouteAggregationsChangeOperation.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("op").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `op` to be a primitive type in the JSON string but got `%s`", jsonObj.get("op").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `op` to be a primitive type in the JSON string but got `%s`", jsonObj.get("op").toString())); } // validate the required field `op` OpEnum.validateJsonElement(jsonObj.get("op")); if (!jsonObj.get("path").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); } // validate the required field `value` RouteAggregationsBase.validateJsonElement(jsonObj.get("value")); @@ -373,7 +369,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationsData.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationsData.java index 867bfa9c..df6dac9e 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationsData.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationsData.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Changelog; import com.equinix.sdk.fabricv4.model.RouteAggregationState; import com.equinix.sdk.fabricv4.model.RouteAggregationsChange; @@ -46,13 +47,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * RouteAggregationsData */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class RouteAggregationsData { public static final String SERIALIZED_NAME_HREF = "href"; @SerializedName(SERIALIZED_NAME_HREF) @@ -483,21 +485,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("href"); - openapiFields.add("type"); - openapiFields.add("uuid"); - openapiFields.add("name"); - openapiFields.add("description"); - openapiFields.add("state"); - openapiFields.add("change"); - openapiFields.add("connectionsCount"); - openapiFields.add("rulesCount"); - openapiFields.add("project"); - openapiFields.add("changeLog"); + openapiFields = new HashSet(Arrays.asList("href", "type", "uuid", "name", "description", "state", "change", "connectionsCount", "rulesCount", "project", "changeLog")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -509,28 +500,28 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RouteAggregationsData.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RouteAggregationsData is not found in the empty JSON string", RouteAggregationsData.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RouteAggregationsData is not found in the empty JSON string", RouteAggregationsData.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the optional field `type` if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { TypeEnum.validateJsonElement(jsonObj.get("type")); } if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); } // validate the optional field `state` if (jsonObj.get("state") != null && !jsonObj.get("state").isJsonNull()) { @@ -607,7 +598,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationsDataProject.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationsDataProject.java index 1abba8fd..7f00eaf3 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationsDataProject.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationsDataProject.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * RouteAggregationsDataProject */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class RouteAggregationsDataProject { public static final String SERIALIZED_NAME_PROJECT_ID = "projectId"; @SerializedName(SERIALIZED_NAME_PROJECT_ID) @@ -192,13 +194,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("projectId"); - openapiFields.add("href"); + openapiFields = new HashSet(Arrays.asList("projectId", "href")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("projectId"); + openapiRequiredFields = new HashSet(Arrays.asList("projectId")); } /** @@ -210,22 +209,22 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RouteAggregationsDataProject.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RouteAggregationsDataProject is not found in the empty JSON string", RouteAggregationsDataProject.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RouteAggregationsDataProject is not found in the empty JSON string", RouteAggregationsDataProject.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : RouteAggregationsDataProject.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("projectId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `projectId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("projectId").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `projectId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("projectId").toString())); } if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } } @@ -286,7 +285,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationsPatchRequestItem.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationsPatchRequestItem.java index 0deb3238..04a456ac 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationsPatchRequestItem.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationsPatchRequestItem.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Route Aggregation change operation data */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class RouteAggregationsPatchRequestItem { public static final String SERIALIZED_NAME_OP = "op"; @SerializedName(SERIALIZED_NAME_OP) @@ -217,16 +219,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("op"); - openapiFields.add("path"); - openapiFields.add("value"); + openapiFields = new HashSet(Arrays.asList("op", "path", "value")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("op"); - openapiRequiredFields.add("path"); - openapiRequiredFields.add("value"); + openapiRequiredFields = new HashSet(Arrays.asList("op", "path", "value")); } /** @@ -238,22 +234,22 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RouteAggregationsPatchRequestItem.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RouteAggregationsPatchRequestItem is not found in the empty JSON string", RouteAggregationsPatchRequestItem.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RouteAggregationsPatchRequestItem is not found in the empty JSON string", RouteAggregationsPatchRequestItem.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : RouteAggregationsPatchRequestItem.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("op").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `op` to be a primitive type in the JSON string but got `%s`", jsonObj.get("op").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `op` to be a primitive type in the JSON string but got `%s`", jsonObj.get("op").toString())); } if (!jsonObj.get("path").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); } } @@ -314,7 +310,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationsSearchBase.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationsSearchBase.java index 0f30d447..2144e050 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationsSearchBase.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationsSearchBase.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Pagination; import com.equinix.sdk.fabricv4.model.RouteAggregationSortItem; import com.equinix.sdk.fabricv4.model.RouteAggregationsSearchBaseFilter; @@ -45,13 +46,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * RouteAggregationsSearchBase */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class RouteAggregationsSearchBase { public static final String SERIALIZED_NAME_FILTER = "filter"; @SerializedName(SERIALIZED_NAME_FILTER) @@ -230,13 +232,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("filter"); - openapiFields.add("pagination"); - openapiFields.add("sort"); + openapiFields = new HashSet(Arrays.asList("filter", "pagination", "sort")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -248,7 +247,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RouteAggregationsSearchBase.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RouteAggregationsSearchBase is not found in the empty JSON string", RouteAggregationsSearchBase.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RouteAggregationsSearchBase is not found in the empty JSON string", RouteAggregationsSearchBase.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -265,7 +264,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraysort != null) { // ensure the json data is an array if (!jsonObj.get("sort").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `sort` to be an array in the JSON string but got `%s`", jsonObj.get("sort").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `sort` to be an array in the JSON string but got `%s`", jsonObj.get("sort").toString())); } // validate the optional field `sort` (array) @@ -333,7 +332,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationsSearchBaseFilter.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationsSearchBaseFilter.java index fbca3f4e..df1d790c 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationsSearchBaseFilter.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationsSearchBaseFilter.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.RouteAggregationsSearchFilterItem; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * RouteAggregationsSearchBaseFilter */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class RouteAggregationsSearchBaseFilter { public static final String SERIALIZED_NAME_AND = "and"; @SerializedName(SERIALIZED_NAME_AND) @@ -176,11 +178,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("and"); + openapiFields = new HashSet(Arrays.asList("and")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -192,7 +193,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RouteAggregationsSearchBaseFilter.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RouteAggregationsSearchBaseFilter is not found in the empty JSON string", RouteAggregationsSearchBaseFilter.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RouteAggregationsSearchBaseFilter is not found in the empty JSON string", RouteAggregationsSearchBaseFilter.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -201,7 +202,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayand != null) { // ensure the json data is an array if (!jsonObj.get("and").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `and` to be an array in the JSON string but got `%s`", jsonObj.get("and").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `and` to be an array in the JSON string but got `%s`", jsonObj.get("and").toString())); } // validate the optional field `and` (array) @@ -269,7 +270,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationsSearchFilterItem.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationsSearchFilterItem.java index 33902793..e5962e65 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationsSearchFilterItem.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationsSearchFilterItem.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * RouteAggregationsSearchFilterItem */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class RouteAggregationsSearchFilterItem { /** * Gets or Sets property @@ -285,13 +287,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("property"); - openapiFields.add("operator"); - openapiFields.add("values"); + openapiFields = new HashSet(Arrays.asList("property", "operator", "values")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -303,23 +302,23 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RouteAggregationsSearchFilterItem.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RouteAggregationsSearchFilterItem is not found in the empty JSON string", RouteAggregationsSearchFilterItem.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RouteAggregationsSearchFilterItem is not found in the empty JSON string", RouteAggregationsSearchFilterItem.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("property") != null && !jsonObj.get("property").isJsonNull()) && !jsonObj.get("property").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `property` to be a primitive type in the JSON string but got `%s`", jsonObj.get("property").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `property` to be a primitive type in the JSON string but got `%s`", jsonObj.get("property").toString())); } // validate the optional field `property` if (jsonObj.get("property") != null && !jsonObj.get("property").isJsonNull()) { PropertyEnum.validateJsonElement(jsonObj.get("property")); } if ((jsonObj.get("operator") != null && !jsonObj.get("operator").isJsonNull()) && !jsonObj.get("operator").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `operator` to be a primitive type in the JSON string but got `%s`", jsonObj.get("operator").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `operator` to be a primitive type in the JSON string but got `%s`", jsonObj.get("operator").toString())); } // ensure the optional json data is an array if present if (jsonObj.get("values") != null && !jsonObj.get("values").isJsonNull() && !jsonObj.get("values").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); } } @@ -380,7 +379,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationsSearchResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationsSearchResponse.java index ba8c2c39..d8507e90 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationsSearchResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteAggregationsSearchResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Pagination; import com.equinix.sdk.fabricv4.model.RouteAggregationsData; import com.google.gson.TypeAdapter; @@ -44,13 +45,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * RouteAggregationsSearchResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class RouteAggregationsSearchResponse { public static final String SERIALIZED_NAME_PAGINATION = "pagination"; @SerializedName(SERIALIZED_NAME_PAGINATION) @@ -203,12 +205,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("pagination"); - openapiFields.add("data"); + openapiFields = new HashSet(Arrays.asList("pagination", "data")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -220,7 +220,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RouteAggregationsSearchResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RouteAggregationsSearchResponse is not found in the empty JSON string", RouteAggregationsSearchResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RouteAggregationsSearchResponse is not found in the empty JSON string", RouteAggregationsSearchResponse.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -233,7 +233,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraydata != null) { // ensure the json data is an array if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); } // validate the optional field `data` (array) @@ -301,7 +301,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFilterChangeData.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFilterChangeData.java index c75b5595..b5b9dea5 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFilterChangeData.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFilterChangeData.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.RouteFiltersChangeOperation; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Current state of latest route filter change */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class RouteFilterChangeData { /** * Current outcome of the change flow @@ -516,15 +518,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("uuid"); - openapiFields.add("type"); - openapiFields.add("href"); + openapiFields = new HashSet(Arrays.asList("uuid", "type", "href")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("uuid"); - openapiRequiredFields.add("type"); + openapiRequiredFields = new HashSet(Arrays.asList("uuid", "type")); } /** @@ -536,47 +533,47 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RouteFilterChangeData.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RouteFilterChangeData is not found in the empty JSON string", RouteFilterChangeData.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RouteFilterChangeData is not found in the empty JSON string", RouteFilterChangeData.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : RouteFilterChangeData.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) && !jsonObj.get("status").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); } // validate the optional field `status` if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { StatusEnum.validateJsonElement(jsonObj.get("status")); } if ((jsonObj.get("createdBy") != null && !jsonObj.get("createdBy").isJsonNull()) && !jsonObj.get("createdBy").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `createdBy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("createdBy").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `createdBy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("createdBy").toString())); } if ((jsonObj.get("updatedBy") != null && !jsonObj.get("updatedBy").isJsonNull()) && !jsonObj.get("updatedBy").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `updatedBy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("updatedBy").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `updatedBy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("updatedBy").toString())); } if ((jsonObj.get("information") != null && !jsonObj.get("information").isJsonNull()) && !jsonObj.get("information").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `information` to be a primitive type in the JSON string but got `%s`", jsonObj.get("information").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `information` to be a primitive type in the JSON string but got `%s`", jsonObj.get("information").toString())); } // validate the optional field `data` if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { RouteFiltersChangeOperation.validateJsonElement(jsonObj.get("data")); } if (!jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } if (!jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the required field `type` TypeEnum.validateJsonElement(jsonObj.get("type")); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } } @@ -637,7 +634,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFilterChangeDataResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFilterChangeDataResponse.java index 27e9aeba..f8cec462 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFilterChangeDataResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFilterChangeDataResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Pagination; import com.equinix.sdk.fabricv4.model.RouteFilterChangeData; import com.google.gson.TypeAdapter; @@ -44,13 +45,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * List of route filter changes */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class RouteFilterChangeDataResponse { public static final String SERIALIZED_NAME_PAGINATION = "pagination"; @SerializedName(SERIALIZED_NAME_PAGINATION) @@ -203,12 +205,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("pagination"); - openapiFields.add("data"); + openapiFields = new HashSet(Arrays.asList("pagination", "data")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -220,7 +220,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RouteFilterChangeDataResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RouteFilterChangeDataResponse is not found in the empty JSON string", RouteFilterChangeDataResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RouteFilterChangeDataResponse is not found in the empty JSON string", RouteFilterChangeDataResponse.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -233,7 +233,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraydata != null) { // ensure the json data is an array if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); } // validate the optional field `data` (array) @@ -301,7 +301,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFilterConnectionsData.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFilterConnectionsData.java index 634f8f98..18344153 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFilterConnectionsData.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFilterConnectionsData.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.ConnectionType; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * RouteFilterConnectionsData */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class RouteFilterConnectionsData { public static final String SERIALIZED_NAME_HREF = "href"; @SerializedName(SERIALIZED_NAME_HREF) @@ -246,14 +248,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("href"); - openapiFields.add("type"); - openapiFields.add("uuid"); - openapiFields.add("name"); + openapiFields = new HashSet(Arrays.asList("href", "type", "uuid", "name")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -265,22 +263,22 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RouteFilterConnectionsData.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RouteFilterConnectionsData is not found in the empty JSON string", RouteFilterConnectionsData.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RouteFilterConnectionsData is not found in the empty JSON string", RouteFilterConnectionsData.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } // validate the optional field `type` if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { ConnectionType.validateJsonElement(jsonObj.get("type")); } if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } } @@ -341,7 +339,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFilterRuleState.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFilterRuleState.java index 59f902c9..290353ce 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFilterRuleState.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFilterRuleState.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFilterRulesBase.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFilterRulesBase.java index b7b044a7..add28bd0 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFilterRulesBase.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFilterRulesBase.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * RouteFilterRulesBase */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class RouteFilterRulesBase { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -243,15 +245,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("name"); - openapiFields.add("description"); - openapiFields.add("prefix"); - openapiFields.add("prefixMatch"); + openapiFields = new HashSet(Arrays.asList("name", "description", "prefix", "prefixMatch")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("prefix"); + openapiRequiredFields = new HashSet(Arrays.asList("prefix")); } /** @@ -263,28 +260,28 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RouteFilterRulesBase.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RouteFilterRulesBase is not found in the empty JSON string", RouteFilterRulesBase.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RouteFilterRulesBase is not found in the empty JSON string", RouteFilterRulesBase.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : RouteFilterRulesBase.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); } if (!jsonObj.get("prefix").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `prefix` to be a primitive type in the JSON string but got `%s`", jsonObj.get("prefix").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `prefix` to be a primitive type in the JSON string but got `%s`", jsonObj.get("prefix").toString())); } if ((jsonObj.get("prefixMatch") != null && !jsonObj.get("prefixMatch").isJsonNull()) && !jsonObj.get("prefixMatch").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `prefixMatch` to be a primitive type in the JSON string but got `%s`", jsonObj.get("prefixMatch").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `prefixMatch` to be a primitive type in the JSON string but got `%s`", jsonObj.get("prefixMatch").toString())); } } @@ -345,7 +342,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFilterRulesChange.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFilterRulesChange.java index d368afc1..580d5988 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFilterRulesChange.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFilterRulesChange.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Current state of latest route filter rule change */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class RouteFilterRulesChange { public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) @@ -278,15 +280,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("uuid"); - openapiFields.add("type"); - openapiFields.add("href"); + openapiFields = new HashSet(Arrays.asList("uuid", "type", "href")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("uuid"); - openapiRequiredFields.add("type"); + openapiRequiredFields = new HashSet(Arrays.asList("uuid", "type")); } /** @@ -298,27 +295,27 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RouteFilterRulesChange.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RouteFilterRulesChange is not found in the empty JSON string", RouteFilterRulesChange.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RouteFilterRulesChange is not found in the empty JSON string", RouteFilterRulesChange.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : RouteFilterRulesChange.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } if (!jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the required field `type` TypeEnum.validateJsonElement(jsonObj.get("type")); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } } @@ -379,7 +376,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFilterRulesChangeData.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFilterRulesChangeData.java index 63335a59..55298abb 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFilterRulesChangeData.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFilterRulesChangeData.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.RouteFilterRulesChangeOperation; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Current state of latest route filter rules change */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class RouteFilterRulesChangeData { /** * Current outcome of the change flow @@ -490,15 +492,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("uuid"); - openapiFields.add("type"); - openapiFields.add("href"); + openapiFields = new HashSet(Arrays.asList("uuid", "type", "href")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("uuid"); - openapiRequiredFields.add("type"); + openapiRequiredFields = new HashSet(Arrays.asList("uuid", "type")); } /** @@ -510,44 +507,44 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RouteFilterRulesChangeData.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RouteFilterRulesChangeData is not found in the empty JSON string", RouteFilterRulesChangeData.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RouteFilterRulesChangeData is not found in the empty JSON string", RouteFilterRulesChangeData.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : RouteFilterRulesChangeData.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) && !jsonObj.get("status").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); } // validate the optional field `status` if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { StatusEnum.validateJsonElement(jsonObj.get("status")); } if ((jsonObj.get("createdBy") != null && !jsonObj.get("createdBy").isJsonNull()) && !jsonObj.get("createdBy").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `createdBy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("createdBy").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `createdBy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("createdBy").toString())); } if ((jsonObj.get("updatedBy") != null && !jsonObj.get("updatedBy").isJsonNull()) && !jsonObj.get("updatedBy").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `updatedBy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("updatedBy").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `updatedBy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("updatedBy").toString())); } // validate the optional field `data` if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { RouteFilterRulesChangeOperation.validateJsonElement(jsonObj.get("data")); } if (!jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } if (!jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the required field `type` TypeEnum.validateJsonElement(jsonObj.get("type")); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } } @@ -608,7 +605,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFilterRulesChangeDataResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFilterRulesChangeDataResponse.java index 019354fe..3ad99195 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFilterRulesChangeDataResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFilterRulesChangeDataResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Pagination; import com.equinix.sdk.fabricv4.model.RouteFilterRulesChangeData; import com.google.gson.TypeAdapter; @@ -44,13 +45,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * List of route filter rule changes */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class RouteFilterRulesChangeDataResponse { public static final String SERIALIZED_NAME_PAGINATION = "pagination"; @SerializedName(SERIALIZED_NAME_PAGINATION) @@ -203,12 +205,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("pagination"); - openapiFields.add("data"); + openapiFields = new HashSet(Arrays.asList("pagination", "data")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -220,7 +220,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RouteFilterRulesChangeDataResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RouteFilterRulesChangeDataResponse is not found in the empty JSON string", RouteFilterRulesChangeDataResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RouteFilterRulesChangeDataResponse is not found in the empty JSON string", RouteFilterRulesChangeDataResponse.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -233,7 +233,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraydata != null) { // ensure the json data is an array if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); } // validate the optional field `data` (array) @@ -301,7 +301,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFilterRulesChangeOperation.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFilterRulesChangeOperation.java index 5a5d04b6..73bd4c25 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFilterRulesChangeOperation.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFilterRulesChangeOperation.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.RouteFilterRulesBase; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Route filter rule change operation data */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class RouteFilterRulesChangeOperation { /** * Handy shortcut for operation name @@ -272,16 +274,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("op"); - openapiFields.add("path"); - openapiFields.add("value"); + openapiFields = new HashSet(Arrays.asList("op", "path", "value")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("op"); - openapiRequiredFields.add("path"); - openapiRequiredFields.add("value"); + openapiRequiredFields = new HashSet(Arrays.asList("op", "path", "value")); } /** @@ -293,24 +289,24 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RouteFilterRulesChangeOperation.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RouteFilterRulesChangeOperation is not found in the empty JSON string", RouteFilterRulesChangeOperation.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RouteFilterRulesChangeOperation is not found in the empty JSON string", RouteFilterRulesChangeOperation.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : RouteFilterRulesChangeOperation.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("op").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `op` to be a primitive type in the JSON string but got `%s`", jsonObj.get("op").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `op` to be a primitive type in the JSON string but got `%s`", jsonObj.get("op").toString())); } // validate the required field `op` OpEnum.validateJsonElement(jsonObj.get("op")); if (!jsonObj.get("path").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); } // validate the required field `value` RouteFilterRulesBase.validateJsonElement(jsonObj.get("value")); @@ -373,7 +369,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFilterRulesData.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFilterRulesData.java index 30d00526..274b0c71 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFilterRulesData.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFilterRulesData.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Changelog; import com.equinix.sdk.fabricv4.model.RouteFilterRuleState; import com.equinix.sdk.fabricv4.model.RouteFilterRulesChange; @@ -45,13 +46,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * RouteFilterRulesData */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class RouteFilterRulesData { public static final String SERIALIZED_NAME_HREF = "href"; @SerializedName(SERIALIZED_NAME_HREF) @@ -534,21 +536,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("href"); - openapiFields.add("type"); - openapiFields.add("uuid"); - openapiFields.add("name"); - openapiFields.add("description"); - openapiFields.add("state"); - openapiFields.add("prefixMatch"); - openapiFields.add("change"); - openapiFields.add("action"); - openapiFields.add("prefix"); - openapiFields.add("changelog"); + openapiFields = new HashSet(Arrays.asList("href", "type", "uuid", "name", "description", "state", "prefixMatch", "change", "action", "prefix", "changelog")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -560,49 +551,49 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RouteFilterRulesData.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RouteFilterRulesData is not found in the empty JSON string", RouteFilterRulesData.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RouteFilterRulesData is not found in the empty JSON string", RouteFilterRulesData.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the optional field `type` if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { TypeEnum.validateJsonElement(jsonObj.get("type")); } if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); } // validate the optional field `state` if (jsonObj.get("state") != null && !jsonObj.get("state").isJsonNull()) { RouteFilterRuleState.validateJsonElement(jsonObj.get("state")); } if ((jsonObj.get("prefixMatch") != null && !jsonObj.get("prefixMatch").isJsonNull()) && !jsonObj.get("prefixMatch").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `prefixMatch` to be a primitive type in the JSON string but got `%s`", jsonObj.get("prefixMatch").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `prefixMatch` to be a primitive type in the JSON string but got `%s`", jsonObj.get("prefixMatch").toString())); } // validate the optional field `change` if (jsonObj.get("change") != null && !jsonObj.get("change").isJsonNull()) { RouteFilterRulesChange.validateJsonElement(jsonObj.get("change")); } if ((jsonObj.get("action") != null && !jsonObj.get("action").isJsonNull()) && !jsonObj.get("action").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `action` to be a primitive type in the JSON string but got `%s`", jsonObj.get("action").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `action` to be a primitive type in the JSON string but got `%s`", jsonObj.get("action").toString())); } // validate the optional field `action` if (jsonObj.get("action") != null && !jsonObj.get("action").isJsonNull()) { ActionEnum.validateJsonElement(jsonObj.get("action")); } if ((jsonObj.get("prefix") != null && !jsonObj.get("prefix").isJsonNull()) && !jsonObj.get("prefix").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `prefix` to be a primitive type in the JSON string but got `%s`", jsonObj.get("prefix").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `prefix` to be a primitive type in the JSON string but got `%s`", jsonObj.get("prefix").toString())); } // validate the optional field `changelog` if (jsonObj.get("changelog") != null && !jsonObj.get("changelog").isJsonNull()) { @@ -667,7 +658,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFilterRulesPatchRequestItem.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFilterRulesPatchRequestItem.java index 5c8209e0..8d784d29 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFilterRulesPatchRequestItem.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFilterRulesPatchRequestItem.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Route filter rule change operation data */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class RouteFilterRulesPatchRequestItem { public static final String SERIALIZED_NAME_OP = "op"; @SerializedName(SERIALIZED_NAME_OP) @@ -217,16 +219,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("op"); - openapiFields.add("path"); - openapiFields.add("value"); + openapiFields = new HashSet(Arrays.asList("op", "path", "value")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("op"); - openapiRequiredFields.add("path"); - openapiRequiredFields.add("value"); + openapiRequiredFields = new HashSet(Arrays.asList("op", "path", "value")); } /** @@ -238,22 +234,22 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RouteFilterRulesPatchRequestItem.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RouteFilterRulesPatchRequestItem is not found in the empty JSON string", RouteFilterRulesPatchRequestItem.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RouteFilterRulesPatchRequestItem is not found in the empty JSON string", RouteFilterRulesPatchRequestItem.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : RouteFilterRulesPatchRequestItem.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("op").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `op` to be a primitive type in the JSON string but got `%s`", jsonObj.get("op").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `op` to be a primitive type in the JSON string but got `%s`", jsonObj.get("op").toString())); } if (!jsonObj.get("path").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); } } @@ -314,7 +310,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFilterRulesPostRequest.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFilterRulesPostRequest.java index e6c766d6..42598c8f 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFilterRulesPostRequest.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFilterRulesPostRequest.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.RouteFilterRulesBase; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Create Route Filter Rule POST request */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class RouteFilterRulesPostRequest { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @@ -176,11 +178,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("data"); + openapiFields = new HashSet(Arrays.asList("data")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -192,7 +193,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RouteFilterRulesPostRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RouteFilterRulesPostRequest is not found in the empty JSON string", RouteFilterRulesPostRequest.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RouteFilterRulesPostRequest is not found in the empty JSON string", RouteFilterRulesPostRequest.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -201,7 +202,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraydata != null) { // ensure the json data is an array if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); } // validate the optional field `data` (array) @@ -269,7 +270,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFilterState.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFilterState.java index 128c42ae..21467ae9 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFilterState.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFilterState.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFiltersBase.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFiltersBase.java index abaf9dff..e12c79f9 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFiltersBase.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFiltersBase.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Project; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * RouteFiltersBase */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class RouteFiltersBase { /** * Route Filter type @@ -296,17 +298,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("type"); - openapiFields.add("name"); - openapiFields.add("description"); - openapiFields.add("project"); + openapiFields = new HashSet(Arrays.asList("type", "name", "description", "project")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("type"); - openapiRequiredFields.add("name"); - openapiRequiredFields.add("project"); + openapiRequiredFields = new HashSet(Arrays.asList("type", "name", "project")); } /** @@ -318,27 +313,27 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RouteFiltersBase.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RouteFiltersBase is not found in the empty JSON string", RouteFiltersBase.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RouteFiltersBase is not found in the empty JSON string", RouteFiltersBase.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : RouteFiltersBase.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the required field `type` TypeEnum.validateJsonElement(jsonObj.get("type")); if (!jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); } // validate the required field `project` Project.validateJsonElement(jsonObj.get("project")); @@ -401,7 +396,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFiltersChange.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFiltersChange.java index 661835d0..dcfa3d65 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFiltersChange.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFiltersChange.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Current state of latest route filter change */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class RouteFiltersChange { public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) @@ -278,15 +280,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("uuid"); - openapiFields.add("type"); - openapiFields.add("href"); + openapiFields = new HashSet(Arrays.asList("uuid", "type", "href")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("uuid"); - openapiRequiredFields.add("type"); + openapiRequiredFields = new HashSet(Arrays.asList("uuid", "type")); } /** @@ -298,27 +295,27 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RouteFiltersChange.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RouteFiltersChange is not found in the empty JSON string", RouteFiltersChange.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RouteFiltersChange is not found in the empty JSON string", RouteFiltersChange.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : RouteFiltersChange.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } if (!jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the required field `type` TypeEnum.validateJsonElement(jsonObj.get("type")); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } } @@ -379,7 +376,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFiltersChangeOperation.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFiltersChangeOperation.java index dc5ae3d7..db298e34 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFiltersChangeOperation.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFiltersChangeOperation.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.RouteFiltersBase; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Route filter change operation data */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class RouteFiltersChangeOperation { /** * Handy shortcut for operation name @@ -272,16 +274,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("op"); - openapiFields.add("path"); - openapiFields.add("value"); + openapiFields = new HashSet(Arrays.asList("op", "path", "value")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("op"); - openapiRequiredFields.add("path"); - openapiRequiredFields.add("value"); + openapiRequiredFields = new HashSet(Arrays.asList("op", "path", "value")); } /** @@ -293,24 +289,24 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RouteFiltersChangeOperation.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RouteFiltersChangeOperation is not found in the empty JSON string", RouteFiltersChangeOperation.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RouteFiltersChangeOperation is not found in the empty JSON string", RouteFiltersChangeOperation.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : RouteFiltersChangeOperation.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("op").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `op` to be a primitive type in the JSON string but got `%s`", jsonObj.get("op").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `op` to be a primitive type in the JSON string but got `%s`", jsonObj.get("op").toString())); } // validate the required field `op` OpEnum.validateJsonElement(jsonObj.get("op")); if (!jsonObj.get("path").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); } // validate the required field `value` RouteFiltersBase.validateJsonElement(jsonObj.get("value")); @@ -373,7 +369,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFiltersData.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFiltersData.java index d75ffbde..14c0dada 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFiltersData.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFiltersData.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Changelog; import com.equinix.sdk.fabricv4.model.RouteFilterState; import com.equinix.sdk.fabricv4.model.RouteFiltersChange; @@ -46,13 +47,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * RouteFiltersData */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class RouteFiltersData { public static final String SERIALIZED_NAME_HREF = "href"; @SerializedName(SERIALIZED_NAME_HREF) @@ -561,22 +563,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("href"); - openapiFields.add("type"); - openapiFields.add("uuid"); - openapiFields.add("name"); - openapiFields.add("description"); - openapiFields.add("state"); - openapiFields.add("change"); - openapiFields.add("notMatchedRuleAction"); - openapiFields.add("connectionsCount"); - openapiFields.add("rulesCount"); - openapiFields.add("project"); - openapiFields.add("changelog"); + openapiFields = new HashSet(Arrays.asList("href", "type", "uuid", "name", "description", "state", "change", "notMatchedRuleAction", "connectionsCount", "rulesCount", "project", "changelog")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -588,28 +578,28 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RouteFiltersData.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RouteFiltersData is not found in the empty JSON string", RouteFiltersData.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RouteFiltersData is not found in the empty JSON string", RouteFiltersData.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the optional field `type` if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { TypeEnum.validateJsonElement(jsonObj.get("type")); } if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); } // validate the optional field `state` if (jsonObj.get("state") != null && !jsonObj.get("state").isJsonNull()) { @@ -620,7 +610,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti RouteFiltersChange.validateJsonElement(jsonObj.get("change")); } if ((jsonObj.get("notMatchedRuleAction") != null && !jsonObj.get("notMatchedRuleAction").isJsonNull()) && !jsonObj.get("notMatchedRuleAction").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `notMatchedRuleAction` to be a primitive type in the JSON string but got `%s`", jsonObj.get("notMatchedRuleAction").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `notMatchedRuleAction` to be a primitive type in the JSON string but got `%s`", jsonObj.get("notMatchedRuleAction").toString())); } // validate the optional field `notMatchedRuleAction` if (jsonObj.get("notMatchedRuleAction") != null && !jsonObj.get("notMatchedRuleAction").isJsonNull()) { @@ -693,7 +683,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFiltersDataProject.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFiltersDataProject.java index 0724753b..cffe3a7b 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFiltersDataProject.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFiltersDataProject.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * RouteFiltersDataProject */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class RouteFiltersDataProject { public static final String SERIALIZED_NAME_PROJECT_ID = "projectId"; @SerializedName(SERIALIZED_NAME_PROJECT_ID) @@ -192,13 +194,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("projectId"); - openapiFields.add("href"); + openapiFields = new HashSet(Arrays.asList("projectId", "href")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("projectId"); + openapiRequiredFields = new HashSet(Arrays.asList("projectId")); } /** @@ -210,22 +209,22 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RouteFiltersDataProject.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RouteFiltersDataProject is not found in the empty JSON string", RouteFiltersDataProject.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RouteFiltersDataProject is not found in the empty JSON string", RouteFiltersDataProject.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : RouteFiltersDataProject.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("projectId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `projectId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("projectId").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `projectId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("projectId").toString())); } if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } } @@ -286,7 +285,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFiltersPatchRequestItem.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFiltersPatchRequestItem.java index d4f5152b..d253ba30 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFiltersPatchRequestItem.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFiltersPatchRequestItem.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Route filter change operation data */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class RouteFiltersPatchRequestItem { public static final String SERIALIZED_NAME_OP = "op"; @SerializedName(SERIALIZED_NAME_OP) @@ -217,16 +219,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("op"); - openapiFields.add("path"); - openapiFields.add("value"); + openapiFields = new HashSet(Arrays.asList("op", "path", "value")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("op"); - openapiRequiredFields.add("path"); - openapiRequiredFields.add("value"); + openapiRequiredFields = new HashSet(Arrays.asList("op", "path", "value")); } /** @@ -238,22 +234,22 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RouteFiltersPatchRequestItem.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RouteFiltersPatchRequestItem is not found in the empty JSON string", RouteFiltersPatchRequestItem.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RouteFiltersPatchRequestItem is not found in the empty JSON string", RouteFiltersPatchRequestItem.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : RouteFiltersPatchRequestItem.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("op").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `op` to be a primitive type in the JSON string but got `%s`", jsonObj.get("op").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `op` to be a primitive type in the JSON string but got `%s`", jsonObj.get("op").toString())); } if (!jsonObj.get("path").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); } } @@ -314,7 +310,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFiltersSearchBase.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFiltersSearchBase.java index b4338686..a74a26b2 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFiltersSearchBase.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFiltersSearchBase.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Pagination; import com.equinix.sdk.fabricv4.model.RouteFiltersSearchBaseFilter; import com.equinix.sdk.fabricv4.model.SortItem; @@ -45,13 +46,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * RouteFiltersSearchBase */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class RouteFiltersSearchBase { public static final String SERIALIZED_NAME_FILTER = "filter"; @SerializedName(SERIALIZED_NAME_FILTER) @@ -230,13 +232,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("filter"); - openapiFields.add("pagination"); - openapiFields.add("sort"); + openapiFields = new HashSet(Arrays.asList("filter", "pagination", "sort")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -248,7 +247,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RouteFiltersSearchBase.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RouteFiltersSearchBase is not found in the empty JSON string", RouteFiltersSearchBase.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RouteFiltersSearchBase is not found in the empty JSON string", RouteFiltersSearchBase.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -265,7 +264,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraysort != null) { // ensure the json data is an array if (!jsonObj.get("sort").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `sort` to be an array in the JSON string but got `%s`", jsonObj.get("sort").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `sort` to be an array in the JSON string but got `%s`", jsonObj.get("sort").toString())); } // validate the optional field `sort` (array) @@ -333,7 +332,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFiltersSearchBaseFilter.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFiltersSearchBaseFilter.java index 984a3680..fc6584c4 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFiltersSearchBaseFilter.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFiltersSearchBaseFilter.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.RouteFiltersSearchFilterItem; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * RouteFiltersSearchBaseFilter */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class RouteFiltersSearchBaseFilter { public static final String SERIALIZED_NAME_AND = "and"; @SerializedName(SERIALIZED_NAME_AND) @@ -176,11 +178,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("and"); + openapiFields = new HashSet(Arrays.asList("and")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -192,7 +193,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RouteFiltersSearchBaseFilter.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RouteFiltersSearchBaseFilter is not found in the empty JSON string", RouteFiltersSearchBaseFilter.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RouteFiltersSearchBaseFilter is not found in the empty JSON string", RouteFiltersSearchBaseFilter.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -201,7 +202,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayand != null) { // ensure the json data is an array if (!jsonObj.get("and").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `and` to be an array in the JSON string but got `%s`", jsonObj.get("and").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `and` to be an array in the JSON string but got `%s`", jsonObj.get("and").toString())); } // validate the optional field `and` (array) @@ -269,7 +270,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFiltersSearchFilterItem.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFiltersSearchFilterItem.java index 4dc78b3f..aa5b9b7c 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFiltersSearchFilterItem.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFiltersSearchFilterItem.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * RouteFiltersSearchFilterItem */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class RouteFiltersSearchFilterItem { /** * Gets or Sets property @@ -285,13 +287,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("property"); - openapiFields.add("operator"); - openapiFields.add("values"); + openapiFields = new HashSet(Arrays.asList("property", "operator", "values")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -303,23 +302,23 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RouteFiltersSearchFilterItem.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RouteFiltersSearchFilterItem is not found in the empty JSON string", RouteFiltersSearchFilterItem.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RouteFiltersSearchFilterItem is not found in the empty JSON string", RouteFiltersSearchFilterItem.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("property") != null && !jsonObj.get("property").isJsonNull()) && !jsonObj.get("property").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `property` to be a primitive type in the JSON string but got `%s`", jsonObj.get("property").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `property` to be a primitive type in the JSON string but got `%s`", jsonObj.get("property").toString())); } // validate the optional field `property` if (jsonObj.get("property") != null && !jsonObj.get("property").isJsonNull()) { PropertyEnum.validateJsonElement(jsonObj.get("property")); } if ((jsonObj.get("operator") != null && !jsonObj.get("operator").isJsonNull()) && !jsonObj.get("operator").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `operator` to be a primitive type in the JSON string but got `%s`", jsonObj.get("operator").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `operator` to be a primitive type in the JSON string but got `%s`", jsonObj.get("operator").toString())); } // ensure the optional json data is an array if present if (jsonObj.get("values") != null && !jsonObj.get("values").isJsonNull() && !jsonObj.get("values").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); } } @@ -380,7 +379,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFiltersSearchResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFiltersSearchResponse.java index c44b46aa..031f32f2 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFiltersSearchResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteFiltersSearchResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Pagination; import com.equinix.sdk.fabricv4.model.RouteFiltersData; import com.google.gson.TypeAdapter; @@ -44,13 +45,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * RouteFiltersSearchResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class RouteFiltersSearchResponse { public static final String SERIALIZED_NAME_PAGINATION = "pagination"; @SerializedName(SERIALIZED_NAME_PAGINATION) @@ -203,12 +205,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("pagination"); - openapiFields.add("data"); + openapiFields = new HashSet(Arrays.asList("pagination", "data")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -220,7 +220,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RouteFiltersSearchResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RouteFiltersSearchResponse is not found in the empty JSON string", RouteFiltersSearchResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RouteFiltersSearchResponse is not found in the empty JSON string", RouteFiltersSearchResponse.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -233,7 +233,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraydata != null) { // ensure the json data is an array if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); } // validate the optional field `data` (array) @@ -301,7 +301,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteTableEntry.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteTableEntry.java index 005b526d..e51043cc 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteTableEntry.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteTableEntry.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Changelog; import com.equinix.sdk.fabricv4.model.RouteTableEntryConnection; import com.equinix.sdk.fabricv4.model.RouteTableEntryProtocolType; @@ -47,13 +48,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Route table entry object */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class RouteTableEntry { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -414,23 +416,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("type"); - openapiFields.add("protocolType"); - openapiFields.add("state"); - openapiFields.add("prefix"); - openapiFields.add("nextHop"); - openapiFields.add("MED"); - openapiFields.add("localPreference"); - openapiFields.add("asPath"); - openapiFields.add("connection"); - openapiFields.add("changeLog"); + openapiFields = new HashSet(Arrays.asList("type", "protocolType", "state", "prefix", "nextHop", "MED", "localPreference", "asPath", "connection", "changeLog")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("type"); - openapiRequiredFields.add("state"); - openapiRequiredFields.add("changeLog"); + openapiRequiredFields = new HashSet(Arrays.asList("type", "state", "changeLog")); } /** @@ -442,14 +431,14 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RouteTableEntry.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RouteTableEntry is not found in the empty JSON string", RouteTableEntry.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RouteTableEntry is not found in the empty JSON string", RouteTableEntry.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : RouteTableEntry.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -462,14 +451,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // validate the required field `state` RouteTableEntryState.validateJsonElement(jsonObj.get("state")); if ((jsonObj.get("prefix") != null && !jsonObj.get("prefix").isJsonNull()) && !jsonObj.get("prefix").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `prefix` to be a primitive type in the JSON string but got `%s`", jsonObj.get("prefix").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `prefix` to be a primitive type in the JSON string but got `%s`", jsonObj.get("prefix").toString())); } if ((jsonObj.get("nextHop") != null && !jsonObj.get("nextHop").isJsonNull()) && !jsonObj.get("nextHop").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `nextHop` to be a primitive type in the JSON string but got `%s`", jsonObj.get("nextHop").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `nextHop` to be a primitive type in the JSON string but got `%s`", jsonObj.get("nextHop").toString())); } // ensure the optional json data is an array if present if (jsonObj.get("asPath") != null && !jsonObj.get("asPath").isJsonNull() && !jsonObj.get("asPath").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `asPath` to be an array in the JSON string but got `%s`", jsonObj.get("asPath").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `asPath` to be an array in the JSON string but got `%s`", jsonObj.get("asPath").toString())); } // validate the optional field `connection` if (jsonObj.get("connection") != null && !jsonObj.get("connection").isJsonNull()) { @@ -536,7 +525,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteTableEntryConnection.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteTableEntryConnection.java index 6d8fb32b..a8f356a8 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteTableEntryConnection.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteTableEntryConnection.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * RouteTableEntryConnection */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class RouteTableEntryConnection { public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) @@ -218,13 +220,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("uuid"); - openapiFields.add("name"); - openapiFields.add("href"); + openapiFields = new HashSet(Arrays.asList("uuid", "name", "href")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -236,18 +235,18 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RouteTableEntryConnection.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RouteTableEntryConnection is not found in the empty JSON string", RouteTableEntryConnection.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RouteTableEntryConnection is not found in the empty JSON string", RouteTableEntryConnection.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } } @@ -308,7 +307,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteTableEntryFilter.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteTableEntryFilter.java index 6df32cc9..83693ecd 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteTableEntryFilter.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteTableEntryFilter.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.RouteTableEntryOrFilter; import com.equinix.sdk.fabricv4.model.RouteTableEntrySimpleExpression; import com.google.gson.TypeAdapter; @@ -36,6 +37,7 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import java.util.Locale; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -59,7 +61,7 @@ import com.equinix.sdk.fabricv4.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class RouteTableEntryFilter extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(RouteTableEntryFilter.class.getName()); @@ -115,7 +117,7 @@ public RouteTableEntryFilter read(JsonReader in) throws IOException { return ret; } catch (Exception e) { // deserialization failed, continue - errorMessages.add(String.format("Deserialization for RouteTableEntrySimpleExpression failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for RouteTableEntrySimpleExpression failed with `%s`.", e.getMessage())); log.log(Level.FINER, "Input data does not match schema 'RouteTableEntrySimpleExpression'", e); } // deserialize RouteTableEntryOrFilter @@ -128,11 +130,11 @@ public RouteTableEntryFilter read(JsonReader in) throws IOException { return ret; } catch (Exception e) { // deserialization failed, continue - errorMessages.add(String.format("Deserialization for RouteTableEntryOrFilter failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for RouteTableEntryOrFilter failed with `%s`.", e.getMessage())); log.log(Level.FINER, "Input data does not match schema 'RouteTableEntryOrFilter'", e); } - throw new IOException(String.format("Failed deserialization for RouteTableEntryFilter: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); + throw new IOException(String.format(Locale.ROOT, "Failed deserialization for RouteTableEntryFilter: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); } }.nullSafe(); } @@ -230,7 +232,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti RouteTableEntrySimpleExpression.validateJsonElement(jsonElement); return; } catch (Exception e) { - errorMessages.add(String.format("Deserialization for RouteTableEntrySimpleExpression failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for RouteTableEntrySimpleExpression failed with `%s`.", e.getMessage())); // continue to the next one } // validate the json string with RouteTableEntryOrFilter @@ -238,10 +240,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti RouteTableEntryOrFilter.validateJsonElement(jsonElement); return; } catch (Exception e) { - errorMessages.add(String.format("Deserialization for RouteTableEntryOrFilter failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for RouteTableEntryOrFilter failed with `%s`.", e.getMessage())); // continue to the next one } - throw new IOException(String.format("The JSON string is invalid for RouteTableEntryFilter with anyOf schemas: RouteTableEntryOrFilter, RouteTableEntrySimpleExpression. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); + throw new IOException(String.format(Locale.ROOT, "The JSON string is invalid for RouteTableEntryFilter with anyOf schemas: RouteTableEntryOrFilter, RouteTableEntrySimpleExpression. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); } /** diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteTableEntryFilters.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteTableEntryFilters.java index 80a6396b..b20e82a5 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteTableEntryFilters.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteTableEntryFilters.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.RouteTableEntryFilter; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * RouteTableEntryFilters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class RouteTableEntryFilters { public static final String SERIALIZED_NAME_AND = "and"; @SerializedName(SERIALIZED_NAME_AND) @@ -176,11 +178,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("and"); + openapiFields = new HashSet(Arrays.asList("and")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -192,7 +193,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RouteTableEntryFilters.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RouteTableEntryFilters is not found in the empty JSON string", RouteTableEntryFilters.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RouteTableEntryFilters is not found in the empty JSON string", RouteTableEntryFilters.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -201,7 +202,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayand != null) { // ensure the json data is an array if (!jsonObj.get("and").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `and` to be an array in the JSON string but got `%s`", jsonObj.get("and").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `and` to be an array in the JSON string but got `%s`", jsonObj.get("and").toString())); } // validate the optional field `and` (array) @@ -269,7 +270,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteTableEntryOrFilter.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteTableEntryOrFilter.java index 3fb735eb..ce11ae20 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteTableEntryOrFilter.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteTableEntryOrFilter.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.RouteTableEntrySimpleExpression; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * RouteTableEntryOrFilter */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class RouteTableEntryOrFilter { public static final String SERIALIZED_NAME_OR = "or"; @SerializedName(SERIALIZED_NAME_OR) @@ -176,11 +178,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("or"); + openapiFields = new HashSet(Arrays.asList("or")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -192,7 +193,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RouteTableEntryOrFilter.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RouteTableEntryOrFilter is not found in the empty JSON string", RouteTableEntryOrFilter.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RouteTableEntryOrFilter is not found in the empty JSON string", RouteTableEntryOrFilter.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -201,7 +202,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayor != null) { // ensure the json data is an array if (!jsonObj.get("or").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `or` to be an array in the JSON string but got `%s`", jsonObj.get("or").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `or` to be an array in the JSON string but got `%s`", jsonObj.get("or").toString())); } // validate the optional field `or` (array) @@ -269,7 +270,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteTableEntryProtocolType.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteTableEntryProtocolType.java index bc2483d7..34cb8e65 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteTableEntryProtocolType.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteTableEntryProtocolType.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteTableEntrySearchRequest.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteTableEntrySearchRequest.java index 0588767d..46c42473 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteTableEntrySearchRequest.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteTableEntrySearchRequest.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.PaginationRequest; import com.equinix.sdk.fabricv4.model.RouteTableEntryFilters; import com.equinix.sdk.fabricv4.model.RouteTableEntrySortCriteria; @@ -45,13 +46,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Search requests containing criteria */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class RouteTableEntrySearchRequest { public static final String SERIALIZED_NAME_FILTER = "filter"; @SerializedName(SERIALIZED_NAME_FILTER) @@ -230,13 +232,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("filter"); - openapiFields.add("pagination"); - openapiFields.add("sort"); + openapiFields = new HashSet(Arrays.asList("filter", "pagination", "sort")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -248,7 +247,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RouteTableEntrySearchRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RouteTableEntrySearchRequest is not found in the empty JSON string", RouteTableEntrySearchRequest.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RouteTableEntrySearchRequest is not found in the empty JSON string", RouteTableEntrySearchRequest.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -265,7 +264,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraysort != null) { // ensure the json data is an array if (!jsonObj.get("sort").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `sort` to be an array in the JSON string but got `%s`", jsonObj.get("sort").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `sort` to be an array in the JSON string but got `%s`", jsonObj.get("sort").toString())); } // validate the optional field `sort` (array) @@ -333,7 +332,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteTableEntrySearchResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteTableEntrySearchResponse.java index 999e755f..82fc2f5c 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteTableEntrySearchResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteTableEntrySearchResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Pagination; import com.equinix.sdk.fabricv4.model.RouteTableEntry; import com.google.gson.TypeAdapter; @@ -44,13 +45,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * RouteTableEntrySearchResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class RouteTableEntrySearchResponse { public static final String SERIALIZED_NAME_PAGINATION = "pagination"; @SerializedName(SERIALIZED_NAME_PAGINATION) @@ -203,12 +205,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("pagination"); - openapiFields.add("data"); + openapiFields = new HashSet(Arrays.asList("pagination", "data")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -220,7 +220,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RouteTableEntrySearchResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RouteTableEntrySearchResponse is not found in the empty JSON string", RouteTableEntrySearchResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RouteTableEntrySearchResponse is not found in the empty JSON string", RouteTableEntrySearchResponse.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -233,7 +233,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraydata != null) { // ensure the json data is an array if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); } // validate the optional field `data` (array) @@ -301,7 +301,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteTableEntrySimpleExpression.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteTableEntrySimpleExpression.java index 13d78835..327ce5dc 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteTableEntrySimpleExpression.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteTableEntrySimpleExpression.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * RouteTableEntrySimpleExpression */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class RouteTableEntrySimpleExpression { public static final String SERIALIZED_NAME_PROPERTY = "property"; @SerializedName(SERIALIZED_NAME_PROPERTY) @@ -227,13 +229,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("property"); - openapiFields.add("operator"); - openapiFields.add("values"); + openapiFields = new HashSet(Arrays.asList("property", "operator", "values")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -245,19 +244,19 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RouteTableEntrySimpleExpression.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RouteTableEntrySimpleExpression is not found in the empty JSON string", RouteTableEntrySimpleExpression.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RouteTableEntrySimpleExpression is not found in the empty JSON string", RouteTableEntrySimpleExpression.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("property") != null && !jsonObj.get("property").isJsonNull()) && !jsonObj.get("property").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `property` to be a primitive type in the JSON string but got `%s`", jsonObj.get("property").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `property` to be a primitive type in the JSON string but got `%s`", jsonObj.get("property").toString())); } if ((jsonObj.get("operator") != null && !jsonObj.get("operator").isJsonNull()) && !jsonObj.get("operator").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `operator` to be a primitive type in the JSON string but got `%s`", jsonObj.get("operator").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `operator` to be a primitive type in the JSON string but got `%s`", jsonObj.get("operator").toString())); } // ensure the optional json data is an array if present if (jsonObj.get("values") != null && !jsonObj.get("values").isJsonNull() && !jsonObj.get("values").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); } } @@ -318,7 +317,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteTableEntrySortBy.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteTableEntrySortBy.java index a81b8c84..3cb332bc 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteTableEntrySortBy.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteTableEntrySortBy.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteTableEntrySortCriteria.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteTableEntrySortCriteria.java index c39c87c6..7f44507a 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteTableEntrySortCriteria.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteTableEntrySortCriteria.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.RouteTableEntrySortBy; import com.equinix.sdk.fabricv4.model.RouteTableEntrySortDirection; import com.google.gson.TypeAdapter; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * RouteTableEntrySortCriteria */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class RouteTableEntrySortCriteria { public static final String SERIALIZED_NAME_DIRECTION = "direction"; @SerializedName(SERIALIZED_NAME_DIRECTION) @@ -193,12 +195,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("direction"); - openapiFields.add("property"); + openapiFields = new HashSet(Arrays.asList("direction", "property")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -210,7 +210,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RouteTableEntrySortCriteria.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RouteTableEntrySortCriteria is not found in the empty JSON string", RouteTableEntrySortCriteria.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RouteTableEntrySortCriteria is not found in the empty JSON string", RouteTableEntrySortCriteria.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -281,7 +281,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteTableEntrySortDirection.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteTableEntrySortDirection.java index c14f95d9..803125eb 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteTableEntrySortDirection.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteTableEntrySortDirection.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteTableEntryState.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteTableEntryState.java index 02d275c8..89f47682 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteTableEntryState.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteTableEntryState.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteTableEntryType.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteTableEntryType.java index 0355b7bc..08e4e5f0 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteTableEntryType.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouteTableEntryType.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouterActionsConnection.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouterActionsConnection.java index 13bde1fd..01ea5e0f 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouterActionsConnection.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouterActionsConnection.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.ConnectionType; import com.equinix.sdk.fabricv4.model.Operation; import com.google.gson.TypeAdapter; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Connection object for router actions */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class RouterActionsConnection { public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) @@ -245,14 +247,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("uuid"); - openapiFields.add("href"); - openapiFields.add("type"); - openapiFields.add("operation"); + openapiFields = new HashSet(Arrays.asList("uuid", "href", "type", "operation")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -264,15 +262,15 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RouterActionsConnection.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RouterActionsConnection is not found in the empty JSON string", RouterActionsConnection.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RouterActionsConnection is not found in the empty JSON string", RouterActionsConnection.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } // validate the optional field `type` if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { @@ -341,7 +339,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouterActionsRouter.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouterActionsRouter.java index 04c2ffbd..857b7c6f 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouterActionsRouter.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouterActionsRouter.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Operation; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Router object for router actions */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class RouterActionsRouter { public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) @@ -294,14 +296,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("uuid"); - openapiFields.add("href"); - openapiFields.add("type"); - openapiFields.add("operation"); + openapiFields = new HashSet(Arrays.asList("uuid", "href", "type", "operation")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -313,18 +311,18 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RouterActionsRouter.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RouterActionsRouter is not found in the empty JSON string", RouterActionsRouter.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RouterActionsRouter is not found in the empty JSON string", RouterActionsRouter.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the optional field `type` if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { @@ -393,7 +391,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouterPackageCode.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouterPackageCode.java index b3f74d72..e730fb03 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouterPackageCode.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RouterPackageCode.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RoutingProtocolBFD.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RoutingProtocolBFD.java index 59825bb0..851e23c4 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RoutingProtocolBFD.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RoutingProtocolBFD.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * RoutingProtocolBFD */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class RoutingProtocolBFD { public static final String SERIALIZED_NAME_ENABLED = "enabled"; @SerializedName(SERIALIZED_NAME_ENABLED) @@ -191,13 +193,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("enabled"); - openapiFields.add("interval"); + openapiFields = new HashSet(Arrays.asList("enabled", "interval")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("enabled"); + openapiRequiredFields = new HashSet(Arrays.asList("enabled")); } /** @@ -209,19 +208,19 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RoutingProtocolBFD.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RoutingProtocolBFD is not found in the empty JSON string", RoutingProtocolBFD.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RoutingProtocolBFD is not found in the empty JSON string", RoutingProtocolBFD.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : RoutingProtocolBFD.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("interval") != null && !jsonObj.get("interval").isJsonNull()) && !jsonObj.get("interval").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `interval` to be a primitive type in the JSON string but got `%s`", jsonObj.get("interval").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `interval` to be a primitive type in the JSON string but got `%s`", jsonObj.get("interval").toString())); } } @@ -282,7 +281,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RoutingProtocolBGPData.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RoutingProtocolBGPData.java index c8ec9d91..ec21a1a9 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RoutingProtocolBGPData.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RoutingProtocolBGPData.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.BGPConnectionIpv4; import com.equinix.sdk.fabricv4.model.BGPConnectionIpv6; import com.equinix.sdk.fabricv4.model.Changelog; @@ -48,13 +49,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * RoutingProtocolBGPData */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class RoutingProtocolBGPData { /** * Routing protocol type @@ -647,25 +649,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("type"); - openapiFields.add("name"); - openapiFields.add("bgpIpv4"); - openapiFields.add("bgpIpv6"); - openapiFields.add("customerAsn"); - openapiFields.add("equinixAsn"); - openapiFields.add("bgpAuthKey"); - openapiFields.add("asOverrideEnabled"); - openapiFields.add("bfd"); - openapiFields.add("href"); - openapiFields.add("uuid"); - openapiFields.add("state"); - openapiFields.add("operation"); - openapiFields.add("change"); - openapiFields.add("changelog"); + openapiFields = new HashSet(Arrays.asList("type", "name", "bgpIpv4", "bgpIpv6", "customerAsn", "equinixAsn", "bgpAuthKey", "asOverrideEnabled", "bfd", "href", "uuid", "state", "operation", "change", "changelog")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -677,19 +664,19 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RoutingProtocolBGPData.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RoutingProtocolBGPData is not found in the empty JSON string", RoutingProtocolBGPData.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RoutingProtocolBGPData is not found in the empty JSON string", RoutingProtocolBGPData.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the optional field `type` if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { TypeEnum.validateJsonElement(jsonObj.get("type")); } if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } // validate the optional field `bgpIpv4` if (jsonObj.get("bgpIpv4") != null && !jsonObj.get("bgpIpv4").isJsonNull()) { @@ -700,20 +687,20 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti BGPConnectionIpv6.validateJsonElement(jsonObj.get("bgpIpv6")); } if ((jsonObj.get("bgpAuthKey") != null && !jsonObj.get("bgpAuthKey").isJsonNull()) && !jsonObj.get("bgpAuthKey").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `bgpAuthKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("bgpAuthKey").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `bgpAuthKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("bgpAuthKey").toString())); } // validate the optional field `bfd` if (jsonObj.get("bfd") != null && !jsonObj.get("bfd").isJsonNull()) { RoutingProtocolBFD.validateJsonElement(jsonObj.get("bfd")); } if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } if ((jsonObj.get("state") != null && !jsonObj.get("state").isJsonNull()) && !jsonObj.get("state").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `state` to be a primitive type in the JSON string but got `%s`", jsonObj.get("state").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `state` to be a primitive type in the JSON string but got `%s`", jsonObj.get("state").toString())); } // validate the optional field `state` if (jsonObj.get("state") != null && !jsonObj.get("state").isJsonNull()) { @@ -790,7 +777,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RoutingProtocolBGPType.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RoutingProtocolBGPType.java index c879dcd9..cde53d4d 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RoutingProtocolBGPType.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RoutingProtocolBGPType.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.BGPConnectionIpv4; import com.equinix.sdk.fabricv4.model.BGPConnectionIpv6; import com.equinix.sdk.fabricv4.model.RoutingProtocolBFD; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * RoutingProtocolBGPType */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class RoutingProtocolBGPType { /** * Routing protocol type @@ -400,19 +402,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("type"); - openapiFields.add("name"); - openapiFields.add("bgpIpv4"); - openapiFields.add("bgpIpv6"); - openapiFields.add("customerAsn"); - openapiFields.add("bgpAuthKey"); - openapiFields.add("asOverrideEnabled"); - openapiFields.add("bfd"); + openapiFields = new HashSet(Arrays.asList("type", "name", "bgpIpv4", "bgpIpv6", "customerAsn", "bgpAuthKey", "asOverrideEnabled", "bfd")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("type"); + openapiRequiredFields = new HashSet(Arrays.asList("type")); } /** @@ -424,24 +417,24 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RoutingProtocolBGPType.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RoutingProtocolBGPType is not found in the empty JSON string", RoutingProtocolBGPType.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RoutingProtocolBGPType is not found in the empty JSON string", RoutingProtocolBGPType.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : RoutingProtocolBGPType.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the required field `type` TypeEnum.validateJsonElement(jsonObj.get("type")); if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } // validate the optional field `bgpIpv4` if (jsonObj.get("bgpIpv4") != null && !jsonObj.get("bgpIpv4").isJsonNull()) { @@ -452,7 +445,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti BGPConnectionIpv6.validateJsonElement(jsonObj.get("bgpIpv6")); } if ((jsonObj.get("bgpAuthKey") != null && !jsonObj.get("bgpAuthKey").isJsonNull()) && !jsonObj.get("bgpAuthKey").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `bgpAuthKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("bgpAuthKey").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `bgpAuthKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("bgpAuthKey").toString())); } // validate the optional field `bfd` if (jsonObj.get("bfd") != null && !jsonObj.get("bfd").isJsonNull()) { @@ -517,7 +510,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RoutingProtocolBase.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RoutingProtocolBase.java index 3d317cf7..c8b0491b 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RoutingProtocolBase.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RoutingProtocolBase.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.BGPConnectionIpv4; import com.equinix.sdk.fabricv4.model.BGPConnectionIpv6; import com.equinix.sdk.fabricv4.model.DirectConnectionIpv4; @@ -39,6 +40,7 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import java.util.Locale; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -62,7 +64,7 @@ import com.equinix.sdk.fabricv4.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class RoutingProtocolBase extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(RoutingProtocolBase.class.getName()); @@ -118,7 +120,7 @@ public RoutingProtocolBase read(JsonReader in) throws IOException { log.log(Level.FINER, "Input data matches schema 'RoutingProtocolBGPType'"); } catch (Exception e) { // deserialization failed, continue - errorMessages.add(String.format("Deserialization for RoutingProtocolBGPType failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for RoutingProtocolBGPType failed with `%s`.", e.getMessage())); log.log(Level.FINER, "Input data does not match schema 'RoutingProtocolBGPType'", e); } // deserialize RoutingProtocolDirectType @@ -130,7 +132,7 @@ public RoutingProtocolBase read(JsonReader in) throws IOException { log.log(Level.FINER, "Input data matches schema 'RoutingProtocolDirectType'"); } catch (Exception e) { // deserialization failed, continue - errorMessages.add(String.format("Deserialization for RoutingProtocolDirectType failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for RoutingProtocolDirectType failed with `%s`.", e.getMessage())); log.log(Level.FINER, "Input data does not match schema 'RoutingProtocolDirectType'", e); } @@ -140,7 +142,7 @@ public RoutingProtocolBase read(JsonReader in) throws IOException { return ret; } - throw new IOException(String.format("Failed deserialization for RoutingProtocolBase: %d classes match result, expected 1. Detailed failure message for oneOf schemas: %s. JSON: %s", match, errorMessages, jsonElement.toString())); + throw new IOException(String.format(Locale.ROOT, "Failed deserialization for RoutingProtocolBase: %d classes match result, expected 1. Detailed failure message for oneOf schemas: %s. JSON: %s", match, errorMessages, jsonElement.toString())); } }.nullSafe(); } @@ -239,7 +241,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti RoutingProtocolBGPType.validateJsonElement(jsonElement); validCount++; } catch (Exception e) { - errorMessages.add(String.format("Deserialization for RoutingProtocolBGPType failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for RoutingProtocolBGPType failed with `%s`.", e.getMessage())); // continue to the next one } // validate the json string with RoutingProtocolDirectType @@ -247,11 +249,11 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti RoutingProtocolDirectType.validateJsonElement(jsonElement); validCount++; } catch (Exception e) { - errorMessages.add(String.format("Deserialization for RoutingProtocolDirectType failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for RoutingProtocolDirectType failed with `%s`.", e.getMessage())); // continue to the next one } if (validCount != 1) { - throw new IOException(String.format("The JSON string is invalid for RoutingProtocolBase with oneOf schemas: RoutingProtocolBGPType, RoutingProtocolDirectType. %d class(es) match the result, expected 1. Detailed failure message for oneOf schemas: %s. JSON: %s", validCount, errorMessages, jsonElement.toString())); + throw new IOException(String.format(Locale.ROOT, "The JSON string is invalid for RoutingProtocolBase with oneOf schemas: RoutingProtocolBGPType, RoutingProtocolDirectType. %d class(es) match the result, expected 1. Detailed failure message for oneOf schemas: %s. JSON: %s", validCount, errorMessages, jsonElement.toString())); } } diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RoutingProtocolChange.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RoutingProtocolChange.java index 413a7eac..d49e43db 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RoutingProtocolChange.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RoutingProtocolChange.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Current state of latest Routing Protocol change */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class RoutingProtocolChange { public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) @@ -272,15 +274,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("uuid"); - openapiFields.add("type"); - openapiFields.add("href"); + openapiFields = new HashSet(Arrays.asList("uuid", "type", "href")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("uuid"); - openapiRequiredFields.add("type"); + openapiRequiredFields = new HashSet(Arrays.asList("uuid", "type")); } /** @@ -292,27 +289,27 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RoutingProtocolChange.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RoutingProtocolChange is not found in the empty JSON string", RoutingProtocolChange.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RoutingProtocolChange is not found in the empty JSON string", RoutingProtocolChange.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : RoutingProtocolChange.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } if (!jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the required field `type` TypeEnum.validateJsonElement(jsonObj.get("type")); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } } @@ -373,7 +370,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RoutingProtocolChangeData.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RoutingProtocolChangeData.java index b83353f4..0eb1ae55 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RoutingProtocolChangeData.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RoutingProtocolChangeData.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.RoutingProtocolChangeOperation; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Current state of latest Routing Protocol change */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class RoutingProtocolChangeData { /** * Current outcome of the change flow @@ -510,15 +512,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("uuid"); - openapiFields.add("type"); - openapiFields.add("href"); + openapiFields = new HashSet(Arrays.asList("uuid", "type", "href")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("uuid"); - openapiRequiredFields.add("type"); + openapiRequiredFields = new HashSet(Arrays.asList("uuid", "type")); } /** @@ -530,47 +527,47 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RoutingProtocolChangeData.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RoutingProtocolChangeData is not found in the empty JSON string", RoutingProtocolChangeData.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RoutingProtocolChangeData is not found in the empty JSON string", RoutingProtocolChangeData.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : RoutingProtocolChangeData.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) && !jsonObj.get("status").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); } // validate the optional field `status` if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { StatusEnum.validateJsonElement(jsonObj.get("status")); } if ((jsonObj.get("createdBy") != null && !jsonObj.get("createdBy").isJsonNull()) && !jsonObj.get("createdBy").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `createdBy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("createdBy").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `createdBy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("createdBy").toString())); } if ((jsonObj.get("updatedBy") != null && !jsonObj.get("updatedBy").isJsonNull()) && !jsonObj.get("updatedBy").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `updatedBy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("updatedBy").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `updatedBy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("updatedBy").toString())); } if ((jsonObj.get("information") != null && !jsonObj.get("information").isJsonNull()) && !jsonObj.get("information").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `information` to be a primitive type in the JSON string but got `%s`", jsonObj.get("information").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `information` to be a primitive type in the JSON string but got `%s`", jsonObj.get("information").toString())); } // validate the optional field `data` if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { RoutingProtocolChangeOperation.validateJsonElement(jsonObj.get("data")); } if (!jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } if (!jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the required field `type` TypeEnum.validateJsonElement(jsonObj.get("type")); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } } @@ -631,7 +628,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RoutingProtocolChangeDataResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RoutingProtocolChangeDataResponse.java index 553be7b0..83257ad2 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RoutingProtocolChangeDataResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RoutingProtocolChangeDataResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Pagination; import com.equinix.sdk.fabricv4.model.RoutingProtocolChangeData; import com.google.gson.TypeAdapter; @@ -44,13 +45,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * List of network changes */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class RoutingProtocolChangeDataResponse { public static final String SERIALIZED_NAME_PAGINATION = "pagination"; @SerializedName(SERIALIZED_NAME_PAGINATION) @@ -203,12 +205,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("pagination"); - openapiFields.add("data"); + openapiFields = new HashSet(Arrays.asList("pagination", "data")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -220,7 +220,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RoutingProtocolChangeDataResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RoutingProtocolChangeDataResponse is not found in the empty JSON string", RoutingProtocolChangeDataResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RoutingProtocolChangeDataResponse is not found in the empty JSON string", RoutingProtocolChangeDataResponse.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -233,7 +233,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraydata != null) { // ensure the json data is an array if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); } // validate the optional field `data` (array) @@ -301,7 +301,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RoutingProtocolChangeOperation.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RoutingProtocolChangeOperation.java index 1ccc21fa..69d444be 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RoutingProtocolChangeOperation.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RoutingProtocolChangeOperation.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.RoutingProtocolBase; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Routing Protocol change operation data */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class RoutingProtocolChangeOperation { /** * Handy shortcut for operation name @@ -272,16 +274,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("op"); - openapiFields.add("path"); - openapiFields.add("value"); + openapiFields = new HashSet(Arrays.asList("op", "path", "value")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("op"); - openapiRequiredFields.add("path"); - openapiRequiredFields.add("value"); + openapiRequiredFields = new HashSet(Arrays.asList("op", "path", "value")); } /** @@ -293,24 +289,24 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RoutingProtocolChangeOperation.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RoutingProtocolChangeOperation is not found in the empty JSON string", RoutingProtocolChangeOperation.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RoutingProtocolChangeOperation is not found in the empty JSON string", RoutingProtocolChangeOperation.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : RoutingProtocolChangeOperation.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("op").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `op` to be a primitive type in the JSON string but got `%s`", jsonObj.get("op").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `op` to be a primitive type in the JSON string but got `%s`", jsonObj.get("op").toString())); } // validate the required field `op` OpEnum.validateJsonElement(jsonObj.get("op")); if (!jsonObj.get("path").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); } // validate the required field `value` RoutingProtocolBase.validateJsonElement(jsonObj.get("value")); @@ -373,7 +369,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RoutingProtocolData.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RoutingProtocolData.java index 9d191bb7..a20a47a9 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RoutingProtocolData.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RoutingProtocolData.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.BGPConnectionIpv4; import com.equinix.sdk.fabricv4.model.BGPConnectionIpv6; import com.equinix.sdk.fabricv4.model.Changelog; @@ -44,6 +45,7 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import java.util.Locale; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -67,7 +69,7 @@ import com.equinix.sdk.fabricv4.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class RoutingProtocolData extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(RoutingProtocolData.class.getName()); @@ -123,7 +125,7 @@ public RoutingProtocolData read(JsonReader in) throws IOException { log.log(Level.FINER, "Input data matches schema 'RoutingProtocolBGPData'"); } catch (Exception e) { // deserialization failed, continue - errorMessages.add(String.format("Deserialization for RoutingProtocolBGPData failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for RoutingProtocolBGPData failed with `%s`.", e.getMessage())); log.log(Level.FINER, "Input data does not match schema 'RoutingProtocolBGPData'", e); } // deserialize RoutingProtocolDirectData @@ -135,7 +137,7 @@ public RoutingProtocolData read(JsonReader in) throws IOException { log.log(Level.FINER, "Input data matches schema 'RoutingProtocolDirectData'"); } catch (Exception e) { // deserialization failed, continue - errorMessages.add(String.format("Deserialization for RoutingProtocolDirectData failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for RoutingProtocolDirectData failed with `%s`.", e.getMessage())); log.log(Level.FINER, "Input data does not match schema 'RoutingProtocolDirectData'", e); } @@ -145,7 +147,7 @@ public RoutingProtocolData read(JsonReader in) throws IOException { return ret; } - throw new IOException(String.format("Failed deserialization for RoutingProtocolData: %d classes match result, expected 1. Detailed failure message for oneOf schemas: %s. JSON: %s", match, errorMessages, jsonElement.toString())); + throw new IOException(String.format(Locale.ROOT, "Failed deserialization for RoutingProtocolData: %d classes match result, expected 1. Detailed failure message for oneOf schemas: %s. JSON: %s", match, errorMessages, jsonElement.toString())); } }.nullSafe(); } @@ -244,7 +246,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti RoutingProtocolBGPData.validateJsonElement(jsonElement); validCount++; } catch (Exception e) { - errorMessages.add(String.format("Deserialization for RoutingProtocolBGPData failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for RoutingProtocolBGPData failed with `%s`.", e.getMessage())); // continue to the next one } // validate the json string with RoutingProtocolDirectData @@ -252,11 +254,11 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti RoutingProtocolDirectData.validateJsonElement(jsonElement); validCount++; } catch (Exception e) { - errorMessages.add(String.format("Deserialization for RoutingProtocolDirectData failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for RoutingProtocolDirectData failed with `%s`.", e.getMessage())); // continue to the next one } if (validCount != 1) { - throw new IOException(String.format("The JSON string is invalid for RoutingProtocolData with oneOf schemas: RoutingProtocolBGPData, RoutingProtocolDirectData. %d class(es) match the result, expected 1. Detailed failure message for oneOf schemas: %s. JSON: %s", validCount, errorMessages, jsonElement.toString())); + throw new IOException(String.format(Locale.ROOT, "The JSON string is invalid for RoutingProtocolData with oneOf schemas: RoutingProtocolBGPData, RoutingProtocolDirectData. %d class(es) match the result, expected 1. Detailed failure message for oneOf schemas: %s. JSON: %s", validCount, errorMessages, jsonElement.toString())); } } diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RoutingProtocolDirectData.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RoutingProtocolDirectData.java index 15a37e7c..6dbdff4f 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RoutingProtocolDirectData.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RoutingProtocolDirectData.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Changelog; import com.equinix.sdk.fabricv4.model.DirectConnectionIpv4; import com.equinix.sdk.fabricv4.model.DirectConnectionIpv6; @@ -47,13 +48,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * RoutingProtocolDirectData */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class RoutingProtocolDirectData { /** * Routing protocol type @@ -516,20 +518,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("type"); - openapiFields.add("name"); - openapiFields.add("directIpv4"); - openapiFields.add("directIpv6"); - openapiFields.add("href"); - openapiFields.add("uuid"); - openapiFields.add("state"); - openapiFields.add("operation"); - openapiFields.add("change"); - openapiFields.add("changelog"); + openapiFields = new HashSet(Arrays.asList("type", "name", "directIpv4", "directIpv6", "href", "uuid", "state", "operation", "change", "changelog")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -541,19 +533,19 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RoutingProtocolDirectData.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RoutingProtocolDirectData is not found in the empty JSON string", RoutingProtocolDirectData.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RoutingProtocolDirectData is not found in the empty JSON string", RoutingProtocolDirectData.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the optional field `type` if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { TypeEnum.validateJsonElement(jsonObj.get("type")); } if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } // validate the optional field `directIpv4` if (jsonObj.get("directIpv4") != null && !jsonObj.get("directIpv4").isJsonNull()) { @@ -564,13 +556,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti DirectConnectionIpv6.validateJsonElement(jsonObj.get("directIpv6")); } if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } if ((jsonObj.get("state") != null && !jsonObj.get("state").isJsonNull()) && !jsonObj.get("state").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `state` to be a primitive type in the JSON string but got `%s`", jsonObj.get("state").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `state` to be a primitive type in the JSON string but got `%s`", jsonObj.get("state").toString())); } // validate the optional field `state` if (jsonObj.get("state") != null && !jsonObj.get("state").isJsonNull()) { @@ -647,7 +639,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RoutingProtocolDirectType.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RoutingProtocolDirectType.java index 7ce7ffd8..38248b72 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RoutingProtocolDirectType.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RoutingProtocolDirectType.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.DirectConnectionIpv4; import com.equinix.sdk.fabricv4.model.DirectConnectionIpv6; import com.google.gson.TypeAdapter; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * RoutingProtocolDirectType */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class RoutingProtocolDirectType { /** * Routing protocol type @@ -295,15 +297,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("type"); - openapiFields.add("name"); - openapiFields.add("directIpv4"); - openapiFields.add("directIpv6"); + openapiFields = new HashSet(Arrays.asList("type", "name", "directIpv4", "directIpv6")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("type"); + openapiRequiredFields = new HashSet(Arrays.asList("type")); } /** @@ -315,24 +312,24 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RoutingProtocolDirectType.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RoutingProtocolDirectType is not found in the empty JSON string", RoutingProtocolDirectType.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RoutingProtocolDirectType is not found in the empty JSON string", RoutingProtocolDirectType.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : RoutingProtocolDirectType.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the required field `type` TypeEnum.validateJsonElement(jsonObj.get("type")); if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } // validate the optional field `directIpv4` if (jsonObj.get("directIpv4") != null && !jsonObj.get("directIpv4").isJsonNull()) { @@ -401,7 +398,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RoutingProtocolOperation.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RoutingProtocolOperation.java index 6f007b14..e588b51f 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RoutingProtocolOperation.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/RoutingProtocolOperation.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Error; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * RoutingProtocolOperation */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class RoutingProtocolOperation { public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @@ -176,11 +178,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("errors"); + openapiFields = new HashSet(Arrays.asList("errors")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -192,7 +193,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RoutingProtocolOperation.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RoutingProtocolOperation is not found in the empty JSON string", RoutingProtocolOperation.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RoutingProtocolOperation is not found in the empty JSON string", RoutingProtocolOperation.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -201,7 +202,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayerrors != null) { // ensure the json data is an array if (!jsonObj.get("errors").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `errors` to be an array in the JSON string but got `%s`", jsonObj.get("errors").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `errors` to be an array in the JSON string but got `%s`", jsonObj.get("errors").toString())); } // validate the optional field `errors` (array) @@ -269,7 +270,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SearchExpression.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SearchExpression.java index 09d754ae..f71e897a 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SearchExpression.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SearchExpression.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * SearchExpression */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class SearchExpression { public static final String SERIALIZED_NAME_AND = "and"; @SerializedName(SERIALIZED_NAME_AND) @@ -371,15 +373,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("and"); - openapiFields.add("or"); - openapiFields.add("property"); - openapiFields.add("operator"); - openapiFields.add("values"); + openapiFields = new HashSet(Arrays.asList("and", "or", "property", "operator", "values")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -391,7 +388,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!SearchExpression.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in SearchExpression is not found in the empty JSON string", SearchExpression.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SearchExpression is not found in the empty JSON string", SearchExpression.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -400,7 +397,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayand != null) { // ensure the json data is an array if (!jsonObj.get("and").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `and` to be an array in the JSON string but got `%s`", jsonObj.get("and").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `and` to be an array in the JSON string but got `%s`", jsonObj.get("and").toString())); } // validate the optional field `and` (array) @@ -414,7 +411,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayor != null) { // ensure the json data is an array if (!jsonObj.get("or").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `or` to be an array in the JSON string but got `%s`", jsonObj.get("or").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `or` to be an array in the JSON string but got `%s`", jsonObj.get("or").toString())); } // validate the optional field `or` (array) @@ -424,10 +421,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } if ((jsonObj.get("property") != null && !jsonObj.get("property").isJsonNull()) && !jsonObj.get("property").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `property` to be a primitive type in the JSON string but got `%s`", jsonObj.get("property").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `property` to be a primitive type in the JSON string but got `%s`", jsonObj.get("property").toString())); } if ((jsonObj.get("operator") != null && !jsonObj.get("operator").isJsonNull()) && !jsonObj.get("operator").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `operator` to be a primitive type in the JSON string but got `%s`", jsonObj.get("operator").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `operator` to be a primitive type in the JSON string but got `%s`", jsonObj.get("operator").toString())); } // validate the optional field `operator` if (jsonObj.get("operator") != null && !jsonObj.get("operator").isJsonNull()) { @@ -435,7 +432,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } // ensure the optional json data is an array if present if (jsonObj.get("values") != null && !jsonObj.get("values").isJsonNull() && !jsonObj.get("values").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); } } @@ -496,7 +493,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SearchFieldName.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SearchFieldName.java index 8a59de1e..3ef008a3 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SearchFieldName.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SearchFieldName.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SearchRequest.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SearchRequest.java index 6b4d7cea..3173ef2f 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SearchRequest.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SearchRequest.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Expression; import com.equinix.sdk.fabricv4.model.PaginationRequest; import com.equinix.sdk.fabricv4.model.SortCriteria; @@ -45,13 +46,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Search requests containing criteria */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class SearchRequest { public static final String SERIALIZED_NAME_FILTER = "filter"; @SerializedName(SERIALIZED_NAME_FILTER) @@ -230,13 +232,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("filter"); - openapiFields.add("pagination"); - openapiFields.add("sort"); + openapiFields = new HashSet(Arrays.asList("filter", "pagination", "sort")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -248,7 +247,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!SearchRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in SearchRequest is not found in the empty JSON string", SearchRequest.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SearchRequest is not found in the empty JSON string", SearchRequest.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -265,7 +264,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraysort != null) { // ensure the json data is an array if (!jsonObj.get("sort").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `sort` to be an array in the JSON string but got `%s`", jsonObj.get("sort").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `sort` to be an array in the JSON string but got `%s`", jsonObj.get("sort").toString())); } // validate the optional field `sort` (array) @@ -333,7 +332,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SearchResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SearchResponse.java index a27df209..65ea643c 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SearchResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SearchResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.CloudRouter; import com.equinix.sdk.fabricv4.model.Pagination; import com.google.gson.TypeAdapter; @@ -44,13 +45,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * SearchResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class SearchResponse { public static final String SERIALIZED_NAME_PAGINATION = "pagination"; @SerializedName(SERIALIZED_NAME_PAGINATION) @@ -203,12 +205,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("pagination"); - openapiFields.add("data"); + openapiFields = new HashSet(Arrays.asList("pagination", "data")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -220,7 +220,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!SearchResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in SearchResponse is not found in the empty JSON string", SearchResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SearchResponse is not found in the empty JSON string", SearchResponse.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -233,7 +233,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraydata != null) { // ensure the json data is an array if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); } // validate the optional field `data` (array) @@ -301,7 +301,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceMetro.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceMetro.java index d32b209f..adba51cf 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceMetro.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceMetro.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,13 +45,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * ServiceMetro */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ServiceMetro { public static final String SERIALIZED_NAME_CODE = "code"; @SerializedName(SERIALIZED_NAME_CODE) @@ -341,17 +343,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("code"); - openapiFields.add("name"); - openapiFields.add("vcBandwidthMax"); - openapiFields.add("ibxs"); - openapiFields.add("inTrail"); - openapiFields.add("displayName"); - openapiFields.add("sellerRegions"); + openapiFields = new HashSet(Arrays.asList("code", "name", "vcBandwidthMax", "ibxs", "inTrail", "displayName", "sellerRegions")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -363,22 +358,22 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ServiceMetro.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ServiceMetro is not found in the empty JSON string", ServiceMetro.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ServiceMetro is not found in the empty JSON string", ServiceMetro.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("code") != null && !jsonObj.get("code").isJsonNull()) && !jsonObj.get("code").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); } if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } // ensure the optional json data is an array if present if (jsonObj.get("ibxs") != null && !jsonObj.get("ibxs").isJsonNull() && !jsonObj.get("ibxs").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `ibxs` to be an array in the JSON string but got `%s`", jsonObj.get("ibxs").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `ibxs` to be an array in the JSON string but got `%s`", jsonObj.get("ibxs").toString())); } if ((jsonObj.get("displayName") != null && !jsonObj.get("displayName").isJsonNull()) && !jsonObj.get("displayName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `displayName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("displayName").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `displayName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("displayName").toString())); } } @@ -439,7 +434,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceMetros.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceMetros.java index 9272e774..5ef3e45e 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceMetros.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceMetros.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Pagination; import com.equinix.sdk.fabricv4.model.ServiceMetro; import com.google.gson.TypeAdapter; @@ -44,13 +45,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Service Profile Metros */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ServiceMetros { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @@ -203,12 +205,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("data"); - openapiFields.add("pagination"); + openapiFields = new HashSet(Arrays.asList("data", "pagination")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -220,7 +220,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ServiceMetros.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ServiceMetros is not found in the empty JSON string", ServiceMetros.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ServiceMetros is not found in the empty JSON string", ServiceMetros.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -229,7 +229,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraydata != null) { // ensure the json data is an array if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); } // validate the optional field `data` (array) @@ -301,7 +301,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfile.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfile.java index c7fa1ffa..77979a68 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfile.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfile.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Changelog; import com.equinix.sdk.fabricv4.model.CustomField; import com.equinix.sdk.fabricv4.model.MarketingInfo; @@ -57,13 +58,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Service Profile is a software definition for a named provider service and it's network connectivity requirements. This includes the basic marketing information and one or more sets of access points (a set per each access point type) fulfilling the provider service. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ServiceProfile { public static final String SERIALIZED_NAME_STATE = "state"; @SerializedName(SERIALIZED_NAME_STATE) @@ -765,27 +767,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("href"); - openapiFields.add("type"); - openapiFields.add("name"); - openapiFields.add("uuid"); - openapiFields.add("description"); - openapiFields.add("notifications"); - openapiFields.add("tags"); - openapiFields.add("visibility"); - openapiFields.add("allowedEmails"); - openapiFields.add("accessPointTypeConfigs"); - openapiFields.add("customFields"); - openapiFields.add("marketingInfo"); - openapiFields.add("ports"); - openapiFields.add("virtualDevices"); - openapiFields.add("metros"); - openapiFields.add("selfProfile"); - openapiFields.add("projectId"); + openapiFields = new HashSet(Arrays.asList("href", "type", "name", "uuid", "description", "notifications", "tags", "visibility", "allowedEmails", "accessPointTypeConfigs", "customFields", "marketingInfo", "ports", "virtualDevices", "metros", "selfProfile", "projectId")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -797,7 +782,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ServiceProfile.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ServiceProfile is not found in the empty JSON string", ServiceProfile.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ServiceProfile is not found in the empty JSON string", ServiceProfile.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -818,27 +803,27 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti Changelog.validateJsonElement(jsonObj.get("changeLog")); } if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } // validate the optional field `type` if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { ServiceProfileTypeEnum.validateJsonElement(jsonObj.get("type")); } if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); } if (jsonObj.get("notifications") != null && !jsonObj.get("notifications").isJsonNull()) { JsonArray jsonArraynotifications = jsonObj.getAsJsonArray("notifications"); if (jsonArraynotifications != null) { // ensure the json data is an array if (!jsonObj.get("notifications").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `notifications` to be an array in the JSON string but got `%s`", jsonObj.get("notifications").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `notifications` to be an array in the JSON string but got `%s`", jsonObj.get("notifications").toString())); } // validate the optional field `notifications` (array) @@ -849,7 +834,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } // ensure the optional json data is an array if present if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull() && !jsonObj.get("tags").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString())); } // validate the optional field `visibility` if (jsonObj.get("visibility") != null && !jsonObj.get("visibility").isJsonNull()) { @@ -857,14 +842,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } // ensure the optional json data is an array if present if (jsonObj.get("allowedEmails") != null && !jsonObj.get("allowedEmails").isJsonNull() && !jsonObj.get("allowedEmails").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `allowedEmails` to be an array in the JSON string but got `%s`", jsonObj.get("allowedEmails").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `allowedEmails` to be an array in the JSON string but got `%s`", jsonObj.get("allowedEmails").toString())); } if (jsonObj.get("accessPointTypeConfigs") != null && !jsonObj.get("accessPointTypeConfigs").isJsonNull()) { JsonArray jsonArrayaccessPointTypeConfigs = jsonObj.getAsJsonArray("accessPointTypeConfigs"); if (jsonArrayaccessPointTypeConfigs != null) { // ensure the json data is an array if (!jsonObj.get("accessPointTypeConfigs").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `accessPointTypeConfigs` to be an array in the JSON string but got `%s`", jsonObj.get("accessPointTypeConfigs").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `accessPointTypeConfigs` to be an array in the JSON string but got `%s`", jsonObj.get("accessPointTypeConfigs").toString())); } // validate the optional field `accessPointTypeConfigs` (array) @@ -878,7 +863,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraycustomFields != null) { // ensure the json data is an array if (!jsonObj.get("customFields").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `customFields` to be an array in the JSON string but got `%s`", jsonObj.get("customFields").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `customFields` to be an array in the JSON string but got `%s`", jsonObj.get("customFields").toString())); } // validate the optional field `customFields` (array) @@ -896,7 +881,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayports != null) { // ensure the json data is an array if (!jsonObj.get("ports").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `ports` to be an array in the JSON string but got `%s`", jsonObj.get("ports").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `ports` to be an array in the JSON string but got `%s`", jsonObj.get("ports").toString())); } // validate the optional field `ports` (array) @@ -910,7 +895,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayvirtualDevices != null) { // ensure the json data is an array if (!jsonObj.get("virtualDevices").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `virtualDevices` to be an array in the JSON string but got `%s`", jsonObj.get("virtualDevices").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `virtualDevices` to be an array in the JSON string but got `%s`", jsonObj.get("virtualDevices").toString())); } // validate the optional field `virtualDevices` (array) @@ -924,7 +909,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraymetros != null) { // ensure the json data is an array if (!jsonObj.get("metros").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `metros` to be an array in the JSON string but got `%s`", jsonObj.get("metros").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `metros` to be an array in the JSON string but got `%s`", jsonObj.get("metros").toString())); } // validate the optional field `metros` (array) @@ -934,7 +919,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } if ((jsonObj.get("projectId") != null && !jsonObj.get("projectId").isJsonNull()) && !jsonObj.get("projectId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `projectId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("projectId").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `projectId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("projectId").toString())); } } @@ -995,7 +980,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileAccessPointCOLO.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileAccessPointCOLO.java index 7268d40b..b16a84b2 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileAccessPointCOLO.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileAccessPointCOLO.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.SimplifiedLocation; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Colo Access Point */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ServiceProfileAccessPointCOLO { /** * Gets or Sets type @@ -349,18 +351,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("type"); - openapiFields.add("uuid"); - openapiFields.add("location"); - openapiFields.add("sellerRegion"); - openapiFields.add("sellerRegionDescription"); - openapiFields.add("crossConnectId"); + openapiFields = new HashSet(Arrays.asList("type", "uuid", "location", "sellerRegion", "sellerRegionDescription", "crossConnectId")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("type"); - openapiRequiredFields.add("uuid"); + openapiRequiredFields = new HashSet(Arrays.asList("type", "uuid")); } /** @@ -372,37 +366,37 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ServiceProfileAccessPointCOLO.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ServiceProfileAccessPointCOLO is not found in the empty JSON string", ServiceProfileAccessPointCOLO.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ServiceProfileAccessPointCOLO is not found in the empty JSON string", ServiceProfileAccessPointCOLO.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : ServiceProfileAccessPointCOLO.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the required field `type` TypeEnum.validateJsonElement(jsonObj.get("type")); if (!jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } // validate the optional field `location` if (jsonObj.get("location") != null && !jsonObj.get("location").isJsonNull()) { SimplifiedLocation.validateJsonElement(jsonObj.get("location")); } if ((jsonObj.get("sellerRegion") != null && !jsonObj.get("sellerRegion").isJsonNull()) && !jsonObj.get("sellerRegion").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `sellerRegion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("sellerRegion").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `sellerRegion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("sellerRegion").toString())); } if ((jsonObj.get("sellerRegionDescription") != null && !jsonObj.get("sellerRegionDescription").isJsonNull()) && !jsonObj.get("sellerRegionDescription").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `sellerRegionDescription` to be a primitive type in the JSON string but got `%s`", jsonObj.get("sellerRegionDescription").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `sellerRegionDescription` to be a primitive type in the JSON string but got `%s`", jsonObj.get("sellerRegionDescription").toString())); } if ((jsonObj.get("crossConnectId") != null && !jsonObj.get("crossConnectId").isJsonNull()) && !jsonObj.get("crossConnectId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `crossConnectId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("crossConnectId").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `crossConnectId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("crossConnectId").toString())); } } @@ -463,7 +457,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileAccessPointType.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileAccessPointType.java index c82fa916..cb67b43c 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileAccessPointType.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileAccessPointType.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.ApiConfig; import com.equinix.sdk.fabricv4.model.AuthenticationKey; import com.equinix.sdk.fabricv4.model.ServiceProfileAccessPointTypeCOLO; @@ -42,6 +43,7 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import java.util.Locale; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -65,7 +67,7 @@ import com.equinix.sdk.fabricv4.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ServiceProfileAccessPointType extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(ServiceProfileAccessPointType.class.getName()); @@ -121,7 +123,7 @@ public ServiceProfileAccessPointType read(JsonReader in) throws IOException { log.log(Level.FINER, "Input data matches schema 'ServiceProfileAccessPointTypeCOLO'"); } catch (Exception e) { // deserialization failed, continue - errorMessages.add(String.format("Deserialization for ServiceProfileAccessPointTypeCOLO failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for ServiceProfileAccessPointTypeCOLO failed with `%s`.", e.getMessage())); log.log(Level.FINER, "Input data does not match schema 'ServiceProfileAccessPointTypeCOLO'", e); } // deserialize ServiceProfileAccessPointTypeVD @@ -133,7 +135,7 @@ public ServiceProfileAccessPointType read(JsonReader in) throws IOException { log.log(Level.FINER, "Input data matches schema 'ServiceProfileAccessPointTypeVD'"); } catch (Exception e) { // deserialization failed, continue - errorMessages.add(String.format("Deserialization for ServiceProfileAccessPointTypeVD failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for ServiceProfileAccessPointTypeVD failed with `%s`.", e.getMessage())); log.log(Level.FINER, "Input data does not match schema 'ServiceProfileAccessPointTypeVD'", e); } @@ -143,7 +145,7 @@ public ServiceProfileAccessPointType read(JsonReader in) throws IOException { return ret; } - throw new IOException(String.format("Failed deserialization for ServiceProfileAccessPointType: %d classes match result, expected 1. Detailed failure message for oneOf schemas: %s. JSON: %s", match, errorMessages, jsonElement.toString())); + throw new IOException(String.format(Locale.ROOT, "Failed deserialization for ServiceProfileAccessPointType: %d classes match result, expected 1. Detailed failure message for oneOf schemas: %s. JSON: %s", match, errorMessages, jsonElement.toString())); } }.nullSafe(); } @@ -242,7 +244,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti ServiceProfileAccessPointTypeCOLO.validateJsonElement(jsonElement); validCount++; } catch (Exception e) { - errorMessages.add(String.format("Deserialization for ServiceProfileAccessPointTypeCOLO failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for ServiceProfileAccessPointTypeCOLO failed with `%s`.", e.getMessage())); // continue to the next one } // validate the json string with ServiceProfileAccessPointTypeVD @@ -250,11 +252,11 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti ServiceProfileAccessPointTypeVD.validateJsonElement(jsonElement); validCount++; } catch (Exception e) { - errorMessages.add(String.format("Deserialization for ServiceProfileAccessPointTypeVD failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for ServiceProfileAccessPointTypeVD failed with `%s`.", e.getMessage())); // continue to the next one } if (validCount != 1) { - throw new IOException(String.format("The JSON string is invalid for ServiceProfileAccessPointType with oneOf schemas: ServiceProfileAccessPointTypeCOLO, ServiceProfileAccessPointTypeVD. %d class(es) match the result, expected 1. Detailed failure message for oneOf schemas: %s. JSON: %s", validCount, errorMessages, jsonElement.toString())); + throw new IOException(String.format(Locale.ROOT, "The JSON string is invalid for ServiceProfileAccessPointType with oneOf schemas: ServiceProfileAccessPointTypeCOLO, ServiceProfileAccessPointTypeVD. %d class(es) match the result, expected 1. Detailed failure message for oneOf schemas: %s. JSON: %s", validCount, errorMessages, jsonElement.toString())); } } diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileAccessPointTypeCOLO.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileAccessPointTypeCOLO.java index 61b4d48a..97d13f39 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileAccessPointTypeCOLO.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileAccessPointTypeCOLO.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.ApiConfig; import com.equinix.sdk.fabricv4.model.AuthenticationKey; import com.equinix.sdk.fabricv4.model.ServiceProfileAccessPointTypeEnum; @@ -48,13 +49,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Colo Access Point Type */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ServiceProfileAccessPointTypeCOLO { public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) @@ -571,27 +573,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("uuid"); - openapiFields.add("type"); - openapiFields.add("supportedBandwidths"); - openapiFields.add("allowRemoteConnections"); - openapiFields.add("allowCustomBandwidth"); - openapiFields.add("bandwidthAlertThreshold"); - openapiFields.add("allowBandwidthAutoApproval"); - openapiFields.add("allowBandwidthUpgrade"); - openapiFields.add("linkProtocolConfig"); - openapiFields.add("enableAutoGenerateServiceKey"); - openapiFields.add("connectionRedundancyRequired"); - openapiFields.add("selectiveRedundancy"); - openapiFields.add("apiConfig"); - openapiFields.add("connectionLabel"); - openapiFields.add("authenticationKey"); - openapiFields.add("metadata"); + openapiFields = new HashSet(Arrays.asList("uuid", "type", "supportedBandwidths", "allowRemoteConnections", "allowCustomBandwidth", "bandwidthAlertThreshold", "allowBandwidthAutoApproval", "allowBandwidthUpgrade", "linkProtocolConfig", "enableAutoGenerateServiceKey", "connectionRedundancyRequired", "selectiveRedundancy", "apiConfig", "connectionLabel", "authenticationKey", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("type"); + openapiRequiredFields = new HashSet(Arrays.asList("type")); } /** @@ -603,25 +588,25 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ServiceProfileAccessPointTypeCOLO.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ServiceProfileAccessPointTypeCOLO is not found in the empty JSON string", ServiceProfileAccessPointTypeCOLO.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ServiceProfileAccessPointTypeCOLO is not found in the empty JSON string", ServiceProfileAccessPointTypeCOLO.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : ServiceProfileAccessPointTypeCOLO.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } // validate the required field `type` ServiceProfileAccessPointTypeEnum.validateJsonElement(jsonObj.get("type")); // ensure the optional json data is an array if present if (jsonObj.get("supportedBandwidths") != null && !jsonObj.get("supportedBandwidths").isJsonNull() && !jsonObj.get("supportedBandwidths").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `supportedBandwidths` to be an array in the JSON string but got `%s`", jsonObj.get("supportedBandwidths").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `supportedBandwidths` to be an array in the JSON string but got `%s`", jsonObj.get("supportedBandwidths").toString())); } // validate the optional field `linkProtocolConfig` if (jsonObj.get("linkProtocolConfig") != null && !jsonObj.get("linkProtocolConfig").isJsonNull()) { @@ -632,7 +617,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti ApiConfig.validateJsonElement(jsonObj.get("apiConfig")); } if ((jsonObj.get("connectionLabel") != null && !jsonObj.get("connectionLabel").isJsonNull()) && !jsonObj.get("connectionLabel").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `connectionLabel` to be a primitive type in the JSON string but got `%s`", jsonObj.get("connectionLabel").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `connectionLabel` to be a primitive type in the JSON string but got `%s`", jsonObj.get("connectionLabel").toString())); } // validate the optional field `authenticationKey` if (jsonObj.get("authenticationKey") != null && !jsonObj.get("authenticationKey").isJsonNull()) { @@ -701,7 +686,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileAccessPointTypeEnum.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileAccessPointTypeEnum.java index 71a95425..e5f9c94d 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileAccessPointTypeEnum.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileAccessPointTypeEnum.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileAccessPointTypeVD.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileAccessPointTypeVD.java index 5876293d..02eacc47 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileAccessPointTypeVD.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileAccessPointTypeVD.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.ServiceProfileAccessPointTypeEnum; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * VirtualDevice Access Point Type */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ServiceProfileAccessPointTypeVD { public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) @@ -234,16 +236,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("uuid"); - openapiFields.add("type"); - openapiFields.add("supportedBandwidths"); - openapiFields.add("allowRemoteConnections"); - openapiFields.add("allowCustomBandwidth"); + openapiFields = new HashSet(Arrays.asList("uuid", "type", "supportedBandwidths", "allowRemoteConnections", "allowCustomBandwidth")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("type"); + openapiRequiredFields = new HashSet(Arrays.asList("type")); } /** @@ -255,7 +251,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ServiceProfileAccessPointTypeVD.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ServiceProfileAccessPointTypeVD is not found in the empty JSON string", ServiceProfileAccessPointTypeVD.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ServiceProfileAccessPointTypeVD is not found in the empty JSON string", ServiceProfileAccessPointTypeVD.openapiRequiredFields.toString())); } } @@ -263,25 +259,25 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!ServiceProfileAccessPointTypeVD.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ServiceProfileAccessPointTypeVD` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `ServiceProfileAccessPointTypeVD` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : ServiceProfileAccessPointTypeVD.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } // validate the required field `type` ServiceProfileAccessPointTypeEnum.validateJsonElement(jsonObj.get("type")); // ensure the optional json data is an array if present if (jsonObj.get("supportedBandwidths") != null && !jsonObj.get("supportedBandwidths").isJsonNull() && !jsonObj.get("supportedBandwidths").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `supportedBandwidths` to be an array in the JSON string but got `%s`", jsonObj.get("supportedBandwidths").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `supportedBandwidths` to be an array in the JSON string but got `%s`", jsonObj.get("supportedBandwidths").toString())); } } diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileAccessPointVD.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileAccessPointVD.java index 2ec94b36..d5b1e28b 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileAccessPointVD.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileAccessPointVD.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.SimplifiedLocation; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Virtual Device Point */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ServiceProfileAccessPointVD { /** * Gets or Sets type @@ -295,16 +297,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("type"); - openapiFields.add("uuid"); - openapiFields.add("location"); - openapiFields.add("interfaceUuid"); + openapiFields = new HashSet(Arrays.asList("type", "uuid", "location", "interfaceUuid")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("type"); - openapiRequiredFields.add("uuid"); + openapiRequiredFields = new HashSet(Arrays.asList("type", "uuid")); } /** @@ -316,31 +312,31 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ServiceProfileAccessPointVD.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ServiceProfileAccessPointVD is not found in the empty JSON string", ServiceProfileAccessPointVD.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ServiceProfileAccessPointVD is not found in the empty JSON string", ServiceProfileAccessPointVD.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : ServiceProfileAccessPointVD.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the required field `type` TypeEnum.validateJsonElement(jsonObj.get("type")); if (!jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } // validate the optional field `location` if (jsonObj.get("location") != null && !jsonObj.get("location").isJsonNull()) { SimplifiedLocation.validateJsonElement(jsonObj.get("location")); } if ((jsonObj.get("interfaceUuid") != null && !jsonObj.get("interfaceUuid").isJsonNull()) && !jsonObj.get("interfaceUuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `interfaceUuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("interfaceUuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `interfaceUuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("interfaceUuid").toString())); } } @@ -401,7 +397,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileAndFilter.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileAndFilter.java index a1a6f75f..e23b7081 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileAndFilter.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileAndFilter.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.ServiceProfileSimpleExpression; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * ServiceProfileAndFilter */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ServiceProfileAndFilter { public static final String SERIALIZED_NAME_AND = "and"; @SerializedName(SERIALIZED_NAME_AND) @@ -176,11 +178,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("and"); + openapiFields = new HashSet(Arrays.asList("and")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -192,7 +193,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ServiceProfileAndFilter.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ServiceProfileAndFilter is not found in the empty JSON string", ServiceProfileAndFilter.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ServiceProfileAndFilter is not found in the empty JSON string", ServiceProfileAndFilter.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -201,7 +202,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayand != null) { // ensure the json data is an array if (!jsonObj.get("and").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `and` to be an array in the JSON string but got `%s`", jsonObj.get("and").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `and` to be an array in the JSON string but got `%s`", jsonObj.get("and").toString())); } // validate the optional field `and` (array) @@ -269,7 +270,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileFilter.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileFilter.java index b094c9a9..5d93e1cb 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileFilter.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileFilter.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.ServiceProfileAndFilter; import com.equinix.sdk.fabricv4.model.ServiceProfileSimpleExpression; import com.google.gson.TypeAdapter; @@ -36,6 +37,7 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import java.util.Locale; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -59,7 +61,7 @@ import com.equinix.sdk.fabricv4.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ServiceProfileFilter extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(ServiceProfileFilter.class.getName()); @@ -115,7 +117,7 @@ public ServiceProfileFilter read(JsonReader in) throws IOException { return ret; } catch (Exception e) { // deserialization failed, continue - errorMessages.add(String.format("Deserialization for ServiceProfileSimpleExpression failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for ServiceProfileSimpleExpression failed with `%s`.", e.getMessage())); log.log(Level.FINER, "Input data does not match schema 'ServiceProfileSimpleExpression'", e); } // deserialize ServiceProfileAndFilter @@ -128,11 +130,11 @@ public ServiceProfileFilter read(JsonReader in) throws IOException { return ret; } catch (Exception e) { // deserialization failed, continue - errorMessages.add(String.format("Deserialization for ServiceProfileAndFilter failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for ServiceProfileAndFilter failed with `%s`.", e.getMessage())); log.log(Level.FINER, "Input data does not match schema 'ServiceProfileAndFilter'", e); } - throw new IOException(String.format("Failed deserialization for ServiceProfileFilter: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); + throw new IOException(String.format(Locale.ROOT, "Failed deserialization for ServiceProfileFilter: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); } }.nullSafe(); } @@ -230,7 +232,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti ServiceProfileSimpleExpression.validateJsonElement(jsonElement); return; } catch (Exception e) { - errorMessages.add(String.format("Deserialization for ServiceProfileSimpleExpression failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for ServiceProfileSimpleExpression failed with `%s`.", e.getMessage())); // continue to the next one } // validate the json string with ServiceProfileAndFilter @@ -238,10 +240,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti ServiceProfileAndFilter.validateJsonElement(jsonElement); return; } catch (Exception e) { - errorMessages.add(String.format("Deserialization for ServiceProfileAndFilter failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for ServiceProfileAndFilter failed with `%s`.", e.getMessage())); // continue to the next one } - throw new IOException(String.format("The JSON string is invalid for ServiceProfileFilter with anyOf schemas: ServiceProfileAndFilter, ServiceProfileSimpleExpression. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); + throw new IOException(String.format(Locale.ROOT, "The JSON string is invalid for ServiceProfileFilter with anyOf schemas: ServiceProfileAndFilter, ServiceProfileSimpleExpression. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); } /** diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileLinkProtocolConfig.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileLinkProtocolConfig.java index b452dad0..bd52a3da 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileLinkProtocolConfig.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileLinkProtocolConfig.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Configuration for dot1q to qinq translation support */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ServiceProfileLinkProtocolConfig { /** * was tagType - missing on wiki @@ -387,15 +389,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("encapsulationStrategy"); - openapiFields.add("namedTags"); - openapiFields.add("vlanCTagLabel"); - openapiFields.add("reuseVlanSTag"); - openapiFields.add("encapsulation"); + openapiFields = new HashSet(Arrays.asList("encapsulationStrategy", "namedTags", "vlanCTagLabel", "reuseVlanSTag", "encapsulation")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -407,12 +404,12 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ServiceProfileLinkProtocolConfig.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ServiceProfileLinkProtocolConfig is not found in the empty JSON string", ServiceProfileLinkProtocolConfig.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ServiceProfileLinkProtocolConfig is not found in the empty JSON string", ServiceProfileLinkProtocolConfig.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("encapsulationStrategy") != null && !jsonObj.get("encapsulationStrategy").isJsonNull()) && !jsonObj.get("encapsulationStrategy").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `encapsulationStrategy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("encapsulationStrategy").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `encapsulationStrategy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("encapsulationStrategy").toString())); } // validate the optional field `encapsulationStrategy` if (jsonObj.get("encapsulationStrategy") != null && !jsonObj.get("encapsulationStrategy").isJsonNull()) { @@ -420,13 +417,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } // ensure the optional json data is an array if present if (jsonObj.get("namedTags") != null && !jsonObj.get("namedTags").isJsonNull() && !jsonObj.get("namedTags").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `namedTags` to be an array in the JSON string but got `%s`", jsonObj.get("namedTags").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `namedTags` to be an array in the JSON string but got `%s`", jsonObj.get("namedTags").toString())); } if ((jsonObj.get("vlanCTagLabel") != null && !jsonObj.get("vlanCTagLabel").isJsonNull()) && !jsonObj.get("vlanCTagLabel").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `vlanCTagLabel` to be a primitive type in the JSON string but got `%s`", jsonObj.get("vlanCTagLabel").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `vlanCTagLabel` to be a primitive type in the JSON string but got `%s`", jsonObj.get("vlanCTagLabel").toString())); } if ((jsonObj.get("encapsulation") != null && !jsonObj.get("encapsulation").isJsonNull()) && !jsonObj.get("encapsulation").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `encapsulation` to be a primitive type in the JSON string but got `%s`", jsonObj.get("encapsulation").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `encapsulation` to be a primitive type in the JSON string but got `%s`", jsonObj.get("encapsulation").toString())); } // validate the optional field `encapsulation` if (jsonObj.get("encapsulation") != null && !jsonObj.get("encapsulation").isJsonNull()) { @@ -491,7 +488,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileListResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileListResponse.java index 49204344..bfc86b6c 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileListResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileListResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.CompanyServiceProfile; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * ServiceProfileListResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ServiceProfileListResponse { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @@ -176,11 +178,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("data"); + openapiFields = new HashSet(Arrays.asList("data")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -192,7 +193,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ServiceProfileListResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ServiceProfileListResponse is not found in the empty JSON string", ServiceProfileListResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ServiceProfileListResponse is not found in the empty JSON string", ServiceProfileListResponse.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -201,7 +202,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraydata != null) { // ensure the json data is an array if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); } // validate the optional field `data` (array) @@ -269,7 +270,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileMetadata.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileMetadata.java index e4b41a82..8b820261 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileMetadata.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileMetadata.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Metadata. Response attribute. Ignored on request payload. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ServiceProfileMetadata { public static final String SERIALIZED_NAME_PROPS = "props"; @SerializedName(SERIALIZED_NAME_PROPS) @@ -633,29 +635,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("props"); - openapiFields.add("regEx"); - openapiFields.add("regExMsg"); - openapiFields.add("vlanRangeMaxValue"); - openapiFields.add("vlanRangeMinValue"); - openapiFields.add("maxQinq"); - openapiFields.add("maxDot1q"); - openapiFields.add("variableBilling"); - openapiFields.add("globalOrganization"); - openapiFields.add("limitAuthKeyConn"); - openapiFields.add("allowSecondaryLocation"); - openapiFields.add("redundantProfileId"); - openapiFields.add("allowVcMigration"); - openapiFields.add("connectionEditable"); - openapiFields.add("releaseVlan"); - openapiFields.add("maxConnectionsOnPort"); - openapiFields.add("portAssignmentStrategy"); - openapiFields.add("eqxManagedPort"); - openapiFields.add("connectionNameEditable"); + openapiFields = new HashSet(Arrays.asList("props", "regEx", "regExMsg", "vlanRangeMaxValue", "vlanRangeMinValue", "maxQinq", "maxDot1q", "variableBilling", "globalOrganization", "limitAuthKeyConn", "allowSecondaryLocation", "redundantProfileId", "allowVcMigration", "connectionEditable", "releaseVlan", "maxConnectionsOnPort", "portAssignmentStrategy", "eqxManagedPort", "connectionNameEditable")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -667,30 +650,30 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ServiceProfileMetadata.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ServiceProfileMetadata is not found in the empty JSON string", ServiceProfileMetadata.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ServiceProfileMetadata is not found in the empty JSON string", ServiceProfileMetadata.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("props") != null && !jsonObj.get("props").isJsonNull()) && !jsonObj.get("props").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `props` to be a primitive type in the JSON string but got `%s`", jsonObj.get("props").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `props` to be a primitive type in the JSON string but got `%s`", jsonObj.get("props").toString())); } if ((jsonObj.get("regEx") != null && !jsonObj.get("regEx").isJsonNull()) && !jsonObj.get("regEx").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `regEx` to be a primitive type in the JSON string but got `%s`", jsonObj.get("regEx").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `regEx` to be a primitive type in the JSON string but got `%s`", jsonObj.get("regEx").toString())); } if ((jsonObj.get("regExMsg") != null && !jsonObj.get("regExMsg").isJsonNull()) && !jsonObj.get("regExMsg").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `regExMsg` to be a primitive type in the JSON string but got `%s`", jsonObj.get("regExMsg").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `regExMsg` to be a primitive type in the JSON string but got `%s`", jsonObj.get("regExMsg").toString())); } if ((jsonObj.get("maxQinq") != null && !jsonObj.get("maxQinq").isJsonNull()) && !jsonObj.get("maxQinq").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `maxQinq` to be a primitive type in the JSON string but got `%s`", jsonObj.get("maxQinq").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `maxQinq` to be a primitive type in the JSON string but got `%s`", jsonObj.get("maxQinq").toString())); } if ((jsonObj.get("globalOrganization") != null && !jsonObj.get("globalOrganization").isJsonNull()) && !jsonObj.get("globalOrganization").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `globalOrganization` to be a primitive type in the JSON string but got `%s`", jsonObj.get("globalOrganization").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `globalOrganization` to be a primitive type in the JSON string but got `%s`", jsonObj.get("globalOrganization").toString())); } if ((jsonObj.get("redundantProfileId") != null && !jsonObj.get("redundantProfileId").isJsonNull()) && !jsonObj.get("redundantProfileId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `redundantProfileId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("redundantProfileId").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `redundantProfileId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("redundantProfileId").toString())); } if ((jsonObj.get("portAssignmentStrategy") != null && !jsonObj.get("portAssignmentStrategy").isJsonNull()) && !jsonObj.get("portAssignmentStrategy").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `portAssignmentStrategy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("portAssignmentStrategy").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `portAssignmentStrategy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("portAssignmentStrategy").toString())); } } @@ -751,7 +734,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileRequest.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileRequest.java index 7b548148..13fad118 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileRequest.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileRequest.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.CustomField; import com.equinix.sdk.fabricv4.model.MarketingInfo; import com.equinix.sdk.fabricv4.model.Project; @@ -54,13 +55,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Service Profile is a software definition for a named provider service and it's network connectivity requirements. This includes the basic marketing information and one or more sets of access points (a set per each access point type) fulfilling the provider service. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ServiceProfileRequest { public static final String SERIALIZED_NAME_PROJECT = "project"; @SerializedName(SERIALIZED_NAME_PROJECT) @@ -684,30 +686,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("href"); - openapiFields.add("type"); - openapiFields.add("name"); - openapiFields.add("uuid"); - openapiFields.add("description"); - openapiFields.add("notifications"); - openapiFields.add("tags"); - openapiFields.add("visibility"); - openapiFields.add("allowedEmails"); - openapiFields.add("accessPointTypeConfigs"); - openapiFields.add("customFields"); - openapiFields.add("marketingInfo"); - openapiFields.add("ports"); - openapiFields.add("virtualDevices"); - openapiFields.add("metros"); - openapiFields.add("selfProfile"); - openapiFields.add("projectId"); + openapiFields = new HashSet(Arrays.asList("href", "type", "name", "uuid", "description", "notifications", "tags", "visibility", "allowedEmails", "accessPointTypeConfigs", "customFields", "marketingInfo", "ports", "virtualDevices", "metros", "selfProfile", "projectId")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("type"); - openapiRequiredFields.add("name"); - openapiRequiredFields.add("description"); + openapiRequiredFields = new HashSet(Arrays.asList("type", "name", "description")); } /** @@ -719,14 +701,14 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ServiceProfileRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ServiceProfileRequest is not found in the empty JSON string", ServiceProfileRequest.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ServiceProfileRequest is not found in the empty JSON string", ServiceProfileRequest.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : ServiceProfileRequest.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -735,25 +717,25 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti Project.validateJsonElement(jsonObj.get("project")); } if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } // validate the required field `type` ServiceProfileTypeEnum.validateJsonElement(jsonObj.get("type")); if (!jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } if (!jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); } if (jsonObj.get("notifications") != null && !jsonObj.get("notifications").isJsonNull()) { JsonArray jsonArraynotifications = jsonObj.getAsJsonArray("notifications"); if (jsonArraynotifications != null) { // ensure the json data is an array if (!jsonObj.get("notifications").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `notifications` to be an array in the JSON string but got `%s`", jsonObj.get("notifications").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `notifications` to be an array in the JSON string but got `%s`", jsonObj.get("notifications").toString())); } // validate the optional field `notifications` (array) @@ -764,7 +746,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } // ensure the optional json data is an array if present if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull() && !jsonObj.get("tags").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString())); } // validate the optional field `visibility` if (jsonObj.get("visibility") != null && !jsonObj.get("visibility").isJsonNull()) { @@ -772,14 +754,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } // ensure the optional json data is an array if present if (jsonObj.get("allowedEmails") != null && !jsonObj.get("allowedEmails").isJsonNull() && !jsonObj.get("allowedEmails").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `allowedEmails` to be an array in the JSON string but got `%s`", jsonObj.get("allowedEmails").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `allowedEmails` to be an array in the JSON string but got `%s`", jsonObj.get("allowedEmails").toString())); } if (jsonObj.get("accessPointTypeConfigs") != null && !jsonObj.get("accessPointTypeConfigs").isJsonNull()) { JsonArray jsonArrayaccessPointTypeConfigs = jsonObj.getAsJsonArray("accessPointTypeConfigs"); if (jsonArrayaccessPointTypeConfigs != null) { // ensure the json data is an array if (!jsonObj.get("accessPointTypeConfigs").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `accessPointTypeConfigs` to be an array in the JSON string but got `%s`", jsonObj.get("accessPointTypeConfigs").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `accessPointTypeConfigs` to be an array in the JSON string but got `%s`", jsonObj.get("accessPointTypeConfigs").toString())); } // validate the optional field `accessPointTypeConfigs` (array) @@ -793,7 +775,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraycustomFields != null) { // ensure the json data is an array if (!jsonObj.get("customFields").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `customFields` to be an array in the JSON string but got `%s`", jsonObj.get("customFields").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `customFields` to be an array in the JSON string but got `%s`", jsonObj.get("customFields").toString())); } // validate the optional field `customFields` (array) @@ -811,7 +793,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayports != null) { // ensure the json data is an array if (!jsonObj.get("ports").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `ports` to be an array in the JSON string but got `%s`", jsonObj.get("ports").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `ports` to be an array in the JSON string but got `%s`", jsonObj.get("ports").toString())); } // validate the optional field `ports` (array) @@ -825,7 +807,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayvirtualDevices != null) { // ensure the json data is an array if (!jsonObj.get("virtualDevices").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `virtualDevices` to be an array in the JSON string but got `%s`", jsonObj.get("virtualDevices").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `virtualDevices` to be an array in the JSON string but got `%s`", jsonObj.get("virtualDevices").toString())); } // validate the optional field `virtualDevices` (array) @@ -839,7 +821,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraymetros != null) { // ensure the json data is an array if (!jsonObj.get("metros").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `metros` to be an array in the JSON string but got `%s`", jsonObj.get("metros").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `metros` to be an array in the JSON string but got `%s`", jsonObj.get("metros").toString())); } // validate the optional field `metros` (array) @@ -849,7 +831,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } if ((jsonObj.get("projectId") != null && !jsonObj.get("projectId").isJsonNull()) && !jsonObj.get("projectId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `projectId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("projectId").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `projectId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("projectId").toString())); } } @@ -910,7 +892,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileSearchRequest.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileSearchRequest.java index a8466fa1..54259074 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileSearchRequest.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileSearchRequest.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.PaginationRequest; import com.equinix.sdk.fabricv4.model.ServiceProfileFilter; import com.equinix.sdk.fabricv4.model.ServiceProfileSortCriteria; @@ -45,13 +46,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Search requests containing criteria */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ServiceProfileSearchRequest { public static final String SERIALIZED_NAME_FILTER = "filter"; @SerializedName(SERIALIZED_NAME_FILTER) @@ -230,13 +232,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("filter"); - openapiFields.add("pagination"); - openapiFields.add("sort"); + openapiFields = new HashSet(Arrays.asList("filter", "pagination", "sort")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -248,7 +247,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ServiceProfileSearchRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ServiceProfileSearchRequest is not found in the empty JSON string", ServiceProfileSearchRequest.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ServiceProfileSearchRequest is not found in the empty JSON string", ServiceProfileSearchRequest.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -265,7 +264,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraysort != null) { // ensure the json data is an array if (!jsonObj.get("sort").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `sort` to be an array in the JSON string but got `%s`", jsonObj.get("sort").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `sort` to be an array in the JSON string but got `%s`", jsonObj.get("sort").toString())); } // validate the optional field `sort` (array) @@ -333,7 +332,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileSimpleExpression.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileSimpleExpression.java index 90736f89..a2c0d879 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileSimpleExpression.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileSimpleExpression.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * ServiceProfileSimpleExpression */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ServiceProfileSimpleExpression { public static final String SERIALIZED_NAME_PROPERTY = "property"; @SerializedName(SERIALIZED_NAME_PROPERTY) @@ -227,13 +229,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("property"); - openapiFields.add("operator"); - openapiFields.add("values"); + openapiFields = new HashSet(Arrays.asList("property", "operator", "values")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -245,19 +244,19 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ServiceProfileSimpleExpression.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ServiceProfileSimpleExpression is not found in the empty JSON string", ServiceProfileSimpleExpression.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ServiceProfileSimpleExpression is not found in the empty JSON string", ServiceProfileSimpleExpression.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("property") != null && !jsonObj.get("property").isJsonNull()) && !jsonObj.get("property").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `property` to be a primitive type in the JSON string but got `%s`", jsonObj.get("property").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `property` to be a primitive type in the JSON string but got `%s`", jsonObj.get("property").toString())); } if ((jsonObj.get("operator") != null && !jsonObj.get("operator").isJsonNull()) && !jsonObj.get("operator").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `operator` to be a primitive type in the JSON string but got `%s`", jsonObj.get("operator").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `operator` to be a primitive type in the JSON string but got `%s`", jsonObj.get("operator").toString())); } // ensure the optional json data is an array if present if (jsonObj.get("values") != null && !jsonObj.get("values").isJsonNull() && !jsonObj.get("values").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); } } @@ -318,7 +317,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileSortBy.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileSortBy.java index d525c035..a1e06f2c 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileSortBy.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileSortBy.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileSortCriteria.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileSortCriteria.java index a3a45d7a..7647e0f6 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileSortCriteria.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileSortCriteria.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.ServiceProfileSortBy; import com.equinix.sdk.fabricv4.model.ServiceProfileSortDirection; import com.google.gson.TypeAdapter; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * ServiceProfileSortCriteria */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ServiceProfileSortCriteria { public static final String SERIALIZED_NAME_DIRECTION = "direction"; @SerializedName(SERIALIZED_NAME_DIRECTION) @@ -193,12 +195,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("direction"); - openapiFields.add("property"); + openapiFields = new HashSet(Arrays.asList("direction", "property")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -210,7 +210,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ServiceProfileSortCriteria.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ServiceProfileSortCriteria is not found in the empty JSON string", ServiceProfileSortCriteria.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ServiceProfileSortCriteria is not found in the empty JSON string", ServiceProfileSortCriteria.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -281,7 +281,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileSortDirection.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileSortDirection.java index 536518c6..3cda5c4c 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileSortDirection.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileSortDirection.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileStateEnum.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileStateEnum.java index b3712e0d..f30be975 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileStateEnum.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileStateEnum.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileTypeEnum.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileTypeEnum.java index 10cce7a1..9555d0e8 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileTypeEnum.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileTypeEnum.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileVisibilityEnum.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileVisibilityEnum.java index bcc58b47..3bf0c889 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileVisibilityEnum.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfileVisibilityEnum.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfiles.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfiles.java index 17a3dbb1..ecca081c 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfiles.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceProfiles.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Pagination; import com.equinix.sdk.fabricv4.model.ServiceProfile; import com.google.gson.TypeAdapter; @@ -44,13 +45,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Service Profiles */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ServiceProfiles { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @@ -203,12 +205,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("data"); - openapiFields.add("pagination"); + openapiFields = new HashSet(Arrays.asList("data", "pagination")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -220,7 +220,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ServiceProfiles.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ServiceProfiles is not found in the empty JSON string", ServiceProfiles.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ServiceProfiles is not found in the empty JSON string", ServiceProfiles.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -229,7 +229,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraydata != null) { // ensure the json data is an array if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); } // validate the optional field `data` (array) @@ -301,7 +301,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceSearchResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceSearchResponse.java index 42a673ce..36b346b4 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceSearchResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceSearchResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Pagination; import com.equinix.sdk.fabricv4.model.PrecisionTimeServiceResponse; import com.google.gson.TypeAdapter; @@ -44,13 +45,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * ServiceSearchResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ServiceSearchResponse { public static final String SERIALIZED_NAME_PAGINATION = "pagination"; @SerializedName(SERIALIZED_NAME_PAGINATION) @@ -203,12 +205,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("pagination"); - openapiFields.add("data"); + openapiFields = new HashSet(Arrays.asList("pagination", "data")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -220,7 +220,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ServiceSearchResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ServiceSearchResponse is not found in the empty JSON string", ServiceSearchResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ServiceSearchResponse is not found in the empty JSON string", ServiceSearchResponse.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -233,7 +233,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraydata != null) { // ensure the json data is an array if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); } // validate the optional field `data` (array) @@ -301,7 +301,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceToken.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceToken.java index 0025acba..5af4b05f 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceToken.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceToken.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Changelog; import com.equinix.sdk.fabricv4.model.Project; import com.equinix.sdk.fabricv4.model.ServiceTokenConnection; @@ -52,13 +53,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Create Service Tokens (v4) generates Equinix Fabric service tokens. These tokens authorize users to access protected resources and services. The tokens remove sensitive content from the environment, rather than just masking it, making the protected data impossible to unencrypt or decrypt. Resource owners can distribute the tokens to trusted partners and vendors, allowing selected third parties to work directly with Equinix network assets. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ServiceToken { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -532,24 +534,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("type"); - openapiFields.add("href"); - openapiFields.add("expiry"); - openapiFields.add("uuid"); - openapiFields.add("issuerSide"); - openapiFields.add("name"); - openapiFields.add("description"); - openapiFields.add("expirationDateTime"); - openapiFields.add("connection"); - openapiFields.add("state"); - openapiFields.add("notifications"); - openapiFields.add("account"); - openapiFields.add("changelog"); - openapiFields.add("project"); + openapiFields = new HashSet(Arrays.asList("type", "href", "expiry", "uuid", "issuerSide", "name", "description", "expirationDateTime", "connection", "state", "notifications", "account", "changelog", "project")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -561,7 +549,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ServiceToken.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ServiceToken is not found in the empty JSON string", ServiceToken.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ServiceToken is not found in the empty JSON string", ServiceToken.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -570,19 +558,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti ServiceTokenType.validateJsonElement(jsonObj.get("type")); } if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } if ((jsonObj.get("issuerSide") != null && !jsonObj.get("issuerSide").isJsonNull()) && !jsonObj.get("issuerSide").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `issuerSide` to be a primitive type in the JSON string but got `%s`", jsonObj.get("issuerSide").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `issuerSide` to be a primitive type in the JSON string but got `%s`", jsonObj.get("issuerSide").toString())); } if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); } // validate the optional field `connection` if (jsonObj.get("connection") != null && !jsonObj.get("connection").isJsonNull()) { @@ -597,7 +585,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraynotifications != null) { // ensure the json data is an array if (!jsonObj.get("notifications").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `notifications` to be an array in the JSON string but got `%s`", jsonObj.get("notifications").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `notifications` to be an array in the JSON string but got `%s`", jsonObj.get("notifications").toString())); } // validate the optional field `notifications` (array) @@ -677,7 +665,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceTokenActionRequest.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceTokenActionRequest.java index 2b755a49..55163652 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceTokenActionRequest.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceTokenActionRequest.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.ServiceTokenActions; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Service Token action request */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ServiceTokenActionRequest { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -166,12 +168,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("type"); + openapiFields = new HashSet(Arrays.asList("type")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("type"); + openapiRequiredFields = new HashSet(Arrays.asList("type")); } /** @@ -183,14 +183,14 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ServiceTokenActionRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ServiceTokenActionRequest is not found in the empty JSON string", ServiceTokenActionRequest.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ServiceTokenActionRequest is not found in the empty JSON string", ServiceTokenActionRequest.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : ServiceTokenActionRequest.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -255,7 +255,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceTokenActions.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceTokenActions.java index ea3cce04..d07e9ea9 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceTokenActions.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceTokenActions.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceTokenChangeOperation.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceTokenChangeOperation.java index 36ef7863..78f3b272 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceTokenChangeOperation.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceTokenChangeOperation.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Service Token change operation data */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ServiceTokenChangeOperation { /** * Handy shortcut for operation name @@ -271,16 +273,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("op"); - openapiFields.add("path"); - openapiFields.add("value"); + openapiFields = new HashSet(Arrays.asList("op", "path", "value")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("op"); - openapiRequiredFields.add("path"); - openapiRequiredFields.add("value"); + openapiRequiredFields = new HashSet(Arrays.asList("op", "path", "value")); } /** @@ -292,24 +288,24 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ServiceTokenChangeOperation.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ServiceTokenChangeOperation is not found in the empty JSON string", ServiceTokenChangeOperation.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ServiceTokenChangeOperation is not found in the empty JSON string", ServiceTokenChangeOperation.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : ServiceTokenChangeOperation.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("op").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `op` to be a primitive type in the JSON string but got `%s`", jsonObj.get("op").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `op` to be a primitive type in the JSON string but got `%s`", jsonObj.get("op").toString())); } // validate the required field `op` OpEnum.validateJsonElement(jsonObj.get("op")); if (!jsonObj.get("path").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); } } @@ -370,7 +366,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceTokenConnection.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceTokenConnection.java index 53384c28..45772397 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceTokenConnection.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceTokenConnection.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.ServiceTokenSide; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -45,13 +46,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Service Token Connection Type Information */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ServiceTokenConnection { /** * Type of Connection @@ -451,19 +453,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("type"); - openapiFields.add("href"); - openapiFields.add("uuid"); - openapiFields.add("allowRemoteConnection"); - openapiFields.add("allowCustomBandwidth"); - openapiFields.add("bandwidthLimit"); - openapiFields.add("supportedBandwidths"); - openapiFields.add("aSide"); - openapiFields.add("zSide"); + openapiFields = new HashSet(Arrays.asList("type", "href", "uuid", "allowRemoteConnection", "allowCustomBandwidth", "bandwidthLimit", "supportedBandwidths", "aSide", "zSide")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -475,26 +468,26 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ServiceTokenConnection.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ServiceTokenConnection is not found in the empty JSON string", ServiceTokenConnection.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ServiceTokenConnection is not found in the empty JSON string", ServiceTokenConnection.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the optional field `type` if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { TypeEnum.validateJsonElement(jsonObj.get("type")); } if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } // ensure the optional json data is an array if present if (jsonObj.get("supportedBandwidths") != null && !jsonObj.get("supportedBandwidths").isJsonNull() && !jsonObj.get("supportedBandwidths").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `supportedBandwidths` to be an array in the JSON string but got `%s`", jsonObj.get("supportedBandwidths").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `supportedBandwidths` to be an array in the JSON string but got `%s`", jsonObj.get("supportedBandwidths").toString())); } // validate the optional field `aSide` if (jsonObj.get("aSide") != null && !jsonObj.get("aSide").isJsonNull()) { @@ -563,7 +556,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceTokenSearchExpression.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceTokenSearchExpression.java index e020fc6a..1d42b304 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceTokenSearchExpression.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceTokenSearchExpression.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.ServiceTokenSearchFieldName; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * ServiceTokenSearchExpression */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ServiceTokenSearchExpression { public static final String SERIALIZED_NAME_AND = "and"; @SerializedName(SERIALIZED_NAME_AND) @@ -312,14 +314,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("and"); - openapiFields.add("property"); - openapiFields.add("operator"); - openapiFields.add("values"); + openapiFields = new HashSet(Arrays.asList("and", "property", "operator", "values")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -331,7 +329,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ServiceTokenSearchExpression.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ServiceTokenSearchExpression is not found in the empty JSON string", ServiceTokenSearchExpression.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ServiceTokenSearchExpression is not found in the empty JSON string", ServiceTokenSearchExpression.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -340,7 +338,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayand != null) { // ensure the json data is an array if (!jsonObj.get("and").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `and` to be an array in the JSON string but got `%s`", jsonObj.get("and").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `and` to be an array in the JSON string but got `%s`", jsonObj.get("and").toString())); } // validate the optional field `and` (array) @@ -354,7 +352,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti ServiceTokenSearchFieldName.validateJsonElement(jsonObj.get("property")); } if ((jsonObj.get("operator") != null && !jsonObj.get("operator").isJsonNull()) && !jsonObj.get("operator").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `operator` to be a primitive type in the JSON string but got `%s`", jsonObj.get("operator").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `operator` to be a primitive type in the JSON string but got `%s`", jsonObj.get("operator").toString())); } // validate the optional field `operator` if (jsonObj.get("operator") != null && !jsonObj.get("operator").isJsonNull()) { @@ -362,7 +360,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } // ensure the optional json data is an array if present if (jsonObj.get("values") != null && !jsonObj.get("values").isJsonNull() && !jsonObj.get("values").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); } } @@ -423,7 +421,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceTokenSearchFieldName.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceTokenSearchFieldName.java index f5478874..761a5f53 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceTokenSearchFieldName.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceTokenSearchFieldName.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceTokenSearchRequest.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceTokenSearchRequest.java index 69ee1b8f..29344ab4 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceTokenSearchRequest.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceTokenSearchRequest.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.PaginationRequest; import com.equinix.sdk.fabricv4.model.ServiceTokenSearchExpression; import com.google.gson.TypeAdapter; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Search requests containing criteria */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ServiceTokenSearchRequest { public static final String SERIALIZED_NAME_FILTER = "filter"; @SerializedName(SERIALIZED_NAME_FILTER) @@ -193,12 +195,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("filter"); - openapiFields.add("pagination"); + openapiFields = new HashSet(Arrays.asList("filter", "pagination")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -210,7 +210,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ServiceTokenSearchRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ServiceTokenSearchRequest is not found in the empty JSON string", ServiceTokenSearchRequest.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ServiceTokenSearchRequest is not found in the empty JSON string", ServiceTokenSearchRequest.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -281,7 +281,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceTokenSide.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceTokenSide.java index b6031fe4..9f911226 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceTokenSide.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceTokenSide.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.AccessPointSelector; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Connection link protocol,virtual device or network configuration */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ServiceTokenSide { public static final String SERIALIZED_NAME_ACCESS_POINT_SELECTORS = "accessPointSelectors"; @SerializedName(SERIALIZED_NAME_ACCESS_POINT_SELECTORS) @@ -176,11 +178,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("accessPointSelectors"); + openapiFields = new HashSet(Arrays.asList("accessPointSelectors")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -192,7 +193,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ServiceTokenSide.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ServiceTokenSide is not found in the empty JSON string", ServiceTokenSide.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ServiceTokenSide is not found in the empty JSON string", ServiceTokenSide.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -201,7 +202,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayaccessPointSelectors != null) { // ensure the json data is an array if (!jsonObj.get("accessPointSelectors").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `accessPointSelectors` to be an array in the JSON string but got `%s`", jsonObj.get("accessPointSelectors").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `accessPointSelectors` to be an array in the JSON string but got `%s`", jsonObj.get("accessPointSelectors").toString())); } // validate the optional field `accessPointSelectors` (array) @@ -269,7 +270,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceTokenState.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceTokenState.java index b4a35253..9c8365b8 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceTokenState.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceTokenState.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceTokenType.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceTokenType.java index 50620880..b8331d4c 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceTokenType.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceTokenType.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceTokens.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceTokens.java index 63db1cbf..df1ae070 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceTokens.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ServiceTokens.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Pagination; import com.equinix.sdk.fabricv4.model.ServiceToken; import com.google.gson.TypeAdapter; @@ -44,13 +45,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Service tokens authorize a user to access protected resources and services available on the Equinix Fabric network. The owner of the resources can distribute service tokens to third-party users (trusted partners and vendors), allowing them to directly access and work with the resources on the network without involving the resource owners. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ServiceTokens { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @@ -203,12 +205,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("data"); - openapiFields.add("pagination"); + openapiFields = new HashSet(Arrays.asList("data", "pagination")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -220,7 +220,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ServiceTokens.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ServiceTokens is not found in the empty JSON string", ServiceTokens.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ServiceTokens is not found in the empty JSON string", ServiceTokens.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -229,7 +229,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraydata != null) { // ensure the json data is an array if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); } // validate the optional field `data` (array) @@ -301,7 +301,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Services.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Services.java index f243fd6f..7444800f 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Services.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Services.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Arrays of objects containing type of services supported in the specified metros */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class Services { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -165,11 +167,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("type"); + openapiFields = new HashSet(Arrays.asList("type")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -181,12 +182,12 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!Services.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in Services is not found in the empty JSON string", Services.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in Services is not found in the empty JSON string", Services.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } } @@ -247,7 +248,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SimplifiedAccount.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SimplifiedAccount.java index 34aac847..de6f6692 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SimplifiedAccount.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SimplifiedAccount.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * SimplifiedAccount */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class SimplifiedAccount { public static final String SERIALIZED_NAME_ACCOUNT_NUMBER = "accountNumber"; @SerializedName(SERIALIZED_NAME_ACCOUNT_NUMBER) @@ -451,22 +453,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("accountNumber"); - openapiFields.add("accountName"); - openapiFields.add("orgId"); - openapiFields.add("organizationName"); - openapiFields.add("globalOrgId"); - openapiFields.add("globalOrganizationName"); - openapiFields.add("ucmId"); - openapiFields.add("globalCustId"); - openapiFields.add("resellerAccountNumber"); - openapiFields.add("resellerAccountName"); - openapiFields.add("resellerUcmId"); - openapiFields.add("resellerOrgId"); + openapiFields = new HashSet(Arrays.asList("accountNumber", "accountName", "orgId", "organizationName", "globalOrgId", "globalOrganizationName", "ucmId", "globalCustId", "resellerAccountNumber", "resellerAccountName", "resellerUcmId", "resellerOrgId")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -478,33 +468,33 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!SimplifiedAccount.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in SimplifiedAccount is not found in the empty JSON string", SimplifiedAccount.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SimplifiedAccount is not found in the empty JSON string", SimplifiedAccount.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("accountName") != null && !jsonObj.get("accountName").isJsonNull()) && !jsonObj.get("accountName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `accountName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("accountName").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `accountName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("accountName").toString())); } if ((jsonObj.get("organizationName") != null && !jsonObj.get("organizationName").isJsonNull()) && !jsonObj.get("organizationName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `organizationName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("organizationName").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `organizationName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("organizationName").toString())); } if ((jsonObj.get("globalOrgId") != null && !jsonObj.get("globalOrgId").isJsonNull()) && !jsonObj.get("globalOrgId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `globalOrgId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("globalOrgId").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `globalOrgId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("globalOrgId").toString())); } if ((jsonObj.get("globalOrganizationName") != null && !jsonObj.get("globalOrganizationName").isJsonNull()) && !jsonObj.get("globalOrganizationName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `globalOrganizationName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("globalOrganizationName").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `globalOrganizationName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("globalOrganizationName").toString())); } if ((jsonObj.get("ucmId") != null && !jsonObj.get("ucmId").isJsonNull()) && !jsonObj.get("ucmId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `ucmId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ucmId").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `ucmId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ucmId").toString())); } if ((jsonObj.get("globalCustId") != null && !jsonObj.get("globalCustId").isJsonNull()) && !jsonObj.get("globalCustId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `globalCustId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("globalCustId").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `globalCustId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("globalCustId").toString())); } if ((jsonObj.get("resellerAccountName") != null && !jsonObj.get("resellerAccountName").isJsonNull()) && !jsonObj.get("resellerAccountName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `resellerAccountName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("resellerAccountName").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `resellerAccountName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("resellerAccountName").toString())); } if ((jsonObj.get("resellerUcmId") != null && !jsonObj.get("resellerUcmId").isJsonNull()) && !jsonObj.get("resellerUcmId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `resellerUcmId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("resellerUcmId").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `resellerUcmId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("resellerUcmId").toString())); } } @@ -565,7 +555,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SimplifiedLinkProtocol.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SimplifiedLinkProtocol.java index a67093be..3948e7a7 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SimplifiedLinkProtocol.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SimplifiedLinkProtocol.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.LinkProtocolType; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Connection link protocol Configuration */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class SimplifiedLinkProtocol { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -250,14 +252,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("type"); - openapiFields.add("vlanTag"); - openapiFields.add("vlanSTag"); - openapiFields.add("vlanCTag"); + openapiFields = new HashSet(Arrays.asList("type", "vlanTag", "vlanSTag", "vlanCTag")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -269,7 +267,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!SimplifiedLinkProtocol.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in SimplifiedLinkProtocol is not found in the empty JSON string", SimplifiedLinkProtocol.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SimplifiedLinkProtocol is not found in the empty JSON string", SimplifiedLinkProtocol.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -336,7 +334,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SimplifiedLocation.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SimplifiedLocation.java index 0ca6a854..03190872 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SimplifiedLocation.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SimplifiedLocation.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * SimplifiedLocation */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class SimplifiedLocation { public static final String SERIALIZED_NAME_METRO_HREF = "metroHref"; @SerializedName(SERIALIZED_NAME_METRO_HREF) @@ -274,15 +276,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("metroHref"); - openapiFields.add("region"); - openapiFields.add("metroName"); - openapiFields.add("metroCode"); - openapiFields.add("ibx"); + openapiFields = new HashSet(Arrays.asList("metroHref", "region", "metroName", "metroCode", "ibx")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -294,24 +291,24 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!SimplifiedLocation.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in SimplifiedLocation is not found in the empty JSON string", SimplifiedLocation.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SimplifiedLocation is not found in the empty JSON string", SimplifiedLocation.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("metroHref") != null && !jsonObj.get("metroHref").isJsonNull()) && !jsonObj.get("metroHref").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `metroHref` to be a primitive type in the JSON string but got `%s`", jsonObj.get("metroHref").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `metroHref` to be a primitive type in the JSON string but got `%s`", jsonObj.get("metroHref").toString())); } if ((jsonObj.get("region") != null && !jsonObj.get("region").isJsonNull()) && !jsonObj.get("region").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `region` to be a primitive type in the JSON string but got `%s`", jsonObj.get("region").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `region` to be a primitive type in the JSON string but got `%s`", jsonObj.get("region").toString())); } if ((jsonObj.get("metroName") != null && !jsonObj.get("metroName").isJsonNull()) && !jsonObj.get("metroName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `metroName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("metroName").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `metroName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("metroName").toString())); } if ((jsonObj.get("metroCode") != null && !jsonObj.get("metroCode").isJsonNull()) && !jsonObj.get("metroCode").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `metroCode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("metroCode").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `metroCode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("metroCode").toString())); } if ((jsonObj.get("ibx") != null && !jsonObj.get("ibx").isJsonNull()) && !jsonObj.get("ibx").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `ibx` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ibx").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `ibx` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ibx").toString())); } } @@ -372,7 +369,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SimplifiedLocationWithoutIBX.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SimplifiedLocationWithoutIBX.java index 66bdcd80..243c92b7 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SimplifiedLocationWithoutIBX.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SimplifiedLocationWithoutIBX.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * SimplifiedLocationWithoutIBX */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class SimplifiedLocationWithoutIBX { public static final String SERIALIZED_NAME_METRO_HREF = "metroHref"; @SerializedName(SERIALIZED_NAME_METRO_HREF) @@ -243,15 +245,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("metroHref"); - openapiFields.add("region"); - openapiFields.add("metroName"); - openapiFields.add("metroCode"); + openapiFields = new HashSet(Arrays.asList("metroHref", "region", "metroName", "metroCode")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("metroCode"); + openapiRequiredFields = new HashSet(Arrays.asList("metroCode")); } /** @@ -263,28 +260,28 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!SimplifiedLocationWithoutIBX.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in SimplifiedLocationWithoutIBX is not found in the empty JSON string", SimplifiedLocationWithoutIBX.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SimplifiedLocationWithoutIBX is not found in the empty JSON string", SimplifiedLocationWithoutIBX.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : SimplifiedLocationWithoutIBX.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("metroHref") != null && !jsonObj.get("metroHref").isJsonNull()) && !jsonObj.get("metroHref").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `metroHref` to be a primitive type in the JSON string but got `%s`", jsonObj.get("metroHref").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `metroHref` to be a primitive type in the JSON string but got `%s`", jsonObj.get("metroHref").toString())); } if ((jsonObj.get("region") != null && !jsonObj.get("region").isJsonNull()) && !jsonObj.get("region").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `region` to be a primitive type in the JSON string but got `%s`", jsonObj.get("region").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `region` to be a primitive type in the JSON string but got `%s`", jsonObj.get("region").toString())); } if ((jsonObj.get("metroName") != null && !jsonObj.get("metroName").isJsonNull()) && !jsonObj.get("metroName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `metroName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("metroName").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `metroName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("metroName").toString())); } if (!jsonObj.get("metroCode").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `metroCode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("metroCode").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `metroCode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("metroCode").toString())); } } @@ -345,7 +342,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SimplifiedMetadataEntity.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SimplifiedMetadataEntity.java index b01ab275..7294fd05 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SimplifiedMetadataEntity.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SimplifiedMetadataEntity.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.SimplifiedLocation; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -44,13 +45,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Configuration details for port used at the access point. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class SimplifiedMetadataEntity { public static final String SERIALIZED_NAME_HREF = "href"; @SerializedName(SERIALIZED_NAME_HREF) @@ -403,20 +405,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("href"); - openapiFields.add("uuid"); - openapiFields.add("type"); - openapiFields.add("cvpId"); - openapiFields.add("bandwidth"); - openapiFields.add("portName"); - openapiFields.add("encapsulationProtocolType"); - openapiFields.add("accountName"); - openapiFields.add("priority"); - openapiFields.add("location"); + openapiFields = new HashSet(Arrays.asList("href", "uuid", "type", "cvpId", "bandwidth", "portName", "encapsulationProtocolType", "accountName", "priority", "location")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -428,30 +420,30 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!SimplifiedMetadataEntity.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in SimplifiedMetadataEntity is not found in the empty JSON string", SimplifiedMetadataEntity.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SimplifiedMetadataEntity is not found in the empty JSON string", SimplifiedMetadataEntity.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } if ((jsonObj.get("portName") != null && !jsonObj.get("portName").isJsonNull()) && !jsonObj.get("portName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `portName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("portName").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `portName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("portName").toString())); } if ((jsonObj.get("encapsulationProtocolType") != null && !jsonObj.get("encapsulationProtocolType").isJsonNull()) && !jsonObj.get("encapsulationProtocolType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `encapsulationProtocolType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("encapsulationProtocolType").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `encapsulationProtocolType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("encapsulationProtocolType").toString())); } if ((jsonObj.get("accountName") != null && !jsonObj.get("accountName").isJsonNull()) && !jsonObj.get("accountName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `accountName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("accountName").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `accountName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("accountName").toString())); } if ((jsonObj.get("priority") != null && !jsonObj.get("priority").isJsonNull()) && !jsonObj.get("priority").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `priority` to be a primitive type in the JSON string but got `%s`", jsonObj.get("priority").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `priority` to be a primitive type in the JSON string but got `%s`", jsonObj.get("priority").toString())); } // validate the optional field `location` if (jsonObj.get("location") != null && !jsonObj.get("location").isJsonNull()) { @@ -516,7 +508,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SimplifiedNetwork.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SimplifiedNetwork.java index 1fbccef6..e9ffaebf 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SimplifiedNetwork.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SimplifiedNetwork.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Changelog; import com.equinix.sdk.fabricv4.model.Link; import com.equinix.sdk.fabricv4.model.NetworkOperation; @@ -53,13 +54,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Network specification */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class SimplifiedNetwork { public static final String SERIALIZED_NAME_HREF = "href"; @SerializedName(SERIALIZED_NAME_HREF) @@ -457,23 +459,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("href"); - openapiFields.add("uuid"); - openapiFields.add("name"); - openapiFields.add("state"); - openapiFields.add("account"); - openapiFields.add("change"); - openapiFields.add("operation"); - openapiFields.add("changeLog"); - openapiFields.add("links"); - openapiFields.add("type"); - openapiFields.add("scope"); - openapiFields.add("location"); + openapiFields = new HashSet(Arrays.asList("href", "uuid", "name", "state", "account", "change", "operation", "changeLog", "links", "type", "scope", "location")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("uuid"); + openapiRequiredFields = new HashSet(Arrays.asList("uuid")); } /** @@ -485,25 +474,25 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!SimplifiedNetwork.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in SimplifiedNetwork is not found in the empty JSON string", SimplifiedNetwork.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SimplifiedNetwork is not found in the empty JSON string", SimplifiedNetwork.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : SimplifiedNetwork.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } if (!jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } // validate the optional field `state` if (jsonObj.get("state") != null && !jsonObj.get("state").isJsonNull()) { @@ -530,7 +519,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraylinks != null) { // ensure the json data is an array if (!jsonObj.get("links").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `links` to be an array in the JSON string but got `%s`", jsonObj.get("links").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `links` to be an array in the JSON string but got `%s`", jsonObj.get("links").toString())); } // validate the optional field `links` (array) @@ -610,7 +599,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SimplifiedNetworkChange.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SimplifiedNetworkChange.java index bcb091c6..5b4c2a82 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SimplifiedNetworkChange.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SimplifiedNetworkChange.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.NetworkChangeType; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Current state of latest network change */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class SimplifiedNetworkChange { public static final String SERIALIZED_NAME_HREF = "href"; @SerializedName(SERIALIZED_NAME_HREF) @@ -219,13 +221,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("href"); - openapiFields.add("uuid"); - openapiFields.add("type"); + openapiFields = new HashSet(Arrays.asList("href", "uuid", "type")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -237,15 +236,15 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!SimplifiedNetworkChange.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in SimplifiedNetworkChange is not found in the empty JSON string", SimplifiedNetworkChange.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SimplifiedNetworkChange is not found in the empty JSON string", SimplifiedNetworkChange.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } // validate the optional field `type` if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { @@ -310,7 +309,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SimplifiedNotification.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SimplifiedNotification.java index 58bce6c1..ac80a746 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SimplifiedNotification.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SimplifiedNotification.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * SimplifiedNotification */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class SimplifiedNotification { /** * Notification Type @@ -321,16 +323,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("type"); - openapiFields.add("sendInterval"); - openapiFields.add("emails"); - openapiFields.add("registeredUsers"); + openapiFields = new HashSet(Arrays.asList("type", "sendInterval", "emails", "registeredUsers")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("type"); - openapiRequiredFields.add("emails"); + openapiRequiredFields = new HashSet(Arrays.asList("type", "emails")); } /** @@ -342,34 +338,34 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!SimplifiedNotification.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in SimplifiedNotification is not found in the empty JSON string", SimplifiedNotification.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SimplifiedNotification is not found in the empty JSON string", SimplifiedNotification.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : SimplifiedNotification.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the required field `type` TypeEnum.validateJsonElement(jsonObj.get("type")); if ((jsonObj.get("sendInterval") != null && !jsonObj.get("sendInterval").isJsonNull()) && !jsonObj.get("sendInterval").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `sendInterval` to be a primitive type in the JSON string but got `%s`", jsonObj.get("sendInterval").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `sendInterval` to be a primitive type in the JSON string but got `%s`", jsonObj.get("sendInterval").toString())); } // ensure the required json array is present if (jsonObj.get("emails") == null) { throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); } else if (!jsonObj.get("emails").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `emails` to be an array in the JSON string but got `%s`", jsonObj.get("emails").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `emails` to be an array in the JSON string but got `%s`", jsonObj.get("emails").toString())); } // ensure the optional json data is an array if present if (jsonObj.get("registeredUsers") != null && !jsonObj.get("registeredUsers").isJsonNull() && !jsonObj.get("registeredUsers").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `registeredUsers` to be an array in the JSON string but got `%s`", jsonObj.get("registeredUsers").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `registeredUsers` to be an array in the JSON string but got `%s`", jsonObj.get("registeredUsers").toString())); } } @@ -430,7 +426,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SimplifiedPort.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SimplifiedPort.java index fa58a6b2..ff068d9e 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SimplifiedPort.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SimplifiedPort.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.ModelPackage; import com.equinix.sdk.fabricv4.model.PhysicalPort; import com.equinix.sdk.fabricv4.model.PortAdditionalInfo; @@ -61,13 +62,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Port specification */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class SimplifiedPort { public static final String SERIALIZED_NAME_HREF = "href"; @SerializedName(SERIALIZED_NAME_HREF) @@ -1017,40 +1019,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("href"); - openapiFields.add("type"); - openapiFields.add("id"); - openapiFields.add("uuid"); - openapiFields.add("name"); - openapiFields.add("description"); - openapiFields.add("physicalPortsSpeed"); - openapiFields.add("connectionsCount"); - openapiFields.add("project"); - openapiFields.add("state"); - openapiFields.add("operation"); - openapiFields.add("account"); - openapiFields.add("serviceType"); - openapiFields.add("serviceCode"); - openapiFields.add("bandwidth"); - openapiFields.add("availableBandwidth"); - openapiFields.add("usedBandwidth"); - openapiFields.add("location"); - openapiFields.add("device"); - openapiFields.add("interface"); - openapiFields.add("tether"); - openapiFields.add("demarcationPoint"); - openapiFields.add("redundancy"); - openapiFields.add("encapsulation"); - openapiFields.add("lagEnabled"); - openapiFields.add("package"); - openapiFields.add("settings"); - openapiFields.add("physicalPortQuantity"); - openapiFields.add("additionalInfo"); - openapiFields.add("physicalPorts"); + openapiFields = new HashSet(Arrays.asList("href", "type", "id", "uuid", "name", "description", "physicalPortsSpeed", "connectionsCount", "project", "state", "operation", "account", "serviceType", "serviceCode", "bandwidth", "availableBandwidth", "usedBandwidth", "location", "device", "interface", "tether", "demarcationPoint", "redundancy", "encapsulation", "lagEnabled", "package", "settings", "physicalPortQuantity", "additionalInfo", "physicalPorts")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -1062,25 +1034,25 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!SimplifiedPort.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in SimplifiedPort is not found in the empty JSON string", SimplifiedPort.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SimplifiedPort is not found in the empty JSON string", SimplifiedPort.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } // validate the optional field `type` if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { PortType.validateJsonElement(jsonObj.get("type")); } if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); } // validate the optional field `project` if (jsonObj.get("project") != null && !jsonObj.get("project").isJsonNull()) { @@ -1099,7 +1071,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti SimplifiedAccount.validateJsonElement(jsonObj.get("account")); } if ((jsonObj.get("serviceType") != null && !jsonObj.get("serviceType").isJsonNull()) && !jsonObj.get("serviceType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `serviceType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("serviceType").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `serviceType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("serviceType").toString())); } // validate the optional field `serviceType` if (jsonObj.get("serviceType") != null && !jsonObj.get("serviceType").isJsonNull()) { @@ -1150,7 +1122,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayadditionalInfo != null) { // ensure the json data is an array if (!jsonObj.get("additionalInfo").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `additionalInfo` to be an array in the JSON string but got `%s`", jsonObj.get("additionalInfo").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `additionalInfo` to be an array in the JSON string but got `%s`", jsonObj.get("additionalInfo").toString())); } // validate the optional field `additionalInfo` (array) @@ -1164,7 +1136,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayphysicalPorts != null) { // ensure the json data is an array if (!jsonObj.get("physicalPorts").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `physicalPorts` to be an array in the JSON string but got `%s`", jsonObj.get("physicalPorts").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `physicalPorts` to be an array in the JSON string but got `%s`", jsonObj.get("physicalPorts").toString())); } // validate the optional field `physicalPorts` (array) @@ -1232,7 +1204,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SimplifiedServiceProfile.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SimplifiedServiceProfile.java index a22adc84..86f72f7b 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SimplifiedServiceProfile.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SimplifiedServiceProfile.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.CustomField; import com.equinix.sdk.fabricv4.model.MarketingInfo; import com.equinix.sdk.fabricv4.model.ServiceMetro; @@ -53,13 +54,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Service Profile is a software definition for a named provider service and it's network connectivity requirements. This includes the basic marketing information and one or more sets of access points (a set per each access point type) fulfilling the provider service. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class SimplifiedServiceProfile { public static final String SERIALIZED_NAME_HREF = "href"; @SerializedName(SERIALIZED_NAME_HREF) @@ -657,27 +659,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("href"); - openapiFields.add("type"); - openapiFields.add("name"); - openapiFields.add("uuid"); - openapiFields.add("description"); - openapiFields.add("notifications"); - openapiFields.add("tags"); - openapiFields.add("visibility"); - openapiFields.add("allowedEmails"); - openapiFields.add("accessPointTypeConfigs"); - openapiFields.add("customFields"); - openapiFields.add("marketingInfo"); - openapiFields.add("ports"); - openapiFields.add("virtualDevices"); - openapiFields.add("metros"); - openapiFields.add("selfProfile"); - openapiFields.add("projectId"); + openapiFields = new HashSet(Arrays.asList("href", "type", "name", "uuid", "description", "notifications", "tags", "visibility", "allowedEmails", "accessPointTypeConfigs", "customFields", "marketingInfo", "ports", "virtualDevices", "metros", "selfProfile", "projectId")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -689,32 +674,32 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!SimplifiedServiceProfile.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in SimplifiedServiceProfile is not found in the empty JSON string", SimplifiedServiceProfile.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SimplifiedServiceProfile is not found in the empty JSON string", SimplifiedServiceProfile.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } // validate the optional field `type` if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { ServiceProfileTypeEnum.validateJsonElement(jsonObj.get("type")); } if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); } if (jsonObj.get("notifications") != null && !jsonObj.get("notifications").isJsonNull()) { JsonArray jsonArraynotifications = jsonObj.getAsJsonArray("notifications"); if (jsonArraynotifications != null) { // ensure the json data is an array if (!jsonObj.get("notifications").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `notifications` to be an array in the JSON string but got `%s`", jsonObj.get("notifications").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `notifications` to be an array in the JSON string but got `%s`", jsonObj.get("notifications").toString())); } // validate the optional field `notifications` (array) @@ -725,7 +710,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } // ensure the optional json data is an array if present if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull() && !jsonObj.get("tags").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString())); } // validate the optional field `visibility` if (jsonObj.get("visibility") != null && !jsonObj.get("visibility").isJsonNull()) { @@ -733,14 +718,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } // ensure the optional json data is an array if present if (jsonObj.get("allowedEmails") != null && !jsonObj.get("allowedEmails").isJsonNull() && !jsonObj.get("allowedEmails").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `allowedEmails` to be an array in the JSON string but got `%s`", jsonObj.get("allowedEmails").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `allowedEmails` to be an array in the JSON string but got `%s`", jsonObj.get("allowedEmails").toString())); } if (jsonObj.get("accessPointTypeConfigs") != null && !jsonObj.get("accessPointTypeConfigs").isJsonNull()) { JsonArray jsonArrayaccessPointTypeConfigs = jsonObj.getAsJsonArray("accessPointTypeConfigs"); if (jsonArrayaccessPointTypeConfigs != null) { // ensure the json data is an array if (!jsonObj.get("accessPointTypeConfigs").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `accessPointTypeConfigs` to be an array in the JSON string but got `%s`", jsonObj.get("accessPointTypeConfigs").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `accessPointTypeConfigs` to be an array in the JSON string but got `%s`", jsonObj.get("accessPointTypeConfigs").toString())); } // validate the optional field `accessPointTypeConfigs` (array) @@ -754,7 +739,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraycustomFields != null) { // ensure the json data is an array if (!jsonObj.get("customFields").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `customFields` to be an array in the JSON string but got `%s`", jsonObj.get("customFields").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `customFields` to be an array in the JSON string but got `%s`", jsonObj.get("customFields").toString())); } // validate the optional field `customFields` (array) @@ -772,7 +757,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayports != null) { // ensure the json data is an array if (!jsonObj.get("ports").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `ports` to be an array in the JSON string but got `%s`", jsonObj.get("ports").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `ports` to be an array in the JSON string but got `%s`", jsonObj.get("ports").toString())); } // validate the optional field `ports` (array) @@ -786,7 +771,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayvirtualDevices != null) { // ensure the json data is an array if (!jsonObj.get("virtualDevices").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `virtualDevices` to be an array in the JSON string but got `%s`", jsonObj.get("virtualDevices").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `virtualDevices` to be an array in the JSON string but got `%s`", jsonObj.get("virtualDevices").toString())); } // validate the optional field `virtualDevices` (array) @@ -800,7 +785,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraymetros != null) { // ensure the json data is an array if (!jsonObj.get("metros").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `metros` to be an array in the JSON string but got `%s`", jsonObj.get("metros").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `metros` to be an array in the JSON string but got `%s`", jsonObj.get("metros").toString())); } // validate the optional field `metros` (array) @@ -810,7 +795,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } if ((jsonObj.get("projectId") != null && !jsonObj.get("projectId").isJsonNull()) && !jsonObj.get("projectId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `projectId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("projectId").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `projectId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("projectId").toString())); } } @@ -871,7 +856,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SimplifiedTokenNetwork.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SimplifiedTokenNetwork.java index a5523ee2..278dbd07 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SimplifiedTokenNetwork.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SimplifiedTokenNetwork.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.SimplifiedLocation; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * SimplifiedTokenNetwork */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class SimplifiedTokenNetwork { public static final String SERIALIZED_NAME_HREF = "href"; @SerializedName(SERIALIZED_NAME_HREF) @@ -410,16 +412,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("href"); - openapiFields.add("uuid"); - openapiFields.add("type"); - openapiFields.add("name"); - openapiFields.add("scope"); - openapiFields.add("location"); + openapiFields = new HashSet(Arrays.asList("href", "uuid", "type", "name", "scope", "location")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -431,28 +427,28 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!SimplifiedTokenNetwork.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in SimplifiedTokenNetwork is not found in the empty JSON string", SimplifiedTokenNetwork.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SimplifiedTokenNetwork is not found in the empty JSON string", SimplifiedTokenNetwork.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the optional field `type` if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { TypeEnum.validateJsonElement(jsonObj.get("type")); } if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } if ((jsonObj.get("scope") != null && !jsonObj.get("scope").isJsonNull()) && !jsonObj.get("scope").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `scope` to be a primitive type in the JSON string but got `%s`", jsonObj.get("scope").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `scope` to be a primitive type in the JSON string but got `%s`", jsonObj.get("scope").toString())); } // validate the optional field `scope` if (jsonObj.get("scope") != null && !jsonObj.get("scope").isJsonNull()) { @@ -521,7 +517,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SimplifiedVirtualDevice.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SimplifiedVirtualDevice.java index 9b0f21b4..f7b6fc52 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SimplifiedVirtualDevice.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SimplifiedVirtualDevice.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.SimplifiedAccount; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * SimplifiedVirtualDevice */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class SimplifiedVirtualDevice { public static final String SERIALIZED_NAME_HREF = "href"; @SerializedName(SERIALIZED_NAME_HREF) @@ -348,16 +350,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("href"); - openapiFields.add("uuid"); - openapiFields.add("name"); - openapiFields.add("type"); - openapiFields.add("account"); - openapiFields.add("cluster"); + openapiFields = new HashSet(Arrays.asList("href", "uuid", "name", "type", "account", "cluster")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -369,21 +365,21 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!SimplifiedVirtualDevice.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in SimplifiedVirtualDevice is not found in the empty JSON string", SimplifiedVirtualDevice.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SimplifiedVirtualDevice is not found in the empty JSON string", SimplifiedVirtualDevice.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the optional field `type` if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { @@ -394,7 +390,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti SimplifiedAccount.validateJsonElement(jsonObj.get("account")); } if ((jsonObj.get("cluster") != null && !jsonObj.get("cluster").isJsonNull()) && !jsonObj.get("cluster").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `cluster` to be a primitive type in the JSON string but got `%s`", jsonObj.get("cluster").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `cluster` to be a primitive type in the JSON string but got `%s`", jsonObj.get("cluster").toString())); } } @@ -455,7 +451,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SortBy.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SortBy.java index ded613ea..0395c099 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SortBy.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SortBy.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SortCriteria.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SortCriteria.java index 96d350ad..1532f109 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SortCriteria.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SortCriteria.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.SortBy; import com.equinix.sdk.fabricv4.model.SortDirection; import com.google.gson.TypeAdapter; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * SortCriteria */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class SortCriteria { public static final String SERIALIZED_NAME_DIRECTION = "direction"; @SerializedName(SERIALIZED_NAME_DIRECTION) @@ -193,12 +195,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("direction"); - openapiFields.add("property"); + openapiFields = new HashSet(Arrays.asList("direction", "property")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -210,7 +210,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!SortCriteria.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in SortCriteria is not found in the empty JSON string", SortCriteria.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SortCriteria is not found in the empty JSON string", SortCriteria.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -281,7 +281,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SortCriteriaResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SortCriteriaResponse.java index 227e7f5e..d0d01a11 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SortCriteriaResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SortCriteriaResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.SortBy; import com.equinix.sdk.fabricv4.model.SortDirection; import com.google.gson.TypeAdapter; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * SortCriteriaResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class SortCriteriaResponse { public static final String SERIALIZED_NAME_DIRECTION = "direction"; @SerializedName(SERIALIZED_NAME_DIRECTION) @@ -193,12 +195,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("direction"); - openapiFields.add("property"); + openapiFields = new HashSet(Arrays.asList("direction", "property")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -210,7 +210,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!SortCriteriaResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in SortCriteriaResponse is not found in the empty JSON string", SortCriteriaResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SortCriteriaResponse is not found in the empty JSON string", SortCriteriaResponse.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -281,7 +281,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SortDirection.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SortDirection.java index e41a77ad..898f044e 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SortDirection.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SortDirection.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SortItem.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SortItem.java index 7da97b72..d719dd69 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SortItem.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SortItem.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * SortItem */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class SortItem { /** * Possible field names to use on sorting @@ -309,12 +311,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("property"); - openapiFields.add("direction"); + openapiFields = new HashSet(Arrays.asList("property", "direction")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -326,19 +326,19 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!SortItem.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in SortItem is not found in the empty JSON string", SortItem.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SortItem is not found in the empty JSON string", SortItem.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("property") != null && !jsonObj.get("property").isJsonNull()) && !jsonObj.get("property").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `property` to be a primitive type in the JSON string but got `%s`", jsonObj.get("property").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `property` to be a primitive type in the JSON string but got `%s`", jsonObj.get("property").toString())); } // validate the optional field `property` if (jsonObj.get("property") != null && !jsonObj.get("property").isJsonNull()) { PropertyEnum.validateJsonElement(jsonObj.get("property")); } if ((jsonObj.get("direction") != null && !jsonObj.get("direction").isJsonNull()) && !jsonObj.get("direction").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `direction` to be a primitive type in the JSON string but got `%s`", jsonObj.get("direction").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `direction` to be a primitive type in the JSON string but got `%s`", jsonObj.get("direction").toString())); } // validate the optional field `direction` if (jsonObj.get("direction") != null && !jsonObj.get("direction").isJsonNull()) { @@ -403,7 +403,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Statistics.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Statistics.java index c95d7140..767a15f2 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Statistics.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Statistics.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.BandwidthUtilization; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * This API provides service-level traffic metrics so that you can view access and gather key information required to manage service subscription sizing and capacity. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class Statistics { public static final String SERIALIZED_NAME_START_DATE_TIME = "startDateTime"; @SerializedName(SERIALIZED_NAME_START_DATE_TIME) @@ -297,14 +299,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("startDateTime"); - openapiFields.add("endDateTime"); - openapiFields.add("viewPoint"); - openapiFields.add("bandwidthUtilization"); + openapiFields = new HashSet(Arrays.asList("startDateTime", "endDateTime", "viewPoint", "bandwidthUtilization")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -316,12 +314,12 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!Statistics.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in Statistics is not found in the empty JSON string", Statistics.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in Statistics is not found in the empty JSON string", Statistics.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("viewPoint") != null && !jsonObj.get("viewPoint").isJsonNull()) && !jsonObj.get("viewPoint").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `viewPoint` to be a primitive type in the JSON string but got `%s`", jsonObj.get("viewPoint").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `viewPoint` to be a primitive type in the JSON string but got `%s`", jsonObj.get("viewPoint").toString())); } // validate the optional field `viewPoint` if (jsonObj.get("viewPoint") != null && !jsonObj.get("viewPoint").isJsonNull()) { @@ -390,7 +388,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Stream.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Stream.java index 064e4999..dd113188 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Stream.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/Stream.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Changelog; import com.equinix.sdk.fabricv4.model.Project; import com.google.gson.TypeAdapter; @@ -44,13 +45,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Stream object */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class Stream { public static final String SERIALIZED_NAME_HREF = "href"; @SerializedName(SERIALIZED_NAME_HREF) @@ -538,21 +540,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("href"); - openapiFields.add("uuid"); - openapiFields.add("type"); - openapiFields.add("name"); - openapiFields.add("description"); - openapiFields.add("project"); - openapiFields.add("state"); - openapiFields.add("assetsCount"); - openapiFields.add("streamSubscriptionsCount"); - openapiFields.add("alertRulesCount"); - openapiFields.add("changeLog"); + openapiFields = new HashSet(Arrays.asList("href", "uuid", "type", "name", "description", "project", "state", "assetsCount", "streamSubscriptionsCount", "alertRulesCount", "changeLog")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -564,35 +555,35 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!Stream.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in Stream is not found in the empty JSON string", Stream.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in Stream is not found in the empty JSON string", Stream.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the optional field `type` if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { TypeEnum.validateJsonElement(jsonObj.get("type")); } if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); } // validate the optional field `project` if (jsonObj.get("project") != null && !jsonObj.get("project").isJsonNull()) { Project.validateJsonElement(jsonObj.get("project")); } if ((jsonObj.get("state") != null && !jsonObj.get("state").isJsonNull()) && !jsonObj.get("state").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `state` to be a primitive type in the JSON string but got `%s`", jsonObj.get("state").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `state` to be a primitive type in the JSON string but got `%s`", jsonObj.get("state").toString())); } // validate the optional field `state` if (jsonObj.get("state") != null && !jsonObj.get("state").isJsonNull()) { @@ -661,7 +652,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamAlertRule.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamAlertRule.java index 670859f5..c055fe45 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamAlertRule.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamAlertRule.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Changelog; import com.equinix.sdk.fabricv4.model.DetectionMethodResponse; import com.equinix.sdk.fabricv4.model.MetricSelectorResponse; @@ -46,13 +47,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Stream object */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class StreamAlertRule { public static final String SERIALIZED_NAME_HREF = "href"; @SerializedName(SERIALIZED_NAME_HREF) @@ -532,21 +534,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("href"); - openapiFields.add("uuid"); - openapiFields.add("type"); - openapiFields.add("name"); - openapiFields.add("description"); - openapiFields.add("state"); - openapiFields.add("enabled"); - openapiFields.add("metricSelector"); - openapiFields.add("resourceSelector"); - openapiFields.add("detectionMethod"); - openapiFields.add("changeLog"); + openapiFields = new HashSet(Arrays.asList("href", "uuid", "type", "name", "description", "state", "enabled", "metricSelector", "resourceSelector", "detectionMethod", "changeLog")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -558,31 +549,31 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!StreamAlertRule.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in StreamAlertRule is not found in the empty JSON string", StreamAlertRule.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in StreamAlertRule is not found in the empty JSON string", StreamAlertRule.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the optional field `type` if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { TypeEnum.validateJsonElement(jsonObj.get("type")); } if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); } if ((jsonObj.get("state") != null && !jsonObj.get("state").isJsonNull()) && !jsonObj.get("state").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `state` to be a primitive type in the JSON string but got `%s`", jsonObj.get("state").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `state` to be a primitive type in the JSON string but got `%s`", jsonObj.get("state").toString())); } // validate the optional field `state` if (jsonObj.get("state") != null && !jsonObj.get("state").isJsonNull()) { @@ -663,7 +654,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamAsset.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamAsset.java index e684a3ea..3e4e9739 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamAsset.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamAsset.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Stream object */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class StreamAsset { public static final String SERIALIZED_NAME_HREF = "href"; @SerializedName(SERIALIZED_NAME_HREF) @@ -392,15 +394,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("href"); - openapiFields.add("uuid"); - openapiFields.add("type"); - openapiFields.add("metricsEnabled"); - openapiFields.add("attachmentStatus"); + openapiFields = new HashSet(Arrays.asList("href", "uuid", "type", "metricsEnabled", "attachmentStatus")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -412,25 +409,25 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!StreamAsset.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in StreamAsset is not found in the empty JSON string", StreamAsset.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in StreamAsset is not found in the empty JSON string", StreamAsset.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the optional field `type` if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { TypeEnum.validateJsonElement(jsonObj.get("type")); } if ((jsonObj.get("attachmentStatus") != null && !jsonObj.get("attachmentStatus").isJsonNull()) && !jsonObj.get("attachmentStatus").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `attachmentStatus` to be a primitive type in the JSON string but got `%s`", jsonObj.get("attachmentStatus").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `attachmentStatus` to be a primitive type in the JSON string but got `%s`", jsonObj.get("attachmentStatus").toString())); } // validate the optional field `attachmentStatus` if (jsonObj.get("attachmentStatus") != null && !jsonObj.get("attachmentStatus").isJsonNull()) { @@ -495,7 +492,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamAssetFilter.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamAssetFilter.java index 0e479f4b..077c8877 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamAssetFilter.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamAssetFilter.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.StreamAssetOrFilter; import com.equinix.sdk.fabricv4.model.StreamAssetSimpleExpression; import com.google.gson.TypeAdapter; @@ -36,6 +37,7 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import java.util.Locale; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -59,7 +61,7 @@ import com.equinix.sdk.fabricv4.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class StreamAssetFilter extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(StreamAssetFilter.class.getName()); @@ -115,7 +117,7 @@ public StreamAssetFilter read(JsonReader in) throws IOException { return ret; } catch (Exception e) { // deserialization failed, continue - errorMessages.add(String.format("Deserialization for StreamAssetSimpleExpression failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for StreamAssetSimpleExpression failed with `%s`.", e.getMessage())); log.log(Level.FINER, "Input data does not match schema 'StreamAssetSimpleExpression'", e); } // deserialize StreamAssetOrFilter @@ -128,11 +130,11 @@ public StreamAssetFilter read(JsonReader in) throws IOException { return ret; } catch (Exception e) { // deserialization failed, continue - errorMessages.add(String.format("Deserialization for StreamAssetOrFilter failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for StreamAssetOrFilter failed with `%s`.", e.getMessage())); log.log(Level.FINER, "Input data does not match schema 'StreamAssetOrFilter'", e); } - throw new IOException(String.format("Failed deserialization for StreamAssetFilter: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); + throw new IOException(String.format(Locale.ROOT, "Failed deserialization for StreamAssetFilter: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); } }.nullSafe(); } @@ -230,7 +232,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti StreamAssetSimpleExpression.validateJsonElement(jsonElement); return; } catch (Exception e) { - errorMessages.add(String.format("Deserialization for StreamAssetSimpleExpression failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for StreamAssetSimpleExpression failed with `%s`.", e.getMessage())); // continue to the next one } // validate the json string with StreamAssetOrFilter @@ -238,10 +240,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti StreamAssetOrFilter.validateJsonElement(jsonElement); return; } catch (Exception e) { - errorMessages.add(String.format("Deserialization for StreamAssetOrFilter failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for StreamAssetOrFilter failed with `%s`.", e.getMessage())); // continue to the next one } - throw new IOException(String.format("The JSON string is invalid for StreamAssetFilter with anyOf schemas: StreamAssetOrFilter, StreamAssetSimpleExpression. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); + throw new IOException(String.format(Locale.ROOT, "The JSON string is invalid for StreamAssetFilter with anyOf schemas: StreamAssetOrFilter, StreamAssetSimpleExpression. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); } /** diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamAssetFilters.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamAssetFilters.java index 515abbb1..417fe77e 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamAssetFilters.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamAssetFilters.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.StreamAssetFilter; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * StreamAssetFilters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class StreamAssetFilters { public static final String SERIALIZED_NAME_AND = "and"; @SerializedName(SERIALIZED_NAME_AND) @@ -176,11 +178,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("and"); + openapiFields = new HashSet(Arrays.asList("and")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -192,7 +193,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!StreamAssetFilters.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in StreamAssetFilters is not found in the empty JSON string", StreamAssetFilters.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in StreamAssetFilters is not found in the empty JSON string", StreamAssetFilters.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -201,7 +202,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayand != null) { // ensure the json data is an array if (!jsonObj.get("and").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `and` to be an array in the JSON string but got `%s`", jsonObj.get("and").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `and` to be an array in the JSON string but got `%s`", jsonObj.get("and").toString())); } // validate the optional field `and` (array) @@ -269,7 +270,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamAssetOrFilter.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamAssetOrFilter.java index dfae528e..b61a15c6 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamAssetOrFilter.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamAssetOrFilter.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.StreamAssetSimpleExpression; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * StreamAssetOrFilter */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class StreamAssetOrFilter { public static final String SERIALIZED_NAME_OR = "or"; @SerializedName(SERIALIZED_NAME_OR) @@ -176,11 +178,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("or"); + openapiFields = new HashSet(Arrays.asList("or")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -192,7 +193,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!StreamAssetOrFilter.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in StreamAssetOrFilter is not found in the empty JSON string", StreamAssetOrFilter.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in StreamAssetOrFilter is not found in the empty JSON string", StreamAssetOrFilter.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -201,7 +202,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayor != null) { // ensure the json data is an array if (!jsonObj.get("or").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `or` to be an array in the JSON string but got `%s`", jsonObj.get("or").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `or` to be an array in the JSON string but got `%s`", jsonObj.get("or").toString())); } // validate the optional field `or` (array) @@ -269,7 +270,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamAssetPutRequest.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamAssetPutRequest.java index 3ee58684..52765179 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamAssetPutRequest.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamAssetPutRequest.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Update Stream Asset */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class StreamAssetPutRequest { public static final String SERIALIZED_NAME_METRICS_ENABLED = "metricsEnabled"; @SerializedName(SERIALIZED_NAME_METRICS_ENABLED) @@ -165,11 +167,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("metricsEnabled"); + openapiFields = new HashSet(Arrays.asList("metricsEnabled")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -181,7 +182,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!StreamAssetPutRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in StreamAssetPutRequest is not found in the empty JSON string", StreamAssetPutRequest.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in StreamAssetPutRequest is not found in the empty JSON string", StreamAssetPutRequest.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -244,7 +245,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamAssetSearchRequest.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamAssetSearchRequest.java index c48df01a..6e70ed3e 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamAssetSearchRequest.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamAssetSearchRequest.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.PaginationRequest; import com.equinix.sdk.fabricv4.model.StreamAssetFilters; import com.equinix.sdk.fabricv4.model.StreamAssetSortCriteria; @@ -45,13 +46,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Search requests containing criteria */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class StreamAssetSearchRequest { public static final String SERIALIZED_NAME_FILTER = "filter"; @SerializedName(SERIALIZED_NAME_FILTER) @@ -230,14 +232,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("filter"); - openapiFields.add("pagination"); - openapiFields.add("sort"); + openapiFields = new HashSet(Arrays.asList("filter", "pagination", "sort")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("filter"); + openapiRequiredFields = new HashSet(Arrays.asList("filter")); } /** @@ -249,14 +247,14 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!StreamAssetSearchRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in StreamAssetSearchRequest is not found in the empty JSON string", StreamAssetSearchRequest.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in StreamAssetSearchRequest is not found in the empty JSON string", StreamAssetSearchRequest.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : StreamAssetSearchRequest.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -271,7 +269,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraysort != null) { // ensure the json data is an array if (!jsonObj.get("sort").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `sort` to be an array in the JSON string but got `%s`", jsonObj.get("sort").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `sort` to be an array in the JSON string but got `%s`", jsonObj.get("sort").toString())); } // validate the optional field `sort` (array) @@ -339,7 +337,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamAssetSimpleExpression.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamAssetSimpleExpression.java index f79de57d..f8b5a2cd 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamAssetSimpleExpression.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamAssetSimpleExpression.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * StreamAssetSimpleExpression */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class StreamAssetSimpleExpression { public static final String SERIALIZED_NAME_PROPERTY = "property"; @SerializedName(SERIALIZED_NAME_PROPERTY) @@ -227,13 +229,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("property"); - openapiFields.add("operator"); - openapiFields.add("values"); + openapiFields = new HashSet(Arrays.asList("property", "operator", "values")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -245,19 +244,19 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!StreamAssetSimpleExpression.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in StreamAssetSimpleExpression is not found in the empty JSON string", StreamAssetSimpleExpression.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in StreamAssetSimpleExpression is not found in the empty JSON string", StreamAssetSimpleExpression.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("property") != null && !jsonObj.get("property").isJsonNull()) && !jsonObj.get("property").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `property` to be a primitive type in the JSON string but got `%s`", jsonObj.get("property").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `property` to be a primitive type in the JSON string but got `%s`", jsonObj.get("property").toString())); } if ((jsonObj.get("operator") != null && !jsonObj.get("operator").isJsonNull()) && !jsonObj.get("operator").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `operator` to be a primitive type in the JSON string but got `%s`", jsonObj.get("operator").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `operator` to be a primitive type in the JSON string but got `%s`", jsonObj.get("operator").toString())); } // ensure the optional json data is an array if present if (jsonObj.get("values") != null && !jsonObj.get("values").isJsonNull() && !jsonObj.get("values").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); } } @@ -318,7 +317,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamAssetSortBy.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamAssetSortBy.java index 2cabf6b6..372eb061 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamAssetSortBy.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamAssetSortBy.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamAssetSortCriteria.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamAssetSortCriteria.java index 4acb5dec..e9789626 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamAssetSortCriteria.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamAssetSortCriteria.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.StreamAssetSortBy; import com.equinix.sdk.fabricv4.model.StreamAssetSortDirection; import com.google.gson.TypeAdapter; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * StreamAssetSortCriteria */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class StreamAssetSortCriteria { public static final String SERIALIZED_NAME_DIRECTION = "direction"; @SerializedName(SERIALIZED_NAME_DIRECTION) @@ -193,12 +195,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("direction"); - openapiFields.add("property"); + openapiFields = new HashSet(Arrays.asList("direction", "property")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -210,7 +210,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!StreamAssetSortCriteria.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in StreamAssetSortCriteria is not found in the empty JSON string", StreamAssetSortCriteria.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in StreamAssetSortCriteria is not found in the empty JSON string", StreamAssetSortCriteria.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -281,7 +281,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamAssetSortDirection.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamAssetSortDirection.java index d7f0fad0..89478f18 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamAssetSortDirection.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamAssetSortDirection.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamFilter.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamFilter.java index cfba0d76..71e5d1a0 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamFilter.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamFilter.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.StreamFilterOrFilter; import com.equinix.sdk.fabricv4.model.StreamFilterSimpleExpression; import com.google.gson.TypeAdapter; @@ -36,6 +37,7 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import java.util.Locale; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -59,7 +61,7 @@ import com.equinix.sdk.fabricv4.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class StreamFilter extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(StreamFilter.class.getName()); @@ -115,7 +117,7 @@ public StreamFilter read(JsonReader in) throws IOException { return ret; } catch (Exception e) { // deserialization failed, continue - errorMessages.add(String.format("Deserialization for StreamFilterSimpleExpression failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for StreamFilterSimpleExpression failed with `%s`.", e.getMessage())); log.log(Level.FINER, "Input data does not match schema 'StreamFilterSimpleExpression'", e); } // deserialize StreamFilterOrFilter @@ -128,11 +130,11 @@ public StreamFilter read(JsonReader in) throws IOException { return ret; } catch (Exception e) { // deserialization failed, continue - errorMessages.add(String.format("Deserialization for StreamFilterOrFilter failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for StreamFilterOrFilter failed with `%s`.", e.getMessage())); log.log(Level.FINER, "Input data does not match schema 'StreamFilterOrFilter'", e); } - throw new IOException(String.format("Failed deserialization for StreamFilter: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); + throw new IOException(String.format(Locale.ROOT, "Failed deserialization for StreamFilter: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); } }.nullSafe(); } @@ -230,7 +232,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti StreamFilterSimpleExpression.validateJsonElement(jsonElement); return; } catch (Exception e) { - errorMessages.add(String.format("Deserialization for StreamFilterSimpleExpression failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for StreamFilterSimpleExpression failed with `%s`.", e.getMessage())); // continue to the next one } // validate the json string with StreamFilterOrFilter @@ -238,10 +240,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti StreamFilterOrFilter.validateJsonElement(jsonElement); return; } catch (Exception e) { - errorMessages.add(String.format("Deserialization for StreamFilterOrFilter failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for StreamFilterOrFilter failed with `%s`.", e.getMessage())); // continue to the next one } - throw new IOException(String.format("The JSON string is invalid for StreamFilter with anyOf schemas: StreamFilterOrFilter, StreamFilterSimpleExpression. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); + throw new IOException(String.format(Locale.ROOT, "The JSON string is invalid for StreamFilter with anyOf schemas: StreamFilterOrFilter, StreamFilterSimpleExpression. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); } /** diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamFilterOrFilter.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamFilterOrFilter.java index b1812de0..d61f5739 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamFilterOrFilter.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamFilterOrFilter.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.StreamFilterSimpleExpression; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * StreamFilterOrFilter */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class StreamFilterOrFilter { public static final String SERIALIZED_NAME_OR = "or"; @SerializedName(SERIALIZED_NAME_OR) @@ -176,11 +178,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("or"); + openapiFields = new HashSet(Arrays.asList("or")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -192,7 +193,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!StreamFilterOrFilter.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in StreamFilterOrFilter is not found in the empty JSON string", StreamFilterOrFilter.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in StreamFilterOrFilter is not found in the empty JSON string", StreamFilterOrFilter.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -201,7 +202,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayor != null) { // ensure the json data is an array if (!jsonObj.get("or").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `or` to be an array in the JSON string but got `%s`", jsonObj.get("or").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `or` to be an array in the JSON string but got `%s`", jsonObj.get("or").toString())); } // validate the optional field `or` (array) @@ -269,7 +270,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamFilterSimpleExpression.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamFilterSimpleExpression.java index 3d72c950..16f84304 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamFilterSimpleExpression.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamFilterSimpleExpression.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * StreamFilterSimpleExpression */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class StreamFilterSimpleExpression { public static final String SERIALIZED_NAME_PROPERTY = "property"; @SerializedName(SERIALIZED_NAME_PROPERTY) @@ -227,13 +229,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("property"); - openapiFields.add("operator"); - openapiFields.add("values"); + openapiFields = new HashSet(Arrays.asList("property", "operator", "values")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -245,19 +244,19 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!StreamFilterSimpleExpression.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in StreamFilterSimpleExpression is not found in the empty JSON string", StreamFilterSimpleExpression.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in StreamFilterSimpleExpression is not found in the empty JSON string", StreamFilterSimpleExpression.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("property") != null && !jsonObj.get("property").isJsonNull()) && !jsonObj.get("property").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `property` to be a primitive type in the JSON string but got `%s`", jsonObj.get("property").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `property` to be a primitive type in the JSON string but got `%s`", jsonObj.get("property").toString())); } if ((jsonObj.get("operator") != null && !jsonObj.get("operator").isJsonNull()) && !jsonObj.get("operator").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `operator` to be a primitive type in the JSON string but got `%s`", jsonObj.get("operator").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `operator` to be a primitive type in the JSON string but got `%s`", jsonObj.get("operator").toString())); } // ensure the optional json data is an array if present if (jsonObj.get("values") != null && !jsonObj.get("values").isJsonNull() && !jsonObj.get("values").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); } } @@ -318,7 +317,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamPostRequest.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamPostRequest.java index e0113073..e940293d 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamPostRequest.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamPostRequest.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Project; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Create Stream */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class StreamPostRequest { /** * Gets or Sets type @@ -294,17 +296,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("type"); - openapiFields.add("name"); - openapiFields.add("description"); - openapiFields.add("project"); + openapiFields = new HashSet(Arrays.asList("type", "name", "description", "project")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("type"); - openapiRequiredFields.add("name"); - openapiRequiredFields.add("project"); + openapiRequiredFields = new HashSet(Arrays.asList("type", "name", "project")); } /** @@ -316,27 +311,27 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!StreamPostRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in StreamPostRequest is not found in the empty JSON string", StreamPostRequest.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in StreamPostRequest is not found in the empty JSON string", StreamPostRequest.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : StreamPostRequest.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the required field `type` TypeEnum.validateJsonElement(jsonObj.get("type")); if (!jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); } // validate the required field `project` Project.validateJsonElement(jsonObj.get("project")); @@ -399,7 +394,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamPutRequest.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamPutRequest.java index fa21ac97..73a657c5 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamPutRequest.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamPutRequest.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Update Stream */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class StreamPutRequest { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -191,13 +193,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("name"); - openapiFields.add("description"); + openapiFields = new HashSet(Arrays.asList("name", "description")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("name"); + openapiRequiredFields = new HashSet(Arrays.asList("name")); } /** @@ -209,22 +208,22 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!StreamPutRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in StreamPutRequest is not found in the empty JSON string", StreamPutRequest.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in StreamPutRequest is not found in the empty JSON string", StreamPutRequest.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : StreamPutRequest.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); } } @@ -285,7 +284,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamSubscription.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamSubscription.java index 9e80939a..2ce0a5fb 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamSubscription.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamSubscription.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Changelog; import com.equinix.sdk.fabricv4.model.StreamSubscriptionOperation; import com.equinix.sdk.fabricv4.model.StreamSubscriptionSelector; @@ -46,13 +47,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Stream Subscription object */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class StreamSubscription { public static final String SERIALIZED_NAME_HREF = "href"; @SerializedName(SERIALIZED_NAME_HREF) @@ -566,22 +568,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("href"); - openapiFields.add("uuid"); - openapiFields.add("type"); - openapiFields.add("name"); - openapiFields.add("description"); - openapiFields.add("state"); - openapiFields.add("enabled"); - openapiFields.add("metricSelector"); - openapiFields.add("eventSelector"); - openapiFields.add("sink"); - openapiFields.add("operation"); - openapiFields.add("changeLog"); + openapiFields = new HashSet(Arrays.asList("href", "uuid", "type", "name", "description", "state", "enabled", "metricSelector", "eventSelector", "sink", "operation", "changeLog")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -593,31 +583,31 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!StreamSubscription.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in StreamSubscription is not found in the empty JSON string", StreamSubscription.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in StreamSubscription is not found in the empty JSON string", StreamSubscription.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the optional field `type` if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { TypeEnum.validateJsonElement(jsonObj.get("type")); } if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); } if ((jsonObj.get("state") != null && !jsonObj.get("state").isJsonNull()) && !jsonObj.get("state").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `state` to be a primitive type in the JSON string but got `%s`", jsonObj.get("state").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `state` to be a primitive type in the JSON string but got `%s`", jsonObj.get("state").toString())); } // validate the optional field `state` if (jsonObj.get("state") != null && !jsonObj.get("state").isJsonNull()) { @@ -702,7 +692,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamSubscriptionFilter.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamSubscriptionFilter.java index f411955b..af625bb6 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamSubscriptionFilter.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamSubscriptionFilter.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.StreamFilter; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * StreamSubscriptionFilter */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class StreamSubscriptionFilter { public static final String SERIALIZED_NAME_AND = "and"; @SerializedName(SERIALIZED_NAME_AND) @@ -176,11 +178,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("and"); + openapiFields = new HashSet(Arrays.asList("and")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -192,7 +193,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!StreamSubscriptionFilter.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in StreamSubscriptionFilter is not found in the empty JSON string", StreamSubscriptionFilter.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in StreamSubscriptionFilter is not found in the empty JSON string", StreamSubscriptionFilter.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -201,7 +202,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayand != null) { // ensure the json data is an array if (!jsonObj.get("and").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `and` to be an array in the JSON string but got `%s`", jsonObj.get("and").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `and` to be an array in the JSON string but got `%s`", jsonObj.get("and").toString())); } // validate the optional field `and` (array) @@ -269,7 +270,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamSubscriptionOperation.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamSubscriptionOperation.java index b15aedfc..d6bb5ac9 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamSubscriptionOperation.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamSubscriptionOperation.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.StreamSubscriptionOperationErrors; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -44,13 +45,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Stream subscription operational information */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class StreamSubscriptionOperation { public static final String SERIALIZED_NAME_EVENTS_DELIVERED_COUNT = "eventsDeliveredCount"; @SerializedName(SERIALIZED_NAME_EVENTS_DELIVERED_COUNT) @@ -307,16 +309,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("eventsDeliveredCount"); - openapiFields.add("metricsDeliveredCount"); - openapiFields.add("alertsDeliveredCount"); - openapiFields.add("lastSuccessfulDeliveryDateTime"); - openapiFields.add("suspendedDateTime"); - openapiFields.add("errors"); + openapiFields = new HashSet(Arrays.asList("eventsDeliveredCount", "metricsDeliveredCount", "alertsDeliveredCount", "lastSuccessfulDeliveryDateTime", "suspendedDateTime", "errors")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -328,7 +324,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!StreamSubscriptionOperation.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in StreamSubscriptionOperation is not found in the empty JSON string", StreamSubscriptionOperation.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in StreamSubscriptionOperation is not found in the empty JSON string", StreamSubscriptionOperation.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -337,7 +333,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayerrors != null) { // ensure the json data is an array if (!jsonObj.get("errors").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `errors` to be an array in the JSON string but got `%s`", jsonObj.get("errors").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `errors` to be an array in the JSON string but got `%s`", jsonObj.get("errors").toString())); } // validate the optional field `errors` (array) @@ -405,7 +401,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamSubscriptionOperationAdditionalInfo.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamSubscriptionOperationAdditionalInfo.java index d6be680c..04ab60b2 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamSubscriptionOperationAdditionalInfo.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamSubscriptionOperationAdditionalInfo.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * External error information from subscription sink */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class StreamSubscriptionOperationAdditionalInfo { public static final String SERIALIZED_NAME_PROPERTY = "property"; @SerializedName(SERIALIZED_NAME_PROPERTY) @@ -217,13 +219,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("property"); - openapiFields.add("statusCode"); - openapiFields.add("reason"); + openapiFields = new HashSet(Arrays.asList("property", "statusCode", "reason")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -235,18 +234,18 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!StreamSubscriptionOperationAdditionalInfo.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in StreamSubscriptionOperationAdditionalInfo is not found in the empty JSON string", StreamSubscriptionOperationAdditionalInfo.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in StreamSubscriptionOperationAdditionalInfo is not found in the empty JSON string", StreamSubscriptionOperationAdditionalInfo.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("property") != null && !jsonObj.get("property").isJsonNull()) && !jsonObj.get("property").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `property` to be a primitive type in the JSON string but got `%s`", jsonObj.get("property").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `property` to be a primitive type in the JSON string but got `%s`", jsonObj.get("property").toString())); } if ((jsonObj.get("statusCode") != null && !jsonObj.get("statusCode").isJsonNull()) && !jsonObj.get("statusCode").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `statusCode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("statusCode").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `statusCode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("statusCode").toString())); } if ((jsonObj.get("reason") != null && !jsonObj.get("reason").isJsonNull()) && !jsonObj.get("reason").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `reason` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reason").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `reason` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reason").toString())); } } @@ -307,7 +306,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamSubscriptionOperationErrors.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamSubscriptionOperationErrors.java index da0da20b..330474ee 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamSubscriptionOperationErrors.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamSubscriptionOperationErrors.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.StreamSubscriptionOperationAdditionalInfo; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Error information for stream subscription delivery */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class StreamSubscriptionOperationErrors { public static final String SERIALIZED_NAME_ERROR_CODE = "errorCode"; @SerializedName(SERIALIZED_NAME_ERROR_CODE) @@ -245,14 +247,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("errorCode"); - openapiFields.add("errorMessage"); - openapiFields.add("dateTime"); - openapiFields.add("additionalInfo"); + openapiFields = new HashSet(Arrays.asList("errorCode", "errorMessage", "dateTime", "additionalInfo")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -264,15 +262,15 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!StreamSubscriptionOperationErrors.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in StreamSubscriptionOperationErrors is not found in the empty JSON string", StreamSubscriptionOperationErrors.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in StreamSubscriptionOperationErrors is not found in the empty JSON string", StreamSubscriptionOperationErrors.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("errorCode") != null && !jsonObj.get("errorCode").isJsonNull()) && !jsonObj.get("errorCode").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `errorCode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("errorCode").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `errorCode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("errorCode").toString())); } if ((jsonObj.get("errorMessage") != null && !jsonObj.get("errorMessage").isJsonNull()) && !jsonObj.get("errorMessage").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `errorMessage` to be a primitive type in the JSON string but got `%s`", jsonObj.get("errorMessage").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `errorMessage` to be a primitive type in the JSON string but got `%s`", jsonObj.get("errorMessage").toString())); } // validate the optional field `additionalInfo` if (jsonObj.get("additionalInfo") != null && !jsonObj.get("additionalInfo").isJsonNull()) { @@ -337,7 +335,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamSubscriptionPostRequest.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamSubscriptionPostRequest.java index 8cfb97d6..330c22da 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamSubscriptionPostRequest.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamSubscriptionPostRequest.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.StreamSubscriptionSelector; import com.equinix.sdk.fabricv4.model.StreamSubscriptionSink; import com.google.gson.TypeAdapter; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Create Stream Subscription */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class StreamSubscriptionPostRequest { /** * Gets or Sets type @@ -373,20 +375,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("type"); - openapiFields.add("name"); - openapiFields.add("description"); - openapiFields.add("enabled"); - openapiFields.add("metricSelector"); - openapiFields.add("eventSelector"); - openapiFields.add("sink"); + openapiFields = new HashSet(Arrays.asList("type", "name", "description", "enabled", "metricSelector", "eventSelector", "sink")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("type"); - openapiRequiredFields.add("name"); - openapiRequiredFields.add("sink"); + openapiRequiredFields = new HashSet(Arrays.asList("type", "name", "sink")); } /** @@ -398,27 +390,27 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!StreamSubscriptionPostRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in StreamSubscriptionPostRequest is not found in the empty JSON string", StreamSubscriptionPostRequest.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in StreamSubscriptionPostRequest is not found in the empty JSON string", StreamSubscriptionPostRequest.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : StreamSubscriptionPostRequest.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the required field `type` TypeEnum.validateJsonElement(jsonObj.get("type")); if (!jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); } // validate the optional field `metricSelector` if (jsonObj.get("metricSelector") != null && !jsonObj.get("metricSelector").isJsonNull()) { @@ -489,7 +481,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamSubscriptionPutRequest.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamSubscriptionPutRequest.java index 2f1307e1..ca924a1e 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamSubscriptionPutRequest.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamSubscriptionPutRequest.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.StreamSubscriptionFilter; import com.equinix.sdk.fabricv4.model.StreamSubscriptionSelector; import com.equinix.sdk.fabricv4.model.StreamSubscriptionSink; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Update Stream Subscription */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class StreamSubscriptionPutRequest { /** * Gets or Sets type @@ -400,21 +402,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("type"); - openapiFields.add("name"); - openapiFields.add("description"); - openapiFields.add("enabled"); - openapiFields.add("filters"); - openapiFields.add("metricSelector"); - openapiFields.add("eventSelector"); - openapiFields.add("sink"); + openapiFields = new HashSet(Arrays.asList("type", "name", "description", "enabled", "filters", "metricSelector", "eventSelector", "sink")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("type"); - openapiRequiredFields.add("name"); - openapiRequiredFields.add("sink"); + openapiRequiredFields = new HashSet(Arrays.asList("type", "name", "sink")); } /** @@ -426,27 +417,27 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!StreamSubscriptionPutRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in StreamSubscriptionPutRequest is not found in the empty JSON string", StreamSubscriptionPutRequest.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in StreamSubscriptionPutRequest is not found in the empty JSON string", StreamSubscriptionPutRequest.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : StreamSubscriptionPutRequest.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the required field `type` TypeEnum.validateJsonElement(jsonObj.get("type")); if (!jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); } // validate the optional field `filters` if (jsonObj.get("filters") != null && !jsonObj.get("filters").isJsonNull()) { @@ -521,7 +512,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamSubscriptionSelector.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamSubscriptionSelector.java index 8f63200a..a8e7f122 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamSubscriptionSelector.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamSubscriptionSelector.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * StreamSubscriptionSelector */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class StreamSubscriptionSelector { public static final String SERIALIZED_NAME_INCLUDE = "include"; @SerializedName(SERIALIZED_NAME_INCLUDE) @@ -209,12 +211,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("include"); - openapiFields.add("except"); + openapiFields = new HashSet(Arrays.asList("include", "except")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -226,17 +226,17 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!StreamSubscriptionSelector.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in StreamSubscriptionSelector is not found in the empty JSON string", StreamSubscriptionSelector.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in StreamSubscriptionSelector is not found in the empty JSON string", StreamSubscriptionSelector.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the optional json data is an array if present if (jsonObj.get("include") != null && !jsonObj.get("include").isJsonNull() && !jsonObj.get("include").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `include` to be an array in the JSON string but got `%s`", jsonObj.get("include").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `include` to be an array in the JSON string but got `%s`", jsonObj.get("include").toString())); } // ensure the optional json data is an array if present if (jsonObj.get("except") != null && !jsonObj.get("except").isJsonNull() && !jsonObj.get("except").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `except` to be an array in the JSON string but got `%s`", jsonObj.get("except").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `except` to be an array in the JSON string but got `%s`", jsonObj.get("except").toString())); } } @@ -297,7 +297,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamSubscriptionSink.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamSubscriptionSink.java index bc3ee5b1..a4f6b46f 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamSubscriptionSink.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamSubscriptionSink.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.StreamSubscriptionSinkCredential; import com.equinix.sdk.fabricv4.model.StreamSubscriptionSinkSetting; import com.google.gson.TypeAdapter; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Create Stream destination */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class StreamSubscriptionSink { public static final String SERIALIZED_NAME_URI = "uri"; @SerializedName(SERIALIZED_NAME_URI) @@ -413,19 +415,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("uri"); - openapiFields.add("type"); - openapiFields.add("batchEnabled"); - openapiFields.add("batchSizeMax"); - openapiFields.add("batchWaitTimeMax"); - openapiFields.add("credential"); - openapiFields.add("settings"); - openapiFields.add("host"); + openapiFields = new HashSet(Arrays.asList("uri", "type", "batchEnabled", "batchSizeMax", "batchWaitTimeMax", "credential", "settings", "host")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("type"); + openapiRequiredFields = new HashSet(Arrays.asList("type")); } /** @@ -437,22 +430,22 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!StreamSubscriptionSink.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in StreamSubscriptionSink is not found in the empty JSON string", StreamSubscriptionSink.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in StreamSubscriptionSink is not found in the empty JSON string", StreamSubscriptionSink.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : StreamSubscriptionSink.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("uri") != null && !jsonObj.get("uri").isJsonNull()) && !jsonObj.get("uri").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uri").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uri").toString())); } if (!jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the required field `type` TypeEnum.validateJsonElement(jsonObj.get("type")); @@ -465,7 +458,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti StreamSubscriptionSinkSetting.validateJsonElement(jsonObj.get("settings")); } if ((jsonObj.get("host") != null && !jsonObj.get("host").isJsonNull()) && !jsonObj.get("host").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `host` to be a primitive type in the JSON string but got `%s`", jsonObj.get("host").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `host` to be a primitive type in the JSON string but got `%s`", jsonObj.get("host").toString())); } } @@ -526,7 +519,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamSubscriptionSinkCredential.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamSubscriptionSinkCredential.java index 2c760bd6..aaf7f99a 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamSubscriptionSinkCredential.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamSubscriptionSinkCredential.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Stream subscription sink credentials */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class StreamSubscriptionSinkCredential { /** * credential type @@ -351,16 +353,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("type"); - openapiFields.add("accessToken"); - openapiFields.add("integrationKey"); - openapiFields.add("apiKey"); - openapiFields.add("username"); - openapiFields.add("password"); + openapiFields = new HashSet(Arrays.asList("type", "accessToken", "integrationKey", "apiKey", "username", "password")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -372,31 +368,31 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!StreamSubscriptionSinkCredential.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in StreamSubscriptionSinkCredential is not found in the empty JSON string", StreamSubscriptionSinkCredential.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in StreamSubscriptionSinkCredential is not found in the empty JSON string", StreamSubscriptionSinkCredential.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the optional field `type` if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { TypeEnum.validateJsonElement(jsonObj.get("type")); } if ((jsonObj.get("accessToken") != null && !jsonObj.get("accessToken").isJsonNull()) && !jsonObj.get("accessToken").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `accessToken` to be a primitive type in the JSON string but got `%s`", jsonObj.get("accessToken").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `accessToken` to be a primitive type in the JSON string but got `%s`", jsonObj.get("accessToken").toString())); } if ((jsonObj.get("integrationKey") != null && !jsonObj.get("integrationKey").isJsonNull()) && !jsonObj.get("integrationKey").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `integrationKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("integrationKey").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `integrationKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("integrationKey").toString())); } if ((jsonObj.get("apiKey") != null && !jsonObj.get("apiKey").isJsonNull()) && !jsonObj.get("apiKey").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `apiKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiKey").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `apiKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiKey").toString())); } if ((jsonObj.get("username") != null && !jsonObj.get("username").isJsonNull()) && !jsonObj.get("username").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `username` to be a primitive type in the JSON string but got `%s`", jsonObj.get("username").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `username` to be a primitive type in the JSON string but got `%s`", jsonObj.get("username").toString())); } if ((jsonObj.get("password") != null && !jsonObj.get("password").isJsonNull()) && !jsonObj.get("password").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `password` to be a primitive type in the JSON string but got `%s`", jsonObj.get("password").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `password` to be a primitive type in the JSON string but got `%s`", jsonObj.get("password").toString())); } } @@ -457,7 +453,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamSubscriptionSinkResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamSubscriptionSinkResponse.java index f5a14d87..b9b994e6 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamSubscriptionSinkResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamSubscriptionSinkResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.StreamSubscriptionSinkCredential; import com.equinix.sdk.fabricv4.model.StreamSubscriptionSinkSetting; import com.google.gson.TypeAdapter; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Create Stream destination */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class StreamSubscriptionSinkResponse { public static final String SERIALIZED_NAME_URI = "uri"; @SerializedName(SERIALIZED_NAME_URI) @@ -413,18 +415,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("uri"); - openapiFields.add("type"); - openapiFields.add("batchEnabled"); - openapiFields.add("batchSizeMax"); - openapiFields.add("batchWaitTimeMax"); - openapiFields.add("credential"); - openapiFields.add("settings"); - openapiFields.add("host"); + openapiFields = new HashSet(Arrays.asList("uri", "type", "batchEnabled", "batchSizeMax", "batchWaitTimeMax", "credential", "settings", "host")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -436,15 +430,15 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!StreamSubscriptionSinkResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in StreamSubscriptionSinkResponse is not found in the empty JSON string", StreamSubscriptionSinkResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in StreamSubscriptionSinkResponse is not found in the empty JSON string", StreamSubscriptionSinkResponse.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("uri") != null && !jsonObj.get("uri").isJsonNull()) && !jsonObj.get("uri").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uri").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uri").toString())); } if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the optional field `type` if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { @@ -459,7 +453,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti StreamSubscriptionSinkSetting.validateJsonElement(jsonObj.get("settings")); } if ((jsonObj.get("host") != null && !jsonObj.get("host").isJsonNull()) && !jsonObj.get("host").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `host` to be a primitive type in the JSON string but got `%s`", jsonObj.get("host").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `host` to be a primitive type in the JSON string but got `%s`", jsonObj.get("host").toString())); } } @@ -520,7 +514,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamSubscriptionSinkSetting.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamSubscriptionSinkSetting.java index 79a0803c..2cf62002 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamSubscriptionSinkSetting.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/StreamSubscriptionSinkSetting.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Stream subscription sink settings */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class StreamSubscriptionSinkSetting { public static final String SERIALIZED_NAME_EVENT_INDEX = "eventIndex"; @SerializedName(SERIALIZED_NAME_EVENT_INDEX) @@ -373,17 +375,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("eventIndex"); - openapiFields.add("metricIndex"); - openapiFields.add("source"); - openapiFields.add("applicationKey"); - openapiFields.add("eventUri"); - openapiFields.add("metricUri"); - openapiFields.add("format"); + openapiFields = new HashSet(Arrays.asList("eventIndex", "metricIndex", "source", "applicationKey", "eventUri", "metricUri", "format")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -395,30 +390,30 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!StreamSubscriptionSinkSetting.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in StreamSubscriptionSinkSetting is not found in the empty JSON string", StreamSubscriptionSinkSetting.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in StreamSubscriptionSinkSetting is not found in the empty JSON string", StreamSubscriptionSinkSetting.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("eventIndex") != null && !jsonObj.get("eventIndex").isJsonNull()) && !jsonObj.get("eventIndex").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `eventIndex` to be a primitive type in the JSON string but got `%s`", jsonObj.get("eventIndex").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `eventIndex` to be a primitive type in the JSON string but got `%s`", jsonObj.get("eventIndex").toString())); } if ((jsonObj.get("metricIndex") != null && !jsonObj.get("metricIndex").isJsonNull()) && !jsonObj.get("metricIndex").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `metricIndex` to be a primitive type in the JSON string but got `%s`", jsonObj.get("metricIndex").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `metricIndex` to be a primitive type in the JSON string but got `%s`", jsonObj.get("metricIndex").toString())); } if ((jsonObj.get("source") != null && !jsonObj.get("source").isJsonNull()) && !jsonObj.get("source").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `source` to be a primitive type in the JSON string but got `%s`", jsonObj.get("source").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `source` to be a primitive type in the JSON string but got `%s`", jsonObj.get("source").toString())); } if ((jsonObj.get("applicationKey") != null && !jsonObj.get("applicationKey").isJsonNull()) && !jsonObj.get("applicationKey").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `applicationKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("applicationKey").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `applicationKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("applicationKey").toString())); } if ((jsonObj.get("eventUri") != null && !jsonObj.get("eventUri").isJsonNull()) && !jsonObj.get("eventUri").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `eventUri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("eventUri").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `eventUri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("eventUri").toString())); } if ((jsonObj.get("metricUri") != null && !jsonObj.get("metricUri").isJsonNull()) && !jsonObj.get("metricUri").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `metricUri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("metricUri").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `metricUri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("metricUri").toString())); } if ((jsonObj.get("format") != null && !jsonObj.get("format").isJsonNull()) && !jsonObj.get("format").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `format` to be a primitive type in the JSON string but got `%s`", jsonObj.get("format").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `format` to be a primitive type in the JSON string but got `%s`", jsonObj.get("format").toString())); } // validate the optional field `format` if (jsonObj.get("format") != null && !jsonObj.get("format").isJsonNull()) { @@ -483,7 +478,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SubInterface.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SubInterface.java index 8af945ae..2583f46a 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SubInterface.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SubInterface.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Sub Interface information */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class SubInterface { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -191,12 +193,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("name"); - openapiFields.add("unit"); + openapiFields = new HashSet(Arrays.asList("name", "unit")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -208,12 +208,12 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!SubInterface.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in SubInterface is not found in the empty JSON string", SubInterface.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SubInterface is not found in the empty JSON string", SubInterface.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } } @@ -274,7 +274,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SubscriptionAsset.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SubscriptionAsset.java index 4ec84438..d4a3b0a8 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SubscriptionAsset.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SubscriptionAsset.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.SubscriptionRouterPackageType; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Asset information */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class SubscriptionAsset { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -218,13 +220,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("type"); - openapiFields.add("package"); - openapiFields.add("bandwidth"); + openapiFields = new HashSet(Arrays.asList("type", "package", "bandwidth")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -236,12 +235,12 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!SubscriptionAsset.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in SubscriptionAsset is not found in the empty JSON string", SubscriptionAsset.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SubscriptionAsset is not found in the empty JSON string", SubscriptionAsset.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the optional field `package` if (jsonObj.get("package") != null && !jsonObj.get("package").isJsonNull()) { @@ -306,7 +305,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SubscriptionEntitlementResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SubscriptionEntitlementResponse.java index 81fad29e..5cdcb84c 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SubscriptionEntitlementResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SubscriptionEntitlementResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.SubscriptionAsset; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Subscription entitlement */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class SubscriptionEntitlementResponse { public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) @@ -274,15 +276,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("uuid"); - openapiFields.add("quantityEntitled"); - openapiFields.add("quantityConsumed"); - openapiFields.add("quantityAvailable"); - openapiFields.add("asset"); + openapiFields = new HashSet(Arrays.asList("uuid", "quantityEntitled", "quantityConsumed", "quantityAvailable", "asset")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -294,12 +291,12 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!SubscriptionEntitlementResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in SubscriptionEntitlementResponse is not found in the empty JSON string", SubscriptionEntitlementResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SubscriptionEntitlementResponse is not found in the empty JSON string", SubscriptionEntitlementResponse.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } // validate the optional field `asset` if (jsonObj.get("asset") != null && !jsonObj.get("asset").isJsonNull()) { @@ -364,7 +361,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SubscriptionResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SubscriptionResponse.java index 2e32344c..18d4358a 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SubscriptionResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SubscriptionResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Changelog; import com.equinix.sdk.fabricv4.model.SubscriptionEntitlementResponse; import com.equinix.sdk.fabricv4.model.SubscriptionState; @@ -48,13 +49,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Subscription Response */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class SubscriptionResponse { public static final String SERIALIZED_NAME_HREF = "href"; @SerializedName(SERIALIZED_NAME_HREF) @@ -557,24 +559,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("href"); - openapiFields.add("uuid"); - openapiFields.add("state"); - openapiFields.add("marketplace"); - openapiFields.add("offerType"); - openapiFields.add("isAutoRenew"); - openapiFields.add("offerId"); - openapiFields.add("trial"); - openapiFields.add("metroCodes"); - openapiFields.add("entitlements"); - openapiFields.add("changelog"); + openapiFields = new HashSet(Arrays.asList("href", "uuid", "state", "marketplace", "offerType", "isAutoRenew", "offerId", "trial", "metroCodes", "entitlements", "changelog")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("state"); - openapiRequiredFields.add("marketplace"); - openapiRequiredFields.add("entitlements"); + openapiRequiredFields = new HashSet(Arrays.asList("state", "marketplace", "entitlements")); } /** @@ -586,39 +574,39 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!SubscriptionResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in SubscriptionResponse is not found in the empty JSON string", SubscriptionResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SubscriptionResponse is not found in the empty JSON string", SubscriptionResponse.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : SubscriptionResponse.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } // validate the required field `state` SubscriptionState.validateJsonElement(jsonObj.get("state")); if (!jsonObj.get("marketplace").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `marketplace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("marketplace").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `marketplace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("marketplace").toString())); } // validate the required field `marketplace` MarketplaceEnum.validateJsonElement(jsonObj.get("marketplace")); if ((jsonObj.get("offerType") != null && !jsonObj.get("offerType").isJsonNull()) && !jsonObj.get("offerType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `offerType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("offerType").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `offerType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("offerType").toString())); } // validate the optional field `offerType` if (jsonObj.get("offerType") != null && !jsonObj.get("offerType").isJsonNull()) { OfferTypeEnum.validateJsonElement(jsonObj.get("offerType")); } if ((jsonObj.get("offerId") != null && !jsonObj.get("offerId").isJsonNull()) && !jsonObj.get("offerId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `offerId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("offerId").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `offerId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("offerId").toString())); } // validate the optional field `trial` if (jsonObj.get("trial") != null && !jsonObj.get("trial").isJsonNull()) { @@ -626,11 +614,11 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } // ensure the optional json data is an array if present if (jsonObj.get("metroCodes") != null && !jsonObj.get("metroCodes").isJsonNull() && !jsonObj.get("metroCodes").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `metroCodes` to be an array in the JSON string but got `%s`", jsonObj.get("metroCodes").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `metroCodes` to be an array in the JSON string but got `%s`", jsonObj.get("metroCodes").toString())); } // ensure the json data is an array if (!jsonObj.get("entitlements").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `entitlements` to be an array in the JSON string but got `%s`", jsonObj.get("entitlements").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `entitlements` to be an array in the JSON string but got `%s`", jsonObj.get("entitlements").toString())); } JsonArray jsonArrayentitlements = jsonObj.getAsJsonArray("entitlements"); @@ -701,7 +689,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SubscriptionRouterPackageType.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SubscriptionRouterPackageType.java index 3889a5f6..77bbd6f0 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SubscriptionRouterPackageType.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SubscriptionRouterPackageType.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Cloud Router Package Type */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class SubscriptionRouterPackageType { public static final String SERIALIZED_NAME_CODE = "code"; @SerializedName(SERIALIZED_NAME_CODE) @@ -165,11 +167,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("code"); + openapiFields = new HashSet(Arrays.asList("code")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -181,12 +182,12 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!SubscriptionRouterPackageType.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in SubscriptionRouterPackageType is not found in the empty JSON string", SubscriptionRouterPackageType.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SubscriptionRouterPackageType is not found in the empty JSON string", SubscriptionRouterPackageType.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("code") != null && !jsonObj.get("code").isJsonNull()) && !jsonObj.get("code").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); } } @@ -247,7 +248,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SubscriptionState.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SubscriptionState.java index 26ffeaeb..d5df4cce 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SubscriptionState.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SubscriptionState.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SubscriptionTrial.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SubscriptionTrial.java index 4e53dfef..6fe656d1 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SubscriptionTrial.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/SubscriptionTrial.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Free Trial Subscription */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class SubscriptionTrial { public static final String SERIALIZED_NAME_ENABLED = "enabled"; @SerializedName(SERIALIZED_NAME_ENABLED) @@ -192,12 +194,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("enabled"); - openapiFields.add("expiryDateTime"); + openapiFields = new HashSet(Arrays.asList("enabled", "expiryDateTime")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -209,7 +209,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!SubscriptionTrial.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in SubscriptionTrial is not found in the empty JSON string", SubscriptionTrial.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SubscriptionTrial is not found in the empty JSON string", SubscriptionTrial.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -272,7 +272,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/TagListResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/TagListResponse.java index a737ebaa..8fc185a0 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/TagListResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/TagListResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.Pagination; import com.equinix.sdk.fabricv4.model.TagResponse; import com.google.gson.TypeAdapter; @@ -44,13 +45,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Equinix Fabric Tag List Response Object */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class TagListResponse { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @@ -203,12 +205,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("data"); - openapiFields.add("pagination"); + openapiFields = new HashSet(Arrays.asList("data", "pagination")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -220,7 +220,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!TagListResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in TagListResponse is not found in the empty JSON string", TagListResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in TagListResponse is not found in the empty JSON string", TagListResponse.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -229,7 +229,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraydata != null) { // ensure the json data is an array if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); } // validate the optional field `data` (array) @@ -301,7 +301,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/TagRequest.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/TagRequest.java index e7683eba..7f436ec4 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/TagRequest.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/TagRequest.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Equinix Fabric Tag Request Object */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class TagRequest { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -217,16 +219,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("type"); - openapiFields.add("name"); - openapiFields.add("displayName"); + openapiFields = new HashSet(Arrays.asList("type", "name", "displayName")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("type"); - openapiRequiredFields.add("name"); - openapiRequiredFields.add("displayName"); + openapiRequiredFields = new HashSet(Arrays.asList("type", "name", "displayName")); } /** @@ -238,25 +234,25 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!TagRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in TagRequest is not found in the empty JSON string", TagRequest.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in TagRequest is not found in the empty JSON string", TagRequest.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : TagRequest.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } if (!jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } if (!jsonObj.get("displayName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `displayName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("displayName").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `displayName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("displayName").toString())); } } @@ -317,7 +313,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/TagResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/TagResponse.java index b1a4ed8e..6d72ff7c 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/TagResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/TagResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Equinix Fabric Tag Response Object */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class TagResponse { public static final String SERIALIZED_NAME_HREF = "href"; @SerializedName(SERIALIZED_NAME_HREF) @@ -271,15 +273,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("href"); - openapiFields.add("uuid"); - openapiFields.add("type"); - openapiFields.add("name"); - openapiFields.add("displayName"); + openapiFields = new HashSet(Arrays.asList("href", "uuid", "type", "name", "displayName")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -291,24 +288,24 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!TagResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in TagResponse is not found in the empty JSON string", TagResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in TagResponse is not found in the empty JSON string", TagResponse.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } if ((jsonObj.get("displayName") != null && !jsonObj.get("displayName").isJsonNull()) && !jsonObj.get("displayName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `displayName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("displayName").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `displayName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("displayName").toString())); } } @@ -369,7 +366,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/TimeServiceFilter.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/TimeServiceFilter.java index e17a3a78..13abb7ed 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/TimeServiceFilter.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/TimeServiceFilter.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.TimeServiceOrFilter; import com.equinix.sdk.fabricv4.model.TimeServiceSimpleExpression; import com.google.gson.TypeAdapter; @@ -36,6 +37,7 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import java.util.Locale; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -59,7 +61,7 @@ import com.equinix.sdk.fabricv4.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class TimeServiceFilter extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(TimeServiceFilter.class.getName()); @@ -115,7 +117,7 @@ public TimeServiceFilter read(JsonReader in) throws IOException { return ret; } catch (Exception e) { // deserialization failed, continue - errorMessages.add(String.format("Deserialization for TimeServiceSimpleExpression failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for TimeServiceSimpleExpression failed with `%s`.", e.getMessage())); log.log(Level.FINER, "Input data does not match schema 'TimeServiceSimpleExpression'", e); } // deserialize TimeServiceOrFilter @@ -128,11 +130,11 @@ public TimeServiceFilter read(JsonReader in) throws IOException { return ret; } catch (Exception e) { // deserialization failed, continue - errorMessages.add(String.format("Deserialization for TimeServiceOrFilter failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for TimeServiceOrFilter failed with `%s`.", e.getMessage())); log.log(Level.FINER, "Input data does not match schema 'TimeServiceOrFilter'", e); } - throw new IOException(String.format("Failed deserialization for TimeServiceFilter: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); + throw new IOException(String.format(Locale.ROOT, "Failed deserialization for TimeServiceFilter: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); } }.nullSafe(); } @@ -230,7 +232,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti TimeServiceSimpleExpression.validateJsonElement(jsonElement); return; } catch (Exception e) { - errorMessages.add(String.format("Deserialization for TimeServiceSimpleExpression failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for TimeServiceSimpleExpression failed with `%s`.", e.getMessage())); // continue to the next one } // validate the json string with TimeServiceOrFilter @@ -238,10 +240,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti TimeServiceOrFilter.validateJsonElement(jsonElement); return; } catch (Exception e) { - errorMessages.add(String.format("Deserialization for TimeServiceOrFilter failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for TimeServiceOrFilter failed with `%s`.", e.getMessage())); // continue to the next one } - throw new IOException(String.format("The JSON string is invalid for TimeServiceFilter with anyOf schemas: TimeServiceOrFilter, TimeServiceSimpleExpression. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); + throw new IOException(String.format(Locale.ROOT, "The JSON string is invalid for TimeServiceFilter with anyOf schemas: TimeServiceOrFilter, TimeServiceSimpleExpression. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); } /** diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/TimeServiceFilters.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/TimeServiceFilters.java index 58509f55..06a6bd67 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/TimeServiceFilters.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/TimeServiceFilters.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.TimeServiceFilter; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * TimeServiceFilters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class TimeServiceFilters { public static final String SERIALIZED_NAME_AND = "and"; @SerializedName(SERIALIZED_NAME_AND) @@ -176,11 +178,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("and"); + openapiFields = new HashSet(Arrays.asList("and")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -192,7 +193,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!TimeServiceFilters.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in TimeServiceFilters is not found in the empty JSON string", TimeServiceFilters.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in TimeServiceFilters is not found in the empty JSON string", TimeServiceFilters.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -201,7 +202,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayand != null) { // ensure the json data is an array if (!jsonObj.get("and").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `and` to be an array in the JSON string but got `%s`", jsonObj.get("and").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `and` to be an array in the JSON string but got `%s`", jsonObj.get("and").toString())); } // validate the optional field `and` (array) @@ -269,7 +270,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/TimeServiceOperation.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/TimeServiceOperation.java index a28455ea..91d60aee 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/TimeServiceOperation.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/TimeServiceOperation.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * time service operational data */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class TimeServiceOperation { /** * time service operational status @@ -219,11 +221,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("operationalStatus"); + openapiFields = new HashSet(Arrays.asList("operationalStatus")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -235,12 +236,12 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!TimeServiceOperation.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in TimeServiceOperation is not found in the empty JSON string", TimeServiceOperation.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in TimeServiceOperation is not found in the empty JSON string", TimeServiceOperation.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("operationalStatus") != null && !jsonObj.get("operationalStatus").isJsonNull()) && !jsonObj.get("operationalStatus").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `operationalStatus` to be a primitive type in the JSON string but got `%s`", jsonObj.get("operationalStatus").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `operationalStatus` to be a primitive type in the JSON string but got `%s`", jsonObj.get("operationalStatus").toString())); } // validate the optional field `operationalStatus` if (jsonObj.get("operationalStatus") != null && !jsonObj.get("operationalStatus").isJsonNull()) { @@ -305,7 +306,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/TimeServiceOrFilter.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/TimeServiceOrFilter.java index d00d2f51..ef50d80b 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/TimeServiceOrFilter.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/TimeServiceOrFilter.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.TimeServiceSimpleExpression; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * TimeServiceOrFilter */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class TimeServiceOrFilter { public static final String SERIALIZED_NAME_OR = "or"; @SerializedName(SERIALIZED_NAME_OR) @@ -176,11 +178,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("or"); + openapiFields = new HashSet(Arrays.asList("or")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -192,7 +193,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!TimeServiceOrFilter.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in TimeServiceOrFilter is not found in the empty JSON string", TimeServiceOrFilter.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in TimeServiceOrFilter is not found in the empty JSON string", TimeServiceOrFilter.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -201,7 +202,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayor != null) { // ensure the json data is an array if (!jsonObj.get("or").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `or` to be an array in the JSON string but got `%s`", jsonObj.get("or").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `or` to be an array in the JSON string but got `%s`", jsonObj.get("or").toString())); } // validate the optional field `or` (array) @@ -269,7 +270,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/TimeServicePrice.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/TimeServicePrice.java index 15ed213a..4d4973a4 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/TimeServicePrice.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/TimeServicePrice.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.PrecisionTimePackageRequest; import com.equinix.sdk.fabricv4.model.TimeServicePriceConnection; import com.google.gson.TypeAdapter; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Time Service Product configuration */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class TimeServicePrice { /** * Precision Time Service Type refers to the corresponding Protocol. @@ -271,13 +273,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("type"); - openapiFields.add("package"); - openapiFields.add("connection"); + openapiFields = new HashSet(Arrays.asList("type", "package", "connection")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -289,12 +288,12 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!TimeServicePrice.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in TimeServicePrice is not found in the empty JSON string", TimeServicePrice.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in TimeServicePrice is not found in the empty JSON string", TimeServicePrice.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the optional field `type` if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { @@ -367,7 +366,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/TimeServicePriceConnection.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/TimeServicePriceConnection.java index 2c4a54fd..7c8ba740 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/TimeServicePriceConnection.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/TimeServicePriceConnection.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.TimeServicePriceConnectionASide; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Time Service Price Connection configuration */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class TimeServicePriceConnection { public static final String SERIALIZED_NAME_A_SIDE = "aSide"; @SerializedName(SERIALIZED_NAME_A_SIDE) @@ -166,11 +168,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("aSide"); + openapiFields = new HashSet(Arrays.asList("aSide")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -182,7 +183,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!TimeServicePriceConnection.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in TimeServicePriceConnection is not found in the empty JSON string", TimeServicePriceConnection.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in TimeServicePriceConnection is not found in the empty JSON string", TimeServicePriceConnection.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -249,7 +250,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/TimeServicePriceConnectionASide.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/TimeServicePriceConnectionASide.java index e321b714..4d8455c2 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/TimeServicePriceConnectionASide.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/TimeServicePriceConnectionASide.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.TimeServicePriceConnectionAccessPoint; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Time Service Price Connection ASide configuration */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class TimeServicePriceConnectionASide { public static final String SERIALIZED_NAME_ACCESS_POINT = "accessPoint"; @SerializedName(SERIALIZED_NAME_ACCESS_POINT) @@ -166,11 +168,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("accessPoint"); + openapiFields = new HashSet(Arrays.asList("accessPoint")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -182,7 +183,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!TimeServicePriceConnectionASide.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in TimeServicePriceConnectionASide is not found in the empty JSON string", TimeServicePriceConnectionASide.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in TimeServicePriceConnectionASide is not found in the empty JSON string", TimeServicePriceConnectionASide.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -249,7 +250,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/TimeServicePriceConnectionAccessPoint.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/TimeServicePriceConnectionAccessPoint.java index d89fccbb..eff79cd0 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/TimeServicePriceConnectionAccessPoint.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/TimeServicePriceConnectionAccessPoint.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.PriceLocation; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Time Service Price Connection Access Point configuration */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class TimeServicePriceConnectionAccessPoint { public static final String SERIALIZED_NAME_LOCATION = "location"; @SerializedName(SERIALIZED_NAME_LOCATION) @@ -166,11 +168,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("location"); + openapiFields = new HashSet(Arrays.asList("location")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -182,7 +183,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!TimeServicePriceConnectionAccessPoint.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in TimeServicePriceConnectionAccessPoint is not found in the empty JSON string", TimeServicePriceConnectionAccessPoint.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in TimeServicePriceConnectionAccessPoint is not found in the empty JSON string", TimeServicePriceConnectionAccessPoint.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -249,7 +250,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/TimeServiceSimpleExpression.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/TimeServiceSimpleExpression.java index c4ef0faa..c3b3d7d7 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/TimeServiceSimpleExpression.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/TimeServiceSimpleExpression.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * TimeServiceSimpleExpression */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class TimeServiceSimpleExpression { public static final String SERIALIZED_NAME_PROPERTY = "property"; @SerializedName(SERIALIZED_NAME_PROPERTY) @@ -227,13 +229,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("property"); - openapiFields.add("operator"); - openapiFields.add("values"); + openapiFields = new HashSet(Arrays.asList("property", "operator", "values")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -245,19 +244,19 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!TimeServiceSimpleExpression.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in TimeServiceSimpleExpression is not found in the empty JSON string", TimeServiceSimpleExpression.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in TimeServiceSimpleExpression is not found in the empty JSON string", TimeServiceSimpleExpression.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("property") != null && !jsonObj.get("property").isJsonNull()) && !jsonObj.get("property").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `property` to be a primitive type in the JSON string but got `%s`", jsonObj.get("property").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `property` to be a primitive type in the JSON string but got `%s`", jsonObj.get("property").toString())); } if ((jsonObj.get("operator") != null && !jsonObj.get("operator").isJsonNull()) && !jsonObj.get("operator").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `operator` to be a primitive type in the JSON string but got `%s`", jsonObj.get("operator").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `operator` to be a primitive type in the JSON string but got `%s`", jsonObj.get("operator").toString())); } // ensure the optional json data is an array if present if (jsonObj.get("values") != null && !jsonObj.get("values").isJsonNull() && !jsonObj.get("values").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); } } @@ -318,7 +317,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/TimeServiceSortBy.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/TimeServiceSortBy.java index 1b38f50c..1110a3e4 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/TimeServiceSortBy.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/TimeServiceSortBy.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/TimeServiceSortCriteria.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/TimeServiceSortCriteria.java index e1d7251f..00cab98f 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/TimeServiceSortCriteria.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/TimeServiceSortCriteria.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.TimeServiceSortBy; import com.equinix.sdk.fabricv4.model.TimeServiceSortDirection; import com.google.gson.TypeAdapter; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * TimeServiceSortCriteria */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class TimeServiceSortCriteria { public static final String SERIALIZED_NAME_DIRECTION = "direction"; @SerializedName(SERIALIZED_NAME_DIRECTION) @@ -193,12 +195,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("direction"); - openapiFields.add("property"); + openapiFields = new HashSet(Arrays.asList("direction", "property")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -210,7 +210,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!TimeServiceSortCriteria.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in TimeServiceSortCriteria is not found in the empty JSON string", TimeServiceSortCriteria.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in TimeServiceSortCriteria is not found in the empty JSON string", TimeServiceSortCriteria.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -281,7 +281,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/TimeServiceSortDirection.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/TimeServiceSortDirection.java index f8f21cd8..8210274e 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/TimeServiceSortDirection.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/TimeServiceSortDirection.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/TimeServicesSearchRequest.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/TimeServicesSearchRequest.java index 6b6ffb55..4d9d7278 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/TimeServicesSearchRequest.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/TimeServicesSearchRequest.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.PaginationRequest; import com.equinix.sdk.fabricv4.model.TimeServiceFilters; import com.equinix.sdk.fabricv4.model.TimeServiceSortCriteria; @@ -45,13 +46,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Search requests containing criteria */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class TimeServicesSearchRequest { public static final String SERIALIZED_NAME_FILTER = "filter"; @SerializedName(SERIALIZED_NAME_FILTER) @@ -230,13 +232,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("filter"); - openapiFields.add("pagination"); - openapiFields.add("sort"); + openapiFields = new HashSet(Arrays.asList("filter", "pagination", "sort")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -248,7 +247,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!TimeServicesSearchRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in TimeServicesSearchRequest is not found in the empty JSON string", TimeServicesSearchRequest.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in TimeServicesSearchRequest is not found in the empty JSON string", TimeServicesSearchRequest.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -265,7 +264,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraysort != null) { // ensure the json data is an array if (!jsonObj.get("sort").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `sort` to be an array in the JSON string but got `%s`", jsonObj.get("sort").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `sort` to be an array in the JSON string but got `%s`", jsonObj.get("sort").toString())); } // validate the optional field `sort` (array) @@ -333,7 +332,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ValidateConnectionResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ValidateConnectionResponse.java index b57e5db0..d1656f7e 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ValidateConnectionResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ValidateConnectionResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.ConnectionRedundancy; import com.equinix.sdk.fabricv4.model.ConnectionSide; import com.google.gson.TypeAdapter; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Validate Connection specification */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ValidateConnectionResponse { public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) @@ -273,15 +275,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("uuid"); - openapiFields.add("bandwidth"); - openapiFields.add("redundancy"); - openapiFields.add("aSide"); - openapiFields.add("zSide"); + openapiFields = new HashSet(Arrays.asList("uuid", "bandwidth", "redundancy", "aSide", "zSide")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -293,12 +290,12 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ValidateConnectionResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ValidateConnectionResponse is not found in the empty JSON string", ValidateConnectionResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ValidateConnectionResponse is not found in the empty JSON string", ValidateConnectionResponse.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } // validate the optional field `redundancy` if (jsonObj.get("redundancy") != null && !jsonObj.get("redundancy").isJsonNull()) { @@ -371,7 +368,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ValidateRequest.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ValidateRequest.java index 24bea31b..31950f79 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ValidateRequest.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ValidateRequest.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.ValidateRequestFilter; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Validate connection auth api key or vlan */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ValidateRequest { public static final String SERIALIZED_NAME_FILTER = "filter"; @SerializedName(SERIALIZED_NAME_FILTER) @@ -166,11 +168,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("filter"); + openapiFields = new HashSet(Arrays.asList("filter")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -182,7 +183,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ValidateRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ValidateRequest is not found in the empty JSON string", ValidateRequest.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ValidateRequest is not found in the empty JSON string", ValidateRequest.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -249,7 +250,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ValidateRequestFilter.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ValidateRequestFilter.java index 4738198f..7136e520 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ValidateRequestFilter.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ValidateRequestFilter.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.ValidateRequestFilterAnd; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Filters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ValidateRequestFilter { public static final String SERIALIZED_NAME_AND = "and"; @SerializedName(SERIALIZED_NAME_AND) @@ -176,11 +178,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("and"); + openapiFields = new HashSet(Arrays.asList("and")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -192,7 +193,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ValidateRequestFilter.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ValidateRequestFilter is not found in the empty JSON string", ValidateRequestFilter.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ValidateRequestFilter is not found in the empty JSON string", ValidateRequestFilter.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -201,7 +202,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayand != null) { // ensure the json data is an array if (!jsonObj.get("and").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `and` to be an array in the JSON string but got `%s`", jsonObj.get("and").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `and` to be an array in the JSON string but got `%s`", jsonObj.get("and").toString())); } // validate the optional field `and` (array) @@ -269,7 +270,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ValidateRequestFilterAnd.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ValidateRequestFilterAnd.java index 5a6f1a9a..8ba21326 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ValidateRequestFilterAnd.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ValidateRequestFilterAnd.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * ValidateRequestFilterAnd */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ValidateRequestFilterAnd { public static final String SERIALIZED_NAME_PROPERTY = "property"; @SerializedName(SERIALIZED_NAME_PROPERTY) @@ -227,13 +229,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("property"); - openapiFields.add("operator"); - openapiFields.add("values"); + openapiFields = new HashSet(Arrays.asList("property", "operator", "values")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -245,19 +244,19 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ValidateRequestFilterAnd.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ValidateRequestFilterAnd is not found in the empty JSON string", ValidateRequestFilterAnd.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ValidateRequestFilterAnd is not found in the empty JSON string", ValidateRequestFilterAnd.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("property") != null && !jsonObj.get("property").isJsonNull()) && !jsonObj.get("property").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `property` to be a primitive type in the JSON string but got `%s`", jsonObj.get("property").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `property` to be a primitive type in the JSON string but got `%s`", jsonObj.get("property").toString())); } if ((jsonObj.get("operator") != null && !jsonObj.get("operator").isJsonNull()) && !jsonObj.get("operator").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `operator` to be a primitive type in the JSON string but got `%s`", jsonObj.get("operator").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `operator` to be a primitive type in the JSON string but got `%s`", jsonObj.get("operator").toString())); } // ensure the optional json data is an array if present if (jsonObj.get("values") != null && !jsonObj.get("values").isJsonNull() && !jsonObj.get("values").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); } } @@ -318,7 +317,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ValidateSubnetResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ValidateSubnetResponse.java index edd85f5b..b8527c1a 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ValidateSubnetResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ValidateSubnetResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.ConnectionSideAdditionalInfo; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * ValidateResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class ValidateSubnetResponse { public static final String SERIALIZED_NAME_ADDITIONAL_INFO = "additionalInfo"; @SerializedName(SERIALIZED_NAME_ADDITIONAL_INFO) @@ -176,11 +178,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("additionalInfo"); + openapiFields = new HashSet(Arrays.asList("additionalInfo")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -192,7 +193,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ValidateSubnetResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ValidateSubnetResponse is not found in the empty JSON string", ValidateSubnetResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ValidateSubnetResponse is not found in the empty JSON string", ValidateSubnetResponse.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -201,7 +202,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayadditionalInfo != null) { // ensure the json data is an array if (!jsonObj.get("additionalInfo").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `additionalInfo` to be an array in the JSON string but got `%s`", jsonObj.get("additionalInfo").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `additionalInfo` to be an array in the JSON string but got `%s`", jsonObj.get("additionalInfo").toString())); } // validate the optional field `additionalInfo` (array) @@ -269,7 +270,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ViewPoint.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ViewPoint.java index c0ba87d4..e3197e4e 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ViewPoint.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/ViewPoint.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualConnectionBridgePackageCode.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualConnectionBridgePackageCode.java index 6117120f..a4539cb7 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualConnectionBridgePackageCode.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualConnectionBridgePackageCode.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualConnectionPrice.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualConnectionPrice.java index 691ccbd1..9f472429 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualConnectionPrice.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualConnectionPrice.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.VirtualConnectionPriceASide; import com.equinix.sdk.fabricv4.model.VirtualConnectionPriceConnectionType; import com.equinix.sdk.fabricv4.model.VirtualConnectionPriceZSide; @@ -44,13 +45,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Virtual Connection Product configuration */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class VirtualConnectionPrice { public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) @@ -274,15 +276,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("uuid"); - openapiFields.add("type"); - openapiFields.add("bandwidth"); - openapiFields.add("aSide"); - openapiFields.add("zSide"); + openapiFields = new HashSet(Arrays.asList("uuid", "type", "bandwidth", "aSide", "zSide")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -294,12 +291,12 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!VirtualConnectionPrice.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in VirtualConnectionPrice is not found in the empty JSON string", VirtualConnectionPrice.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in VirtualConnectionPrice is not found in the empty JSON string", VirtualConnectionPrice.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } // validate the optional field `type` if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { @@ -372,7 +369,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualConnectionPriceASide.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualConnectionPriceASide.java index 68b99de1..f865278d 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualConnectionPriceASide.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualConnectionPriceASide.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.VirtualConnectionPriceASideAccessPoint; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * VirtualConnectionPriceASide */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class VirtualConnectionPriceASide { public static final String SERIALIZED_NAME_ACCESS_POINT = "accessPoint"; @SerializedName(SERIALIZED_NAME_ACCESS_POINT) @@ -166,11 +168,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("accessPoint"); + openapiFields = new HashSet(Arrays.asList("accessPoint")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -182,7 +183,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!VirtualConnectionPriceASide.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in VirtualConnectionPriceASide is not found in the empty JSON string", VirtualConnectionPriceASide.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in VirtualConnectionPriceASide is not found in the empty JSON string", VirtualConnectionPriceASide.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -249,7 +250,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualConnectionPriceASideAccessPoint.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualConnectionPriceASideAccessPoint.java index e63ce505..5719cd82 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualConnectionPriceASideAccessPoint.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualConnectionPriceASideAccessPoint.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.PriceLocation; import com.equinix.sdk.fabricv4.model.VirtualConnectionPriceASideAccessPointPort; import com.equinix.sdk.fabricv4.model.VirtualConnectionPriceAccessPointType; @@ -44,13 +45,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * VirtualConnectionPriceASideAccessPoint */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class VirtualConnectionPriceASideAccessPoint { public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) @@ -247,14 +249,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("uuid"); - openapiFields.add("type"); - openapiFields.add("location"); - openapiFields.add("port"); + openapiFields = new HashSet(Arrays.asList("uuid", "type", "location", "port")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -266,12 +264,12 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!VirtualConnectionPriceASideAccessPoint.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in VirtualConnectionPriceASideAccessPoint is not found in the empty JSON string", VirtualConnectionPriceASideAccessPoint.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in VirtualConnectionPriceASideAccessPoint is not found in the empty JSON string", VirtualConnectionPriceASideAccessPoint.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } // validate the optional field `type` if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { @@ -344,7 +342,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualConnectionPriceASideAccessPointPort.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualConnectionPriceASideAccessPointPort.java index b75b7c65..8b149aab 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualConnectionPriceASideAccessPointPort.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualConnectionPriceASideAccessPointPort.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.VirtualConnectionPriceASideAccessPointPortSettings; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * VirtualConnectionPriceASideAccessPointPort */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class VirtualConnectionPriceASideAccessPointPort { public static final String SERIALIZED_NAME_SETTINGS = "settings"; @SerializedName(SERIALIZED_NAME_SETTINGS) @@ -166,11 +168,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("settings"); + openapiFields = new HashSet(Arrays.asList("settings")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -182,7 +183,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!VirtualConnectionPriceASideAccessPointPort.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in VirtualConnectionPriceASideAccessPointPort is not found in the empty JSON string", VirtualConnectionPriceASideAccessPointPort.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in VirtualConnectionPriceASideAccessPointPort is not found in the empty JSON string", VirtualConnectionPriceASideAccessPointPort.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -249,7 +250,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualConnectionPriceASideAccessPointPortSettings.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualConnectionPriceASideAccessPointPortSettings.java index 1b3a2bd6..ef717521 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualConnectionPriceASideAccessPointPortSettings.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualConnectionPriceASideAccessPointPortSettings.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * VirtualConnectionPriceASideAccessPointPortSettings */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class VirtualConnectionPriceASideAccessPointPortSettings { public static final String SERIALIZED_NAME_BUYOUT = "buyout"; @SerializedName(SERIALIZED_NAME_BUYOUT) @@ -165,11 +167,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("buyout"); + openapiFields = new HashSet(Arrays.asList("buyout")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -181,7 +182,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!VirtualConnectionPriceASideAccessPointPortSettings.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in VirtualConnectionPriceASideAccessPointPortSettings is not found in the empty JSON string", VirtualConnectionPriceASideAccessPointPortSettings.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in VirtualConnectionPriceASideAccessPointPortSettings is not found in the empty JSON string", VirtualConnectionPriceASideAccessPointPortSettings.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -244,7 +245,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualConnectionPriceAccessPointType.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualConnectionPriceAccessPointType.java index c552e5c5..1e2a61b3 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualConnectionPriceAccessPointType.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualConnectionPriceAccessPointType.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualConnectionPriceConnectionType.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualConnectionPriceConnectionType.java index 706b9133..c768cdb4 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualConnectionPriceConnectionType.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualConnectionPriceConnectionType.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualConnectionPriceZSide.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualConnectionPriceZSide.java index 4d28ac91..4b851d12 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualConnectionPriceZSide.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualConnectionPriceZSide.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.VirtualConnectionPriceZSideAccessPoint; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * VirtualConnectionPriceZSide */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class VirtualConnectionPriceZSide { public static final String SERIALIZED_NAME_ACCESS_POINT = "accessPoint"; @SerializedName(SERIALIZED_NAME_ACCESS_POINT) @@ -166,11 +168,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("accessPoint"); + openapiFields = new HashSet(Arrays.asList("accessPoint")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -182,7 +183,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!VirtualConnectionPriceZSide.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in VirtualConnectionPriceZSide is not found in the empty JSON string", VirtualConnectionPriceZSide.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in VirtualConnectionPriceZSide is not found in the empty JSON string", VirtualConnectionPriceZSide.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -249,7 +250,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualConnectionPriceZSideAccessPoint.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualConnectionPriceZSideAccessPoint.java index 0706968a..91887dd4 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualConnectionPriceZSideAccessPoint.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualConnectionPriceZSideAccessPoint.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.PriceLocation; import com.equinix.sdk.fabricv4.model.VirtualConnectionPriceASideAccessPointPort; import com.equinix.sdk.fabricv4.model.VirtualConnectionPriceAccessPointType; @@ -46,13 +47,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * VirtualConnectionPriceZSideAccessPoint */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class VirtualConnectionPriceZSideAccessPoint { public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) @@ -301,16 +303,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("uuid"); - openapiFields.add("type"); - openapiFields.add("location"); - openapiFields.add("port"); - openapiFields.add("profile"); - openapiFields.add("bridge"); + openapiFields = new HashSet(Arrays.asList("uuid", "type", "location", "port", "profile", "bridge")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -322,12 +318,12 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!VirtualConnectionPriceZSideAccessPoint.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in VirtualConnectionPriceZSideAccessPoint is not found in the empty JSON string", VirtualConnectionPriceZSideAccessPoint.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in VirtualConnectionPriceZSideAccessPoint is not found in the empty JSON string", VirtualConnectionPriceZSideAccessPoint.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } // validate the optional field `type` if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { @@ -408,7 +404,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualConnectionPriceZSideAccessPointBridge.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualConnectionPriceZSideAccessPointBridge.java index 34137094..0a82bc29 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualConnectionPriceZSideAccessPointBridge.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualConnectionPriceZSideAccessPointBridge.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.VirtualConnectionPriceZSideAccessPointBridgePackage; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * VirtualConnectionPriceZSideAccessPointBridge */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class VirtualConnectionPriceZSideAccessPointBridge { public static final String SERIALIZED_NAME_PACKAGE = "package"; @SerializedName(SERIALIZED_NAME_PACKAGE) @@ -166,11 +168,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("package"); + openapiFields = new HashSet(Arrays.asList("package")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -182,7 +183,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!VirtualConnectionPriceZSideAccessPointBridge.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in VirtualConnectionPriceZSideAccessPointBridge is not found in the empty JSON string", VirtualConnectionPriceZSideAccessPointBridge.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in VirtualConnectionPriceZSideAccessPointBridge is not found in the empty JSON string", VirtualConnectionPriceZSideAccessPointBridge.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -249,7 +250,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualConnectionPriceZSideAccessPointBridgePackage.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualConnectionPriceZSideAccessPointBridgePackage.java index 129d4ea4..d97a8177 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualConnectionPriceZSideAccessPointBridgePackage.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualConnectionPriceZSideAccessPointBridgePackage.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.VirtualConnectionBridgePackageCode; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * VirtualConnectionPriceZSideAccessPointBridgePackage */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class VirtualConnectionPriceZSideAccessPointBridgePackage { public static final String SERIALIZED_NAME_CODE = "code"; @SerializedName(SERIALIZED_NAME_CODE) @@ -166,11 +168,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("code"); + openapiFields = new HashSet(Arrays.asList("code")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -182,7 +183,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!VirtualConnectionPriceZSideAccessPointBridgePackage.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in VirtualConnectionPriceZSideAccessPointBridgePackage is not found in the empty JSON string", VirtualConnectionPriceZSideAccessPointBridgePackage.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in VirtualConnectionPriceZSideAccessPointBridgePackage is not found in the empty JSON string", VirtualConnectionPriceZSideAccessPointBridgePackage.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -249,7 +250,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualConnectionPriceZSideAccessPointProfile.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualConnectionPriceZSideAccessPointProfile.java index 53dca086..aa33b8a8 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualConnectionPriceZSideAccessPointProfile.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualConnectionPriceZSideAccessPointProfile.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * VirtualConnectionPriceZSideAccessPointProfile */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class VirtualConnectionPriceZSideAccessPointProfile { public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) @@ -166,11 +168,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("uuid"); + openapiFields = new HashSet(Arrays.asList("uuid")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -182,12 +183,12 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!VirtualConnectionPriceZSideAccessPointProfile.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in VirtualConnectionPriceZSideAccessPointProfile is not found in the empty JSON string", VirtualConnectionPriceZSideAccessPointProfile.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in VirtualConnectionPriceZSideAccessPointProfile is not found in the empty JSON string", VirtualConnectionPriceZSideAccessPointProfile.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } } @@ -248,7 +249,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualConnectionSide.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualConnectionSide.java index cc6aaf7c..2638992d 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualConnectionSide.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualConnectionSide.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.AccessPoint; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Fabric Connection access point object. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class VirtualConnectionSide { public static final String SERIALIZED_NAME_ACCESS_POINT = "accessPoint"; @SerializedName(SERIALIZED_NAME_ACCESS_POINT) @@ -166,11 +168,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("accessPoint"); + openapiFields = new HashSet(Arrays.asList("accessPoint")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -182,7 +183,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!VirtualConnectionSide.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in VirtualConnectionSide is not found in the empty JSON string", VirtualConnectionSide.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in VirtualConnectionSide is not found in the empty JSON string", VirtualConnectionSide.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -249,7 +250,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualConnectionTimeServiceResponse.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualConnectionTimeServiceResponse.java index 31de6700..fea7aad3 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualConnectionTimeServiceResponse.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualConnectionTimeServiceResponse.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.VirtualConnectionSide; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Fabric Connection Precision Time Service Response Object */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class VirtualConnectionTimeServiceResponse { public static final String SERIALIZED_NAME_HREF = "href"; @SerializedName(SERIALIZED_NAME_HREF) @@ -271,15 +273,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("href"); - openapiFields.add("type"); - openapiFields.add("uuid"); - openapiFields.add("aSide"); - openapiFields.add("zSide"); + openapiFields = new HashSet(Arrays.asList("href", "type", "uuid", "aSide", "zSide")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -291,18 +288,18 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!VirtualConnectionTimeServiceResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in VirtualConnectionTimeServiceResponse is not found in the empty JSON string", VirtualConnectionTimeServiceResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in VirtualConnectionTimeServiceResponse is not found in the empty JSON string", VirtualConnectionTimeServiceResponse.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } // validate the optional field `aSide` if (jsonObj.get("aSide") != null && !jsonObj.get("aSide").isJsonNull()) { @@ -371,7 +368,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualConnectionUuid.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualConnectionUuid.java index 598b4491..3bde37eb 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualConnectionUuid.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualConnectionUuid.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * UUID of the Fabric Connection Instance */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class VirtualConnectionUuid { public static final String SERIALIZED_NAME_HREF = "href"; @SerializedName(SERIALIZED_NAME_HREF) @@ -218,14 +220,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("href"); - openapiFields.add("type"); - openapiFields.add("uuid"); + openapiFields = new HashSet(Arrays.asList("href", "type", "uuid")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("uuid"); + openapiRequiredFields = new HashSet(Arrays.asList("uuid")); } /** @@ -237,25 +235,25 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!VirtualConnectionUuid.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in VirtualConnectionUuid is not found in the empty JSON string", VirtualConnectionUuid.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in VirtualConnectionUuid is not found in the empty JSON string", VirtualConnectionUuid.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : VirtualConnectionUuid.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } if (!jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } } @@ -316,7 +314,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualDevice.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualDevice.java index ca80669d..3d7663dc 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualDevice.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualDevice.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.SimplifiedAccount; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Virtual Device AccessPoint Information */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class VirtualDevice { public static final String SERIALIZED_NAME_HREF = "href"; @SerializedName(SERIALIZED_NAME_HREF) @@ -347,16 +349,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("href"); - openapiFields.add("uuid"); - openapiFields.add("name"); - openapiFields.add("type"); - openapiFields.add("account"); - openapiFields.add("cluster"); + openapiFields = new HashSet(Arrays.asList("href", "uuid", "name", "type", "account", "cluster")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -368,21 +364,21 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!VirtualDevice.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in VirtualDevice is not found in the empty JSON string", VirtualDevice.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in VirtualDevice is not found in the empty JSON string", VirtualDevice.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the optional field `type` if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { @@ -393,7 +389,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti SimplifiedAccount.validateJsonElement(jsonObj.get("account")); } if ((jsonObj.get("cluster") != null && !jsonObj.get("cluster").isJsonNull()) && !jsonObj.get("cluster").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `cluster` to be a primitive type in the JSON string but got `%s`", jsonObj.get("cluster").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `cluster` to be a primitive type in the JSON string but got `%s`", jsonObj.get("cluster").toString())); } } @@ -454,7 +450,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualDeviceInterface.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualDeviceInterface.java index 1b58352a..8db92e6d 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualDeviceInterface.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualDeviceInterface.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -41,13 +42,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Virtual Device Interface Information */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class VirtualDeviceInterface { /** * Type of interface @@ -268,13 +270,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("type"); - openapiFields.add("id"); - openapiFields.add("uuid"); + openapiFields = new HashSet(Arrays.asList("type", "id", "uuid")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -286,19 +285,19 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!VirtualDeviceInterface.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in VirtualDeviceInterface is not found in the empty JSON string", VirtualDeviceInterface.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in VirtualDeviceInterface is not found in the empty JSON string", VirtualDeviceInterface.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the optional field `type` if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { TypeEnum.validateJsonElement(jsonObj.get("type")); } if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } } @@ -359,7 +358,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualNetwork.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualNetwork.java index a3ea5e15..057d652b 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualNetwork.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualNetwork.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Virtual Network Information */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class VirtualNetwork { public static final String SERIALIZED_NAME_HREF = "href"; @SerializedName(SERIALIZED_NAME_HREF) @@ -192,12 +194,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("href"); - openapiFields.add("uuid"); + openapiFields = new HashSet(Arrays.asList("href", "uuid")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -209,15 +209,15 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!VirtualNetwork.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in VirtualNetwork is not found in the empty JSON string", VirtualNetwork.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in VirtualNetwork is not found in the empty JSON string", VirtualNetwork.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } } @@ -278,7 +278,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualPortConfiguration.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualPortConfiguration.java index 412bc636..5d01a7d2 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualPortConfiguration.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualPortConfiguration.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Port configuration. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class VirtualPortConfiguration { public static final String SERIALIZED_NAME_BUYOUT = "buyout"; @SerializedName(SERIALIZED_NAME_BUYOUT) @@ -165,11 +167,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("buyout"); + openapiFields = new HashSet(Arrays.asList("buyout")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -181,7 +182,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!VirtualPortConfiguration.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in VirtualPortConfiguration is not found in the empty JSON string", VirtualPortConfiguration.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in VirtualPortConfiguration is not found in the empty JSON string", VirtualPortConfiguration.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -244,7 +245,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualPortLocation.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualPortLocation.java index 2860ecf4..6b2ef737 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualPortLocation.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualPortLocation.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Geographic data for the port. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class VirtualPortLocation { public static final String SERIALIZED_NAME_IBX = "ibx"; @SerializedName(SERIALIZED_NAME_IBX) @@ -165,11 +167,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("ibx"); + openapiFields = new HashSet(Arrays.asList("ibx")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -181,12 +182,12 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!VirtualPortLocation.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in VirtualPortLocation is not found in the empty JSON string", VirtualPortLocation.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in VirtualPortLocation is not found in the empty JSON string", VirtualPortLocation.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("ibx") != null && !jsonObj.get("ibx").isJsonNull()) && !jsonObj.get("ibx").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `ibx` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ibx").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `ibx` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ibx").toString())); } } @@ -247,7 +248,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualPortPackage.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualPortPackage.java index 01b055a4..cf5b9022 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualPortPackage.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualPortPackage.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Virtual Port Package */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class VirtualPortPackage { public static final String SERIALIZED_NAME_CODE = "code"; @SerializedName(SERIALIZED_NAME_CODE) @@ -165,11 +167,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("code"); + openapiFields = new HashSet(Arrays.asList("code")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -181,12 +182,12 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!VirtualPortPackage.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in VirtualPortPackage is not found in the empty JSON string", VirtualPortPackage.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in VirtualPortPackage is not found in the empty JSON string", VirtualPortPackage.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("code") != null && !jsonObj.get("code").isJsonNull()) && !jsonObj.get("code").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); } } @@ -247,7 +248,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualPortPrice.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualPortPrice.java index 879a95c7..c4681d37 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualPortPrice.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualPortPrice.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.equinix.sdk.fabricv4.model.ConnectivitySource; import com.equinix.sdk.fabricv4.model.LinkAggregationGroup; import com.equinix.sdk.fabricv4.model.VirtualPortConfiguration; @@ -49,13 +50,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Preferences and settings for a virtual port connected to an internet service provider (ISP) or other Equinix platform entity. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class VirtualPortPrice { public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) @@ -434,21 +436,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("uuid"); - openapiFields.add("type"); - openapiFields.add("location"); - openapiFields.add("lag"); - openapiFields.add("physicalPortsQuantity"); - openapiFields.add("bandwidth"); - openapiFields.add("redundancy"); - openapiFields.add("connectivitySource"); - openapiFields.add("serviceType"); - openapiFields.add("settings"); - openapiFields.add("package"); + openapiFields = new HashSet(Arrays.asList("uuid", "type", "location", "lag", "physicalPortsQuantity", "bandwidth", "redundancy", "connectivitySource", "serviceType", "settings", "package")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -460,12 +451,12 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!VirtualPortPrice.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in VirtualPortPrice is not found in the empty JSON string", VirtualPortPrice.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in VirtualPortPrice is not found in the empty JSON string", VirtualPortPrice.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } // validate the optional field `type` if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { @@ -558,7 +549,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualPortRedundancy.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualPortRedundancy.java index d439846d..591e4340 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualPortRedundancy.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualPortRedundancy.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,13 +41,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * Specifications for redundant connections, which improve service continuity by routing traffic to secondary ports when primary ports are unavailable. <br> Redundancy increases resilience and boosts site reliability scores. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class VirtualPortRedundancy { public static final String SERIALIZED_NAME_ENABLED = "enabled"; @SerializedName(SERIALIZED_NAME_ENABLED) @@ -165,11 +167,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("enabled"); + openapiFields = new HashSet(Arrays.asList("enabled")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -181,7 +182,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!VirtualPortRedundancy.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in VirtualPortRedundancy is not found in the empty JSON string", VirtualPortRedundancy.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in VirtualPortRedundancy is not found in the empty JSON string", VirtualPortRedundancy.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -244,7 +245,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualPortServiceType.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualPortServiceType.java index 636ea58a..50468211 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualPortServiceType.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualPortServiceType.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualPortType.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualPortType.java index e60e7514..78e87427 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualPortType.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VirtualPortType.java @@ -12,9 +12,11 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VpicInterface.java b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VpicInterface.java index f57f9821..67f35d21 100644 --- a/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VpicInterface.java +++ b/services/fabricv4/src/main/java/com/equinix/sdk/fabricv4/model/VpicInterface.java @@ -12,6 +12,7 @@ package com.equinix.sdk.fabricv4.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.equinix.sdk.fabricv4.JSON; /** * MCN VPIC Interface Information */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class VpicInterface { public static final String SERIALIZED_NAME_HREF = "href"; @SerializedName(SERIALIZED_NAME_HREF) @@ -192,12 +194,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("href"); - openapiFields.add("uuid"); + openapiFields = new HashSet(Arrays.asList("href", "uuid")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -209,15 +209,15 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!VpicInterface.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in VpicInterface is not found in the empty JSON string", VpicInterface.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in VpicInterface is not found in the empty JSON string", VpicInterface.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("href") != null && !jsonObj.get("href").isJsonNull()) && !jsonObj.get("href").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `href` to be a primitive type in the JSON string but got `%s`", jsonObj.get("href").toString())); } if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } } @@ -278,7 +278,7 @@ else if (entry.getValue().getAsJsonPrimitive().isNumber()) else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); } else if (entry.getValue().isJsonArray()) { instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); } else { // JSON object