From e4f03fbbcd52db1dafcd625649b2bceee7d7103d Mon Sep 17 00:00:00 2001 From: NathanFlurry Date: Tue, 13 Aug 2024 07:34:40 +0000 Subject: [PATCH] chore: add build get endpoint (#1046) ## Changes --- fern/definition/servers/__package__.yml | 6 +- fern/definition/servers/builds.yml | 26 +- fern/definition/servers/common.yml | 2 +- lib/convert/src/impls/ds.rs | 103 +- scripts/openapi/gen_rust.sh | 2 +- sdks/full/go/servers/builds.go | 40 +- sdks/full/go/servers/builds/client.go | 95 +- sdks/full/go/servers/client/client.go | 4 +- sdks/full/go/servers/servers.go | 3 +- sdks/full/go/servers/types.go | 6 +- sdks/full/openapi/openapi.yml | 90 +- sdks/full/openapi_compat/openapi.yml | 89 +- sdks/full/rust-cli/.gitignore | 3 + sdks/full/rust-cli/.openapi-generator-ignore | 23 + sdks/full/rust-cli/.openapi-generator/FILES | 754 +++++++++++ sdks/full/rust-cli/.openapi-generator/VERSION | 1 + sdks/full/rust-cli/.travis.yml | 1 + sdks/full/rust-cli/Cargo.toml | 19 + sdks/full/rust-cli/README.md | 524 ++++++++ sdks/full/rust-cli/docs/AdminApi.md | 37 + sdks/full/rust-cli/docs/AdminClustersApi.md | 67 + .../docs/AdminClustersBuildDeliveryMethod.md | 10 + .../rust-cli/docs/AdminClustersCluster.md | 14 + .../docs/AdminClustersCreateClusterRequest.md | 12 + .../AdminClustersCreateClusterResponse.md | 11 + .../AdminClustersCreateDatacenterRequest.md | 16 + .../AdminClustersCreateDatacenterResponse.md | 11 + .../rust-cli/docs/AdminClustersDatacenter.md | 19 + .../docs/AdminClustersDatacentersApi.md | 100 ++ .../rust-cli/docs/AdminClustersHardware.md | 11 + .../docs/AdminClustersListClustersResponse.md | 11 + .../AdminClustersListDatacentersResponse.md | 11 + .../docs/AdminClustersListServersResponse.md | 11 + sdks/full/rust-cli/docs/AdminClustersPool.md | 16 + .../rust-cli/docs/AdminClustersPoolType.md | 10 + .../rust-cli/docs/AdminClustersPoolUpdate.md | 16 + .../rust-cli/docs/AdminClustersProvider.md | 10 + .../full/rust-cli/docs/AdminClustersServer.md | 12 + .../rust-cli/docs/AdminClustersServersApi.md | 107 ++ .../AdminClustersUpdateDatacenterRequest.md | 12 + sdks/full/rust-cli/docs/AdminLoginRequest.md | 11 + sdks/full/rust-cli/docs/AdminLoginResponse.md | 11 + sdks/full/rust-cli/docs/AuthCompleteStatus.md | 10 + .../docs/AuthIdentityAccessTokenApi.md | 39 + ...yCompleteAccessTokenVerificationRequest.md | 11 + ...dentityCompleteEmailVerificationRequest.md | 12 + ...entityCompleteEmailVerificationResponse.md | 11 + .../rust-cli/docs/AuthIdentityEmailApi.md | 70 + ...thIdentityStartEmailVerificationRequest.md | 13 + ...hIdentityStartEmailVerificationResponse.md | 11 + .../docs/AuthRefreshIdentityTokenRequest.md | 11 + .../docs/AuthRefreshIdentityTokenResponse.md | 13 + sdks/full/rust-cli/docs/AuthTokensApi.md | 39 + sdks/full/rust-cli/docs/CaptchaConfig.md | 12 + .../rust-cli/docs/CaptchaConfigHcaptcha.md | 11 + .../rust-cli/docs/CaptchaConfigTurnstile.md | 11 + sdks/full/rust-cli/docs/CloudApi.md | 36 + sdks/full/rust-cli/docs/CloudAuthAgent.md | 12 + .../rust-cli/docs/CloudAuthAgentGameCloud.md | 11 + .../rust-cli/docs/CloudAuthAgentIdentity.md | 11 + sdks/full/rust-cli/docs/CloudAuthApi.md | 36 + .../rust-cli/docs/CloudBootstrapAccess.md | 10 + .../rust-cli/docs/CloudBootstrapCaptcha.md | 11 + .../docs/CloudBootstrapCaptchaTurnstile.md | 11 + .../rust-cli/docs/CloudBootstrapCluster.md | 10 + .../rust-cli/docs/CloudBootstrapDomains.md | 14 + .../docs/CloudBootstrapLoginMethods.md | 12 + .../rust-cli/docs/CloudBootstrapOrigins.md | 11 + .../rust-cli/docs/CloudBootstrapResponse.md | 16 + sdks/full/rust-cli/docs/CloudBuildSummary.md | 17 + sdks/full/rust-cli/docs/CloudCdnAuthType.md | 10 + .../docs/CloudCdnNamespaceAuthUser.md | 11 + .../rust-cli/docs/CloudCdnNamespaceConfig.md | 14 + .../rust-cli/docs/CloudCdnNamespaceDomain.md | 15 + ...oudCdnNamespaceDomainVerificationMethod.md | 12 + ...dnNamespaceDomainVerificationMethodHttp.md | 11 + ...oudCdnNamespaceDomainVerificationStatus.md | 10 + .../full/rust-cli/docs/CloudCdnSiteSummary.md | 16 + .../rust-cli/docs/CloudCustomAvatarSummary.md | 16 + .../CloudDevicesCompleteDeviceLinkRequest.md | 12 + .../docs/CloudDevicesGetDeviceLinkResponse.md | 12 + .../rust-cli/docs/CloudDevicesLinksApi.md | 93 ++ .../CloudDevicesPrepareDeviceLinkResponse.md | 13 + sdks/full/rust-cli/docs/CloudGameFull.md | 21 + .../rust-cli/docs/CloudGameLobbyExpenses.md | 13 + sdks/full/rust-cli/docs/CloudGamesApi.md | 261 ++++ .../rust-cli/docs/CloudGamesAvatarsApi.md | 103 ++ .../docs/CloudGamesBuildCompression.md | 10 + .../full/rust-cli/docs/CloudGamesBuildKind.md | 10 + .../full/rust-cli/docs/CloudGamesBuildsApi.md | 71 + sdks/full/rust-cli/docs/CloudGamesCdnApi.md | 71 + .../CloudGamesCreateCloudTokenResponse.md | 11 + .../docs/CloudGamesCreateGameBuildRequest.md | 16 + .../docs/CloudGamesCreateGameBuildResponse.md | 14 + .../CloudGamesCreateGameCdnSiteRequest.md | 12 + .../CloudGamesCreateGameCdnSiteResponse.md | 13 + .../docs/CloudGamesCreateGameRequest.md | 13 + .../docs/CloudGamesCreateGameResponse.md | 11 + .../CloudGamesCreateGameVersionRequest.md | 12 + .../CloudGamesCreateGameVersionResponse.md | 11 + .../CloudGamesCreateServiceTokenResponse.md | 11 + ...CloudGamesDeleteMatchmakerLobbyResponse.md | 11 + .../docs/CloudGamesExportLobbyLogsRequest.md | 11 + .../docs/CloudGamesExportLobbyLogsResponse.md | 11 + ...amesExportMatchmakerLobbyHistoryRequest.md | 12 + ...mesExportMatchmakerLobbyHistoryResponse.md | 11 + ...loudGamesGameBannerUploadPrepareRequest.md | 13 + ...oudGamesGameBannerUploadPrepareResponse.md | 12 + .../CloudGamesGameLogoUploadPrepareRequest.md | 13 + ...CloudGamesGameLogoUploadPrepareResponse.md | 12 + .../docs/CloudGamesGetGameByIdResponse.md | 12 + .../CloudGamesGetGameVersionByIdResponse.md | 11 + .../docs/CloudGamesGetGamesResponse.md | 13 + .../docs/CloudGamesGetLobbyLogsResponse.md | 13 + .../docs/CloudGamesListGameBuildsResponse.md | 11 + .../CloudGamesListGameCdnSitesResponse.md | 11 + ...CloudGamesListGameCustomAvatarsResponse.md | 11 + .../full/rust-cli/docs/CloudGamesLogStream.md | 10 + .../rust-cli/docs/CloudGamesMatchmakerApi.md | 139 ++ ...amesNamespacesAddNamespaceDomainRequest.md | 11 + .../docs/CloudGamesNamespacesAnalyticsApi.md | 40 + .../rust-cli/docs/CloudGamesNamespacesApi.md | 533 ++++++++ ...mesNamespacesCreateGameNamespaceRequest.md | 13 + ...esNamespacesCreateGameNamespaceResponse.md | 11 + ...ateGameNamespaceTokenDevelopmentRequest.md | 13 + ...teGameNamespaceTokenDevelopmentResponse.md | 11 + ...sCreateGameNamespaceTokenPublicResponse.md | 11 + ...pacesGetAnalyticsMatchmakerLiveResponse.md | 11 + ...sNamespacesGetGameNamespaceByIdResponse.md | 11 + ...sGetGameNamespaceVersionHistoryResponse.md | 11 + ...amesNamespacesGetNamespaceLobbyResponse.md | 15 + .../CloudGamesNamespacesInspectResponse.md | 11 + ...sNamespacesListNamespaceLobbiesResponse.md | 11 + .../docs/CloudGamesNamespacesLogsApi.md | 74 ++ ...amespacesSetNamespaceCdnAuthTypeRequest.md | 11 + ...sToggleNamespaceDomainPublicAuthRequest.md | 11 + ...ateGameNamespaceMatchmakerConfigRequest.md | 12 + ...spacesUpdateGameNamespaceVersionRequest.md | 11 + ...spacesUpdateNamespaceCdnAuthUserRequest.md | 12 + ...ateGameNamespaceMatchmakerConfigRequest.md | 12 + ...teGameNamespaceMatchmakerConfigResponse.md | 11 + ...sNamespacesValidateGameNamespaceRequest.md | 12 + ...NamespacesValidateGameNamespaceResponse.md | 11 + ...ateGameNamespaceTokenDevelopmentRequest.md | 12 + ...teGameNamespaceTokenDevelopmentResponse.md | 11 + ...udGamesPrepareCustomAvatarUploadRequest.md | 13 + ...dGamesPrepareCustomAvatarUploadResponse.md | 12 + .../CloudGamesReserveVersionNameResponse.md | 11 + .../full/rust-cli/docs/CloudGamesTokensApi.md | 70 + .../docs/CloudGamesValidateGameRequest.md | 12 + .../docs/CloudGamesValidateGameResponse.md | 11 + .../CloudGamesValidateGameVersionRequest.md | 12 + .../CloudGamesValidateGameVersionResponse.md | 11 + .../rust-cli/docs/CloudGamesVersionsApi.md | 135 ++ .../docs/CloudGetRayPerfLogsResponse.md | 11 + .../docs/CloudGetRegionTiersResponse.md | 11 + .../rust-cli/docs/CloudGroupBankSource.md | 12 + sdks/full/rust-cli/docs/CloudGroupsApi.md | 39 + .../rust-cli/docs/CloudInspectResponse.md | 11 + .../docs/CloudLobbySummaryAnalytics.md | 24 + sdks/full/rust-cli/docs/CloudLogsApi.md | 39 + .../rust-cli/docs/CloudLogsLobbyStatus.md | 12 + .../docs/CloudLogsLobbyStatusStopped.md | 13 + .../rust-cli/docs/CloudLogsLobbySummary.md | 18 + sdks/full/rust-cli/docs/CloudLogsPerfMark.md | 14 + sdks/full/rust-cli/docs/CloudLogsPerfSpan.md | 14 + .../docs/CloudMatchmakerDevelopmentPort.md | 13 + .../docs/CloudMatchmakerNamespaceConfig.md | 16 + .../rust-cli/docs/CloudNamespaceConfig.md | 14 + sdks/full/rust-cli/docs/CloudNamespaceFull.md | 16 + .../rust-cli/docs/CloudNamespaceSummary.md | 15 + .../rust-cli/docs/CloudNamespaceVersion.md | 13 + sdks/full/rust-cli/docs/CloudRegionSummary.md | 16 + sdks/full/rust-cli/docs/CloudRegionTier.md | 18 + .../rust-cli/docs/CloudRegionTierExpenses.md | 16 + sdks/full/rust-cli/docs/CloudSvcMetrics.md | 14 + sdks/full/rust-cli/docs/CloudSvcPerf.md | 16 + sdks/full/rust-cli/docs/CloudTiersApi.md | 36 + .../rust-cli/docs/CloudUniversalRegion.md | 10 + sdks/full/rust-cli/docs/CloudUploadsApi.md | 39 + .../docs/CloudValidateGroupRequest.md | 11 + .../docs/CloudValidateGroupResponse.md | 11 + .../rust-cli/docs/CloudVersionCdnConfig.md | 15 + .../CloudVersionCdnCustomHeadersMiddleware.md | 11 + .../rust-cli/docs/CloudVersionCdnHeader.md | 12 + .../docs/CloudVersionCdnMiddleware.md | 11 + .../docs/CloudVersionCdnMiddlewareKind.md | 11 + .../rust-cli/docs/CloudVersionCdnRoute.md | 13 + sdks/full/rust-cli/docs/CloudVersionConfig.md | 16 + .../rust-cli/docs/CloudVersionEngineConfig.md | 15 + .../docs/CloudVersionEngineUnrealConfig.md | 11 + sdks/full/rust-cli/docs/CloudVersionFull.md | 14 + .../docs/CloudVersionIdentityConfig.md | 14 + .../docs/CloudVersionIdentityCustomAvatar.md | 11 + .../CloudVersionIdentityCustomDisplayName.md | 11 + .../docs/CloudVersionMatchmakerCaptcha.md | 14 + .../CloudVersionMatchmakerCaptchaHcaptcha.md | 13 + ...udVersionMatchmakerCaptchaHcaptchaLevel.md | 10 + .../CloudVersionMatchmakerCaptchaTurnstile.md | 12 + .../docs/CloudVersionMatchmakerConfig.md | 21 + .../docs/CloudVersionMatchmakerGameMode.md | 21 + .../CloudVersionMatchmakerGameModeActions.md | 13 + ...udVersionMatchmakerGameModeCreateConfig.md | 16 + ...loudVersionMatchmakerGameModeFindConfig.md | 13 + ...onMatchmakerGameModeIdentityRequirement.md | 10 + ...sionMatchmakerGameModeIdleLobbiesConfig.md | 12 + ...loudVersionMatchmakerGameModeJoinConfig.md | 13 + .../CloudVersionMatchmakerGameModeRegion.md | 12 + ...dVersionMatchmakerGameModeRuntimeDocker.md | 18 + ...sionMatchmakerGameModeRuntimeDockerPort.md | 17 + ...ionMatchmakerGameModeVerificationConfig.md | 12 + .../docs/CloudVersionMatchmakerLobbyGroup.md | 16 + ...onMatchmakerLobbyGroupIdleLobbiesConfig.md | 12 + .../CloudVersionMatchmakerLobbyGroupRegion.md | 13 + ...CloudVersionMatchmakerLobbyGroupRuntime.md | 11 + ...ersionMatchmakerLobbyGroupRuntimeDocker.md | 15 + ...MatchmakerLobbyGroupRuntimeDockerEnvVar.md | 12 + ...onMatchmakerLobbyGroupRuntimeDockerPort.md | 14 + .../docs/CloudVersionMatchmakerNetworkMode.md | 10 + .../CloudVersionMatchmakerPortProtocol.md | 10 + .../docs/CloudVersionMatchmakerPortRange.md | 12 + .../docs/CloudVersionMatchmakerProxyKind.md | 10 + .../full/rust-cli/docs/CloudVersionSummary.md | 13 + sdks/full/rust-cli/docs/ErrorBody.md | 15 + sdks/full/rust-cli/docs/GameHandle.md | 15 + .../rust-cli/docs/GameLeaderboardCategory.md | 11 + sdks/full/rust-cli/docs/GamePlatformLink.md | 12 + sdks/full/rust-cli/docs/GameProfile.md | 23 + sdks/full/rust-cli/docs/GameStat.md | 12 + .../docs/GameStatAggregationMethod.md | 10 + sdks/full/rust-cli/docs/GameStatConfig.md | 21 + .../rust-cli/docs/GameStatFormatMethod.md | 10 + .../rust-cli/docs/GameStatSortingMethod.md | 10 + sdks/full/rust-cli/docs/GameStatSummary.md | 12 + sdks/full/rust-cli/docs/GameSummary.md | 18 + sdks/full/rust-cli/docs/GeoCoord.md | 12 + sdks/full/rust-cli/docs/GeoDistance.md | 12 + .../rust-cli/docs/GlobalEventNotification.md | 14 + sdks/full/rust-cli/docs/GroupApi.md | 549 ++++++++ .../full/rust-cli/docs/GroupBannedIdentity.md | 12 + .../docs/GroupConsumeInviteResponse.md | 11 + .../rust-cli/docs/GroupCreateInviteRequest.md | 12 + .../docs/GroupCreateInviteResponse.md | 11 + sdks/full/rust-cli/docs/GroupCreateRequest.md | 11 + .../full/rust-cli/docs/GroupCreateResponse.md | 11 + sdks/full/rust-cli/docs/GroupExternalLinks.md | 11 + .../rust-cli/docs/GroupGetBansResponse.md | 13 + .../rust-cli/docs/GroupGetInviteResponse.md | 11 + .../docs/GroupGetJoinRequestsResponse.md | 13 + .../rust-cli/docs/GroupGetMembersResponse.md | 13 + .../rust-cli/docs/GroupGetProfileResponse.md | 12 + .../rust-cli/docs/GroupGetSummaryResponse.md | 11 + sdks/full/rust-cli/docs/GroupHandle.md | 15 + sdks/full/rust-cli/docs/GroupInvitesApi.md | 102 ++ sdks/full/rust-cli/docs/GroupJoinRequest.md | 12 + .../rust-cli/docs/GroupJoinRequestsApi.md | 72 + .../docs/GroupListSuggestedResponse.md | 12 + sdks/full/rust-cli/docs/GroupMember.md | 11 + .../docs/GroupPrepareAvatarUploadRequest.md | 13 + .../docs/GroupPrepareAvatarUploadResponse.md | 12 + sdks/full/rust-cli/docs/GroupProfile.md | 23 + sdks/full/rust-cli/docs/GroupPublicity.md | 10 + .../docs/GroupResolveJoinRequestRequest.md | 11 + .../full/rust-cli/docs/GroupSearchResponse.md | 12 + sdks/full/rust-cli/docs/GroupSummary.md | 20 + .../docs/GroupTransferOwnershipRequest.md | 11 + .../docs/GroupUpdateProfileRequest.md | 13 + .../docs/GroupValidateProfileRequest.md | 13 + .../docs/GroupValidateProfileResponse.md | 11 + .../docs/IdentityAccessTokenLinkedAccount.md | 11 + .../rust-cli/docs/IdentityActivitiesApi.md | 39 + sdks/full/rust-cli/docs/IdentityApi.md | 770 +++++++++++ .../docs/IdentityCancelGameLinkRequest.md | 11 + .../docs/IdentityCompleteGameLinkRequest.md | 11 + sdks/full/rust-cli/docs/IdentityDevState.md | 10 + .../docs/IdentityEmailLinkedAccount.md | 11 + sdks/full/rust-cli/docs/IdentityEventsApi.md | 39 + .../rust-cli/docs/IdentityExternalLinks.md | 12 + .../rust-cli/docs/IdentityGameActivity.md | 14 + .../rust-cli/docs/IdentityGameLinkStatus.md | 10 + .../docs/IdentityGetGameLinkNewIdentity.md | 13 + .../docs/IdentityGetGameLinkResponse.md | 15 + .../docs/IdentityGetHandlesResponse.md | 12 + .../docs/IdentityGetProfileResponse.md | 12 + .../docs/IdentityGetSummariesResponse.md | 12 + .../full/rust-cli/docs/IdentityGlobalEvent.md | 13 + .../docs/IdentityGlobalEventIdentityUpdate.md | 11 + .../rust-cli/docs/IdentityGlobalEventKind.md | 12 + .../IdentityGlobalEventMatchmakerLobbyJoin.md | 13 + .../docs/IdentityGlobalEventNotification.md | 14 + sdks/full/rust-cli/docs/IdentityGroup.md | 11 + sdks/full/rust-cli/docs/IdentityHandle.md | 17 + .../rust-cli/docs/IdentityLinkedAccount.md | 12 + sdks/full/rust-cli/docs/IdentityLinksApi.md | 130 ++ .../docs/IdentityListActivitiesResponse.md | 15 + .../docs/IdentityListFollowersResponse.md | 13 + .../docs/IdentityListFollowingResponse.md | 13 + .../docs/IdentityListFriendsResponse.md | 13 + .../docs/IdentityListMutualFriendsResponse.md | 12 + .../IdentityListRecentFollowersResponse.md | 13 + .../IdentityPrepareAvatarUploadRequest.md | 13 + .../IdentityPrepareAvatarUploadResponse.md | 12 + .../docs/IdentityPrepareGameLinkResponse.md | 13 + sdks/full/rust-cli/docs/IdentityPresence.md | 13 + sdks/full/rust-cli/docs/IdentityProfile.md | 31 + .../rust-cli/docs/IdentityReportRequest.md | 11 + .../rust-cli/docs/IdentitySearchResponse.md | 12 + .../docs/IdentitySetGameActivityRequest.md | 11 + .../rust-cli/docs/IdentitySetupRequest.md | 11 + .../rust-cli/docs/IdentitySetupResponse.md | 14 + .../docs/IdentitySignupForBetaRequest.md | 15 + sdks/full/rust-cli/docs/IdentityStatus.md | 10 + sdks/full/rust-cli/docs/IdentitySummary.md | 20 + .../docs/IdentityUpdateGameActivity.md | 13 + .../docs/IdentityUpdateProfileRequest.md | 13 + .../docs/IdentityUpdateStatusRequest.md | 11 + .../docs/IdentityValidateProfileResponse.md | 11 + .../docs/IdentityWatchEventsResponse.md | 12 + sdks/full/rust-cli/docs/JobRunApi.md | 34 + sdks/full/rust-cli/docs/KvApi.md | 232 ++++ sdks/full/rust-cli/docs/KvEntry.md | 13 + sdks/full/rust-cli/docs/KvGetBatchResponse.md | 12 + sdks/full/rust-cli/docs/KvGetResponse.md | 13 + sdks/full/rust-cli/docs/KvListResponse.md | 11 + sdks/full/rust-cli/docs/KvPutBatchRequest.md | 12 + sdks/full/rust-cli/docs/KvPutEntry.md | 12 + sdks/full/rust-cli/docs/KvPutRequest.md | 13 + .../docs/MatchmakerCreateLobbyResponse.md | 13 + .../docs/MatchmakerCustomLobbyPublicity.md | 10 + .../docs/MatchmakerFindLobbyResponse.md | 13 + .../rust-cli/docs/MatchmakerGameModeInfo.md | 11 + .../docs/MatchmakerGameModeStatistics.md | 12 + .../docs/MatchmakerGetStatisticsResponse.md | 12 + .../full/rust-cli/docs/MatchmakerJoinLobby.md | 14 + .../docs/MatchmakerJoinLobbyResponse.md | 13 + .../rust-cli/docs/MatchmakerJoinPlayer.md | 11 + sdks/full/rust-cli/docs/MatchmakerJoinPort.md | 15 + .../rust-cli/docs/MatchmakerJoinPortRange.md | 12 + .../rust-cli/docs/MatchmakerJoinRegion.md | 12 + .../docs/MatchmakerListLobbiesResponse.md | 13 + .../docs/MatchmakerListRegionsResponse.md | 11 + .../rust-cli/docs/MatchmakerLobbiesApi.md | 254 ++++ .../docs/MatchmakerLobbiesCreateRequest.md | 18 + .../docs/MatchmakerLobbiesFindRequest.md | 17 + .../docs/MatchmakerLobbiesJoinRequest.md | 13 + .../docs/MatchmakerLobbiesSetClosedRequest.md | 11 + .../full/rust-cli/docs/MatchmakerLobbyInfo.md | 18 + .../rust-cli/docs/MatchmakerPlayersApi.md | 98 ++ .../docs/MatchmakerPlayersConnectedRequest.md | 11 + .../rust-cli/docs/MatchmakerRegionInfo.md | 15 + .../docs/MatchmakerRegionStatistics.md | 11 + .../rust-cli/docs/MatchmakerRegionsApi.md | 36 + sdks/full/rust-cli/docs/PortalGamesApi.md | 40 + .../docs/PortalGetGameProfileResponse.md | 12 + .../docs/PortalGetSuggestedGamesResponse.md | 12 + ...rtalNotificationRegisterFirebaseService.md | 11 + .../docs/PortalNotificationRegisterService.md | 11 + .../PortalNotificationUnregisterService.md | 10 + .../rust-cli/docs/ProvisionDatacentersApi.md | 37 + .../ProvisionDatacentersGetTlsResponse.md | 12 + .../full/rust-cli/docs/ProvisionServersApi.md | 37 + .../docs/ProvisionServersGetInfoResponse.md | 15 + sdks/full/rust-cli/docs/ServersApi.md | 138 ++ sdks/full/rust-cli/docs/ServersBuild.md | 17 + .../rust-cli/docs/ServersBuildCompression.md | 10 + sdks/full/rust-cli/docs/ServersBuildKind.md | 10 + sdks/full/rust-cli/docs/ServersBuildsApi.md | 139 ++ .../docs/ServersCreateBuildRequest.md | 17 + .../docs/ServersCreateBuildResponse.md | 14 + .../docs/ServersCreateServerNetworkRequest.md | 12 + .../docs/ServersCreateServerPortRequest.md | 13 + .../docs/ServersCreateServerRequest.md | 19 + .../docs/ServersCreateServerResponse.md | 11 + .../rust-cli/docs/ServersGetBuildResponse.md | 11 + .../docs/ServersGetServerLogsResponse.md | 13 + .../rust-cli/docs/ServersGetServerResponse.md | 11 + .../docs/ServersListBuildsResponse.md | 11 + .../docs/ServersListServersResponse.md | 11 + sdks/full/rust-cli/docs/ServersLogStream.md | 10 + sdks/full/rust-cli/docs/ServersLogsApi.md | 43 + sdks/full/rust-cli/docs/ServersNetwork.md | 12 + sdks/full/rust-cli/docs/ServersNetworkMode.md | 10 + sdks/full/rust-cli/docs/ServersPort.md | 15 + .../full/rust-cli/docs/ServersPortProtocol.md | 10 + sdks/full/rust-cli/docs/ServersPortRouting.md | 12 + sdks/full/rust-cli/docs/ServersResources.md | 12 + sdks/full/rust-cli/docs/ServersServer.md | 24 + sdks/full/rust-cli/docs/UploadPrepareFile.md | 13 + .../rust-cli/docs/UploadPresignedRequest.md | 14 + sdks/full/rust-cli/docs/ValidationError.md | 11 + sdks/full/rust-cli/docs/WatchResponse.md | 11 + sdks/full/rust-cli/git_push.sh | 57 + sdks/full/rust-cli/src/apis/admin_api.rs | 62 + .../rust-cli/src/apis/admin_clusters_api.rs | 107 ++ .../apis/admin_clusters_datacenters_api.rs | 150 +++ .../src/apis/admin_clusters_servers_api.rs | 183 +++ .../apis/auth_identity_access_token_api.rs | 63 + .../src/apis/auth_identity_email_api.rs | 108 ++ .../full/rust-cli/src/apis/auth_tokens_api.rs | 63 + sdks/full/rust-cli/src/apis/cloud_api.rs | 62 + sdks/full/rust-cli/src/apis/cloud_auth_api.rs | 62 + .../src/apis/cloud_devices_links_api.rs | 143 ++ .../full/rust-cli/src/apis/cloud_games_api.rs | 380 ++++++ .../src/apis/cloud_games_avatars_api.rs | 151 +++ .../src/apis/cloud_games_builds_api.rs | 107 ++ .../rust-cli/src/apis/cloud_games_cdn_api.rs | 107 ++ .../src/apis/cloud_games_matchmaker_api.rs | 200 +++ .../cloud_games_namespaces_analytics_api.rs | 62 + .../src/apis/cloud_games_namespaces_api.rs | 739 +++++++++++ .../apis/cloud_games_namespaces_logs_api.rs | 109 ++ .../src/apis/cloud_games_tokens_api.rs | 106 ++ .../src/apis/cloud_games_versions_api.rs | 196 +++ .../rust-cli/src/apis/cloud_groups_api.rs | 63 + sdks/full/rust-cli/src/apis/cloud_logs_api.rs | 62 + .../full/rust-cli/src/apis/cloud_tiers_api.rs | 62 + .../rust-cli/src/apis/cloud_uploads_api.rs | 62 + sdks/full/rust-cli/src/apis/configuration.rs | 53 + sdks/full/rust-cli/src/apis/group_api.rs | 809 ++++++++++++ .../rust-cli/src/apis/group_invites_api.rs | 151 +++ .../src/apis/group_join_requests_api.rs | 107 ++ .../src/apis/identity_activities_api.rs | 65 + sdks/full/rust-cli/src/apis/identity_api.rs | 1163 +++++++++++++++++ .../rust-cli/src/apis/identity_events_api.rs | 65 + .../rust-cli/src/apis/identity_links_api.rs | 200 +++ sdks/full/rust-cli/src/apis/job_run_api.rs | 61 + sdks/full/rust-cli/src/apis/kv_api.rs | 352 +++++ .../src/apis/matchmaker_lobbies_api.rs | 381 ++++++ .../src/apis/matchmaker_players_api.rs | 152 +++ .../src/apis/matchmaker_regions_api.rs | 62 + sdks/full/rust-cli/src/apis/mod.rs | 136 ++ .../rust-cli/src/apis/portal_games_api.rs | 65 + .../src/apis/provision_datacenters_api.rs | 61 + .../src/apis/provision_servers_api.rs | 61 + sdks/full/rust-cli/src/apis/servers_api.rs | 204 +++ .../rust-cli/src/apis/servers_builds_api.rs | 207 +++ .../rust-cli/src/apis/servers_logs_api.rs | 69 + sdks/full/rust-cli/src/lib.rs | 10 + .../admin_clusters_build_delivery_method.rs | 39 + .../src/models/admin_clusters_cluster.rs | 37 + .../admin_clusters_create_cluster_request.rs | 31 + .../admin_clusters_create_cluster_response.rs | 28 + ...dmin_clusters_create_datacenter_request.rs | 43 + ...min_clusters_create_datacenter_response.rs | 28 + .../src/models/admin_clusters_datacenter.rs | 52 + .../src/models/admin_clusters_hardware.rs | 28 + .../admin_clusters_list_clusters_response.rs | 28 + ...dmin_clusters_list_datacenters_response.rs | 28 + .../admin_clusters_list_servers_response.rs | 28 + .../src/models/admin_clusters_pool.rs | 43 + .../src/models/admin_clusters_pool_type.rs | 42 + .../src/models/admin_clusters_pool_update.rs | 43 + .../src/models/admin_clusters_provider.rs | 36 + .../src/models/admin_clusters_server.rs | 31 + ...dmin_clusters_update_datacenter_request.rs | 31 + .../src/models/admin_login_request.rs | 28 + .../src/models/admin_login_response.rs | 28 + .../src/models/auth_complete_status.rs | 52 + ...plete_access_token_verification_request.rs | 29 + ...ity_complete_email_verification_request.rs | 32 + ...ty_complete_email_verification_response.rs | 28 + ...entity_start_email_verification_request.rs | 34 + ...ntity_start_email_verification_response.rs | 28 + .../auth_refresh_identity_token_request.rs | 29 + .../auth_refresh_identity_token_response.rs | 36 + .../rust-cli/src/models/captcha_config.rs | 33 + .../src/models/captcha_config_hcaptcha.rs | 30 + .../src/models/captcha_config_turnstile.rs | 30 + .../rust-cli/src/models/cloud_auth_agent.rs | 33 + .../src/models/cloud_auth_agent_game_cloud.rs | 30 + .../src/models/cloud_auth_agent_identity.rs | 30 + .../src/models/cloud_bootstrap_access.rs | 39 + .../src/models/cloud_bootstrap_captcha.rs | 28 + .../cloud_bootstrap_captcha_turnstile.rs | 28 + .../src/models/cloud_bootstrap_cluster.rs | 40 + .../src/models/cloud_bootstrap_domains.rs | 39 + .../models/cloud_bootstrap_login_methods.rs | 31 + .../src/models/cloud_bootstrap_origins.rs | 30 + .../src/models/cloud_bootstrap_response.rs | 43 + .../src/models/cloud_build_summary.rs | 53 + .../src/models/cloud_cdn_auth_type.rs | 40 + .../models/cloud_cdn_namespace_auth_user.rs | 31 + .../src/models/cloud_cdn_namespace_config.rs | 42 + .../src/models/cloud_cdn_namespace_domain.rs | 44 + ...dn_namespace_domain_verification_method.rs | 33 + ...mespace_domain_verification_method_http.rs | 28 + ...dn_namespace_domain_verification_status.rs | 43 + .../src/models/cloud_cdn_site_summary.rs | 49 + .../src/models/cloud_custom_avatar_summary.rs | 50 + ...ud_devices_complete_device_link_request.rs | 32 + .../cloud_devices_get_device_link_response.rs | 31 + ...ud_devices_prepare_device_link_response.rs | 34 + .../rust-cli/src/models/cloud_game_full.rs | 69 + .../src/models/cloud_game_lobby_expenses.rs | 38 + .../models/cloud_games_build_compression.rs | 39 + .../src/models/cloud_games_build_kind.rs | 39 + ...cloud_games_create_cloud_token_response.rs | 29 + .../cloud_games_create_game_build_request.rs | 45 + .../cloud_games_create_game_build_response.rs | 37 + ...loud_games_create_game_cdn_site_request.rs | 33 + ...oud_games_create_game_cdn_site_response.rs | 34 + .../models/cloud_games_create_game_request.rs | 36 + .../cloud_games_create_game_response.rs | 28 + ...cloud_games_create_game_version_request.rs | 32 + ...loud_games_create_game_version_response.rs | 28 + ...oud_games_create_service_token_response.rs | 29 + ..._games_delete_matchmaker_lobby_response.rs | 29 + .../cloud_games_export_lobby_logs_request.rs | 28 + .../cloud_games_export_lobby_logs_response.rs | 29 + ...export_matchmaker_lobby_history_request.rs | 33 + ...xport_matchmaker_lobby_history_response.rs | 29 + ...ames_game_banner_upload_prepare_request.rs | 37 + ...mes_game_banner_upload_prepare_response.rs | 31 + ..._games_game_logo_upload_prepare_request.rs | 37 + ...games_game_logo_upload_prepare_response.rs | 31 + .../cloud_games_get_game_by_id_response.rs | 31 + ...d_games_get_game_version_by_id_response.rs | 28 + .../models/cloud_games_get_games_response.rs | 36 + .../cloud_games_get_lobby_logs_response.rs | 36 + .../cloud_games_list_game_builds_response.rs | 29 + ...loud_games_list_game_cdn_sites_response.rs | 29 + ...games_list_game_custom_avatars_response.rs | 29 + .../src/models/cloud_games_log_stream.rs | 39 + ...namespaces_add_namespace_domain_request.rs | 29 + ...amespaces_create_game_namespace_request.rs | 36 + ...mespaces_create_game_namespace_response.rs | 28 + ...ame_namespace_token_development_request.rs | 36 + ...me_namespace_token_development_response.rs | 29 + ...te_game_namespace_token_public_response.rs | 29 + ..._get_analytics_matchmaker_live_response.rs | 29 + ...paces_get_game_namespace_by_id_response.rs | 28 + ...game_namespace_version_history_response.rs | 29 + ...namespaces_get_namespace_lobby_response.rs | 43 + ...cloud_games_namespaces_inspect_response.rs | 28 + ...espaces_list_namespace_lobbies_response.rs | 29 + ...ces_set_namespace_cdn_auth_type_request.rs | 28 + ...le_namespace_domain_public_auth_request.rs | 29 + ...ame_namespace_matchmaker_config_request.rs | 33 + ...s_update_game_namespace_version_request.rs | 28 + ..._update_namespace_cdn_auth_user_request.rs | 33 + ...ame_namespace_matchmaker_config_request.rs | 33 + ...me_namespace_matchmaker_config_response.rs | 29 + ...espaces_validate_game_namespace_request.rs | 33 + ...spaces_validate_game_namespace_response.rs | 29 + ...ame_namespace_token_development_request.rs | 32 + ...me_namespace_token_development_response.rs | 29 + ...es_prepare_custom_avatar_upload_request.rs | 37 + ...s_prepare_custom_avatar_upload_response.rs | 31 + ...oud_games_reserve_version_name_response.rs | 29 + .../cloud_games_validate_game_request.rs | 33 + .../cloud_games_validate_game_response.rs | 29 + ...oud_games_validate_game_version_request.rs | 32 + ...ud_games_validate_game_version_response.rs | 29 + .../cloud_get_ray_perf_logs_response.rs | 29 + .../models/cloud_get_region_tiers_response.rs | 29 + .../src/models/cloud_group_bank_source.rs | 33 + .../src/models/cloud_inspect_response.rs | 28 + .../models/cloud_lobby_summary_analytics.rs | 80 ++ .../src/models/cloud_logs_lobby_status.rs | 33 + .../models/cloud_logs_lobby_status_stopped.rs | 39 + .../src/models/cloud_logs_lobby_summary.rs | 55 + .../src/models/cloud_logs_perf_mark.rs | 41 + .../src/models/cloud_logs_perf_span.rs | 42 + .../cloud_matchmaker_development_port.rs | 36 + .../cloud_matchmaker_namespace_config.rs | 51 + .../src/models/cloud_namespace_config.rs | 41 + .../src/models/cloud_namespace_full.rs | 48 + .../src/models/cloud_namespace_summary.rs | 45 + .../src/models/cloud_namespace_version.rs | 39 + .../src/models/cloud_region_summary.rs | 49 + .../rust-cli/src/models/cloud_region_tier.rs | 59 + .../src/models/cloud_region_tier_expenses.rs | 49 + .../rust-cli/src/models/cloud_svc_metrics.rs | 43 + .../rust-cli/src/models/cloud_svc_perf.rs | 50 + .../src/models/cloud_universal_region.rs | 118 ++ .../models/cloud_validate_group_request.rs | 29 + .../models/cloud_validate_group_response.rs | 29 + .../src/models/cloud_version_cdn_config.rs | 47 + ...d_version_cdn_custom_headers_middleware.rs | 29 + .../src/models/cloud_version_cdn_header.rs | 32 + .../models/cloud_version_cdn_middleware.rs | 29 + .../cloud_version_cdn_middleware_kind.rs | 29 + .../src/models/cloud_version_cdn_route.rs | 37 + .../src/models/cloud_version_config.rs | 47 + .../src/models/cloud_version_engine_config.rs | 41 + .../cloud_version_engine_unreal_config.rs | 30 + .../rust-cli/src/models/cloud_version_full.rs | 42 + .../models/cloud_version_identity_config.rs | 44 + .../cloud_version_identity_custom_avatar.rs | 29 + ...ud_version_identity_custom_display_name.rs | 30 + .../cloud_version_matchmaker_captcha.rs | 42 + ...oud_version_matchmaker_captcha_hcaptcha.rs | 39 + ...rsion_matchmaker_captcha_hcaptcha_level.rs | 47 + ...ud_version_matchmaker_captcha_turnstile.rs | 34 + .../models/cloud_version_matchmaker_config.rs | 64 + .../cloud_version_matchmaker_game_mode.rs | 61 + ...ud_version_matchmaker_game_mode_actions.rs | 37 + ...sion_matchmaker_game_mode_create_config.rs | 50 + ...ersion_matchmaker_game_mode_find_config.rs | 38 + ...tchmaker_game_mode_identity_requirement.rs | 44 + ...atchmaker_game_mode_idle_lobbies_config.rs | 34 + ...ersion_matchmaker_game_mode_join_config.rs | 38 + ...oud_version_matchmaker_game_mode_region.rs | 34 + ...ion_matchmaker_game_mode_runtime_docker.rs | 55 + ...atchmaker_game_mode_runtime_docker_port.rs | 51 + ...atchmaker_game_mode_verification_config.rs | 34 + .../cloud_version_matchmaker_lobby_group.rs | 51 + ...chmaker_lobby_group_idle_lobbies_config.rs | 36 + ...d_version_matchmaker_lobby_group_region.rs | 38 + ..._version_matchmaker_lobby_group_runtime.rs | 31 + ...n_matchmaker_lobby_group_runtime_docker.rs | 43 + ...aker_lobby_group_runtime_docker_env_var.rs | 34 + ...chmaker_lobby_group_runtime_docker_port.rs | 42 + .../cloud_version_matchmaker_network_mode.rs | 41 + .../cloud_version_matchmaker_port_protocol.rs | 50 + .../cloud_version_matchmaker_port_range.rs | 36 + .../cloud_version_matchmaker_proxy_kind.rs | 41 + .../src/models/cloud_version_summary.rs | 39 + sdks/full/rust-cli/src/models/error_body.rs | 41 + sdks/full/rust-cli/src/models/game_handle.rs | 44 + .../src/models/game_leaderboard_category.rs | 31 + .../rust-cli/src/models/game_platform_link.rs | 35 + sdks/full/rust-cli/src/models/game_profile.rs | 77 ++ sdks/full/rust-cli/src/models/game_stat.rs | 34 + .../models/game_stat_aggregation_method.rs | 46 + .../rust-cli/src/models/game_stat_config.rs | 65 + .../src/models/game_stat_format_method.rs | 55 + .../src/models/game_stat_sorting_method.rs | 40 + .../rust-cli/src/models/game_stat_summary.rs | 33 + sdks/full/rust-cli/src/models/game_summary.rs | 54 + sdks/full/rust-cli/src/models/geo_coord.rs | 33 + sdks/full/rust-cli/src/models/geo_distance.rs | 33 + .../src/models/global_event_notification.rs | 37 + .../src/models/group_banned_identity.rs | 34 + .../models/group_consume_invite_response.rs | 28 + .../src/models/group_create_invite_request.rs | 33 + .../models/group_create_invite_response.rs | 29 + .../src/models/group_create_request.rs | 29 + .../src/models/group_create_response.rs | 28 + .../src/models/group_external_links.rs | 31 + .../src/models/group_get_bans_response.rs | 36 + .../src/models/group_get_invite_response.rs | 28 + .../group_get_join_requests_response.rs | 36 + .../src/models/group_get_members_response.rs | 36 + .../src/models/group_get_profile_response.rs | 31 + .../src/models/group_get_summary_response.rs | 28 + sdks/full/rust-cli/src/models/group_handle.rs | 45 + .../rust-cli/src/models/group_join_request.rs | 34 + .../models/group_list_suggested_response.rs | 32 + sdks/full/rust-cli/src/models/group_member.rs | 30 + .../group_prepare_avatar_upload_request.rs | 37 + .../group_prepare_avatar_upload_response.rs | 31 + .../full/rust-cli/src/models/group_profile.rs | 75 ++ .../rust-cli/src/models/group_publicity.rs | 40 + .../group_resolve_join_request_request.rs | 28 + .../src/models/group_search_response.rs | 32 + .../full/rust-cli/src/models/group_summary.rs | 60 + .../group_transfer_ownership_request.rs | 29 + .../models/group_update_profile_request.rs | 36 + .../models/group_validate_profile_request.rs | 36 + .../models/group_validate_profile_response.rs | 29 + .../identity_access_token_linked_account.rs | 30 + .../identity_cancel_game_link_request.rs | 29 + .../identity_complete_game_link_request.rs | 29 + .../rust-cli/src/models/identity_dev_state.rs | 43 + .../models/identity_email_linked_account.rs | 31 + .../src/models/identity_external_links.rs | 35 + .../src/models/identity_game_activity.rs | 42 + .../src/models/identity_game_link_status.rs | 42 + .../identity_get_game_link_new_identity.rs | 36 + .../models/identity_get_game_link_response.rs | 40 + .../models/identity_get_handles_response.rs | 31 + .../models/identity_get_profile_response.rs | 31 + .../models/identity_get_summaries_response.rs | 31 + .../src/models/identity_global_event.rs | 37 + .../identity_global_event_identity_update.rs | 28 + .../src/models/identity_global_event_kind.rs | 31 + ...tity_global_event_matchmaker_lobby_join.rs | 34 + .../identity_global_event_notification.rs | 41 + .../rust-cli/src/models/identity_group.rs | 30 + .../rust-cli/src/models/identity_handle.rs | 51 + .../src/models/identity_linked_account.rs | 33 + .../identity_list_activities_response.rs | 40 + .../identity_list_followers_response.rs | 34 + .../identity_list_following_response.rs | 34 + .../models/identity_list_friends_response.rs | 34 + .../identity_list_mutual_friends_response.rs | 31 + ...identity_list_recent_followers_response.rs | 34 + .../identity_prepare_avatar_upload_request.rs | 35 + ...identity_prepare_avatar_upload_response.rs | 31 + .../identity_prepare_game_link_response.rs | 36 + .../rust-cli/src/models/identity_presence.rs | 37 + .../rust-cli/src/models/identity_profile.rs | 100 ++ .../src/models/identity_report_request.rs | 28 + .../src/models/identity_search_response.rs | 32 + .../identity_set_game_activity_request.rs | 28 + .../src/models/identity_setup_request.rs | 29 + .../src/models/identity_setup_response.rs | 39 + .../identity_signup_for_beta_request.rs | 40 + .../rust-cli/src/models/identity_status.rs | 43 + .../rust-cli/src/models/identity_summary.rs | 62 + .../models/identity_update_game_activity.rs | 39 + .../models/identity_update_profile_request.rs | 36 + .../models/identity_update_status_request.rs | 28 + .../identity_validate_profile_response.rs | 28 + .../models/identity_watch_events_response.rs | 31 + sdks/full/rust-cli/src/models/kv_entry.rs | 38 + .../src/models/kv_get_batch_response.rs | 31 + .../rust-cli/src/models/kv_get_response.rs | 36 + .../rust-cli/src/models/kv_list_response.rs | 28 + .../src/models/kv_put_batch_request.rs | 31 + sdks/full/rust-cli/src/models/kv_put_entry.rs | 35 + .../rust-cli/src/models/kv_put_request.rs | 36 + .../matchmaker_create_lobby_response.rs | 34 + .../matchmaker_custom_lobby_publicity.rs | 39 + .../models/matchmaker_find_lobby_response.rs | 34 + .../src/models/matchmaker_game_mode_info.rs | 31 + .../models/matchmaker_game_mode_statistics.rs | 31 + .../matchmaker_get_statistics_response.rs | 31 + .../src/models/matchmaker_join_lobby.rs | 40 + .../models/matchmaker_join_lobby_response.rs | 34 + .../src/models/matchmaker_join_player.rs | 31 + .../src/models/matchmaker_join_port.rs | 43 + .../src/models/matchmaker_join_port_range.rs | 35 + .../src/models/matchmaker_join_region.rs | 35 + .../matchmaker_list_lobbies_response.rs | 34 + .../matchmaker_list_regions_response.rs | 28 + .../matchmaker_lobbies_create_request.rs | 49 + .../models/matchmaker_lobbies_find_request.rs | 46 + .../models/matchmaker_lobbies_join_request.rs | 34 + .../matchmaker_lobbies_set_closed_request.rs | 28 + .../src/models/matchmaker_lobby_info.rs | 51 + .../matchmaker_players_connected_request.rs | 28 + .../src/models/matchmaker_region_info.rs | 45 + .../models/matchmaker_region_statistics.rs | 28 + sdks/full/rust-cli/src/models/mod.rs | 660 ++++++++++ .../portal_get_game_profile_response.rs | 31 + .../portal_get_suggested_games_response.rs | 32 + ..._notification_register_firebase_service.rs | 28 + .../portal_notification_register_service.rs | 28 + .../portal_notification_unregister_service.rs | 36 + .../provision_datacenters_get_tls_response.rs | 31 + .../provision_servers_get_info_response.rs | 40 + .../full/rust-cli/src/models/servers_build.rs | 50 + .../src/models/servers_build_compression.rs | 39 + .../rust-cli/src/models/servers_build_kind.rs | 39 + .../models/servers_create_build_request.rs | 47 + .../models/servers_create_build_response.rs | 37 + .../servers_create_server_network_request.rs | 31 + .../servers_create_server_port_request.rs | 34 + .../models/servers_create_server_request.rs | 54 + .../models/servers_create_server_response.rs | 28 + .../src/models/servers_get_build_response.rs | 28 + .../servers_get_server_logs_response.rs | 36 + .../src/models/servers_get_server_response.rs | 28 + .../models/servers_list_builds_response.rs | 29 + .../models/servers_list_servers_response.rs | 29 + .../rust-cli/src/models/servers_log_stream.rs | 39 + .../rust-cli/src/models/servers_network.rs | 31 + .../src/models/servers_network_mode.rs | 39 + sdks/full/rust-cli/src/models/servers_port.rs | 40 + .../src/models/servers_port_protocol.rs | 48 + .../src/models/servers_port_routing.rs | 31 + .../rust-cli/src/models/servers_resources.rs | 33 + .../rust-cli/src/models/servers_server.rs | 68 + .../src/models/upload_prepare_file.rs | 39 + .../src/models/upload_presigned_request.rs | 43 + .../rust-cli/src/models/validation_error.rs | 31 + .../rust-cli/src/models/watch_response.rs | 31 + sdks/full/rust/.openapi-generator/FILES | 2 + sdks/full/rust/README.md | 2 + sdks/full/rust/docs/ServersApi.md | 4 +- sdks/full/rust/docs/ServersBuildsApi.md | 38 +- .../rust/docs/ServersCreateServerRequest.md | 2 +- .../full/rust/docs/ServersGetBuildResponse.md | 11 + sdks/full/rust/docs/ServersServer.md | 2 +- .../src/apis/admin_clusters_servers_api.rs | 6 +- sdks/full/rust/src/apis/servers_api.rs | 6 +- sdks/full/rust/src/apis/servers_builds_api.rs | 56 +- sdks/full/rust/src/apis/servers_logs_api.rs | 2 +- sdks/full/rust/src/models/mod.rs | 2 + .../models/servers_create_server_request.rs | 5 +- .../src/models/servers_get_build_response.rs | 28 + sdks/full/rust/src/models/servers_server.rs | 4 +- sdks/full/typescript/archive.tgz | 4 +- .../api/resources/servers/client/Client.ts | 10 +- .../client/requests/GetServersRequest.ts | 4 +- .../servers/resources/builds/client/Client.ts | 160 ++- ...GetBuildsRequest.ts => GetBuildRequest.ts} | 6 +- .../client/requests/ListBuildsRequest.ts | 15 + .../resources/builds/client/requests/index.ts | 3 +- sdks/runtime/typescript/archive.tgz | 4 +- svc/api/servers/src/assert.rs | 10 +- svc/api/servers/src/route/builds.rs | 94 +- svc/api/servers/src/route/logs.rs | 4 +- svc/api/servers/src/route/mod.rs | 10 +- svc/api/servers/src/route/servers.rs | 63 +- svc/api/servers/tests/basic.rs | 46 +- svc/pkg/ds/worker/src/workers/mod.rs | 2 +- 798 files changed, 32132 insertions(+), 218 deletions(-) create mode 100644 sdks/full/rust-cli/.gitignore create mode 100644 sdks/full/rust-cli/.openapi-generator-ignore create mode 100644 sdks/full/rust-cli/.openapi-generator/FILES create mode 100644 sdks/full/rust-cli/.openapi-generator/VERSION create mode 100644 sdks/full/rust-cli/.travis.yml create mode 100644 sdks/full/rust-cli/Cargo.toml create mode 100644 sdks/full/rust-cli/README.md create mode 100644 sdks/full/rust-cli/docs/AdminApi.md create mode 100644 sdks/full/rust-cli/docs/AdminClustersApi.md create mode 100644 sdks/full/rust-cli/docs/AdminClustersBuildDeliveryMethod.md create mode 100644 sdks/full/rust-cli/docs/AdminClustersCluster.md create mode 100644 sdks/full/rust-cli/docs/AdminClustersCreateClusterRequest.md create mode 100644 sdks/full/rust-cli/docs/AdminClustersCreateClusterResponse.md create mode 100644 sdks/full/rust-cli/docs/AdminClustersCreateDatacenterRequest.md create mode 100644 sdks/full/rust-cli/docs/AdminClustersCreateDatacenterResponse.md create mode 100644 sdks/full/rust-cli/docs/AdminClustersDatacenter.md create mode 100644 sdks/full/rust-cli/docs/AdminClustersDatacentersApi.md create mode 100644 sdks/full/rust-cli/docs/AdminClustersHardware.md create mode 100644 sdks/full/rust-cli/docs/AdminClustersListClustersResponse.md create mode 100644 sdks/full/rust-cli/docs/AdminClustersListDatacentersResponse.md create mode 100644 sdks/full/rust-cli/docs/AdminClustersListServersResponse.md create mode 100644 sdks/full/rust-cli/docs/AdminClustersPool.md create mode 100644 sdks/full/rust-cli/docs/AdminClustersPoolType.md create mode 100644 sdks/full/rust-cli/docs/AdminClustersPoolUpdate.md create mode 100644 sdks/full/rust-cli/docs/AdminClustersProvider.md create mode 100644 sdks/full/rust-cli/docs/AdminClustersServer.md create mode 100644 sdks/full/rust-cli/docs/AdminClustersServersApi.md create mode 100644 sdks/full/rust-cli/docs/AdminClustersUpdateDatacenterRequest.md create mode 100644 sdks/full/rust-cli/docs/AdminLoginRequest.md create mode 100644 sdks/full/rust-cli/docs/AdminLoginResponse.md create mode 100644 sdks/full/rust-cli/docs/AuthCompleteStatus.md create mode 100644 sdks/full/rust-cli/docs/AuthIdentityAccessTokenApi.md create mode 100644 sdks/full/rust-cli/docs/AuthIdentityCompleteAccessTokenVerificationRequest.md create mode 100644 sdks/full/rust-cli/docs/AuthIdentityCompleteEmailVerificationRequest.md create mode 100644 sdks/full/rust-cli/docs/AuthIdentityCompleteEmailVerificationResponse.md create mode 100644 sdks/full/rust-cli/docs/AuthIdentityEmailApi.md create mode 100644 sdks/full/rust-cli/docs/AuthIdentityStartEmailVerificationRequest.md create mode 100644 sdks/full/rust-cli/docs/AuthIdentityStartEmailVerificationResponse.md create mode 100644 sdks/full/rust-cli/docs/AuthRefreshIdentityTokenRequest.md create mode 100644 sdks/full/rust-cli/docs/AuthRefreshIdentityTokenResponse.md create mode 100644 sdks/full/rust-cli/docs/AuthTokensApi.md create mode 100644 sdks/full/rust-cli/docs/CaptchaConfig.md create mode 100644 sdks/full/rust-cli/docs/CaptchaConfigHcaptcha.md create mode 100644 sdks/full/rust-cli/docs/CaptchaConfigTurnstile.md create mode 100644 sdks/full/rust-cli/docs/CloudApi.md create mode 100644 sdks/full/rust-cli/docs/CloudAuthAgent.md create mode 100644 sdks/full/rust-cli/docs/CloudAuthAgentGameCloud.md create mode 100644 sdks/full/rust-cli/docs/CloudAuthAgentIdentity.md create mode 100644 sdks/full/rust-cli/docs/CloudAuthApi.md create mode 100644 sdks/full/rust-cli/docs/CloudBootstrapAccess.md create mode 100644 sdks/full/rust-cli/docs/CloudBootstrapCaptcha.md create mode 100644 sdks/full/rust-cli/docs/CloudBootstrapCaptchaTurnstile.md create mode 100644 sdks/full/rust-cli/docs/CloudBootstrapCluster.md create mode 100644 sdks/full/rust-cli/docs/CloudBootstrapDomains.md create mode 100644 sdks/full/rust-cli/docs/CloudBootstrapLoginMethods.md create mode 100644 sdks/full/rust-cli/docs/CloudBootstrapOrigins.md create mode 100644 sdks/full/rust-cli/docs/CloudBootstrapResponse.md create mode 100644 sdks/full/rust-cli/docs/CloudBuildSummary.md create mode 100644 sdks/full/rust-cli/docs/CloudCdnAuthType.md create mode 100644 sdks/full/rust-cli/docs/CloudCdnNamespaceAuthUser.md create mode 100644 sdks/full/rust-cli/docs/CloudCdnNamespaceConfig.md create mode 100644 sdks/full/rust-cli/docs/CloudCdnNamespaceDomain.md create mode 100644 sdks/full/rust-cli/docs/CloudCdnNamespaceDomainVerificationMethod.md create mode 100644 sdks/full/rust-cli/docs/CloudCdnNamespaceDomainVerificationMethodHttp.md create mode 100644 sdks/full/rust-cli/docs/CloudCdnNamespaceDomainVerificationStatus.md create mode 100644 sdks/full/rust-cli/docs/CloudCdnSiteSummary.md create mode 100644 sdks/full/rust-cli/docs/CloudCustomAvatarSummary.md create mode 100644 sdks/full/rust-cli/docs/CloudDevicesCompleteDeviceLinkRequest.md create mode 100644 sdks/full/rust-cli/docs/CloudDevicesGetDeviceLinkResponse.md create mode 100644 sdks/full/rust-cli/docs/CloudDevicesLinksApi.md create mode 100644 sdks/full/rust-cli/docs/CloudDevicesPrepareDeviceLinkResponse.md create mode 100644 sdks/full/rust-cli/docs/CloudGameFull.md create mode 100644 sdks/full/rust-cli/docs/CloudGameLobbyExpenses.md create mode 100644 sdks/full/rust-cli/docs/CloudGamesApi.md create mode 100644 sdks/full/rust-cli/docs/CloudGamesAvatarsApi.md create mode 100644 sdks/full/rust-cli/docs/CloudGamesBuildCompression.md create mode 100644 sdks/full/rust-cli/docs/CloudGamesBuildKind.md create mode 100644 sdks/full/rust-cli/docs/CloudGamesBuildsApi.md create mode 100644 sdks/full/rust-cli/docs/CloudGamesCdnApi.md create mode 100644 sdks/full/rust-cli/docs/CloudGamesCreateCloudTokenResponse.md create mode 100644 sdks/full/rust-cli/docs/CloudGamesCreateGameBuildRequest.md create mode 100644 sdks/full/rust-cli/docs/CloudGamesCreateGameBuildResponse.md create mode 100644 sdks/full/rust-cli/docs/CloudGamesCreateGameCdnSiteRequest.md create mode 100644 sdks/full/rust-cli/docs/CloudGamesCreateGameCdnSiteResponse.md create mode 100644 sdks/full/rust-cli/docs/CloudGamesCreateGameRequest.md create mode 100644 sdks/full/rust-cli/docs/CloudGamesCreateGameResponse.md create mode 100644 sdks/full/rust-cli/docs/CloudGamesCreateGameVersionRequest.md create mode 100644 sdks/full/rust-cli/docs/CloudGamesCreateGameVersionResponse.md create mode 100644 sdks/full/rust-cli/docs/CloudGamesCreateServiceTokenResponse.md create mode 100644 sdks/full/rust-cli/docs/CloudGamesDeleteMatchmakerLobbyResponse.md create mode 100644 sdks/full/rust-cli/docs/CloudGamesExportLobbyLogsRequest.md create mode 100644 sdks/full/rust-cli/docs/CloudGamesExportLobbyLogsResponse.md create mode 100644 sdks/full/rust-cli/docs/CloudGamesExportMatchmakerLobbyHistoryRequest.md create mode 100644 sdks/full/rust-cli/docs/CloudGamesExportMatchmakerLobbyHistoryResponse.md create mode 100644 sdks/full/rust-cli/docs/CloudGamesGameBannerUploadPrepareRequest.md create mode 100644 sdks/full/rust-cli/docs/CloudGamesGameBannerUploadPrepareResponse.md create mode 100644 sdks/full/rust-cli/docs/CloudGamesGameLogoUploadPrepareRequest.md create mode 100644 sdks/full/rust-cli/docs/CloudGamesGameLogoUploadPrepareResponse.md create mode 100644 sdks/full/rust-cli/docs/CloudGamesGetGameByIdResponse.md create mode 100644 sdks/full/rust-cli/docs/CloudGamesGetGameVersionByIdResponse.md create mode 100644 sdks/full/rust-cli/docs/CloudGamesGetGamesResponse.md create mode 100644 sdks/full/rust-cli/docs/CloudGamesGetLobbyLogsResponse.md create mode 100644 sdks/full/rust-cli/docs/CloudGamesListGameBuildsResponse.md create mode 100644 sdks/full/rust-cli/docs/CloudGamesListGameCdnSitesResponse.md create mode 100644 sdks/full/rust-cli/docs/CloudGamesListGameCustomAvatarsResponse.md create mode 100644 sdks/full/rust-cli/docs/CloudGamesLogStream.md create mode 100644 sdks/full/rust-cli/docs/CloudGamesMatchmakerApi.md create mode 100644 sdks/full/rust-cli/docs/CloudGamesNamespacesAddNamespaceDomainRequest.md create mode 100644 sdks/full/rust-cli/docs/CloudGamesNamespacesAnalyticsApi.md create mode 100644 sdks/full/rust-cli/docs/CloudGamesNamespacesApi.md create mode 100644 sdks/full/rust-cli/docs/CloudGamesNamespacesCreateGameNamespaceRequest.md create mode 100644 sdks/full/rust-cli/docs/CloudGamesNamespacesCreateGameNamespaceResponse.md create mode 100644 sdks/full/rust-cli/docs/CloudGamesNamespacesCreateGameNamespaceTokenDevelopmentRequest.md create mode 100644 sdks/full/rust-cli/docs/CloudGamesNamespacesCreateGameNamespaceTokenDevelopmentResponse.md create mode 100644 sdks/full/rust-cli/docs/CloudGamesNamespacesCreateGameNamespaceTokenPublicResponse.md create mode 100644 sdks/full/rust-cli/docs/CloudGamesNamespacesGetAnalyticsMatchmakerLiveResponse.md create mode 100644 sdks/full/rust-cli/docs/CloudGamesNamespacesGetGameNamespaceByIdResponse.md create mode 100644 sdks/full/rust-cli/docs/CloudGamesNamespacesGetGameNamespaceVersionHistoryResponse.md create mode 100644 sdks/full/rust-cli/docs/CloudGamesNamespacesGetNamespaceLobbyResponse.md create mode 100644 sdks/full/rust-cli/docs/CloudGamesNamespacesInspectResponse.md create mode 100644 sdks/full/rust-cli/docs/CloudGamesNamespacesListNamespaceLobbiesResponse.md create mode 100644 sdks/full/rust-cli/docs/CloudGamesNamespacesLogsApi.md create mode 100644 sdks/full/rust-cli/docs/CloudGamesNamespacesSetNamespaceCdnAuthTypeRequest.md create mode 100644 sdks/full/rust-cli/docs/CloudGamesNamespacesToggleNamespaceDomainPublicAuthRequest.md create mode 100644 sdks/full/rust-cli/docs/CloudGamesNamespacesUpdateGameNamespaceMatchmakerConfigRequest.md create mode 100644 sdks/full/rust-cli/docs/CloudGamesNamespacesUpdateGameNamespaceVersionRequest.md create mode 100644 sdks/full/rust-cli/docs/CloudGamesNamespacesUpdateNamespaceCdnAuthUserRequest.md create mode 100644 sdks/full/rust-cli/docs/CloudGamesNamespacesValidateGameNamespaceMatchmakerConfigRequest.md create mode 100644 sdks/full/rust-cli/docs/CloudGamesNamespacesValidateGameNamespaceMatchmakerConfigResponse.md create mode 100644 sdks/full/rust-cli/docs/CloudGamesNamespacesValidateGameNamespaceRequest.md create mode 100644 sdks/full/rust-cli/docs/CloudGamesNamespacesValidateGameNamespaceResponse.md create mode 100644 sdks/full/rust-cli/docs/CloudGamesNamespacesValidateGameNamespaceTokenDevelopmentRequest.md create mode 100644 sdks/full/rust-cli/docs/CloudGamesNamespacesValidateGameNamespaceTokenDevelopmentResponse.md create mode 100644 sdks/full/rust-cli/docs/CloudGamesPrepareCustomAvatarUploadRequest.md create mode 100644 sdks/full/rust-cli/docs/CloudGamesPrepareCustomAvatarUploadResponse.md create mode 100644 sdks/full/rust-cli/docs/CloudGamesReserveVersionNameResponse.md create mode 100644 sdks/full/rust-cli/docs/CloudGamesTokensApi.md create mode 100644 sdks/full/rust-cli/docs/CloudGamesValidateGameRequest.md create mode 100644 sdks/full/rust-cli/docs/CloudGamesValidateGameResponse.md create mode 100644 sdks/full/rust-cli/docs/CloudGamesValidateGameVersionRequest.md create mode 100644 sdks/full/rust-cli/docs/CloudGamesValidateGameVersionResponse.md create mode 100644 sdks/full/rust-cli/docs/CloudGamesVersionsApi.md create mode 100644 sdks/full/rust-cli/docs/CloudGetRayPerfLogsResponse.md create mode 100644 sdks/full/rust-cli/docs/CloudGetRegionTiersResponse.md create mode 100644 sdks/full/rust-cli/docs/CloudGroupBankSource.md create mode 100644 sdks/full/rust-cli/docs/CloudGroupsApi.md create mode 100644 sdks/full/rust-cli/docs/CloudInspectResponse.md create mode 100644 sdks/full/rust-cli/docs/CloudLobbySummaryAnalytics.md create mode 100644 sdks/full/rust-cli/docs/CloudLogsApi.md create mode 100644 sdks/full/rust-cli/docs/CloudLogsLobbyStatus.md create mode 100644 sdks/full/rust-cli/docs/CloudLogsLobbyStatusStopped.md create mode 100644 sdks/full/rust-cli/docs/CloudLogsLobbySummary.md create mode 100644 sdks/full/rust-cli/docs/CloudLogsPerfMark.md create mode 100644 sdks/full/rust-cli/docs/CloudLogsPerfSpan.md create mode 100644 sdks/full/rust-cli/docs/CloudMatchmakerDevelopmentPort.md create mode 100644 sdks/full/rust-cli/docs/CloudMatchmakerNamespaceConfig.md create mode 100644 sdks/full/rust-cli/docs/CloudNamespaceConfig.md create mode 100644 sdks/full/rust-cli/docs/CloudNamespaceFull.md create mode 100644 sdks/full/rust-cli/docs/CloudNamespaceSummary.md create mode 100644 sdks/full/rust-cli/docs/CloudNamespaceVersion.md create mode 100644 sdks/full/rust-cli/docs/CloudRegionSummary.md create mode 100644 sdks/full/rust-cli/docs/CloudRegionTier.md create mode 100644 sdks/full/rust-cli/docs/CloudRegionTierExpenses.md create mode 100644 sdks/full/rust-cli/docs/CloudSvcMetrics.md create mode 100644 sdks/full/rust-cli/docs/CloudSvcPerf.md create mode 100644 sdks/full/rust-cli/docs/CloudTiersApi.md create mode 100644 sdks/full/rust-cli/docs/CloudUniversalRegion.md create mode 100644 sdks/full/rust-cli/docs/CloudUploadsApi.md create mode 100644 sdks/full/rust-cli/docs/CloudValidateGroupRequest.md create mode 100644 sdks/full/rust-cli/docs/CloudValidateGroupResponse.md create mode 100644 sdks/full/rust-cli/docs/CloudVersionCdnConfig.md create mode 100644 sdks/full/rust-cli/docs/CloudVersionCdnCustomHeadersMiddleware.md create mode 100644 sdks/full/rust-cli/docs/CloudVersionCdnHeader.md create mode 100644 sdks/full/rust-cli/docs/CloudVersionCdnMiddleware.md create mode 100644 sdks/full/rust-cli/docs/CloudVersionCdnMiddlewareKind.md create mode 100644 sdks/full/rust-cli/docs/CloudVersionCdnRoute.md create mode 100644 sdks/full/rust-cli/docs/CloudVersionConfig.md create mode 100644 sdks/full/rust-cli/docs/CloudVersionEngineConfig.md create mode 100644 sdks/full/rust-cli/docs/CloudVersionEngineUnrealConfig.md create mode 100644 sdks/full/rust-cli/docs/CloudVersionFull.md create mode 100644 sdks/full/rust-cli/docs/CloudVersionIdentityConfig.md create mode 100644 sdks/full/rust-cli/docs/CloudVersionIdentityCustomAvatar.md create mode 100644 sdks/full/rust-cli/docs/CloudVersionIdentityCustomDisplayName.md create mode 100644 sdks/full/rust-cli/docs/CloudVersionMatchmakerCaptcha.md create mode 100644 sdks/full/rust-cli/docs/CloudVersionMatchmakerCaptchaHcaptcha.md create mode 100644 sdks/full/rust-cli/docs/CloudVersionMatchmakerCaptchaHcaptchaLevel.md create mode 100644 sdks/full/rust-cli/docs/CloudVersionMatchmakerCaptchaTurnstile.md create mode 100644 sdks/full/rust-cli/docs/CloudVersionMatchmakerConfig.md create mode 100644 sdks/full/rust-cli/docs/CloudVersionMatchmakerGameMode.md create mode 100644 sdks/full/rust-cli/docs/CloudVersionMatchmakerGameModeActions.md create mode 100644 sdks/full/rust-cli/docs/CloudVersionMatchmakerGameModeCreateConfig.md create mode 100644 sdks/full/rust-cli/docs/CloudVersionMatchmakerGameModeFindConfig.md create mode 100644 sdks/full/rust-cli/docs/CloudVersionMatchmakerGameModeIdentityRequirement.md create mode 100644 sdks/full/rust-cli/docs/CloudVersionMatchmakerGameModeIdleLobbiesConfig.md create mode 100644 sdks/full/rust-cli/docs/CloudVersionMatchmakerGameModeJoinConfig.md create mode 100644 sdks/full/rust-cli/docs/CloudVersionMatchmakerGameModeRegion.md create mode 100644 sdks/full/rust-cli/docs/CloudVersionMatchmakerGameModeRuntimeDocker.md create mode 100644 sdks/full/rust-cli/docs/CloudVersionMatchmakerGameModeRuntimeDockerPort.md create mode 100644 sdks/full/rust-cli/docs/CloudVersionMatchmakerGameModeVerificationConfig.md create mode 100644 sdks/full/rust-cli/docs/CloudVersionMatchmakerLobbyGroup.md create mode 100644 sdks/full/rust-cli/docs/CloudVersionMatchmakerLobbyGroupIdleLobbiesConfig.md create mode 100644 sdks/full/rust-cli/docs/CloudVersionMatchmakerLobbyGroupRegion.md create mode 100644 sdks/full/rust-cli/docs/CloudVersionMatchmakerLobbyGroupRuntime.md create mode 100644 sdks/full/rust-cli/docs/CloudVersionMatchmakerLobbyGroupRuntimeDocker.md create mode 100644 sdks/full/rust-cli/docs/CloudVersionMatchmakerLobbyGroupRuntimeDockerEnvVar.md create mode 100644 sdks/full/rust-cli/docs/CloudVersionMatchmakerLobbyGroupRuntimeDockerPort.md create mode 100644 sdks/full/rust-cli/docs/CloudVersionMatchmakerNetworkMode.md create mode 100644 sdks/full/rust-cli/docs/CloudVersionMatchmakerPortProtocol.md create mode 100644 sdks/full/rust-cli/docs/CloudVersionMatchmakerPortRange.md create mode 100644 sdks/full/rust-cli/docs/CloudVersionMatchmakerProxyKind.md create mode 100644 sdks/full/rust-cli/docs/CloudVersionSummary.md create mode 100644 sdks/full/rust-cli/docs/ErrorBody.md create mode 100644 sdks/full/rust-cli/docs/GameHandle.md create mode 100644 sdks/full/rust-cli/docs/GameLeaderboardCategory.md create mode 100644 sdks/full/rust-cli/docs/GamePlatformLink.md create mode 100644 sdks/full/rust-cli/docs/GameProfile.md create mode 100644 sdks/full/rust-cli/docs/GameStat.md create mode 100644 sdks/full/rust-cli/docs/GameStatAggregationMethod.md create mode 100644 sdks/full/rust-cli/docs/GameStatConfig.md create mode 100644 sdks/full/rust-cli/docs/GameStatFormatMethod.md create mode 100644 sdks/full/rust-cli/docs/GameStatSortingMethod.md create mode 100644 sdks/full/rust-cli/docs/GameStatSummary.md create mode 100644 sdks/full/rust-cli/docs/GameSummary.md create mode 100644 sdks/full/rust-cli/docs/GeoCoord.md create mode 100644 sdks/full/rust-cli/docs/GeoDistance.md create mode 100644 sdks/full/rust-cli/docs/GlobalEventNotification.md create mode 100644 sdks/full/rust-cli/docs/GroupApi.md create mode 100644 sdks/full/rust-cli/docs/GroupBannedIdentity.md create mode 100644 sdks/full/rust-cli/docs/GroupConsumeInviteResponse.md create mode 100644 sdks/full/rust-cli/docs/GroupCreateInviteRequest.md create mode 100644 sdks/full/rust-cli/docs/GroupCreateInviteResponse.md create mode 100644 sdks/full/rust-cli/docs/GroupCreateRequest.md create mode 100644 sdks/full/rust-cli/docs/GroupCreateResponse.md create mode 100644 sdks/full/rust-cli/docs/GroupExternalLinks.md create mode 100644 sdks/full/rust-cli/docs/GroupGetBansResponse.md create mode 100644 sdks/full/rust-cli/docs/GroupGetInviteResponse.md create mode 100644 sdks/full/rust-cli/docs/GroupGetJoinRequestsResponse.md create mode 100644 sdks/full/rust-cli/docs/GroupGetMembersResponse.md create mode 100644 sdks/full/rust-cli/docs/GroupGetProfileResponse.md create mode 100644 sdks/full/rust-cli/docs/GroupGetSummaryResponse.md create mode 100644 sdks/full/rust-cli/docs/GroupHandle.md create mode 100644 sdks/full/rust-cli/docs/GroupInvitesApi.md create mode 100644 sdks/full/rust-cli/docs/GroupJoinRequest.md create mode 100644 sdks/full/rust-cli/docs/GroupJoinRequestsApi.md create mode 100644 sdks/full/rust-cli/docs/GroupListSuggestedResponse.md create mode 100644 sdks/full/rust-cli/docs/GroupMember.md create mode 100644 sdks/full/rust-cli/docs/GroupPrepareAvatarUploadRequest.md create mode 100644 sdks/full/rust-cli/docs/GroupPrepareAvatarUploadResponse.md create mode 100644 sdks/full/rust-cli/docs/GroupProfile.md create mode 100644 sdks/full/rust-cli/docs/GroupPublicity.md create mode 100644 sdks/full/rust-cli/docs/GroupResolveJoinRequestRequest.md create mode 100644 sdks/full/rust-cli/docs/GroupSearchResponse.md create mode 100644 sdks/full/rust-cli/docs/GroupSummary.md create mode 100644 sdks/full/rust-cli/docs/GroupTransferOwnershipRequest.md create mode 100644 sdks/full/rust-cli/docs/GroupUpdateProfileRequest.md create mode 100644 sdks/full/rust-cli/docs/GroupValidateProfileRequest.md create mode 100644 sdks/full/rust-cli/docs/GroupValidateProfileResponse.md create mode 100644 sdks/full/rust-cli/docs/IdentityAccessTokenLinkedAccount.md create mode 100644 sdks/full/rust-cli/docs/IdentityActivitiesApi.md create mode 100644 sdks/full/rust-cli/docs/IdentityApi.md create mode 100644 sdks/full/rust-cli/docs/IdentityCancelGameLinkRequest.md create mode 100644 sdks/full/rust-cli/docs/IdentityCompleteGameLinkRequest.md create mode 100644 sdks/full/rust-cli/docs/IdentityDevState.md create mode 100644 sdks/full/rust-cli/docs/IdentityEmailLinkedAccount.md create mode 100644 sdks/full/rust-cli/docs/IdentityEventsApi.md create mode 100644 sdks/full/rust-cli/docs/IdentityExternalLinks.md create mode 100644 sdks/full/rust-cli/docs/IdentityGameActivity.md create mode 100644 sdks/full/rust-cli/docs/IdentityGameLinkStatus.md create mode 100644 sdks/full/rust-cli/docs/IdentityGetGameLinkNewIdentity.md create mode 100644 sdks/full/rust-cli/docs/IdentityGetGameLinkResponse.md create mode 100644 sdks/full/rust-cli/docs/IdentityGetHandlesResponse.md create mode 100644 sdks/full/rust-cli/docs/IdentityGetProfileResponse.md create mode 100644 sdks/full/rust-cli/docs/IdentityGetSummariesResponse.md create mode 100644 sdks/full/rust-cli/docs/IdentityGlobalEvent.md create mode 100644 sdks/full/rust-cli/docs/IdentityGlobalEventIdentityUpdate.md create mode 100644 sdks/full/rust-cli/docs/IdentityGlobalEventKind.md create mode 100644 sdks/full/rust-cli/docs/IdentityGlobalEventMatchmakerLobbyJoin.md create mode 100644 sdks/full/rust-cli/docs/IdentityGlobalEventNotification.md create mode 100644 sdks/full/rust-cli/docs/IdentityGroup.md create mode 100644 sdks/full/rust-cli/docs/IdentityHandle.md create mode 100644 sdks/full/rust-cli/docs/IdentityLinkedAccount.md create mode 100644 sdks/full/rust-cli/docs/IdentityLinksApi.md create mode 100644 sdks/full/rust-cli/docs/IdentityListActivitiesResponse.md create mode 100644 sdks/full/rust-cli/docs/IdentityListFollowersResponse.md create mode 100644 sdks/full/rust-cli/docs/IdentityListFollowingResponse.md create mode 100644 sdks/full/rust-cli/docs/IdentityListFriendsResponse.md create mode 100644 sdks/full/rust-cli/docs/IdentityListMutualFriendsResponse.md create mode 100644 sdks/full/rust-cli/docs/IdentityListRecentFollowersResponse.md create mode 100644 sdks/full/rust-cli/docs/IdentityPrepareAvatarUploadRequest.md create mode 100644 sdks/full/rust-cli/docs/IdentityPrepareAvatarUploadResponse.md create mode 100644 sdks/full/rust-cli/docs/IdentityPrepareGameLinkResponse.md create mode 100644 sdks/full/rust-cli/docs/IdentityPresence.md create mode 100644 sdks/full/rust-cli/docs/IdentityProfile.md create mode 100644 sdks/full/rust-cli/docs/IdentityReportRequest.md create mode 100644 sdks/full/rust-cli/docs/IdentitySearchResponse.md create mode 100644 sdks/full/rust-cli/docs/IdentitySetGameActivityRequest.md create mode 100644 sdks/full/rust-cli/docs/IdentitySetupRequest.md create mode 100644 sdks/full/rust-cli/docs/IdentitySetupResponse.md create mode 100644 sdks/full/rust-cli/docs/IdentitySignupForBetaRequest.md create mode 100644 sdks/full/rust-cli/docs/IdentityStatus.md create mode 100644 sdks/full/rust-cli/docs/IdentitySummary.md create mode 100644 sdks/full/rust-cli/docs/IdentityUpdateGameActivity.md create mode 100644 sdks/full/rust-cli/docs/IdentityUpdateProfileRequest.md create mode 100644 sdks/full/rust-cli/docs/IdentityUpdateStatusRequest.md create mode 100644 sdks/full/rust-cli/docs/IdentityValidateProfileResponse.md create mode 100644 sdks/full/rust-cli/docs/IdentityWatchEventsResponse.md create mode 100644 sdks/full/rust-cli/docs/JobRunApi.md create mode 100644 sdks/full/rust-cli/docs/KvApi.md create mode 100644 sdks/full/rust-cli/docs/KvEntry.md create mode 100644 sdks/full/rust-cli/docs/KvGetBatchResponse.md create mode 100644 sdks/full/rust-cli/docs/KvGetResponse.md create mode 100644 sdks/full/rust-cli/docs/KvListResponse.md create mode 100644 sdks/full/rust-cli/docs/KvPutBatchRequest.md create mode 100644 sdks/full/rust-cli/docs/KvPutEntry.md create mode 100644 sdks/full/rust-cli/docs/KvPutRequest.md create mode 100644 sdks/full/rust-cli/docs/MatchmakerCreateLobbyResponse.md create mode 100644 sdks/full/rust-cli/docs/MatchmakerCustomLobbyPublicity.md create mode 100644 sdks/full/rust-cli/docs/MatchmakerFindLobbyResponse.md create mode 100644 sdks/full/rust-cli/docs/MatchmakerGameModeInfo.md create mode 100644 sdks/full/rust-cli/docs/MatchmakerGameModeStatistics.md create mode 100644 sdks/full/rust-cli/docs/MatchmakerGetStatisticsResponse.md create mode 100644 sdks/full/rust-cli/docs/MatchmakerJoinLobby.md create mode 100644 sdks/full/rust-cli/docs/MatchmakerJoinLobbyResponse.md create mode 100644 sdks/full/rust-cli/docs/MatchmakerJoinPlayer.md create mode 100644 sdks/full/rust-cli/docs/MatchmakerJoinPort.md create mode 100644 sdks/full/rust-cli/docs/MatchmakerJoinPortRange.md create mode 100644 sdks/full/rust-cli/docs/MatchmakerJoinRegion.md create mode 100644 sdks/full/rust-cli/docs/MatchmakerListLobbiesResponse.md create mode 100644 sdks/full/rust-cli/docs/MatchmakerListRegionsResponse.md create mode 100644 sdks/full/rust-cli/docs/MatchmakerLobbiesApi.md create mode 100644 sdks/full/rust-cli/docs/MatchmakerLobbiesCreateRequest.md create mode 100644 sdks/full/rust-cli/docs/MatchmakerLobbiesFindRequest.md create mode 100644 sdks/full/rust-cli/docs/MatchmakerLobbiesJoinRequest.md create mode 100644 sdks/full/rust-cli/docs/MatchmakerLobbiesSetClosedRequest.md create mode 100644 sdks/full/rust-cli/docs/MatchmakerLobbyInfo.md create mode 100644 sdks/full/rust-cli/docs/MatchmakerPlayersApi.md create mode 100644 sdks/full/rust-cli/docs/MatchmakerPlayersConnectedRequest.md create mode 100644 sdks/full/rust-cli/docs/MatchmakerRegionInfo.md create mode 100644 sdks/full/rust-cli/docs/MatchmakerRegionStatistics.md create mode 100644 sdks/full/rust-cli/docs/MatchmakerRegionsApi.md create mode 100644 sdks/full/rust-cli/docs/PortalGamesApi.md create mode 100644 sdks/full/rust-cli/docs/PortalGetGameProfileResponse.md create mode 100644 sdks/full/rust-cli/docs/PortalGetSuggestedGamesResponse.md create mode 100644 sdks/full/rust-cli/docs/PortalNotificationRegisterFirebaseService.md create mode 100644 sdks/full/rust-cli/docs/PortalNotificationRegisterService.md create mode 100644 sdks/full/rust-cli/docs/PortalNotificationUnregisterService.md create mode 100644 sdks/full/rust-cli/docs/ProvisionDatacentersApi.md create mode 100644 sdks/full/rust-cli/docs/ProvisionDatacentersGetTlsResponse.md create mode 100644 sdks/full/rust-cli/docs/ProvisionServersApi.md create mode 100644 sdks/full/rust-cli/docs/ProvisionServersGetInfoResponse.md create mode 100644 sdks/full/rust-cli/docs/ServersApi.md create mode 100644 sdks/full/rust-cli/docs/ServersBuild.md create mode 100644 sdks/full/rust-cli/docs/ServersBuildCompression.md create mode 100644 sdks/full/rust-cli/docs/ServersBuildKind.md create mode 100644 sdks/full/rust-cli/docs/ServersBuildsApi.md create mode 100644 sdks/full/rust-cli/docs/ServersCreateBuildRequest.md create mode 100644 sdks/full/rust-cli/docs/ServersCreateBuildResponse.md create mode 100644 sdks/full/rust-cli/docs/ServersCreateServerNetworkRequest.md create mode 100644 sdks/full/rust-cli/docs/ServersCreateServerPortRequest.md create mode 100644 sdks/full/rust-cli/docs/ServersCreateServerRequest.md create mode 100644 sdks/full/rust-cli/docs/ServersCreateServerResponse.md create mode 100644 sdks/full/rust-cli/docs/ServersGetBuildResponse.md create mode 100644 sdks/full/rust-cli/docs/ServersGetServerLogsResponse.md create mode 100644 sdks/full/rust-cli/docs/ServersGetServerResponse.md create mode 100644 sdks/full/rust-cli/docs/ServersListBuildsResponse.md create mode 100644 sdks/full/rust-cli/docs/ServersListServersResponse.md create mode 100644 sdks/full/rust-cli/docs/ServersLogStream.md create mode 100644 sdks/full/rust-cli/docs/ServersLogsApi.md create mode 100644 sdks/full/rust-cli/docs/ServersNetwork.md create mode 100644 sdks/full/rust-cli/docs/ServersNetworkMode.md create mode 100644 sdks/full/rust-cli/docs/ServersPort.md create mode 100644 sdks/full/rust-cli/docs/ServersPortProtocol.md create mode 100644 sdks/full/rust-cli/docs/ServersPortRouting.md create mode 100644 sdks/full/rust-cli/docs/ServersResources.md create mode 100644 sdks/full/rust-cli/docs/ServersServer.md create mode 100644 sdks/full/rust-cli/docs/UploadPrepareFile.md create mode 100644 sdks/full/rust-cli/docs/UploadPresignedRequest.md create mode 100644 sdks/full/rust-cli/docs/ValidationError.md create mode 100644 sdks/full/rust-cli/docs/WatchResponse.md create mode 100644 sdks/full/rust-cli/git_push.sh create mode 100644 sdks/full/rust-cli/src/apis/admin_api.rs create mode 100644 sdks/full/rust-cli/src/apis/admin_clusters_api.rs create mode 100644 sdks/full/rust-cli/src/apis/admin_clusters_datacenters_api.rs create mode 100644 sdks/full/rust-cli/src/apis/admin_clusters_servers_api.rs create mode 100644 sdks/full/rust-cli/src/apis/auth_identity_access_token_api.rs create mode 100644 sdks/full/rust-cli/src/apis/auth_identity_email_api.rs create mode 100644 sdks/full/rust-cli/src/apis/auth_tokens_api.rs create mode 100644 sdks/full/rust-cli/src/apis/cloud_api.rs create mode 100644 sdks/full/rust-cli/src/apis/cloud_auth_api.rs create mode 100644 sdks/full/rust-cli/src/apis/cloud_devices_links_api.rs create mode 100644 sdks/full/rust-cli/src/apis/cloud_games_api.rs create mode 100644 sdks/full/rust-cli/src/apis/cloud_games_avatars_api.rs create mode 100644 sdks/full/rust-cli/src/apis/cloud_games_builds_api.rs create mode 100644 sdks/full/rust-cli/src/apis/cloud_games_cdn_api.rs create mode 100644 sdks/full/rust-cli/src/apis/cloud_games_matchmaker_api.rs create mode 100644 sdks/full/rust-cli/src/apis/cloud_games_namespaces_analytics_api.rs create mode 100644 sdks/full/rust-cli/src/apis/cloud_games_namespaces_api.rs create mode 100644 sdks/full/rust-cli/src/apis/cloud_games_namespaces_logs_api.rs create mode 100644 sdks/full/rust-cli/src/apis/cloud_games_tokens_api.rs create mode 100644 sdks/full/rust-cli/src/apis/cloud_games_versions_api.rs create mode 100644 sdks/full/rust-cli/src/apis/cloud_groups_api.rs create mode 100644 sdks/full/rust-cli/src/apis/cloud_logs_api.rs create mode 100644 sdks/full/rust-cli/src/apis/cloud_tiers_api.rs create mode 100644 sdks/full/rust-cli/src/apis/cloud_uploads_api.rs create mode 100644 sdks/full/rust-cli/src/apis/configuration.rs create mode 100644 sdks/full/rust-cli/src/apis/group_api.rs create mode 100644 sdks/full/rust-cli/src/apis/group_invites_api.rs create mode 100644 sdks/full/rust-cli/src/apis/group_join_requests_api.rs create mode 100644 sdks/full/rust-cli/src/apis/identity_activities_api.rs create mode 100644 sdks/full/rust-cli/src/apis/identity_api.rs create mode 100644 sdks/full/rust-cli/src/apis/identity_events_api.rs create mode 100644 sdks/full/rust-cli/src/apis/identity_links_api.rs create mode 100644 sdks/full/rust-cli/src/apis/job_run_api.rs create mode 100644 sdks/full/rust-cli/src/apis/kv_api.rs create mode 100644 sdks/full/rust-cli/src/apis/matchmaker_lobbies_api.rs create mode 100644 sdks/full/rust-cli/src/apis/matchmaker_players_api.rs create mode 100644 sdks/full/rust-cli/src/apis/matchmaker_regions_api.rs create mode 100644 sdks/full/rust-cli/src/apis/mod.rs create mode 100644 sdks/full/rust-cli/src/apis/portal_games_api.rs create mode 100644 sdks/full/rust-cli/src/apis/provision_datacenters_api.rs create mode 100644 sdks/full/rust-cli/src/apis/provision_servers_api.rs create mode 100644 sdks/full/rust-cli/src/apis/servers_api.rs create mode 100644 sdks/full/rust-cli/src/apis/servers_builds_api.rs create mode 100644 sdks/full/rust-cli/src/apis/servers_logs_api.rs create mode 100644 sdks/full/rust-cli/src/lib.rs create mode 100644 sdks/full/rust-cli/src/models/admin_clusters_build_delivery_method.rs create mode 100644 sdks/full/rust-cli/src/models/admin_clusters_cluster.rs create mode 100644 sdks/full/rust-cli/src/models/admin_clusters_create_cluster_request.rs create mode 100644 sdks/full/rust-cli/src/models/admin_clusters_create_cluster_response.rs create mode 100644 sdks/full/rust-cli/src/models/admin_clusters_create_datacenter_request.rs create mode 100644 sdks/full/rust-cli/src/models/admin_clusters_create_datacenter_response.rs create mode 100644 sdks/full/rust-cli/src/models/admin_clusters_datacenter.rs create mode 100644 sdks/full/rust-cli/src/models/admin_clusters_hardware.rs create mode 100644 sdks/full/rust-cli/src/models/admin_clusters_list_clusters_response.rs create mode 100644 sdks/full/rust-cli/src/models/admin_clusters_list_datacenters_response.rs create mode 100644 sdks/full/rust-cli/src/models/admin_clusters_list_servers_response.rs create mode 100644 sdks/full/rust-cli/src/models/admin_clusters_pool.rs create mode 100644 sdks/full/rust-cli/src/models/admin_clusters_pool_type.rs create mode 100644 sdks/full/rust-cli/src/models/admin_clusters_pool_update.rs create mode 100644 sdks/full/rust-cli/src/models/admin_clusters_provider.rs create mode 100644 sdks/full/rust-cli/src/models/admin_clusters_server.rs create mode 100644 sdks/full/rust-cli/src/models/admin_clusters_update_datacenter_request.rs create mode 100644 sdks/full/rust-cli/src/models/admin_login_request.rs create mode 100644 sdks/full/rust-cli/src/models/admin_login_response.rs create mode 100644 sdks/full/rust-cli/src/models/auth_complete_status.rs create mode 100644 sdks/full/rust-cli/src/models/auth_identity_complete_access_token_verification_request.rs create mode 100644 sdks/full/rust-cli/src/models/auth_identity_complete_email_verification_request.rs create mode 100644 sdks/full/rust-cli/src/models/auth_identity_complete_email_verification_response.rs create mode 100644 sdks/full/rust-cli/src/models/auth_identity_start_email_verification_request.rs create mode 100644 sdks/full/rust-cli/src/models/auth_identity_start_email_verification_response.rs create mode 100644 sdks/full/rust-cli/src/models/auth_refresh_identity_token_request.rs create mode 100644 sdks/full/rust-cli/src/models/auth_refresh_identity_token_response.rs create mode 100644 sdks/full/rust-cli/src/models/captcha_config.rs create mode 100644 sdks/full/rust-cli/src/models/captcha_config_hcaptcha.rs create mode 100644 sdks/full/rust-cli/src/models/captcha_config_turnstile.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_auth_agent.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_auth_agent_game_cloud.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_auth_agent_identity.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_bootstrap_access.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_bootstrap_captcha.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_bootstrap_captcha_turnstile.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_bootstrap_cluster.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_bootstrap_domains.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_bootstrap_login_methods.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_bootstrap_origins.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_bootstrap_response.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_build_summary.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_cdn_auth_type.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_cdn_namespace_auth_user.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_cdn_namespace_config.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_cdn_namespace_domain.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_cdn_namespace_domain_verification_method.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_cdn_namespace_domain_verification_method_http.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_cdn_namespace_domain_verification_status.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_cdn_site_summary.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_custom_avatar_summary.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_devices_complete_device_link_request.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_devices_get_device_link_response.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_devices_prepare_device_link_response.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_game_full.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_game_lobby_expenses.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_games_build_compression.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_games_build_kind.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_games_create_cloud_token_response.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_games_create_game_build_request.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_games_create_game_build_response.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_games_create_game_cdn_site_request.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_games_create_game_cdn_site_response.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_games_create_game_request.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_games_create_game_response.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_games_create_game_version_request.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_games_create_game_version_response.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_games_create_service_token_response.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_games_delete_matchmaker_lobby_response.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_games_export_lobby_logs_request.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_games_export_lobby_logs_response.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_games_export_matchmaker_lobby_history_request.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_games_export_matchmaker_lobby_history_response.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_games_game_banner_upload_prepare_request.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_games_game_banner_upload_prepare_response.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_games_game_logo_upload_prepare_request.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_games_game_logo_upload_prepare_response.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_games_get_game_by_id_response.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_games_get_game_version_by_id_response.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_games_get_games_response.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_games_get_lobby_logs_response.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_games_list_game_builds_response.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_games_list_game_cdn_sites_response.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_games_list_game_custom_avatars_response.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_games_log_stream.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_games_namespaces_add_namespace_domain_request.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_games_namespaces_create_game_namespace_request.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_games_namespaces_create_game_namespace_response.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_games_namespaces_create_game_namespace_token_development_request.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_games_namespaces_create_game_namespace_token_development_response.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_games_namespaces_create_game_namespace_token_public_response.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_games_namespaces_get_analytics_matchmaker_live_response.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_games_namespaces_get_game_namespace_by_id_response.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_games_namespaces_get_game_namespace_version_history_response.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_games_namespaces_get_namespace_lobby_response.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_games_namespaces_inspect_response.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_games_namespaces_list_namespace_lobbies_response.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_games_namespaces_set_namespace_cdn_auth_type_request.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_games_namespaces_toggle_namespace_domain_public_auth_request.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_games_namespaces_update_game_namespace_matchmaker_config_request.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_games_namespaces_update_game_namespace_version_request.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_games_namespaces_update_namespace_cdn_auth_user_request.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_games_namespaces_validate_game_namespace_matchmaker_config_request.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_games_namespaces_validate_game_namespace_matchmaker_config_response.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_games_namespaces_validate_game_namespace_request.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_games_namespaces_validate_game_namespace_response.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_games_namespaces_validate_game_namespace_token_development_request.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_games_namespaces_validate_game_namespace_token_development_response.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_games_prepare_custom_avatar_upload_request.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_games_prepare_custom_avatar_upload_response.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_games_reserve_version_name_response.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_games_validate_game_request.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_games_validate_game_response.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_games_validate_game_version_request.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_games_validate_game_version_response.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_get_ray_perf_logs_response.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_get_region_tiers_response.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_group_bank_source.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_inspect_response.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_lobby_summary_analytics.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_logs_lobby_status.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_logs_lobby_status_stopped.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_logs_lobby_summary.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_logs_perf_mark.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_logs_perf_span.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_matchmaker_development_port.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_matchmaker_namespace_config.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_namespace_config.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_namespace_full.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_namespace_summary.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_namespace_version.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_region_summary.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_region_tier.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_region_tier_expenses.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_svc_metrics.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_svc_perf.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_universal_region.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_validate_group_request.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_validate_group_response.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_version_cdn_config.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_version_cdn_custom_headers_middleware.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_version_cdn_header.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_version_cdn_middleware.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_version_cdn_middleware_kind.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_version_cdn_route.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_version_config.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_version_engine_config.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_version_engine_unreal_config.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_version_full.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_version_identity_config.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_version_identity_custom_avatar.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_version_identity_custom_display_name.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_version_matchmaker_captcha.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_version_matchmaker_captcha_hcaptcha.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_version_matchmaker_captcha_hcaptcha_level.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_version_matchmaker_captcha_turnstile.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_version_matchmaker_config.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_version_matchmaker_game_mode.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_version_matchmaker_game_mode_actions.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_version_matchmaker_game_mode_create_config.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_version_matchmaker_game_mode_find_config.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_version_matchmaker_game_mode_identity_requirement.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_version_matchmaker_game_mode_idle_lobbies_config.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_version_matchmaker_game_mode_join_config.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_version_matchmaker_game_mode_region.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_version_matchmaker_game_mode_runtime_docker.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_version_matchmaker_game_mode_runtime_docker_port.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_version_matchmaker_game_mode_verification_config.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_version_matchmaker_lobby_group.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_version_matchmaker_lobby_group_idle_lobbies_config.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_version_matchmaker_lobby_group_region.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_version_matchmaker_lobby_group_runtime.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_version_matchmaker_lobby_group_runtime_docker.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_version_matchmaker_lobby_group_runtime_docker_env_var.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_version_matchmaker_lobby_group_runtime_docker_port.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_version_matchmaker_network_mode.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_version_matchmaker_port_protocol.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_version_matchmaker_port_range.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_version_matchmaker_proxy_kind.rs create mode 100644 sdks/full/rust-cli/src/models/cloud_version_summary.rs create mode 100644 sdks/full/rust-cli/src/models/error_body.rs create mode 100644 sdks/full/rust-cli/src/models/game_handle.rs create mode 100644 sdks/full/rust-cli/src/models/game_leaderboard_category.rs create mode 100644 sdks/full/rust-cli/src/models/game_platform_link.rs create mode 100644 sdks/full/rust-cli/src/models/game_profile.rs create mode 100644 sdks/full/rust-cli/src/models/game_stat.rs create mode 100644 sdks/full/rust-cli/src/models/game_stat_aggregation_method.rs create mode 100644 sdks/full/rust-cli/src/models/game_stat_config.rs create mode 100644 sdks/full/rust-cli/src/models/game_stat_format_method.rs create mode 100644 sdks/full/rust-cli/src/models/game_stat_sorting_method.rs create mode 100644 sdks/full/rust-cli/src/models/game_stat_summary.rs create mode 100644 sdks/full/rust-cli/src/models/game_summary.rs create mode 100644 sdks/full/rust-cli/src/models/geo_coord.rs create mode 100644 sdks/full/rust-cli/src/models/geo_distance.rs create mode 100644 sdks/full/rust-cli/src/models/global_event_notification.rs create mode 100644 sdks/full/rust-cli/src/models/group_banned_identity.rs create mode 100644 sdks/full/rust-cli/src/models/group_consume_invite_response.rs create mode 100644 sdks/full/rust-cli/src/models/group_create_invite_request.rs create mode 100644 sdks/full/rust-cli/src/models/group_create_invite_response.rs create mode 100644 sdks/full/rust-cli/src/models/group_create_request.rs create mode 100644 sdks/full/rust-cli/src/models/group_create_response.rs create mode 100644 sdks/full/rust-cli/src/models/group_external_links.rs create mode 100644 sdks/full/rust-cli/src/models/group_get_bans_response.rs create mode 100644 sdks/full/rust-cli/src/models/group_get_invite_response.rs create mode 100644 sdks/full/rust-cli/src/models/group_get_join_requests_response.rs create mode 100644 sdks/full/rust-cli/src/models/group_get_members_response.rs create mode 100644 sdks/full/rust-cli/src/models/group_get_profile_response.rs create mode 100644 sdks/full/rust-cli/src/models/group_get_summary_response.rs create mode 100644 sdks/full/rust-cli/src/models/group_handle.rs create mode 100644 sdks/full/rust-cli/src/models/group_join_request.rs create mode 100644 sdks/full/rust-cli/src/models/group_list_suggested_response.rs create mode 100644 sdks/full/rust-cli/src/models/group_member.rs create mode 100644 sdks/full/rust-cli/src/models/group_prepare_avatar_upload_request.rs create mode 100644 sdks/full/rust-cli/src/models/group_prepare_avatar_upload_response.rs create mode 100644 sdks/full/rust-cli/src/models/group_profile.rs create mode 100644 sdks/full/rust-cli/src/models/group_publicity.rs create mode 100644 sdks/full/rust-cli/src/models/group_resolve_join_request_request.rs create mode 100644 sdks/full/rust-cli/src/models/group_search_response.rs create mode 100644 sdks/full/rust-cli/src/models/group_summary.rs create mode 100644 sdks/full/rust-cli/src/models/group_transfer_ownership_request.rs create mode 100644 sdks/full/rust-cli/src/models/group_update_profile_request.rs create mode 100644 sdks/full/rust-cli/src/models/group_validate_profile_request.rs create mode 100644 sdks/full/rust-cli/src/models/group_validate_profile_response.rs create mode 100644 sdks/full/rust-cli/src/models/identity_access_token_linked_account.rs create mode 100644 sdks/full/rust-cli/src/models/identity_cancel_game_link_request.rs create mode 100644 sdks/full/rust-cli/src/models/identity_complete_game_link_request.rs create mode 100644 sdks/full/rust-cli/src/models/identity_dev_state.rs create mode 100644 sdks/full/rust-cli/src/models/identity_email_linked_account.rs create mode 100644 sdks/full/rust-cli/src/models/identity_external_links.rs create mode 100644 sdks/full/rust-cli/src/models/identity_game_activity.rs create mode 100644 sdks/full/rust-cli/src/models/identity_game_link_status.rs create mode 100644 sdks/full/rust-cli/src/models/identity_get_game_link_new_identity.rs create mode 100644 sdks/full/rust-cli/src/models/identity_get_game_link_response.rs create mode 100644 sdks/full/rust-cli/src/models/identity_get_handles_response.rs create mode 100644 sdks/full/rust-cli/src/models/identity_get_profile_response.rs create mode 100644 sdks/full/rust-cli/src/models/identity_get_summaries_response.rs create mode 100644 sdks/full/rust-cli/src/models/identity_global_event.rs create mode 100644 sdks/full/rust-cli/src/models/identity_global_event_identity_update.rs create mode 100644 sdks/full/rust-cli/src/models/identity_global_event_kind.rs create mode 100644 sdks/full/rust-cli/src/models/identity_global_event_matchmaker_lobby_join.rs create mode 100644 sdks/full/rust-cli/src/models/identity_global_event_notification.rs create mode 100644 sdks/full/rust-cli/src/models/identity_group.rs create mode 100644 sdks/full/rust-cli/src/models/identity_handle.rs create mode 100644 sdks/full/rust-cli/src/models/identity_linked_account.rs create mode 100644 sdks/full/rust-cli/src/models/identity_list_activities_response.rs create mode 100644 sdks/full/rust-cli/src/models/identity_list_followers_response.rs create mode 100644 sdks/full/rust-cli/src/models/identity_list_following_response.rs create mode 100644 sdks/full/rust-cli/src/models/identity_list_friends_response.rs create mode 100644 sdks/full/rust-cli/src/models/identity_list_mutual_friends_response.rs create mode 100644 sdks/full/rust-cli/src/models/identity_list_recent_followers_response.rs create mode 100644 sdks/full/rust-cli/src/models/identity_prepare_avatar_upload_request.rs create mode 100644 sdks/full/rust-cli/src/models/identity_prepare_avatar_upload_response.rs create mode 100644 sdks/full/rust-cli/src/models/identity_prepare_game_link_response.rs create mode 100644 sdks/full/rust-cli/src/models/identity_presence.rs create mode 100644 sdks/full/rust-cli/src/models/identity_profile.rs create mode 100644 sdks/full/rust-cli/src/models/identity_report_request.rs create mode 100644 sdks/full/rust-cli/src/models/identity_search_response.rs create mode 100644 sdks/full/rust-cli/src/models/identity_set_game_activity_request.rs create mode 100644 sdks/full/rust-cli/src/models/identity_setup_request.rs create mode 100644 sdks/full/rust-cli/src/models/identity_setup_response.rs create mode 100644 sdks/full/rust-cli/src/models/identity_signup_for_beta_request.rs create mode 100644 sdks/full/rust-cli/src/models/identity_status.rs create mode 100644 sdks/full/rust-cli/src/models/identity_summary.rs create mode 100644 sdks/full/rust-cli/src/models/identity_update_game_activity.rs create mode 100644 sdks/full/rust-cli/src/models/identity_update_profile_request.rs create mode 100644 sdks/full/rust-cli/src/models/identity_update_status_request.rs create mode 100644 sdks/full/rust-cli/src/models/identity_validate_profile_response.rs create mode 100644 sdks/full/rust-cli/src/models/identity_watch_events_response.rs create mode 100644 sdks/full/rust-cli/src/models/kv_entry.rs create mode 100644 sdks/full/rust-cli/src/models/kv_get_batch_response.rs create mode 100644 sdks/full/rust-cli/src/models/kv_get_response.rs create mode 100644 sdks/full/rust-cli/src/models/kv_list_response.rs create mode 100644 sdks/full/rust-cli/src/models/kv_put_batch_request.rs create mode 100644 sdks/full/rust-cli/src/models/kv_put_entry.rs create mode 100644 sdks/full/rust-cli/src/models/kv_put_request.rs create mode 100644 sdks/full/rust-cli/src/models/matchmaker_create_lobby_response.rs create mode 100644 sdks/full/rust-cli/src/models/matchmaker_custom_lobby_publicity.rs create mode 100644 sdks/full/rust-cli/src/models/matchmaker_find_lobby_response.rs create mode 100644 sdks/full/rust-cli/src/models/matchmaker_game_mode_info.rs create mode 100644 sdks/full/rust-cli/src/models/matchmaker_game_mode_statistics.rs create mode 100644 sdks/full/rust-cli/src/models/matchmaker_get_statistics_response.rs create mode 100644 sdks/full/rust-cli/src/models/matchmaker_join_lobby.rs create mode 100644 sdks/full/rust-cli/src/models/matchmaker_join_lobby_response.rs create mode 100644 sdks/full/rust-cli/src/models/matchmaker_join_player.rs create mode 100644 sdks/full/rust-cli/src/models/matchmaker_join_port.rs create mode 100644 sdks/full/rust-cli/src/models/matchmaker_join_port_range.rs create mode 100644 sdks/full/rust-cli/src/models/matchmaker_join_region.rs create mode 100644 sdks/full/rust-cli/src/models/matchmaker_list_lobbies_response.rs create mode 100644 sdks/full/rust-cli/src/models/matchmaker_list_regions_response.rs create mode 100644 sdks/full/rust-cli/src/models/matchmaker_lobbies_create_request.rs create mode 100644 sdks/full/rust-cli/src/models/matchmaker_lobbies_find_request.rs create mode 100644 sdks/full/rust-cli/src/models/matchmaker_lobbies_join_request.rs create mode 100644 sdks/full/rust-cli/src/models/matchmaker_lobbies_set_closed_request.rs create mode 100644 sdks/full/rust-cli/src/models/matchmaker_lobby_info.rs create mode 100644 sdks/full/rust-cli/src/models/matchmaker_players_connected_request.rs create mode 100644 sdks/full/rust-cli/src/models/matchmaker_region_info.rs create mode 100644 sdks/full/rust-cli/src/models/matchmaker_region_statistics.rs create mode 100644 sdks/full/rust-cli/src/models/mod.rs create mode 100644 sdks/full/rust-cli/src/models/portal_get_game_profile_response.rs create mode 100644 sdks/full/rust-cli/src/models/portal_get_suggested_games_response.rs create mode 100644 sdks/full/rust-cli/src/models/portal_notification_register_firebase_service.rs create mode 100644 sdks/full/rust-cli/src/models/portal_notification_register_service.rs create mode 100644 sdks/full/rust-cli/src/models/portal_notification_unregister_service.rs create mode 100644 sdks/full/rust-cli/src/models/provision_datacenters_get_tls_response.rs create mode 100644 sdks/full/rust-cli/src/models/provision_servers_get_info_response.rs create mode 100644 sdks/full/rust-cli/src/models/servers_build.rs create mode 100644 sdks/full/rust-cli/src/models/servers_build_compression.rs create mode 100644 sdks/full/rust-cli/src/models/servers_build_kind.rs create mode 100644 sdks/full/rust-cli/src/models/servers_create_build_request.rs create mode 100644 sdks/full/rust-cli/src/models/servers_create_build_response.rs create mode 100644 sdks/full/rust-cli/src/models/servers_create_server_network_request.rs create mode 100644 sdks/full/rust-cli/src/models/servers_create_server_port_request.rs create mode 100644 sdks/full/rust-cli/src/models/servers_create_server_request.rs create mode 100644 sdks/full/rust-cli/src/models/servers_create_server_response.rs create mode 100644 sdks/full/rust-cli/src/models/servers_get_build_response.rs create mode 100644 sdks/full/rust-cli/src/models/servers_get_server_logs_response.rs create mode 100644 sdks/full/rust-cli/src/models/servers_get_server_response.rs create mode 100644 sdks/full/rust-cli/src/models/servers_list_builds_response.rs create mode 100644 sdks/full/rust-cli/src/models/servers_list_servers_response.rs create mode 100644 sdks/full/rust-cli/src/models/servers_log_stream.rs create mode 100644 sdks/full/rust-cli/src/models/servers_network.rs create mode 100644 sdks/full/rust-cli/src/models/servers_network_mode.rs create mode 100644 sdks/full/rust-cli/src/models/servers_port.rs create mode 100644 sdks/full/rust-cli/src/models/servers_port_protocol.rs create mode 100644 sdks/full/rust-cli/src/models/servers_port_routing.rs create mode 100644 sdks/full/rust-cli/src/models/servers_resources.rs create mode 100644 sdks/full/rust-cli/src/models/servers_server.rs create mode 100644 sdks/full/rust-cli/src/models/upload_prepare_file.rs create mode 100644 sdks/full/rust-cli/src/models/upload_presigned_request.rs create mode 100644 sdks/full/rust-cli/src/models/validation_error.rs create mode 100644 sdks/full/rust-cli/src/models/watch_response.rs create mode 100644 sdks/full/rust/docs/ServersGetBuildResponse.md create mode 100644 sdks/full/rust/src/models/servers_get_build_response.rs rename sdks/full/typescript/src/api/resources/servers/resources/builds/client/requests/{GetBuildsRequest.ts => GetBuildRequest.ts} (68%) create mode 100644 sdks/full/typescript/src/api/resources/servers/resources/builds/client/requests/ListBuildsRequest.ts diff --git a/fern/definition/servers/__package__.yml b/fern/definition/servers/__package__.yml index 49a32be7df..6d38a8e7aa 100644 --- a/fern/definition/servers/__package__.yml +++ b/fern/definition/servers/__package__.yml @@ -28,7 +28,7 @@ service: request: name: GetServersRequest query-parameters: - tags: optional + tags_json: optional game: optional response: ListServersResponse @@ -66,9 +66,7 @@ types: CreateServerRequest: properties: - datacenter: - docs: The name ID of the datacenter - type: string + datacenter: uuid tags: unknown image: uuid arguments: optional> diff --git a/fern/definition/servers/builds.yml b/fern/definition/servers/builds.yml index 68ae5b469d..c32e8ca565 100644 --- a/fern/definition/servers/builds.yml +++ b/fern/definition/servers/builds.yml @@ -11,6 +11,21 @@ service: path-parameters: game_id: uuid endpoints: + getBuild: + path: /{build_id} + method: GET + docs: >- + Lists all builds of the game associated with the token used. Can be + filtered by tags in the query string. + path-parameters: + build_id: uuid + request: + name: GetBuildRequest + query-parameters: + tags_json: optional + game_id: optional + response: GetBuildResponse + listBuilds: path: "" method: GET @@ -18,9 +33,9 @@ service: Lists all builds of the game associated with the token used. Can be filtered by tags in the query string. request: - name: GetBuildsRequest + name: ListBuildsRequest query-parameters: - tags: optional + tags_json: optional game_id: optional response: ListBuildsResponse @@ -37,10 +52,13 @@ service: method: POST docs: Marks an upload as complete. path-parameters: - build_id: - type: uuid + build_id: uuid types: + GetBuildResponse: + properties: + build: localCommons.Build + ListBuildsResponse: properties: builds: diff --git a/fern/definition/servers/common.yml b/fern/definition/servers/common.yml index cc4e3e4521..49a1d86bb8 100644 --- a/fern/definition/servers/common.yml +++ b/fern/definition/servers/common.yml @@ -8,7 +8,7 @@ types: properties: id: uuid game: uuid - datacenter: string + datacenter: uuid cluster: uuid tags: unknown image: uuid diff --git a/lib/convert/src/impls/ds.rs b/lib/convert/src/impls/ds.rs index ee7604f3cd..15c734afe0 100644 --- a/lib/convert/src/impls/ds.rs +++ b/lib/convert/src/impls/ds.rs @@ -3,28 +3,15 @@ use std::collections::HashMap; use proto::backend; use rivet_api::models; use rivet_operation::prelude::*; +use util::timestamp; use crate::{ApiFrom, ApiInto, ApiTryFrom, ApiTryInto}; use serde_json::{json, to_value}; -impl ApiTryFrom for models::GamesServersBuild { +impl ApiTryFrom for models::ServersServer { type Error = GlobalError; - fn api_try_from(value: backend::build::Build) -> GlobalResult { - Ok(models::GamesServersBuild { - id: unwrap!(value.build_id).as_uuid(), - upload: unwrap!(value.upload_id).as_uuid(), - created_at: timestamp::to_string(value.create_ts)?, - content_length: value.content_length, - completed_at: value.completed_at.map(timestamp::to_string).transpose()?, - tags: value.tags, - }) - } -} - -impl ApiTryFrom for models::GamesServersServer { - type Error = GlobalError; - fn api_try_from(value: backend::ds::Server) -> GlobalResult { - Ok(models::GamesServersServer { + fn api_try_from(value: backend::ds::Server) -> GlobalResult { + Ok(models::ServersServer { id: unwrap!(value.server_id).as_uuid(), cluster: unwrap!(value.cluster_id).as_uuid(), created_at: value.create_ts, @@ -38,7 +25,7 @@ impl ApiTryFrom for models::GamesServersServer { arguments: Some(value.args), environment: Some(value.environment), image: unwrap!(value.image_id).as_uuid(), - network: Box::new(models::GamesServersNetwork { + network: Box::new(models::ServersNetwork { mode: Some( unwrap!(backend::ds::NetworkMode::from_i32(value.network_mode)).api_into(), ), @@ -52,8 +39,8 @@ impl ApiTryFrom for models::GamesServersServer { } } -impl ApiFrom for backend::ds::ServerResources { - fn api_from(value: models::GamesServersResources) -> backend::ds::ServerResources { +impl ApiFrom for backend::ds::ServerResources { + fn api_from(value: models::ServersResources) -> backend::ds::ServerResources { backend::ds::ServerResources { cpu_millicores: value.cpu, memory_mib: value.memory, @@ -61,37 +48,37 @@ impl ApiFrom for backend::ds::ServerResources { } } -impl ApiFrom for models::GamesServersResources { - fn api_from(value: backend::ds::ServerResources) -> models::GamesServersResources { - models::GamesServersResources { +impl ApiFrom for models::ServersResources { + fn api_from(value: backend::ds::ServerResources) -> models::ServersResources { + models::ServersResources { cpu: value.cpu_millicores, memory: value.memory_mib, } } } -impl ApiFrom for backend::ds::NetworkMode { - fn api_from(value: models::GamesServersNetworkMode) -> backend::ds::NetworkMode { +impl ApiFrom for backend::ds::NetworkMode { + fn api_from(value: models::ServersNetworkMode) -> backend::ds::NetworkMode { match value { - models::GamesServersNetworkMode::Bridge => backend::ds::NetworkMode::Bridge, - models::GamesServersNetworkMode::Host => backend::ds::NetworkMode::Host, + models::ServersNetworkMode::Bridge => backend::ds::NetworkMode::Bridge, + models::ServersNetworkMode::Host => backend::ds::NetworkMode::Host, } } } -impl ApiFrom for models::GamesServersNetworkMode { - fn api_from(value: backend::ds::NetworkMode) -> models::GamesServersNetworkMode { +impl ApiFrom for models::ServersNetworkMode { + fn api_from(value: backend::ds::NetworkMode) -> models::ServersNetworkMode { match value { - backend::ds::NetworkMode::Bridge => models::GamesServersNetworkMode::Bridge, - backend::ds::NetworkMode::Host => models::GamesServersNetworkMode::Host, + backend::ds::NetworkMode::Bridge => models::ServersNetworkMode::Bridge, + backend::ds::NetworkMode::Host => models::ServersNetworkMode::Host, } } } -impl ApiTryFrom for models::GamesServersPort { +impl ApiTryFrom for models::ServersPort { type Error = GlobalError; - fn api_try_from(value: backend::ds::Port) -> GlobalResult { + fn api_try_from(value: backend::ds::Port) -> GlobalResult { let protocol = match unwrap!(&value.routing) { backend::ds::port::Routing::GameGuard(x) => { unwrap!(backend::ds::GameGuardProtocol::from_i32(x.protocol)).api_into() @@ -101,7 +88,7 @@ impl ApiTryFrom for models::GamesServersPort { } }; - let routing = models::GamesServersPortRouting { + let routing = models::ServersPortRouting { game_guard: if let Some(backend::ds::port::Routing::GameGuard(_)) = &value.routing { Some(json!({})) } else { @@ -114,7 +101,7 @@ impl ApiTryFrom for models::GamesServersPort { }, }; - Ok(models::GamesServersPort { + Ok(models::ServersPort { protocol, internal_port: value.internal_port, public_hostname: value.public_hostname, @@ -124,48 +111,46 @@ impl ApiTryFrom for models::GamesServersPort { } } -impl ApiFrom for backend::ds::GameGuardProtocol { - fn api_from(value: models::GamesServersPortProtocol) -> backend::ds::GameGuardProtocol { +impl ApiFrom for backend::ds::GameGuardProtocol { + fn api_from(value: models::ServersPortProtocol) -> backend::ds::GameGuardProtocol { match value { - models::GamesServersPortProtocol::Udp => backend::ds::GameGuardProtocol::Udp, - models::GamesServersPortProtocol::Tcp => backend::ds::GameGuardProtocol::Tcp, - models::GamesServersPortProtocol::Http => backend::ds::GameGuardProtocol::Http, - models::GamesServersPortProtocol::Https => backend::ds::GameGuardProtocol::Https, - models::GamesServersPortProtocol::TcpTls => backend::ds::GameGuardProtocol::TcpTls, + models::ServersPortProtocol::Udp => backend::ds::GameGuardProtocol::Udp, + models::ServersPortProtocol::Tcp => backend::ds::GameGuardProtocol::Tcp, + models::ServersPortProtocol::Http => backend::ds::GameGuardProtocol::Http, + models::ServersPortProtocol::Https => backend::ds::GameGuardProtocol::Https, + models::ServersPortProtocol::TcpTls => backend::ds::GameGuardProtocol::TcpTls, } } } -impl ApiFrom for models::GamesServersPortProtocol { - fn api_from(value: backend::ds::GameGuardProtocol) -> models::GamesServersPortProtocol { +impl ApiFrom for models::ServersPortProtocol { + fn api_from(value: backend::ds::GameGuardProtocol) -> models::ServersPortProtocol { match value { - backend::ds::GameGuardProtocol::Udp => models::GamesServersPortProtocol::Udp, - backend::ds::GameGuardProtocol::Tcp => models::GamesServersPortProtocol::Tcp, - backend::ds::GameGuardProtocol::Http => models::GamesServersPortProtocol::Http, - backend::ds::GameGuardProtocol::Https => models::GamesServersPortProtocol::Https, - backend::ds::GameGuardProtocol::TcpTls => models::GamesServersPortProtocol::TcpTls, + backend::ds::GameGuardProtocol::Udp => models::ServersPortProtocol::Udp, + backend::ds::GameGuardProtocol::Tcp => models::ServersPortProtocol::Tcp, + backend::ds::GameGuardProtocol::Http => models::ServersPortProtocol::Http, + backend::ds::GameGuardProtocol::Https => models::ServersPortProtocol::Https, + backend::ds::GameGuardProtocol::TcpTls => models::ServersPortProtocol::TcpTls, } } } -impl ApiTryFrom for backend::ds::HostProtocol { +impl ApiTryFrom for backend::ds::HostProtocol { type Error = GlobalError; - fn api_try_from( - value: models::GamesServersPortProtocol, - ) -> GlobalResult { + fn api_try_from(value: models::ServersPortProtocol) -> GlobalResult { Ok(match value { - models::GamesServersPortProtocol::Udp => backend::ds::HostProtocol::HostUdp, - models::GamesServersPortProtocol::Tcp => backend::ds::HostProtocol::HostTcp, + models::ServersPortProtocol::Udp => backend::ds::HostProtocol::HostUdp, + models::ServersPortProtocol::Tcp => backend::ds::HostProtocol::HostTcp, _ => bail_with!(SERVERS_UNSUPPORTED_HOST_PROTOCOL), }) } } -impl ApiFrom for models::GamesServersPortProtocol { - fn api_from(value: backend::ds::HostProtocol) -> models::GamesServersPortProtocol { +impl ApiFrom for models::ServersPortProtocol { + fn api_from(value: backend::ds::HostProtocol) -> models::ServersPortProtocol { match value { - backend::ds::HostProtocol::HostUdp => models::GamesServersPortProtocol::Udp, - backend::ds::HostProtocol::HostTcp => models::GamesServersPortProtocol::Tcp, + backend::ds::HostProtocol::HostUdp => models::ServersPortProtocol::Udp, + backend::ds::HostProtocol::HostTcp => models::ServersPortProtocol::Tcp, } } } diff --git a/scripts/openapi/gen_rust.sh b/scripts/openapi/gen_rust.sh index 764eba4a1a..d0dfd3314b 100755 --- a/scripts/openapi/gen_rust.sh +++ b/scripts/openapi/gen_rust.sh @@ -21,7 +21,7 @@ docker run --rm \ if [ "$FERN_GROUP" == "full" ]; then # Fix OpenAPI bug (https://github.com/OpenAPITools/openapi-generator/issues/14171) sed -i 's/CloudGamesLogStream/crate::models::CloudGamesLogStream/' "$GEN_PATH_RUST/src/apis/cloud_games_matchmaker_api.rs" - sed -i 's/GamesServersLogStream/crate::models::GamesServersLogStream/' "$GEN_PATH_RUST/src/apis/games_servers_logs_api.rs" + sed -i 's/ServersLogStream/crate::models::ServersLogStream/' "$GEN_PATH_RUST/src/apis/servers_logs_api.rs" sed -i 's/AdminClustersPoolType/crate::models::AdminClustersPoolType/' "$GEN_PATH_RUST/src/apis/admin_clusters_servers_api.rs" # Create variant specifically for the CLI diff --git a/sdks/full/go/servers/builds.go b/sdks/full/go/servers/builds.go index 87c3251cc2..7346d8a630 100644 --- a/sdks/full/go/servers/builds.go +++ b/sdks/full/go/servers/builds.go @@ -10,9 +10,14 @@ import ( upload "sdk/upload" ) -type GetBuildsRequest struct { - Tags *string `json:"-"` - GameId *uuid.UUID `json:"-"` +type GetBuildRequest struct { + TagsJson *string `json:"-"` + GameId *uuid.UUID `json:"-"` +} + +type ListBuildsRequest struct { + TagsJson *string `json:"-"` + GameId *uuid.UUID `json:"-"` } type CreateBuildRequest struct { @@ -83,6 +88,35 @@ func (c *CreateBuildResponse) String() string { return fmt.Sprintf("%#v", c) } +type GetBuildResponse struct { + Build *Build `json:"build,omitempty"` + + _rawJSON json.RawMessage +} + +func (g *GetBuildResponse) UnmarshalJSON(data []byte) error { + type unmarshaler GetBuildResponse + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *g = GetBuildResponse(value) + g._rawJSON = json.RawMessage(data) + return nil +} + +func (g *GetBuildResponse) String() string { + if len(g._rawJSON) > 0 { + if value, err := core.StringifyJSON(g._rawJSON); err == nil { + return value + } + } + if value, err := core.StringifyJSON(g); err == nil { + return value + } + return fmt.Sprintf("%#v", g) +} + type ListBuildsResponse struct { // A list of builds for the game associated with the token. Builds []*Build `json:"builds,omitempty"` diff --git a/sdks/full/go/servers/builds/client.go b/sdks/full/go/servers/builds/client.go index 465460bc83..451183d962 100644 --- a/sdks/full/go/servers/builds/client.go +++ b/sdks/full/go/servers/builds/client.go @@ -36,7 +36,96 @@ func NewClient(opts ...core.ClientOption) *Client { } // Lists all builds of the game associated with the token used. Can be filtered by tags in the query string. -func (c *Client) ListBuilds(ctx context.Context, gameId uuid.UUID, request *servers.GetBuildsRequest) (*servers.ListBuildsResponse, error) { +func (c *Client) GetBuild(ctx context.Context, gameId uuid.UUID, buildId uuid.UUID, request *servers.GetBuildRequest) (*servers.GetBuildResponse, error) { + baseURL := "https://api.rivet.gg" + if c.baseURL != "" { + baseURL = c.baseURL + } + endpointURL := fmt.Sprintf(baseURL+"/"+"games/%v/builds/%v", gameId, buildId) + + queryParams := make(url.Values) + if request.TagsJson != nil { + queryParams.Add("tags_json", fmt.Sprintf("%v", *request.TagsJson)) + } + if request.GameId != nil { + queryParams.Add("game_id", fmt.Sprintf("%v", *request.GameId)) + } + if len(queryParams) > 0 { + endpointURL += "?" + queryParams.Encode() + } + + errorDecoder := func(statusCode int, body io.Reader) error { + raw, err := io.ReadAll(body) + if err != nil { + return err + } + apiError := core.NewAPIError(statusCode, errors.New(string(raw))) + decoder := json.NewDecoder(bytes.NewReader(raw)) + switch statusCode { + case 500: + value := new(sdk.InternalError) + value.APIError = apiError + if err := decoder.Decode(value); err != nil { + return apiError + } + return value + case 429: + value := new(sdk.RateLimitError) + value.APIError = apiError + if err := decoder.Decode(value); err != nil { + return apiError + } + return value + case 403: + value := new(sdk.ForbiddenError) + value.APIError = apiError + if err := decoder.Decode(value); err != nil { + return apiError + } + return value + case 408: + value := new(sdk.UnauthorizedError) + value.APIError = apiError + if err := decoder.Decode(value); err != nil { + return apiError + } + return value + case 404: + value := new(sdk.NotFoundError) + value.APIError = apiError + if err := decoder.Decode(value); err != nil { + return apiError + } + return value + case 400: + value := new(sdk.BadRequestError) + value.APIError = apiError + if err := decoder.Decode(value); err != nil { + return apiError + } + return value + } + return apiError + } + + var response *servers.GetBuildResponse + if err := c.caller.Call( + ctx, + &core.CallParams{ + URL: endpointURL, + Method: http.MethodGet, + Headers: c.header, + Response: &response, + ErrorDecoder: errorDecoder, + }, + ); err != nil { + return nil, err + } + return response, nil +} + +// Lists all builds of the game associated with the token used. Can be filtered by tags in the query string. +func (c *Client) ListBuilds(ctx context.Context, gameId uuid.UUID, request *servers.ListBuildsRequest) (*servers.ListBuildsResponse, error) { baseURL := "https://api.rivet.gg" if c.baseURL != "" { baseURL = c.baseURL @@ -44,8 +133,8 @@ func (c *Client) ListBuilds(ctx context.Context, gameId uuid.UUID, request *serv endpointURL := fmt.Sprintf(baseURL+"/"+"games/%v/builds", gameId) queryParams := make(url.Values) - if request.Tags != nil { - queryParams.Add("tags", fmt.Sprintf("%v", *request.Tags)) + if request.TagsJson != nil { + queryParams.Add("tags_json", fmt.Sprintf("%v", *request.TagsJson)) } if request.GameId != nil { queryParams.Add("game_id", fmt.Sprintf("%v", *request.GameId)) diff --git a/sdks/full/go/servers/client/client.go b/sdks/full/go/servers/client/client.go index d8acbbe1f4..827293897b 100644 --- a/sdks/full/go/servers/client/client.go +++ b/sdks/full/go/servers/client/client.go @@ -131,8 +131,8 @@ func (c *Client) List(ctx context.Context, gameId uuid.UUID, request *servers.Ge endpointURL := fmt.Sprintf(baseURL+"/"+"games/%v/servers", gameId) queryParams := make(url.Values) - if request.Tags != nil { - queryParams.Add("tags", fmt.Sprintf("%v", *request.Tags)) + if request.TagsJson != nil { + queryParams.Add("tags_json", fmt.Sprintf("%v", *request.TagsJson)) } if request.Game != nil { queryParams.Add("game", fmt.Sprintf("%v", *request.Game)) diff --git a/sdks/full/go/servers/servers.go b/sdks/full/go/servers/servers.go index 7089b4679d..89868d5c46 100644 --- a/sdks/full/go/servers/servers.go +++ b/sdks/full/go/servers/servers.go @@ -10,8 +10,7 @@ import ( ) type CreateServerRequest struct { - // The name ID of the datacenter - Datacenter string `json:"datacenter"` + Datacenter uuid.UUID `json:"datacenter"` Tags interface{} `json:"tags,omitempty"` Image uuid.UUID `json:"image"` Arguments []string `json:"arguments,omitempty"` diff --git a/sdks/full/go/servers/types.go b/sdks/full/go/servers/types.go index 96442e09d7..54ae0ed1af 100644 --- a/sdks/full/go/servers/types.go +++ b/sdks/full/go/servers/types.go @@ -16,8 +16,8 @@ type DestroyServerRequest struct { } type GetServersRequest struct { - Tags *string `json:"-"` - Game *uuid.UUID `json:"-"` + TagsJson *string `json:"-"` + Game *uuid.UUID `json:"-"` } type BuildCompression string @@ -343,7 +343,7 @@ func (r *Resources) String() string { type Server struct { Id uuid.UUID `json:"id"` Game uuid.UUID `json:"game"` - Datacenter string `json:"datacenter"` + Datacenter uuid.UUID `json:"datacenter"` Cluster uuid.UUID `json:"cluster"` Tags interface{} `json:"tags,omitempty"` Image uuid.UUID `json:"image"` diff --git a/sdks/full/openapi/openapi.yml b/sdks/full/openapi/openapi.yml index f3f97a6b9c..f977703e72 100644 --- a/sdks/full/openapi/openapi.yml +++ b/sdks/full/openapi/openapi.yml @@ -5026,7 +5026,7 @@ paths: schema: type: string format: uuid - - name: tags + - name: tags_json in: query required: false schema: @@ -9174,6 +9174,82 @@ paths: schema: $ref: '#/components/schemas/ErrorBody' security: *ref_0 + /games/{game_id}/builds/{build_id}: + get: + description: >- + Lists all builds of the game associated with the token used. Can be + filtered by tags in the query string. + operationId: servers_builds_getBuild + tags: + - ServersBuilds + parameters: + - name: game_id + in: path + required: true + schema: + type: string + format: uuid + - name: build_id + in: path + required: true + schema: + type: string + format: uuid + - name: tags_json + in: query + required: false + schema: + type: string + - name: game_id + in: query + required: false + schema: + type: string + format: uuid + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/ServersGetBuildResponse' + '400': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorBody' + security: *ref_0 /games/{game_id}/builds: get: description: >- @@ -9189,7 +9265,7 @@ paths: schema: type: string format: uuid - - name: tags + - name: tags_json in: query required: false schema: @@ -10585,7 +10661,7 @@ components: properties: datacenter: type: string - description: The name ID of the datacenter + format: uuid tags: {} image: type: string @@ -14062,6 +14138,13 @@ components: required: - game - watch + ServersGetBuildResponse: + type: object + properties: + build: + $ref: '#/components/schemas/ServersBuild' + required: + - build ServersListBuildsResponse: type: object properties: @@ -14133,6 +14216,7 @@ components: format: uuid datacenter: type: string + format: uuid cluster: type: string format: uuid diff --git a/sdks/full/openapi_compat/openapi.yml b/sdks/full/openapi_compat/openapi.yml index e2ef514b87..31fd4b87f9 100644 --- a/sdks/full/openapi_compat/openapi.yml +++ b/sdks/full/openapi_compat/openapi.yml @@ -4513,7 +4513,7 @@ components: type: string type: array datacenter: - description: The name ID of the datacenter + format: uuid type: string environment: additionalProperties: @@ -4558,6 +4558,13 @@ components: ServersGameGuardRouting: properties: {} type: object + ServersGetBuildResponse: + properties: + build: + $ref: '#/components/schemas/ServersBuild' + required: + - build + type: object ServersGetServerLogsResponse: properties: lines: @@ -4689,6 +4696,7 @@ components: format: int64 type: integer datacenter: + format: uuid type: string destroyed_at: format: int64 @@ -8940,7 +8948,7 @@ paths: format: uuid type: string - in: query - name: tags + name: tags_json required: false schema: type: string @@ -9059,6 +9067,81 @@ paths: security: *id001 tags: - ServersBuilds + /games/{game_id}/builds/{build_id}: + get: + description: Lists all builds of the game associated with the token used. Can + be filtered by tags in the query string. + operationId: servers_builds_getBuild + parameters: + - in: path + name: game_id + required: true + schema: + format: uuid + type: string + - in: path + name: build_id + required: true + schema: + format: uuid + type: string + - in: query + name: tags_json + required: false + schema: + type: string + - in: query + name: game_id + required: false + schema: + format: uuid + type: string + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ServersGetBuildResponse' + description: '' + '400': + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorBody' + description: '' + '403': + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorBody' + description: '' + '404': + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorBody' + description: '' + '408': + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorBody' + description: '' + '429': + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorBody' + description: '' + '500': + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorBody' + description: '' + security: *id001 + tags: + - ServersBuilds /games/{game_id}/builds/{build_id}/complete: post: description: Marks an upload as complete. @@ -9131,7 +9214,7 @@ paths: format: uuid type: string - in: query - name: tags + name: tags_json required: false schema: type: string diff --git a/sdks/full/rust-cli/.gitignore b/sdks/full/rust-cli/.gitignore new file mode 100644 index 0000000000..6aa106405a --- /dev/null +++ b/sdks/full/rust-cli/.gitignore @@ -0,0 +1,3 @@ +/target/ +**/*.rs.bk +Cargo.lock diff --git a/sdks/full/rust-cli/.openapi-generator-ignore b/sdks/full/rust-cli/.openapi-generator-ignore new file mode 100644 index 0000000000..7484ee590a --- /dev/null +++ b/sdks/full/rust-cli/.openapi-generator-ignore @@ -0,0 +1,23 @@ +# OpenAPI Generator Ignore +# Generated by openapi-generator https://github.com/openapitools/openapi-generator + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/sdks/full/rust-cli/.openapi-generator/FILES b/sdks/full/rust-cli/.openapi-generator/FILES new file mode 100644 index 0000000000..bc993ad026 --- /dev/null +++ b/sdks/full/rust-cli/.openapi-generator/FILES @@ -0,0 +1,754 @@ +.gitignore +.openapi-generator-ignore +.travis.yml +Cargo.toml +README.md +docs/AdminApi.md +docs/AdminClustersApi.md +docs/AdminClustersBuildDeliveryMethod.md +docs/AdminClustersCluster.md +docs/AdminClustersCreateClusterRequest.md +docs/AdminClustersCreateClusterResponse.md +docs/AdminClustersCreateDatacenterRequest.md +docs/AdminClustersCreateDatacenterResponse.md +docs/AdminClustersDatacenter.md +docs/AdminClustersDatacentersApi.md +docs/AdminClustersHardware.md +docs/AdminClustersListClustersResponse.md +docs/AdminClustersListDatacentersResponse.md +docs/AdminClustersListServersResponse.md +docs/AdminClustersPool.md +docs/AdminClustersPoolType.md +docs/AdminClustersPoolUpdate.md +docs/AdminClustersProvider.md +docs/AdminClustersServer.md +docs/AdminClustersServersApi.md +docs/AdminClustersUpdateDatacenterRequest.md +docs/AdminLoginRequest.md +docs/AdminLoginResponse.md +docs/AuthCompleteStatus.md +docs/AuthIdentityAccessTokenApi.md +docs/AuthIdentityCompleteAccessTokenVerificationRequest.md +docs/AuthIdentityCompleteEmailVerificationRequest.md +docs/AuthIdentityCompleteEmailVerificationResponse.md +docs/AuthIdentityEmailApi.md +docs/AuthIdentityStartEmailVerificationRequest.md +docs/AuthIdentityStartEmailVerificationResponse.md +docs/AuthRefreshIdentityTokenRequest.md +docs/AuthRefreshIdentityTokenResponse.md +docs/AuthTokensApi.md +docs/CaptchaConfig.md +docs/CaptchaConfigHcaptcha.md +docs/CaptchaConfigTurnstile.md +docs/CloudApi.md +docs/CloudAuthAgent.md +docs/CloudAuthAgentGameCloud.md +docs/CloudAuthAgentIdentity.md +docs/CloudAuthApi.md +docs/CloudBootstrapAccess.md +docs/CloudBootstrapCaptcha.md +docs/CloudBootstrapCaptchaTurnstile.md +docs/CloudBootstrapCluster.md +docs/CloudBootstrapDomains.md +docs/CloudBootstrapLoginMethods.md +docs/CloudBootstrapOrigins.md +docs/CloudBootstrapResponse.md +docs/CloudBuildSummary.md +docs/CloudCdnAuthType.md +docs/CloudCdnNamespaceAuthUser.md +docs/CloudCdnNamespaceConfig.md +docs/CloudCdnNamespaceDomain.md +docs/CloudCdnNamespaceDomainVerificationMethod.md +docs/CloudCdnNamespaceDomainVerificationMethodHttp.md +docs/CloudCdnNamespaceDomainVerificationStatus.md +docs/CloudCdnSiteSummary.md +docs/CloudCustomAvatarSummary.md +docs/CloudDevicesCompleteDeviceLinkRequest.md +docs/CloudDevicesGetDeviceLinkResponse.md +docs/CloudDevicesLinksApi.md +docs/CloudDevicesPrepareDeviceLinkResponse.md +docs/CloudGameFull.md +docs/CloudGameLobbyExpenses.md +docs/CloudGamesApi.md +docs/CloudGamesAvatarsApi.md +docs/CloudGamesBuildCompression.md +docs/CloudGamesBuildKind.md +docs/CloudGamesBuildsApi.md +docs/CloudGamesCdnApi.md +docs/CloudGamesCreateCloudTokenResponse.md +docs/CloudGamesCreateGameBuildRequest.md +docs/CloudGamesCreateGameBuildResponse.md +docs/CloudGamesCreateGameCdnSiteRequest.md +docs/CloudGamesCreateGameCdnSiteResponse.md +docs/CloudGamesCreateGameRequest.md +docs/CloudGamesCreateGameResponse.md +docs/CloudGamesCreateGameVersionRequest.md +docs/CloudGamesCreateGameVersionResponse.md +docs/CloudGamesCreateServiceTokenResponse.md +docs/CloudGamesDeleteMatchmakerLobbyResponse.md +docs/CloudGamesExportLobbyLogsRequest.md +docs/CloudGamesExportLobbyLogsResponse.md +docs/CloudGamesExportMatchmakerLobbyHistoryRequest.md +docs/CloudGamesExportMatchmakerLobbyHistoryResponse.md +docs/CloudGamesGameBannerUploadPrepareRequest.md +docs/CloudGamesGameBannerUploadPrepareResponse.md +docs/CloudGamesGameLogoUploadPrepareRequest.md +docs/CloudGamesGameLogoUploadPrepareResponse.md +docs/CloudGamesGetGameByIdResponse.md +docs/CloudGamesGetGameVersionByIdResponse.md +docs/CloudGamesGetGamesResponse.md +docs/CloudGamesGetLobbyLogsResponse.md +docs/CloudGamesListGameBuildsResponse.md +docs/CloudGamesListGameCdnSitesResponse.md +docs/CloudGamesListGameCustomAvatarsResponse.md +docs/CloudGamesLogStream.md +docs/CloudGamesMatchmakerApi.md +docs/CloudGamesNamespacesAddNamespaceDomainRequest.md +docs/CloudGamesNamespacesAnalyticsApi.md +docs/CloudGamesNamespacesApi.md +docs/CloudGamesNamespacesCreateGameNamespaceRequest.md +docs/CloudGamesNamespacesCreateGameNamespaceResponse.md +docs/CloudGamesNamespacesCreateGameNamespaceTokenDevelopmentRequest.md +docs/CloudGamesNamespacesCreateGameNamespaceTokenDevelopmentResponse.md +docs/CloudGamesNamespacesCreateGameNamespaceTokenPublicResponse.md +docs/CloudGamesNamespacesGetAnalyticsMatchmakerLiveResponse.md +docs/CloudGamesNamespacesGetGameNamespaceByIdResponse.md +docs/CloudGamesNamespacesGetGameNamespaceVersionHistoryResponse.md +docs/CloudGamesNamespacesGetNamespaceLobbyResponse.md +docs/CloudGamesNamespacesInspectResponse.md +docs/CloudGamesNamespacesListNamespaceLobbiesResponse.md +docs/CloudGamesNamespacesLogsApi.md +docs/CloudGamesNamespacesSetNamespaceCdnAuthTypeRequest.md +docs/CloudGamesNamespacesToggleNamespaceDomainPublicAuthRequest.md +docs/CloudGamesNamespacesUpdateGameNamespaceMatchmakerConfigRequest.md +docs/CloudGamesNamespacesUpdateGameNamespaceVersionRequest.md +docs/CloudGamesNamespacesUpdateNamespaceCdnAuthUserRequest.md +docs/CloudGamesNamespacesValidateGameNamespaceMatchmakerConfigRequest.md +docs/CloudGamesNamespacesValidateGameNamespaceMatchmakerConfigResponse.md +docs/CloudGamesNamespacesValidateGameNamespaceRequest.md +docs/CloudGamesNamespacesValidateGameNamespaceResponse.md +docs/CloudGamesNamespacesValidateGameNamespaceTokenDevelopmentRequest.md +docs/CloudGamesNamespacesValidateGameNamespaceTokenDevelopmentResponse.md +docs/CloudGamesPrepareCustomAvatarUploadRequest.md +docs/CloudGamesPrepareCustomAvatarUploadResponse.md +docs/CloudGamesReserveVersionNameResponse.md +docs/CloudGamesTokensApi.md +docs/CloudGamesValidateGameRequest.md +docs/CloudGamesValidateGameResponse.md +docs/CloudGamesValidateGameVersionRequest.md +docs/CloudGamesValidateGameVersionResponse.md +docs/CloudGamesVersionsApi.md +docs/CloudGetRayPerfLogsResponse.md +docs/CloudGetRegionTiersResponse.md +docs/CloudGroupBankSource.md +docs/CloudGroupsApi.md +docs/CloudInspectResponse.md +docs/CloudLobbySummaryAnalytics.md +docs/CloudLogsApi.md +docs/CloudLogsLobbyStatus.md +docs/CloudLogsLobbyStatusStopped.md +docs/CloudLogsLobbySummary.md +docs/CloudLogsPerfMark.md +docs/CloudLogsPerfSpan.md +docs/CloudMatchmakerDevelopmentPort.md +docs/CloudMatchmakerNamespaceConfig.md +docs/CloudNamespaceConfig.md +docs/CloudNamespaceFull.md +docs/CloudNamespaceSummary.md +docs/CloudNamespaceVersion.md +docs/CloudRegionSummary.md +docs/CloudRegionTier.md +docs/CloudRegionTierExpenses.md +docs/CloudSvcMetrics.md +docs/CloudSvcPerf.md +docs/CloudTiersApi.md +docs/CloudUniversalRegion.md +docs/CloudUploadsApi.md +docs/CloudValidateGroupRequest.md +docs/CloudValidateGroupResponse.md +docs/CloudVersionCdnConfig.md +docs/CloudVersionCdnCustomHeadersMiddleware.md +docs/CloudVersionCdnHeader.md +docs/CloudVersionCdnMiddleware.md +docs/CloudVersionCdnMiddlewareKind.md +docs/CloudVersionCdnRoute.md +docs/CloudVersionConfig.md +docs/CloudVersionEngineConfig.md +docs/CloudVersionEngineUnrealConfig.md +docs/CloudVersionFull.md +docs/CloudVersionIdentityConfig.md +docs/CloudVersionIdentityCustomAvatar.md +docs/CloudVersionIdentityCustomDisplayName.md +docs/CloudVersionMatchmakerCaptcha.md +docs/CloudVersionMatchmakerCaptchaHcaptcha.md +docs/CloudVersionMatchmakerCaptchaHcaptchaLevel.md +docs/CloudVersionMatchmakerCaptchaTurnstile.md +docs/CloudVersionMatchmakerConfig.md +docs/CloudVersionMatchmakerGameMode.md +docs/CloudVersionMatchmakerGameModeActions.md +docs/CloudVersionMatchmakerGameModeCreateConfig.md +docs/CloudVersionMatchmakerGameModeFindConfig.md +docs/CloudVersionMatchmakerGameModeIdentityRequirement.md +docs/CloudVersionMatchmakerGameModeIdleLobbiesConfig.md +docs/CloudVersionMatchmakerGameModeJoinConfig.md +docs/CloudVersionMatchmakerGameModeRegion.md +docs/CloudVersionMatchmakerGameModeRuntimeDocker.md +docs/CloudVersionMatchmakerGameModeRuntimeDockerPort.md +docs/CloudVersionMatchmakerGameModeVerificationConfig.md +docs/CloudVersionMatchmakerLobbyGroup.md +docs/CloudVersionMatchmakerLobbyGroupIdleLobbiesConfig.md +docs/CloudVersionMatchmakerLobbyGroupRegion.md +docs/CloudVersionMatchmakerLobbyGroupRuntime.md +docs/CloudVersionMatchmakerLobbyGroupRuntimeDocker.md +docs/CloudVersionMatchmakerLobbyGroupRuntimeDockerEnvVar.md +docs/CloudVersionMatchmakerLobbyGroupRuntimeDockerPort.md +docs/CloudVersionMatchmakerNetworkMode.md +docs/CloudVersionMatchmakerPortProtocol.md +docs/CloudVersionMatchmakerPortRange.md +docs/CloudVersionMatchmakerProxyKind.md +docs/CloudVersionSummary.md +docs/ErrorBody.md +docs/GameHandle.md +docs/GameLeaderboardCategory.md +docs/GamePlatformLink.md +docs/GameProfile.md +docs/GameStat.md +docs/GameStatAggregationMethod.md +docs/GameStatConfig.md +docs/GameStatFormatMethod.md +docs/GameStatSortingMethod.md +docs/GameStatSummary.md +docs/GameSummary.md +docs/GeoCoord.md +docs/GeoDistance.md +docs/GlobalEventNotification.md +docs/GroupApi.md +docs/GroupBannedIdentity.md +docs/GroupConsumeInviteResponse.md +docs/GroupCreateInviteRequest.md +docs/GroupCreateInviteResponse.md +docs/GroupCreateRequest.md +docs/GroupCreateResponse.md +docs/GroupExternalLinks.md +docs/GroupGetBansResponse.md +docs/GroupGetInviteResponse.md +docs/GroupGetJoinRequestsResponse.md +docs/GroupGetMembersResponse.md +docs/GroupGetProfileResponse.md +docs/GroupGetSummaryResponse.md +docs/GroupHandle.md +docs/GroupInvitesApi.md +docs/GroupJoinRequest.md +docs/GroupJoinRequestsApi.md +docs/GroupListSuggestedResponse.md +docs/GroupMember.md +docs/GroupPrepareAvatarUploadRequest.md +docs/GroupPrepareAvatarUploadResponse.md +docs/GroupProfile.md +docs/GroupPublicity.md +docs/GroupResolveJoinRequestRequest.md +docs/GroupSearchResponse.md +docs/GroupSummary.md +docs/GroupTransferOwnershipRequest.md +docs/GroupUpdateProfileRequest.md +docs/GroupValidateProfileRequest.md +docs/GroupValidateProfileResponse.md +docs/IdentityAccessTokenLinkedAccount.md +docs/IdentityActivitiesApi.md +docs/IdentityApi.md +docs/IdentityCancelGameLinkRequest.md +docs/IdentityCompleteGameLinkRequest.md +docs/IdentityDevState.md +docs/IdentityEmailLinkedAccount.md +docs/IdentityEventsApi.md +docs/IdentityExternalLinks.md +docs/IdentityGameActivity.md +docs/IdentityGameLinkStatus.md +docs/IdentityGetGameLinkNewIdentity.md +docs/IdentityGetGameLinkResponse.md +docs/IdentityGetHandlesResponse.md +docs/IdentityGetProfileResponse.md +docs/IdentityGetSummariesResponse.md +docs/IdentityGlobalEvent.md +docs/IdentityGlobalEventIdentityUpdate.md +docs/IdentityGlobalEventKind.md +docs/IdentityGlobalEventMatchmakerLobbyJoin.md +docs/IdentityGlobalEventNotification.md +docs/IdentityGroup.md +docs/IdentityHandle.md +docs/IdentityLinkedAccount.md +docs/IdentityLinksApi.md +docs/IdentityListActivitiesResponse.md +docs/IdentityListFollowersResponse.md +docs/IdentityListFollowingResponse.md +docs/IdentityListFriendsResponse.md +docs/IdentityListMutualFriendsResponse.md +docs/IdentityListRecentFollowersResponse.md +docs/IdentityPrepareAvatarUploadRequest.md +docs/IdentityPrepareAvatarUploadResponse.md +docs/IdentityPrepareGameLinkResponse.md +docs/IdentityPresence.md +docs/IdentityProfile.md +docs/IdentityReportRequest.md +docs/IdentitySearchResponse.md +docs/IdentitySetGameActivityRequest.md +docs/IdentitySetupRequest.md +docs/IdentitySetupResponse.md +docs/IdentitySignupForBetaRequest.md +docs/IdentityStatus.md +docs/IdentitySummary.md +docs/IdentityUpdateGameActivity.md +docs/IdentityUpdateProfileRequest.md +docs/IdentityUpdateStatusRequest.md +docs/IdentityValidateProfileResponse.md +docs/IdentityWatchEventsResponse.md +docs/JobRunApi.md +docs/KvApi.md +docs/KvEntry.md +docs/KvGetBatchResponse.md +docs/KvGetResponse.md +docs/KvListResponse.md +docs/KvPutBatchRequest.md +docs/KvPutEntry.md +docs/KvPutRequest.md +docs/MatchmakerCreateLobbyResponse.md +docs/MatchmakerCustomLobbyPublicity.md +docs/MatchmakerFindLobbyResponse.md +docs/MatchmakerGameModeInfo.md +docs/MatchmakerGameModeStatistics.md +docs/MatchmakerGetStatisticsResponse.md +docs/MatchmakerJoinLobby.md +docs/MatchmakerJoinLobbyResponse.md +docs/MatchmakerJoinPlayer.md +docs/MatchmakerJoinPort.md +docs/MatchmakerJoinPortRange.md +docs/MatchmakerJoinRegion.md +docs/MatchmakerListLobbiesResponse.md +docs/MatchmakerListRegionsResponse.md +docs/MatchmakerLobbiesApi.md +docs/MatchmakerLobbiesCreateRequest.md +docs/MatchmakerLobbiesFindRequest.md +docs/MatchmakerLobbiesJoinRequest.md +docs/MatchmakerLobbiesSetClosedRequest.md +docs/MatchmakerLobbyInfo.md +docs/MatchmakerPlayersApi.md +docs/MatchmakerPlayersConnectedRequest.md +docs/MatchmakerRegionInfo.md +docs/MatchmakerRegionStatistics.md +docs/MatchmakerRegionsApi.md +docs/PortalGamesApi.md +docs/PortalGetGameProfileResponse.md +docs/PortalGetSuggestedGamesResponse.md +docs/PortalNotificationRegisterFirebaseService.md +docs/PortalNotificationRegisterService.md +docs/PortalNotificationUnregisterService.md +docs/ProvisionDatacentersApi.md +docs/ProvisionDatacentersGetTlsResponse.md +docs/ProvisionServersApi.md +docs/ProvisionServersGetInfoResponse.md +docs/ServersApi.md +docs/ServersBuild.md +docs/ServersBuildCompression.md +docs/ServersBuildKind.md +docs/ServersBuildsApi.md +docs/ServersCreateBuildRequest.md +docs/ServersCreateBuildResponse.md +docs/ServersCreateServerNetworkRequest.md +docs/ServersCreateServerPortRequest.md +docs/ServersCreateServerRequest.md +docs/ServersCreateServerResponse.md +docs/ServersGetBuildResponse.md +docs/ServersGetServerLogsResponse.md +docs/ServersGetServerResponse.md +docs/ServersListBuildsResponse.md +docs/ServersListServersResponse.md +docs/ServersLogStream.md +docs/ServersLogsApi.md +docs/ServersNetwork.md +docs/ServersNetworkMode.md +docs/ServersPort.md +docs/ServersPortProtocol.md +docs/ServersPortRouting.md +docs/ServersResources.md +docs/ServersServer.md +docs/UploadPrepareFile.md +docs/UploadPresignedRequest.md +docs/ValidationError.md +docs/WatchResponse.md +git_push.sh +src/apis/admin_api.rs +src/apis/admin_clusters_api.rs +src/apis/admin_clusters_datacenters_api.rs +src/apis/admin_clusters_servers_api.rs +src/apis/auth_identity_access_token_api.rs +src/apis/auth_identity_email_api.rs +src/apis/auth_tokens_api.rs +src/apis/cloud_api.rs +src/apis/cloud_auth_api.rs +src/apis/cloud_devices_links_api.rs +src/apis/cloud_games_api.rs +src/apis/cloud_games_avatars_api.rs +src/apis/cloud_games_builds_api.rs +src/apis/cloud_games_cdn_api.rs +src/apis/cloud_games_matchmaker_api.rs +src/apis/cloud_games_namespaces_analytics_api.rs +src/apis/cloud_games_namespaces_api.rs +src/apis/cloud_games_namespaces_logs_api.rs +src/apis/cloud_games_tokens_api.rs +src/apis/cloud_games_versions_api.rs +src/apis/cloud_groups_api.rs +src/apis/cloud_logs_api.rs +src/apis/cloud_tiers_api.rs +src/apis/cloud_uploads_api.rs +src/apis/configuration.rs +src/apis/group_api.rs +src/apis/group_invites_api.rs +src/apis/group_join_requests_api.rs +src/apis/identity_activities_api.rs +src/apis/identity_api.rs +src/apis/identity_events_api.rs +src/apis/identity_links_api.rs +src/apis/job_run_api.rs +src/apis/kv_api.rs +src/apis/matchmaker_lobbies_api.rs +src/apis/matchmaker_players_api.rs +src/apis/matchmaker_regions_api.rs +src/apis/mod.rs +src/apis/portal_games_api.rs +src/apis/provision_datacenters_api.rs +src/apis/provision_servers_api.rs +src/apis/servers_api.rs +src/apis/servers_builds_api.rs +src/apis/servers_logs_api.rs +src/lib.rs +src/models/admin_clusters_build_delivery_method.rs +src/models/admin_clusters_cluster.rs +src/models/admin_clusters_create_cluster_request.rs +src/models/admin_clusters_create_cluster_response.rs +src/models/admin_clusters_create_datacenter_request.rs +src/models/admin_clusters_create_datacenter_response.rs +src/models/admin_clusters_datacenter.rs +src/models/admin_clusters_hardware.rs +src/models/admin_clusters_list_clusters_response.rs +src/models/admin_clusters_list_datacenters_response.rs +src/models/admin_clusters_list_servers_response.rs +src/models/admin_clusters_pool.rs +src/models/admin_clusters_pool_type.rs +src/models/admin_clusters_pool_update.rs +src/models/admin_clusters_provider.rs +src/models/admin_clusters_server.rs +src/models/admin_clusters_update_datacenter_request.rs +src/models/admin_login_request.rs +src/models/admin_login_response.rs +src/models/auth_complete_status.rs +src/models/auth_identity_complete_access_token_verification_request.rs +src/models/auth_identity_complete_email_verification_request.rs +src/models/auth_identity_complete_email_verification_response.rs +src/models/auth_identity_start_email_verification_request.rs +src/models/auth_identity_start_email_verification_response.rs +src/models/auth_refresh_identity_token_request.rs +src/models/auth_refresh_identity_token_response.rs +src/models/captcha_config.rs +src/models/captcha_config_hcaptcha.rs +src/models/captcha_config_turnstile.rs +src/models/cloud_auth_agent.rs +src/models/cloud_auth_agent_game_cloud.rs +src/models/cloud_auth_agent_identity.rs +src/models/cloud_bootstrap_access.rs +src/models/cloud_bootstrap_captcha.rs +src/models/cloud_bootstrap_captcha_turnstile.rs +src/models/cloud_bootstrap_cluster.rs +src/models/cloud_bootstrap_domains.rs +src/models/cloud_bootstrap_login_methods.rs +src/models/cloud_bootstrap_origins.rs +src/models/cloud_bootstrap_response.rs +src/models/cloud_build_summary.rs +src/models/cloud_cdn_auth_type.rs +src/models/cloud_cdn_namespace_auth_user.rs +src/models/cloud_cdn_namespace_config.rs +src/models/cloud_cdn_namespace_domain.rs +src/models/cloud_cdn_namespace_domain_verification_method.rs +src/models/cloud_cdn_namespace_domain_verification_method_http.rs +src/models/cloud_cdn_namespace_domain_verification_status.rs +src/models/cloud_cdn_site_summary.rs +src/models/cloud_custom_avatar_summary.rs +src/models/cloud_devices_complete_device_link_request.rs +src/models/cloud_devices_get_device_link_response.rs +src/models/cloud_devices_prepare_device_link_response.rs +src/models/cloud_game_full.rs +src/models/cloud_game_lobby_expenses.rs +src/models/cloud_games_build_compression.rs +src/models/cloud_games_build_kind.rs +src/models/cloud_games_create_cloud_token_response.rs +src/models/cloud_games_create_game_build_request.rs +src/models/cloud_games_create_game_build_response.rs +src/models/cloud_games_create_game_cdn_site_request.rs +src/models/cloud_games_create_game_cdn_site_response.rs +src/models/cloud_games_create_game_request.rs +src/models/cloud_games_create_game_response.rs +src/models/cloud_games_create_game_version_request.rs +src/models/cloud_games_create_game_version_response.rs +src/models/cloud_games_create_service_token_response.rs +src/models/cloud_games_delete_matchmaker_lobby_response.rs +src/models/cloud_games_export_lobby_logs_request.rs +src/models/cloud_games_export_lobby_logs_response.rs +src/models/cloud_games_export_matchmaker_lobby_history_request.rs +src/models/cloud_games_export_matchmaker_lobby_history_response.rs +src/models/cloud_games_game_banner_upload_prepare_request.rs +src/models/cloud_games_game_banner_upload_prepare_response.rs +src/models/cloud_games_game_logo_upload_prepare_request.rs +src/models/cloud_games_game_logo_upload_prepare_response.rs +src/models/cloud_games_get_game_by_id_response.rs +src/models/cloud_games_get_game_version_by_id_response.rs +src/models/cloud_games_get_games_response.rs +src/models/cloud_games_get_lobby_logs_response.rs +src/models/cloud_games_list_game_builds_response.rs +src/models/cloud_games_list_game_cdn_sites_response.rs +src/models/cloud_games_list_game_custom_avatars_response.rs +src/models/cloud_games_log_stream.rs +src/models/cloud_games_namespaces_add_namespace_domain_request.rs +src/models/cloud_games_namespaces_create_game_namespace_request.rs +src/models/cloud_games_namespaces_create_game_namespace_response.rs +src/models/cloud_games_namespaces_create_game_namespace_token_development_request.rs +src/models/cloud_games_namespaces_create_game_namespace_token_development_response.rs +src/models/cloud_games_namespaces_create_game_namespace_token_public_response.rs +src/models/cloud_games_namespaces_get_analytics_matchmaker_live_response.rs +src/models/cloud_games_namespaces_get_game_namespace_by_id_response.rs +src/models/cloud_games_namespaces_get_game_namespace_version_history_response.rs +src/models/cloud_games_namespaces_get_namespace_lobby_response.rs +src/models/cloud_games_namespaces_inspect_response.rs +src/models/cloud_games_namespaces_list_namespace_lobbies_response.rs +src/models/cloud_games_namespaces_set_namespace_cdn_auth_type_request.rs +src/models/cloud_games_namespaces_toggle_namespace_domain_public_auth_request.rs +src/models/cloud_games_namespaces_update_game_namespace_matchmaker_config_request.rs +src/models/cloud_games_namespaces_update_game_namespace_version_request.rs +src/models/cloud_games_namespaces_update_namespace_cdn_auth_user_request.rs +src/models/cloud_games_namespaces_validate_game_namespace_matchmaker_config_request.rs +src/models/cloud_games_namespaces_validate_game_namespace_matchmaker_config_response.rs +src/models/cloud_games_namespaces_validate_game_namespace_request.rs +src/models/cloud_games_namespaces_validate_game_namespace_response.rs +src/models/cloud_games_namespaces_validate_game_namespace_token_development_request.rs +src/models/cloud_games_namespaces_validate_game_namespace_token_development_response.rs +src/models/cloud_games_prepare_custom_avatar_upload_request.rs +src/models/cloud_games_prepare_custom_avatar_upload_response.rs +src/models/cloud_games_reserve_version_name_response.rs +src/models/cloud_games_validate_game_request.rs +src/models/cloud_games_validate_game_response.rs +src/models/cloud_games_validate_game_version_request.rs +src/models/cloud_games_validate_game_version_response.rs +src/models/cloud_get_ray_perf_logs_response.rs +src/models/cloud_get_region_tiers_response.rs +src/models/cloud_group_bank_source.rs +src/models/cloud_inspect_response.rs +src/models/cloud_lobby_summary_analytics.rs +src/models/cloud_logs_lobby_status.rs +src/models/cloud_logs_lobby_status_stopped.rs +src/models/cloud_logs_lobby_summary.rs +src/models/cloud_logs_perf_mark.rs +src/models/cloud_logs_perf_span.rs +src/models/cloud_matchmaker_development_port.rs +src/models/cloud_matchmaker_namespace_config.rs +src/models/cloud_namespace_config.rs +src/models/cloud_namespace_full.rs +src/models/cloud_namespace_summary.rs +src/models/cloud_namespace_version.rs +src/models/cloud_region_summary.rs +src/models/cloud_region_tier.rs +src/models/cloud_region_tier_expenses.rs +src/models/cloud_svc_metrics.rs +src/models/cloud_svc_perf.rs +src/models/cloud_universal_region.rs +src/models/cloud_validate_group_request.rs +src/models/cloud_validate_group_response.rs +src/models/cloud_version_cdn_config.rs +src/models/cloud_version_cdn_custom_headers_middleware.rs +src/models/cloud_version_cdn_header.rs +src/models/cloud_version_cdn_middleware.rs +src/models/cloud_version_cdn_middleware_kind.rs +src/models/cloud_version_cdn_route.rs +src/models/cloud_version_config.rs +src/models/cloud_version_engine_config.rs +src/models/cloud_version_engine_unreal_config.rs +src/models/cloud_version_full.rs +src/models/cloud_version_identity_config.rs +src/models/cloud_version_identity_custom_avatar.rs +src/models/cloud_version_identity_custom_display_name.rs +src/models/cloud_version_matchmaker_captcha.rs +src/models/cloud_version_matchmaker_captcha_hcaptcha.rs +src/models/cloud_version_matchmaker_captcha_hcaptcha_level.rs +src/models/cloud_version_matchmaker_captcha_turnstile.rs +src/models/cloud_version_matchmaker_config.rs +src/models/cloud_version_matchmaker_game_mode.rs +src/models/cloud_version_matchmaker_game_mode_actions.rs +src/models/cloud_version_matchmaker_game_mode_create_config.rs +src/models/cloud_version_matchmaker_game_mode_find_config.rs +src/models/cloud_version_matchmaker_game_mode_identity_requirement.rs +src/models/cloud_version_matchmaker_game_mode_idle_lobbies_config.rs +src/models/cloud_version_matchmaker_game_mode_join_config.rs +src/models/cloud_version_matchmaker_game_mode_region.rs +src/models/cloud_version_matchmaker_game_mode_runtime_docker.rs +src/models/cloud_version_matchmaker_game_mode_runtime_docker_port.rs +src/models/cloud_version_matchmaker_game_mode_verification_config.rs +src/models/cloud_version_matchmaker_lobby_group.rs +src/models/cloud_version_matchmaker_lobby_group_idle_lobbies_config.rs +src/models/cloud_version_matchmaker_lobby_group_region.rs +src/models/cloud_version_matchmaker_lobby_group_runtime.rs +src/models/cloud_version_matchmaker_lobby_group_runtime_docker.rs +src/models/cloud_version_matchmaker_lobby_group_runtime_docker_env_var.rs +src/models/cloud_version_matchmaker_lobby_group_runtime_docker_port.rs +src/models/cloud_version_matchmaker_network_mode.rs +src/models/cloud_version_matchmaker_port_protocol.rs +src/models/cloud_version_matchmaker_port_range.rs +src/models/cloud_version_matchmaker_proxy_kind.rs +src/models/cloud_version_summary.rs +src/models/error_body.rs +src/models/game_handle.rs +src/models/game_leaderboard_category.rs +src/models/game_platform_link.rs +src/models/game_profile.rs +src/models/game_stat.rs +src/models/game_stat_aggregation_method.rs +src/models/game_stat_config.rs +src/models/game_stat_format_method.rs +src/models/game_stat_sorting_method.rs +src/models/game_stat_summary.rs +src/models/game_summary.rs +src/models/geo_coord.rs +src/models/geo_distance.rs +src/models/global_event_notification.rs +src/models/group_banned_identity.rs +src/models/group_consume_invite_response.rs +src/models/group_create_invite_request.rs +src/models/group_create_invite_response.rs +src/models/group_create_request.rs +src/models/group_create_response.rs +src/models/group_external_links.rs +src/models/group_get_bans_response.rs +src/models/group_get_invite_response.rs +src/models/group_get_join_requests_response.rs +src/models/group_get_members_response.rs +src/models/group_get_profile_response.rs +src/models/group_get_summary_response.rs +src/models/group_handle.rs +src/models/group_join_request.rs +src/models/group_list_suggested_response.rs +src/models/group_member.rs +src/models/group_prepare_avatar_upload_request.rs +src/models/group_prepare_avatar_upload_response.rs +src/models/group_profile.rs +src/models/group_publicity.rs +src/models/group_resolve_join_request_request.rs +src/models/group_search_response.rs +src/models/group_summary.rs +src/models/group_transfer_ownership_request.rs +src/models/group_update_profile_request.rs +src/models/group_validate_profile_request.rs +src/models/group_validate_profile_response.rs +src/models/identity_access_token_linked_account.rs +src/models/identity_cancel_game_link_request.rs +src/models/identity_complete_game_link_request.rs +src/models/identity_dev_state.rs +src/models/identity_email_linked_account.rs +src/models/identity_external_links.rs +src/models/identity_game_activity.rs +src/models/identity_game_link_status.rs +src/models/identity_get_game_link_new_identity.rs +src/models/identity_get_game_link_response.rs +src/models/identity_get_handles_response.rs +src/models/identity_get_profile_response.rs +src/models/identity_get_summaries_response.rs +src/models/identity_global_event.rs +src/models/identity_global_event_identity_update.rs +src/models/identity_global_event_kind.rs +src/models/identity_global_event_matchmaker_lobby_join.rs +src/models/identity_global_event_notification.rs +src/models/identity_group.rs +src/models/identity_handle.rs +src/models/identity_linked_account.rs +src/models/identity_list_activities_response.rs +src/models/identity_list_followers_response.rs +src/models/identity_list_following_response.rs +src/models/identity_list_friends_response.rs +src/models/identity_list_mutual_friends_response.rs +src/models/identity_list_recent_followers_response.rs +src/models/identity_prepare_avatar_upload_request.rs +src/models/identity_prepare_avatar_upload_response.rs +src/models/identity_prepare_game_link_response.rs +src/models/identity_presence.rs +src/models/identity_profile.rs +src/models/identity_report_request.rs +src/models/identity_search_response.rs +src/models/identity_set_game_activity_request.rs +src/models/identity_setup_request.rs +src/models/identity_setup_response.rs +src/models/identity_signup_for_beta_request.rs +src/models/identity_status.rs +src/models/identity_summary.rs +src/models/identity_update_game_activity.rs +src/models/identity_update_profile_request.rs +src/models/identity_update_status_request.rs +src/models/identity_validate_profile_response.rs +src/models/identity_watch_events_response.rs +src/models/kv_entry.rs +src/models/kv_get_batch_response.rs +src/models/kv_get_response.rs +src/models/kv_list_response.rs +src/models/kv_put_batch_request.rs +src/models/kv_put_entry.rs +src/models/kv_put_request.rs +src/models/matchmaker_create_lobby_response.rs +src/models/matchmaker_custom_lobby_publicity.rs +src/models/matchmaker_find_lobby_response.rs +src/models/matchmaker_game_mode_info.rs +src/models/matchmaker_game_mode_statistics.rs +src/models/matchmaker_get_statistics_response.rs +src/models/matchmaker_join_lobby.rs +src/models/matchmaker_join_lobby_response.rs +src/models/matchmaker_join_player.rs +src/models/matchmaker_join_port.rs +src/models/matchmaker_join_port_range.rs +src/models/matchmaker_join_region.rs +src/models/matchmaker_list_lobbies_response.rs +src/models/matchmaker_list_regions_response.rs +src/models/matchmaker_lobbies_create_request.rs +src/models/matchmaker_lobbies_find_request.rs +src/models/matchmaker_lobbies_join_request.rs +src/models/matchmaker_lobbies_set_closed_request.rs +src/models/matchmaker_lobby_info.rs +src/models/matchmaker_players_connected_request.rs +src/models/matchmaker_region_info.rs +src/models/matchmaker_region_statistics.rs +src/models/mod.rs +src/models/portal_get_game_profile_response.rs +src/models/portal_get_suggested_games_response.rs +src/models/portal_notification_register_firebase_service.rs +src/models/portal_notification_register_service.rs +src/models/portal_notification_unregister_service.rs +src/models/provision_datacenters_get_tls_response.rs +src/models/provision_servers_get_info_response.rs +src/models/servers_build.rs +src/models/servers_build_compression.rs +src/models/servers_build_kind.rs +src/models/servers_create_build_request.rs +src/models/servers_create_build_response.rs +src/models/servers_create_server_network_request.rs +src/models/servers_create_server_port_request.rs +src/models/servers_create_server_request.rs +src/models/servers_create_server_response.rs +src/models/servers_get_build_response.rs +src/models/servers_get_server_logs_response.rs +src/models/servers_get_server_response.rs +src/models/servers_list_builds_response.rs +src/models/servers_list_servers_response.rs +src/models/servers_log_stream.rs +src/models/servers_network.rs +src/models/servers_network_mode.rs +src/models/servers_port.rs +src/models/servers_port_protocol.rs +src/models/servers_port_routing.rs +src/models/servers_resources.rs +src/models/servers_server.rs +src/models/upload_prepare_file.rs +src/models/upload_presigned_request.rs +src/models/validation_error.rs +src/models/watch_response.rs diff --git a/sdks/full/rust-cli/.openapi-generator/VERSION b/sdks/full/rust-cli/.openapi-generator/VERSION new file mode 100644 index 0000000000..c0be8a7992 --- /dev/null +++ b/sdks/full/rust-cli/.openapi-generator/VERSION @@ -0,0 +1 @@ +6.4.0 \ No newline at end of file diff --git a/sdks/full/rust-cli/.travis.yml b/sdks/full/rust-cli/.travis.yml new file mode 100644 index 0000000000..22761ba7ee --- /dev/null +++ b/sdks/full/rust-cli/.travis.yml @@ -0,0 +1 @@ +language: rust diff --git a/sdks/full/rust-cli/Cargo.toml b/sdks/full/rust-cli/Cargo.toml new file mode 100644 index 0000000000..d4956e3c12 --- /dev/null +++ b/sdks/full/rust-cli/Cargo.toml @@ -0,0 +1,19 @@ +[package] +name = "rivet-api-cli" +version = "0.0.1" +authors = ["OpenAPI Generator team and contributors"] +description = "No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)" +# Override this license by providing a License Object in the OpenAPI. +license = "Unlicense" +edition = "2018" + +[dependencies] +serde = "^1.0" +serde_derive = "^1.0" +serde_with = "^2.0" +serde_json = "^1.0" +url = "^2.2" +uuid = { version = "^1.0", features = ["serde"] } +[dependencies.reqwest] +version = "^0.11" +features = ["json", "multipart"] diff --git a/sdks/full/rust-cli/README.md b/sdks/full/rust-cli/README.md new file mode 100644 index 0000000000..8f9008098d --- /dev/null +++ b/sdks/full/rust-cli/README.md @@ -0,0 +1,524 @@ +# Rust API client for rivet-api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + +## Overview + +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [openapi-spec](https://openapis.org) from a remote server, you can easily generate an API client. + +- API version: 0.0.1 +- Package version: 0.0.1 +- Build package: `org.openapitools.codegen.languages.RustClientCodegen` + +## Installation + +Put the package under your project folder in a directory named `rivet-api` and add the following to `Cargo.toml` under `[dependencies]`: + +``` +rivet-api = { path = "./rivet-api" } +``` + +## Documentation for API Endpoints + +All URIs are relative to *https://api.rivet.gg* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*AdminApi* | [**admin_login**](docs/AdminApi.md#admin_login) | **POST** /admin/login | +*AdminClustersApi* | [**admin_clusters_create**](docs/AdminClustersApi.md#admin_clusters_create) | **POST** /admin/clusters | +*AdminClustersApi* | [**admin_clusters_list**](docs/AdminClustersApi.md#admin_clusters_list) | **GET** /admin/clusters | +*AdminClustersDatacentersApi* | [**admin_clusters_datacenters_create**](docs/AdminClustersDatacentersApi.md#admin_clusters_datacenters_create) | **POST** /admin/clusters/{cluster_id}/datacenters | +*AdminClustersDatacentersApi* | [**admin_clusters_datacenters_list**](docs/AdminClustersDatacentersApi.md#admin_clusters_datacenters_list) | **GET** /admin/clusters/{cluster_id}/datacenters | +*AdminClustersDatacentersApi* | [**admin_clusters_datacenters_update**](docs/AdminClustersDatacentersApi.md#admin_clusters_datacenters_update) | **PATCH** /admin/clusters/{cluster_id}/datacenters/{datacenter_id} | +*AdminClustersServersApi* | [**admin_clusters_servers_destroy**](docs/AdminClustersServersApi.md#admin_clusters_servers_destroy) | **POST** /admin/clusters/{cluster_id}/servers/destroy | +*AdminClustersServersApi* | [**admin_clusters_servers_list**](docs/AdminClustersServersApi.md#admin_clusters_servers_list) | **GET** /admin/clusters/{cluster_id}/servers | +*AdminClustersServersApi* | [**admin_clusters_servers_taint**](docs/AdminClustersServersApi.md#admin_clusters_servers_taint) | **POST** /admin/clusters/{cluster_id}/servers/taint | +*AuthIdentityAccessTokenApi* | [**auth_identity_access_token_complete_access_token_verification**](docs/AuthIdentityAccessTokenApi.md#auth_identity_access_token_complete_access_token_verification) | **POST** /auth/identity/access-token/complete-verification | +*AuthIdentityEmailApi* | [**auth_identity_email_complete_email_verification**](docs/AuthIdentityEmailApi.md#auth_identity_email_complete_email_verification) | **POST** /auth/identity/email/complete-verification | +*AuthIdentityEmailApi* | [**auth_identity_email_start_email_verification**](docs/AuthIdentityEmailApi.md#auth_identity_email_start_email_verification) | **POST** /auth/identity/email/start-verification | +*AuthTokensApi* | [**auth_tokens_refresh_identity_token**](docs/AuthTokensApi.md#auth_tokens_refresh_identity_token) | **POST** /auth/tokens/identity | +*CloudApi* | [**cloud_bootstrap**](docs/CloudApi.md#cloud_bootstrap) | **GET** /cloud/bootstrap | +*CloudAuthApi* | [**cloud_auth_inspect**](docs/CloudAuthApi.md#cloud_auth_inspect) | **GET** /cloud/auth/inspect | +*CloudDevicesLinksApi* | [**cloud_devices_links_complete**](docs/CloudDevicesLinksApi.md#cloud_devices_links_complete) | **POST** /cloud/devices/links/complete | +*CloudDevicesLinksApi* | [**cloud_devices_links_get**](docs/CloudDevicesLinksApi.md#cloud_devices_links_get) | **GET** /cloud/devices/links | +*CloudDevicesLinksApi* | [**cloud_devices_links_prepare**](docs/CloudDevicesLinksApi.md#cloud_devices_links_prepare) | **POST** /cloud/devices/links | +*CloudGamesApi* | [**cloud_games_create_game**](docs/CloudGamesApi.md#cloud_games_create_game) | **POST** /cloud/games | +*CloudGamesApi* | [**cloud_games_game_banner_upload_complete**](docs/CloudGamesApi.md#cloud_games_game_banner_upload_complete) | **POST** /cloud/games/{game_id}/banner-upload/{upload_id}/complete | +*CloudGamesApi* | [**cloud_games_game_banner_upload_prepare**](docs/CloudGamesApi.md#cloud_games_game_banner_upload_prepare) | **POST** /cloud/games/{game_id}/banner-upload/prepare | +*CloudGamesApi* | [**cloud_games_game_logo_upload_complete**](docs/CloudGamesApi.md#cloud_games_game_logo_upload_complete) | **POST** /cloud/games/{game_id}/logo-upload/{upload_id}/complete | +*CloudGamesApi* | [**cloud_games_game_logo_upload_prepare**](docs/CloudGamesApi.md#cloud_games_game_logo_upload_prepare) | **POST** /cloud/games/{game_id}/logo-upload/prepare | +*CloudGamesApi* | [**cloud_games_get_game_by_id**](docs/CloudGamesApi.md#cloud_games_get_game_by_id) | **GET** /cloud/games/{game_id} | +*CloudGamesApi* | [**cloud_games_get_games**](docs/CloudGamesApi.md#cloud_games_get_games) | **GET** /cloud/games | +*CloudGamesApi* | [**cloud_games_validate_game**](docs/CloudGamesApi.md#cloud_games_validate_game) | **POST** /cloud/games/validate | +*CloudGamesAvatarsApi* | [**cloud_games_avatars_complete_custom_avatar_upload**](docs/CloudGamesAvatarsApi.md#cloud_games_avatars_complete_custom_avatar_upload) | **POST** /cloud/games/{game_id}/avatar-upload/{upload_id}/complete | +*CloudGamesAvatarsApi* | [**cloud_games_avatars_list_game_custom_avatars**](docs/CloudGamesAvatarsApi.md#cloud_games_avatars_list_game_custom_avatars) | **GET** /cloud/games/{game_id}/avatars | +*CloudGamesAvatarsApi* | [**cloud_games_avatars_prepare_custom_avatar_upload**](docs/CloudGamesAvatarsApi.md#cloud_games_avatars_prepare_custom_avatar_upload) | **POST** /cloud/games/{game_id}/prepare | +*CloudGamesBuildsApi* | [**cloud_games_builds_create_game_build**](docs/CloudGamesBuildsApi.md#cloud_games_builds_create_game_build) | **POST** /cloud/games/{game_id}/builds | +*CloudGamesBuildsApi* | [**cloud_games_builds_list_game_builds**](docs/CloudGamesBuildsApi.md#cloud_games_builds_list_game_builds) | **GET** /cloud/games/{game_id}/builds | +*CloudGamesCdnApi* | [**cloud_games_cdn_create_game_cdn_site**](docs/CloudGamesCdnApi.md#cloud_games_cdn_create_game_cdn_site) | **POST** /cloud/games/{game_id}/cdn/sites | +*CloudGamesCdnApi* | [**cloud_games_cdn_list_game_cdn_sites**](docs/CloudGamesCdnApi.md#cloud_games_cdn_list_game_cdn_sites) | **GET** /cloud/games/{game_id}/cdn/sites | +*CloudGamesMatchmakerApi* | [**cloud_games_matchmaker_delete_matchmaker_lobby**](docs/CloudGamesMatchmakerApi.md#cloud_games_matchmaker_delete_matchmaker_lobby) | **DELETE** /cloud/games/{game_id}/matchmaker/lobbies/{lobby_id} | +*CloudGamesMatchmakerApi* | [**cloud_games_matchmaker_export_lobby_logs**](docs/CloudGamesMatchmakerApi.md#cloud_games_matchmaker_export_lobby_logs) | **POST** /cloud/games/{game_id}/matchmaker/lobbies/{lobby_id}/logs/export | +*CloudGamesMatchmakerApi* | [**cloud_games_matchmaker_export_matchmaker_lobby_history**](docs/CloudGamesMatchmakerApi.md#cloud_games_matchmaker_export_matchmaker_lobby_history) | **POST** /cloud/games/{game_id}/matchmaker/lobbies/export-history | +*CloudGamesMatchmakerApi* | [**cloud_games_matchmaker_get_lobby_logs**](docs/CloudGamesMatchmakerApi.md#cloud_games_matchmaker_get_lobby_logs) | **GET** /cloud/games/{game_id}/matchmaker/lobbies/{lobby_id}/logs | +*CloudGamesNamespacesApi* | [**cloud_games_namespaces_add_namespace_domain**](docs/CloudGamesNamespacesApi.md#cloud_games_namespaces_add_namespace_domain) | **POST** /cloud/games/{game_id}/namespaces/{namespace_id}/domains | +*CloudGamesNamespacesApi* | [**cloud_games_namespaces_create_game_namespace**](docs/CloudGamesNamespacesApi.md#cloud_games_namespaces_create_game_namespace) | **POST** /cloud/games/{game_id}/namespaces | +*CloudGamesNamespacesApi* | [**cloud_games_namespaces_create_game_namespace_token_development**](docs/CloudGamesNamespacesApi.md#cloud_games_namespaces_create_game_namespace_token_development) | **POST** /cloud/games/{game_id}/namespaces/{namespace_id}/tokens/development | +*CloudGamesNamespacesApi* | [**cloud_games_namespaces_create_game_namespace_token_public**](docs/CloudGamesNamespacesApi.md#cloud_games_namespaces_create_game_namespace_token_public) | **POST** /cloud/games/{game_id}/namespaces/{namespace_id}/tokens/public | +*CloudGamesNamespacesApi* | [**cloud_games_namespaces_get_game_namespace_by_id**](docs/CloudGamesNamespacesApi.md#cloud_games_namespaces_get_game_namespace_by_id) | **GET** /cloud/games/{game_id}/namespaces/{namespace_id} | +*CloudGamesNamespacesApi* | [**cloud_games_namespaces_get_game_namespace_version_history_list**](docs/CloudGamesNamespacesApi.md#cloud_games_namespaces_get_game_namespace_version_history_list) | **GET** /cloud/games/{game_id}/namespaces/{namespace_id}/version-history | +*CloudGamesNamespacesApi* | [**cloud_games_namespaces_remove_namespace_cdn_auth_user**](docs/CloudGamesNamespacesApi.md#cloud_games_namespaces_remove_namespace_cdn_auth_user) | **DELETE** /cloud/games/{game_id}/namespaces/{namespace_id}/auth-user/{user} | +*CloudGamesNamespacesApi* | [**cloud_games_namespaces_remove_namespace_domain**](docs/CloudGamesNamespacesApi.md#cloud_games_namespaces_remove_namespace_domain) | **DELETE** /cloud/games/{game_id}/namespaces/{namespace_id}/domains/{domain} | +*CloudGamesNamespacesApi* | [**cloud_games_namespaces_set_namespace_cdn_auth_type**](docs/CloudGamesNamespacesApi.md#cloud_games_namespaces_set_namespace_cdn_auth_type) | **PUT** /cloud/games/{game_id}/namespaces/{namespace_id}/cdn-auth | +*CloudGamesNamespacesApi* | [**cloud_games_namespaces_toggle_namespace_domain_public_auth**](docs/CloudGamesNamespacesApi.md#cloud_games_namespaces_toggle_namespace_domain_public_auth) | **PUT** /cloud/games/{game_id}/namespaces/{namespace_id}/domain-public-auth | +*CloudGamesNamespacesApi* | [**cloud_games_namespaces_update_game_namespace_matchmaker_config**](docs/CloudGamesNamespacesApi.md#cloud_games_namespaces_update_game_namespace_matchmaker_config) | **POST** /cloud/games/{game_id}/namespaces/{namespace_id}/mm-config | +*CloudGamesNamespacesApi* | [**cloud_games_namespaces_update_game_namespace_version**](docs/CloudGamesNamespacesApi.md#cloud_games_namespaces_update_game_namespace_version) | **PUT** /cloud/games/{game_id}/namespaces/{namespace_id}/version | +*CloudGamesNamespacesApi* | [**cloud_games_namespaces_update_namespace_cdn_auth_user**](docs/CloudGamesNamespacesApi.md#cloud_games_namespaces_update_namespace_cdn_auth_user) | **POST** /cloud/games/{game_id}/namespaces/{namespace_id}/auth-user | +*CloudGamesNamespacesApi* | [**cloud_games_namespaces_validate_game_namespace**](docs/CloudGamesNamespacesApi.md#cloud_games_namespaces_validate_game_namespace) | **POST** /cloud/games/{game_id}/namespaces/validate | +*CloudGamesNamespacesApi* | [**cloud_games_namespaces_validate_game_namespace_matchmaker_config**](docs/CloudGamesNamespacesApi.md#cloud_games_namespaces_validate_game_namespace_matchmaker_config) | **POST** /cloud/games/{game_id}/namespaces/{namespace_id}/mm-config/validate | +*CloudGamesNamespacesApi* | [**cloud_games_namespaces_validate_game_namespace_token_development**](docs/CloudGamesNamespacesApi.md#cloud_games_namespaces_validate_game_namespace_token_development) | **POST** /cloud/games/{game_id}/namespaces/{namespace_id}/tokens/development/validate | +*CloudGamesNamespacesAnalyticsApi* | [**cloud_games_namespaces_analytics_get_analytics_matchmaker_live**](docs/CloudGamesNamespacesAnalyticsApi.md#cloud_games_namespaces_analytics_get_analytics_matchmaker_live) | **GET** /cloud/games/{game_id}/namespaces/{namespace_id}/analytics/matchmaker/live | +*CloudGamesNamespacesLogsApi* | [**cloud_games_namespaces_logs_get_namespace_lobby**](docs/CloudGamesNamespacesLogsApi.md#cloud_games_namespaces_logs_get_namespace_lobby) | **GET** /cloud/games/{game_id}/namespaces/{namespace_id}/logs/lobbies/{lobby_id} | +*CloudGamesNamespacesLogsApi* | [**cloud_games_namespaces_logs_list_namespace_lobbies**](docs/CloudGamesNamespacesLogsApi.md#cloud_games_namespaces_logs_list_namespace_lobbies) | **GET** /cloud/games/{game_id}/namespaces/{namespace_id}/logs/lobbies | +*CloudGamesTokensApi* | [**cloud_games_tokens_create_cloud_token**](docs/CloudGamesTokensApi.md#cloud_games_tokens_create_cloud_token) | **POST** /cloud/games/{game_id}/tokens/cloud | +*CloudGamesTokensApi* | [**cloud_games_tokens_create_service_token**](docs/CloudGamesTokensApi.md#cloud_games_tokens_create_service_token) | **POST** /cloud/games/{game_id}/tokens/service | +*CloudGamesVersionsApi* | [**cloud_games_versions_create_game_version**](docs/CloudGamesVersionsApi.md#cloud_games_versions_create_game_version) | **POST** /cloud/games/{game_id}/versions | +*CloudGamesVersionsApi* | [**cloud_games_versions_get_game_version_by_id**](docs/CloudGamesVersionsApi.md#cloud_games_versions_get_game_version_by_id) | **GET** /cloud/games/{game_id}/versions/{version_id} | +*CloudGamesVersionsApi* | [**cloud_games_versions_reserve_version_name**](docs/CloudGamesVersionsApi.md#cloud_games_versions_reserve_version_name) | **POST** /cloud/games/{game_id}/versions/reserve-name | +*CloudGamesVersionsApi* | [**cloud_games_versions_validate_game_version**](docs/CloudGamesVersionsApi.md#cloud_games_versions_validate_game_version) | **POST** /cloud/games/{game_id}/versions/validate | +*CloudGroupsApi* | [**cloud_groups_validate**](docs/CloudGroupsApi.md#cloud_groups_validate) | **POST** /cloud/groups/validate | +*CloudLogsApi* | [**cloud_logs_get_ray_perf_logs**](docs/CloudLogsApi.md#cloud_logs_get_ray_perf_logs) | **GET** /cloud/rays/{ray_id}/perf | +*CloudTiersApi* | [**cloud_tiers_get_region_tiers**](docs/CloudTiersApi.md#cloud_tiers_get_region_tiers) | **GET** /cloud/region-tiers | +*CloudUploadsApi* | [**cloud_uploads_complete_upload**](docs/CloudUploadsApi.md#cloud_uploads_complete_upload) | **POST** /cloud/uploads/{upload_id}/complete | +*GroupApi* | [**group_ban_identity**](docs/GroupApi.md#group_ban_identity) | **POST** /group/groups/{group_id}/bans/{identity_id} | +*GroupApi* | [**group_complete_avatar_upload**](docs/GroupApi.md#group_complete_avatar_upload) | **POST** /group/groups/{group_id}/avatar-upload/{upload_id}/complete | +*GroupApi* | [**group_create**](docs/GroupApi.md#group_create) | **POST** /group/groups | +*GroupApi* | [**group_get_bans**](docs/GroupApi.md#group_get_bans) | **GET** /group/groups/{group_id}/bans | +*GroupApi* | [**group_get_join_requests**](docs/GroupApi.md#group_get_join_requests) | **GET** /group/groups/{group_id}/join-requests | +*GroupApi* | [**group_get_members**](docs/GroupApi.md#group_get_members) | **GET** /group/groups/{group_id}/members | +*GroupApi* | [**group_get_profile**](docs/GroupApi.md#group_get_profile) | **GET** /group/groups/{group_id}/profile | +*GroupApi* | [**group_get_summary**](docs/GroupApi.md#group_get_summary) | **GET** /group/groups/{group_id}/summary | +*GroupApi* | [**group_kick_member**](docs/GroupApi.md#group_kick_member) | **POST** /group/groups/{group_id}/kick/{identity_id} | +*GroupApi* | [**group_leave**](docs/GroupApi.md#group_leave) | **POST** /group/groups/{group_id}/leave | +*GroupApi* | [**group_list_suggested**](docs/GroupApi.md#group_list_suggested) | **GET** /group/groups | +*GroupApi* | [**group_prepare_avatar_upload**](docs/GroupApi.md#group_prepare_avatar_upload) | **POST** /group/groups/avatar-upload/prepare | +*GroupApi* | [**group_search**](docs/GroupApi.md#group_search) | **GET** /group/groups/search | +*GroupApi* | [**group_transfer_ownership**](docs/GroupApi.md#group_transfer_ownership) | **POST** /group/groups/{group_id}/transfer-owner | +*GroupApi* | [**group_unban_identity**](docs/GroupApi.md#group_unban_identity) | **DELETE** /group/groups/{group_id}/bans/{identity_id} | +*GroupApi* | [**group_update_profile**](docs/GroupApi.md#group_update_profile) | **POST** /group/groups/{group_id}/profile | +*GroupApi* | [**group_validate_profile**](docs/GroupApi.md#group_validate_profile) | **POST** /group/groups/profile/validate | +*GroupInvitesApi* | [**group_invites_consume_invite**](docs/GroupInvitesApi.md#group_invites_consume_invite) | **POST** /group/invites/{group_invite_code}/consume | +*GroupInvitesApi* | [**group_invites_create_invite**](docs/GroupInvitesApi.md#group_invites_create_invite) | **POST** /group/groups/{group_id}/invites | +*GroupInvitesApi* | [**group_invites_get_invite**](docs/GroupInvitesApi.md#group_invites_get_invite) | **GET** /group/invites/{group_invite_code} | +*GroupJoinRequestsApi* | [**group_join_requests_create_join_request**](docs/GroupJoinRequestsApi.md#group_join_requests_create_join_request) | **POST** /group/groups/{group_id}/join-request | +*GroupJoinRequestsApi* | [**group_join_requests_resolve_join_request**](docs/GroupJoinRequestsApi.md#group_join_requests_resolve_join_request) | **POST** /group/groups/{group_id}/join-request/{identity_id} | +*IdentityApi* | [**identity_complete_avatar_upload**](docs/IdentityApi.md#identity_complete_avatar_upload) | **POST** /identity/identities/avatar-upload/{upload_id}/complete | +*IdentityApi* | [**identity_follow**](docs/IdentityApi.md#identity_follow) | **POST** /identity/identities/{identity_id}/follow | +*IdentityApi* | [**identity_get_handles**](docs/IdentityApi.md#identity_get_handles) | **GET** /identity/identities/batch/handle | +*IdentityApi* | [**identity_get_profile**](docs/IdentityApi.md#identity_get_profile) | **GET** /identity/identities/{identity_id}/profile | +*IdentityApi* | [**identity_get_self_profile**](docs/IdentityApi.md#identity_get_self_profile) | **GET** /identity/identities/self/profile | +*IdentityApi* | [**identity_get_summaries**](docs/IdentityApi.md#identity_get_summaries) | **GET** /identity/identities/batch/summary | +*IdentityApi* | [**identity_ignore_recent_follower**](docs/IdentityApi.md#identity_ignore_recent_follower) | **POST** /identity/identities/self/recent-followers/{identity_id}/ignore | +*IdentityApi* | [**identity_list_followers**](docs/IdentityApi.md#identity_list_followers) | **GET** /identity/identities/{identity_id}/followers | +*IdentityApi* | [**identity_list_following**](docs/IdentityApi.md#identity_list_following) | **GET** /identity/identities/{identity_id}/following | +*IdentityApi* | [**identity_list_friends**](docs/IdentityApi.md#identity_list_friends) | **GET** /identity/identities/self/friends | +*IdentityApi* | [**identity_list_mutual_friends**](docs/IdentityApi.md#identity_list_mutual_friends) | **GET** /identity/identities/{identity_id}/mutual-friends | +*IdentityApi* | [**identity_list_recent_followers**](docs/IdentityApi.md#identity_list_recent_followers) | **GET** /identity/identities/self/recent-followers | +*IdentityApi* | [**identity_mark_deletion**](docs/IdentityApi.md#identity_mark_deletion) | **POST** /identity/identities/self/delete-request | +*IdentityApi* | [**identity_prepare_avatar_upload**](docs/IdentityApi.md#identity_prepare_avatar_upload) | **POST** /identity/identities/avatar-upload/prepare | +*IdentityApi* | [**identity_remove_game_activity**](docs/IdentityApi.md#identity_remove_game_activity) | **DELETE** /identity/identities/self/activity | +*IdentityApi* | [**identity_report**](docs/IdentityApi.md#identity_report) | **POST** /identity/identities/{identity_id}/report | +*IdentityApi* | [**identity_search**](docs/IdentityApi.md#identity_search) | **GET** /identity/identities/search | +*IdentityApi* | [**identity_set_game_activity**](docs/IdentityApi.md#identity_set_game_activity) | **POST** /identity/identities/self/activity | +*IdentityApi* | [**identity_setup**](docs/IdentityApi.md#identity_setup) | **POST** /identity/identities | +*IdentityApi* | [**identity_signup_for_beta**](docs/IdentityApi.md#identity_signup_for_beta) | **POST** /identity/identities/self/beta-signup | +*IdentityApi* | [**identity_unfollow**](docs/IdentityApi.md#identity_unfollow) | **DELETE** /identity/identities/{identity_id}/follow | +*IdentityApi* | [**identity_unmark_deletion**](docs/IdentityApi.md#identity_unmark_deletion) | **DELETE** /identity/identities/self/delete-request | +*IdentityApi* | [**identity_update_profile**](docs/IdentityApi.md#identity_update_profile) | **POST** /identity/identities/self/profile | +*IdentityApi* | [**identity_update_status**](docs/IdentityApi.md#identity_update_status) | **POST** /identity/identities/identities/self/status | +*IdentityApi* | [**identity_validate_profile**](docs/IdentityApi.md#identity_validate_profile) | **POST** /identity/identities/self/profile/validate | +*IdentityActivitiesApi* | [**identity_activities_list**](docs/IdentityActivitiesApi.md#identity_activities_list) | **GET** /identity/activities | +*IdentityEventsApi* | [**identity_events_watch**](docs/IdentityEventsApi.md#identity_events_watch) | **GET** /identity/events/live | +*IdentityLinksApi* | [**identity_links_cancel**](docs/IdentityLinksApi.md#identity_links_cancel) | **POST** /identity/game-links/cancel | +*IdentityLinksApi* | [**identity_links_complete**](docs/IdentityLinksApi.md#identity_links_complete) | **POST** /identity/game-links/complete | +*IdentityLinksApi* | [**identity_links_get**](docs/IdentityLinksApi.md#identity_links_get) | **GET** /identity/game-links | +*IdentityLinksApi* | [**identity_links_prepare**](docs/IdentityLinksApi.md#identity_links_prepare) | **POST** /identity/game-links | +*JobRunApi* | [**job_run_cleanup**](docs/JobRunApi.md#job_run_cleanup) | **POST** /job/runs/cleanup | +*KvApi* | [**kv_delete**](docs/KvApi.md#kv_delete) | **DELETE** /kv/entries | +*KvApi* | [**kv_delete_batch**](docs/KvApi.md#kv_delete_batch) | **DELETE** /kv/entries/batch | +*KvApi* | [**kv_get**](docs/KvApi.md#kv_get) | **GET** /kv/entries | +*KvApi* | [**kv_get_batch**](docs/KvApi.md#kv_get_batch) | **GET** /kv/entries/batch | +*KvApi* | [**kv_list**](docs/KvApi.md#kv_list) | **GET** /kv/entries/list | +*KvApi* | [**kv_put**](docs/KvApi.md#kv_put) | **PUT** /kv/entries | +*KvApi* | [**kv_put_batch**](docs/KvApi.md#kv_put_batch) | **PUT** /kv/entries/batch | +*MatchmakerLobbiesApi* | [**matchmaker_lobbies_create**](docs/MatchmakerLobbiesApi.md#matchmaker_lobbies_create) | **POST** /matchmaker/lobbies/create | +*MatchmakerLobbiesApi* | [**matchmaker_lobbies_find**](docs/MatchmakerLobbiesApi.md#matchmaker_lobbies_find) | **POST** /matchmaker/lobbies/find | +*MatchmakerLobbiesApi* | [**matchmaker_lobbies_get_state**](docs/MatchmakerLobbiesApi.md#matchmaker_lobbies_get_state) | **GET** /matchmaker/lobbies/{lobby_id}/state | +*MatchmakerLobbiesApi* | [**matchmaker_lobbies_join**](docs/MatchmakerLobbiesApi.md#matchmaker_lobbies_join) | **POST** /matchmaker/lobbies/join | +*MatchmakerLobbiesApi* | [**matchmaker_lobbies_list**](docs/MatchmakerLobbiesApi.md#matchmaker_lobbies_list) | **GET** /matchmaker/lobbies/list | +*MatchmakerLobbiesApi* | [**matchmaker_lobbies_ready**](docs/MatchmakerLobbiesApi.md#matchmaker_lobbies_ready) | **POST** /matchmaker/lobbies/ready | +*MatchmakerLobbiesApi* | [**matchmaker_lobbies_set_closed**](docs/MatchmakerLobbiesApi.md#matchmaker_lobbies_set_closed) | **PUT** /matchmaker/lobbies/closed | +*MatchmakerLobbiesApi* | [**matchmaker_lobbies_set_state**](docs/MatchmakerLobbiesApi.md#matchmaker_lobbies_set_state) | **PUT** /matchmaker/lobbies/state | +*MatchmakerPlayersApi* | [**matchmaker_players_connected**](docs/MatchmakerPlayersApi.md#matchmaker_players_connected) | **POST** /matchmaker/players/connected | +*MatchmakerPlayersApi* | [**matchmaker_players_disconnected**](docs/MatchmakerPlayersApi.md#matchmaker_players_disconnected) | **POST** /matchmaker/players/disconnected | +*MatchmakerPlayersApi* | [**matchmaker_players_get_statistics**](docs/MatchmakerPlayersApi.md#matchmaker_players_get_statistics) | **GET** /matchmaker/players/statistics | +*MatchmakerRegionsApi* | [**matchmaker_regions_list**](docs/MatchmakerRegionsApi.md#matchmaker_regions_list) | **GET** /matchmaker/regions | +*PortalGamesApi* | [**portal_games_get_game_profile**](docs/PortalGamesApi.md#portal_games_get_game_profile) | **GET** /portal/games/{game_name_id}/profile | +*ProvisionDatacentersApi* | [**provision_datacenters_get_tls**](docs/ProvisionDatacentersApi.md#provision_datacenters_get_tls) | **GET** /datacenters/{datacenter_id}/tls | +*ProvisionServersApi* | [**provision_servers_get_info**](docs/ProvisionServersApi.md#provision_servers_get_info) | **GET** /servers/{ip} | +*ServersApi* | [**servers_create**](docs/ServersApi.md#servers_create) | **POST** /games/{game_id}/servers | +*ServersApi* | [**servers_destroy**](docs/ServersApi.md#servers_destroy) | **DELETE** /games/{game_id}/servers/{server_id} | +*ServersApi* | [**servers_get**](docs/ServersApi.md#servers_get) | **GET** /games/{game_id}/servers/{server_id} | +*ServersApi* | [**servers_list**](docs/ServersApi.md#servers_list) | **GET** /games/{game_id}/servers | +*ServersBuildsApi* | [**servers_builds_complete_build**](docs/ServersBuildsApi.md#servers_builds_complete_build) | **POST** /games/{game_id}/builds/{build_id}/complete | +*ServersBuildsApi* | [**servers_builds_get_build**](docs/ServersBuildsApi.md#servers_builds_get_build) | **GET** /games/{game_id}/builds/{build_id} | +*ServersBuildsApi* | [**servers_builds_list_builds**](docs/ServersBuildsApi.md#servers_builds_list_builds) | **GET** /games/{game_id}/builds | +*ServersBuildsApi* | [**servers_builds_prepare_build**](docs/ServersBuildsApi.md#servers_builds_prepare_build) | **POST** /games/{game_id}/builds/prepare | +*ServersLogsApi* | [**servers_logs_get_server_logs**](docs/ServersLogsApi.md#servers_logs_get_server_logs) | **GET** /games/{game_id}/servers/{server_id}/logs | + + +## Documentation For Models + + - [AdminClustersBuildDeliveryMethod](docs/AdminClustersBuildDeliveryMethod.md) + - [AdminClustersCluster](docs/AdminClustersCluster.md) + - [AdminClustersCreateClusterRequest](docs/AdminClustersCreateClusterRequest.md) + - [AdminClustersCreateClusterResponse](docs/AdminClustersCreateClusterResponse.md) + - [AdminClustersCreateDatacenterRequest](docs/AdminClustersCreateDatacenterRequest.md) + - [AdminClustersCreateDatacenterResponse](docs/AdminClustersCreateDatacenterResponse.md) + - [AdminClustersDatacenter](docs/AdminClustersDatacenter.md) + - [AdminClustersHardware](docs/AdminClustersHardware.md) + - [AdminClustersListClustersResponse](docs/AdminClustersListClustersResponse.md) + - [AdminClustersListDatacentersResponse](docs/AdminClustersListDatacentersResponse.md) + - [AdminClustersListServersResponse](docs/AdminClustersListServersResponse.md) + - [AdminClustersPool](docs/AdminClustersPool.md) + - [AdminClustersPoolType](docs/AdminClustersPoolType.md) + - [AdminClustersPoolUpdate](docs/AdminClustersPoolUpdate.md) + - [AdminClustersProvider](docs/AdminClustersProvider.md) + - [AdminClustersServer](docs/AdminClustersServer.md) + - [AdminClustersUpdateDatacenterRequest](docs/AdminClustersUpdateDatacenterRequest.md) + - [AdminLoginRequest](docs/AdminLoginRequest.md) + - [AdminLoginResponse](docs/AdminLoginResponse.md) + - [AuthCompleteStatus](docs/AuthCompleteStatus.md) + - [AuthIdentityCompleteAccessTokenVerificationRequest](docs/AuthIdentityCompleteAccessTokenVerificationRequest.md) + - [AuthIdentityCompleteEmailVerificationRequest](docs/AuthIdentityCompleteEmailVerificationRequest.md) + - [AuthIdentityCompleteEmailVerificationResponse](docs/AuthIdentityCompleteEmailVerificationResponse.md) + - [AuthIdentityStartEmailVerificationRequest](docs/AuthIdentityStartEmailVerificationRequest.md) + - [AuthIdentityStartEmailVerificationResponse](docs/AuthIdentityStartEmailVerificationResponse.md) + - [AuthRefreshIdentityTokenRequest](docs/AuthRefreshIdentityTokenRequest.md) + - [AuthRefreshIdentityTokenResponse](docs/AuthRefreshIdentityTokenResponse.md) + - [CaptchaConfig](docs/CaptchaConfig.md) + - [CaptchaConfigHcaptcha](docs/CaptchaConfigHcaptcha.md) + - [CaptchaConfigTurnstile](docs/CaptchaConfigTurnstile.md) + - [CloudAuthAgent](docs/CloudAuthAgent.md) + - [CloudAuthAgentGameCloud](docs/CloudAuthAgentGameCloud.md) + - [CloudAuthAgentIdentity](docs/CloudAuthAgentIdentity.md) + - [CloudBootstrapAccess](docs/CloudBootstrapAccess.md) + - [CloudBootstrapCaptcha](docs/CloudBootstrapCaptcha.md) + - [CloudBootstrapCaptchaTurnstile](docs/CloudBootstrapCaptchaTurnstile.md) + - [CloudBootstrapCluster](docs/CloudBootstrapCluster.md) + - [CloudBootstrapDomains](docs/CloudBootstrapDomains.md) + - [CloudBootstrapLoginMethods](docs/CloudBootstrapLoginMethods.md) + - [CloudBootstrapOrigins](docs/CloudBootstrapOrigins.md) + - [CloudBootstrapResponse](docs/CloudBootstrapResponse.md) + - [CloudBuildSummary](docs/CloudBuildSummary.md) + - [CloudCdnAuthType](docs/CloudCdnAuthType.md) + - [CloudCdnNamespaceAuthUser](docs/CloudCdnNamespaceAuthUser.md) + - [CloudCdnNamespaceConfig](docs/CloudCdnNamespaceConfig.md) + - [CloudCdnNamespaceDomain](docs/CloudCdnNamespaceDomain.md) + - [CloudCdnNamespaceDomainVerificationMethod](docs/CloudCdnNamespaceDomainVerificationMethod.md) + - [CloudCdnNamespaceDomainVerificationMethodHttp](docs/CloudCdnNamespaceDomainVerificationMethodHttp.md) + - [CloudCdnNamespaceDomainVerificationStatus](docs/CloudCdnNamespaceDomainVerificationStatus.md) + - [CloudCdnSiteSummary](docs/CloudCdnSiteSummary.md) + - [CloudCustomAvatarSummary](docs/CloudCustomAvatarSummary.md) + - [CloudDevicesCompleteDeviceLinkRequest](docs/CloudDevicesCompleteDeviceLinkRequest.md) + - [CloudDevicesGetDeviceLinkResponse](docs/CloudDevicesGetDeviceLinkResponse.md) + - [CloudDevicesPrepareDeviceLinkResponse](docs/CloudDevicesPrepareDeviceLinkResponse.md) + - [CloudGameFull](docs/CloudGameFull.md) + - [CloudGameLobbyExpenses](docs/CloudGameLobbyExpenses.md) + - [CloudGamesBuildCompression](docs/CloudGamesBuildCompression.md) + - [CloudGamesBuildKind](docs/CloudGamesBuildKind.md) + - [CloudGamesCreateCloudTokenResponse](docs/CloudGamesCreateCloudTokenResponse.md) + - [CloudGamesCreateGameBuildRequest](docs/CloudGamesCreateGameBuildRequest.md) + - [CloudGamesCreateGameBuildResponse](docs/CloudGamesCreateGameBuildResponse.md) + - [CloudGamesCreateGameCdnSiteRequest](docs/CloudGamesCreateGameCdnSiteRequest.md) + - [CloudGamesCreateGameCdnSiteResponse](docs/CloudGamesCreateGameCdnSiteResponse.md) + - [CloudGamesCreateGameRequest](docs/CloudGamesCreateGameRequest.md) + - [CloudGamesCreateGameResponse](docs/CloudGamesCreateGameResponse.md) + - [CloudGamesCreateGameVersionRequest](docs/CloudGamesCreateGameVersionRequest.md) + - [CloudGamesCreateGameVersionResponse](docs/CloudGamesCreateGameVersionResponse.md) + - [CloudGamesCreateServiceTokenResponse](docs/CloudGamesCreateServiceTokenResponse.md) + - [CloudGamesDeleteMatchmakerLobbyResponse](docs/CloudGamesDeleteMatchmakerLobbyResponse.md) + - [CloudGamesExportLobbyLogsRequest](docs/CloudGamesExportLobbyLogsRequest.md) + - [CloudGamesExportLobbyLogsResponse](docs/CloudGamesExportLobbyLogsResponse.md) + - [CloudGamesExportMatchmakerLobbyHistoryRequest](docs/CloudGamesExportMatchmakerLobbyHistoryRequest.md) + - [CloudGamesExportMatchmakerLobbyHistoryResponse](docs/CloudGamesExportMatchmakerLobbyHistoryResponse.md) + - [CloudGamesGameBannerUploadPrepareRequest](docs/CloudGamesGameBannerUploadPrepareRequest.md) + - [CloudGamesGameBannerUploadPrepareResponse](docs/CloudGamesGameBannerUploadPrepareResponse.md) + - [CloudGamesGameLogoUploadPrepareRequest](docs/CloudGamesGameLogoUploadPrepareRequest.md) + - [CloudGamesGameLogoUploadPrepareResponse](docs/CloudGamesGameLogoUploadPrepareResponse.md) + - [CloudGamesGetGameByIdResponse](docs/CloudGamesGetGameByIdResponse.md) + - [CloudGamesGetGameVersionByIdResponse](docs/CloudGamesGetGameVersionByIdResponse.md) + - [CloudGamesGetGamesResponse](docs/CloudGamesGetGamesResponse.md) + - [CloudGamesGetLobbyLogsResponse](docs/CloudGamesGetLobbyLogsResponse.md) + - [CloudGamesListGameBuildsResponse](docs/CloudGamesListGameBuildsResponse.md) + - [CloudGamesListGameCdnSitesResponse](docs/CloudGamesListGameCdnSitesResponse.md) + - [CloudGamesListGameCustomAvatarsResponse](docs/CloudGamesListGameCustomAvatarsResponse.md) + - [CloudGamesLogStream](docs/CloudGamesLogStream.md) + - [CloudGamesNamespacesAddNamespaceDomainRequest](docs/CloudGamesNamespacesAddNamespaceDomainRequest.md) + - [CloudGamesNamespacesCreateGameNamespaceRequest](docs/CloudGamesNamespacesCreateGameNamespaceRequest.md) + - [CloudGamesNamespacesCreateGameNamespaceResponse](docs/CloudGamesNamespacesCreateGameNamespaceResponse.md) + - [CloudGamesNamespacesCreateGameNamespaceTokenDevelopmentRequest](docs/CloudGamesNamespacesCreateGameNamespaceTokenDevelopmentRequest.md) + - [CloudGamesNamespacesCreateGameNamespaceTokenDevelopmentResponse](docs/CloudGamesNamespacesCreateGameNamespaceTokenDevelopmentResponse.md) + - [CloudGamesNamespacesCreateGameNamespaceTokenPublicResponse](docs/CloudGamesNamespacesCreateGameNamespaceTokenPublicResponse.md) + - [CloudGamesNamespacesGetAnalyticsMatchmakerLiveResponse](docs/CloudGamesNamespacesGetAnalyticsMatchmakerLiveResponse.md) + - [CloudGamesNamespacesGetGameNamespaceByIdResponse](docs/CloudGamesNamespacesGetGameNamespaceByIdResponse.md) + - [CloudGamesNamespacesGetGameNamespaceVersionHistoryResponse](docs/CloudGamesNamespacesGetGameNamespaceVersionHistoryResponse.md) + - [CloudGamesNamespacesGetNamespaceLobbyResponse](docs/CloudGamesNamespacesGetNamespaceLobbyResponse.md) + - [CloudGamesNamespacesInspectResponse](docs/CloudGamesNamespacesInspectResponse.md) + - [CloudGamesNamespacesListNamespaceLobbiesResponse](docs/CloudGamesNamespacesListNamespaceLobbiesResponse.md) + - [CloudGamesNamespacesSetNamespaceCdnAuthTypeRequest](docs/CloudGamesNamespacesSetNamespaceCdnAuthTypeRequest.md) + - [CloudGamesNamespacesToggleNamespaceDomainPublicAuthRequest](docs/CloudGamesNamespacesToggleNamespaceDomainPublicAuthRequest.md) + - [CloudGamesNamespacesUpdateGameNamespaceMatchmakerConfigRequest](docs/CloudGamesNamespacesUpdateGameNamespaceMatchmakerConfigRequest.md) + - [CloudGamesNamespacesUpdateGameNamespaceVersionRequest](docs/CloudGamesNamespacesUpdateGameNamespaceVersionRequest.md) + - [CloudGamesNamespacesUpdateNamespaceCdnAuthUserRequest](docs/CloudGamesNamespacesUpdateNamespaceCdnAuthUserRequest.md) + - [CloudGamesNamespacesValidateGameNamespaceMatchmakerConfigRequest](docs/CloudGamesNamespacesValidateGameNamespaceMatchmakerConfigRequest.md) + - [CloudGamesNamespacesValidateGameNamespaceMatchmakerConfigResponse](docs/CloudGamesNamespacesValidateGameNamespaceMatchmakerConfigResponse.md) + - [CloudGamesNamespacesValidateGameNamespaceRequest](docs/CloudGamesNamespacesValidateGameNamespaceRequest.md) + - [CloudGamesNamespacesValidateGameNamespaceResponse](docs/CloudGamesNamespacesValidateGameNamespaceResponse.md) + - [CloudGamesNamespacesValidateGameNamespaceTokenDevelopmentRequest](docs/CloudGamesNamespacesValidateGameNamespaceTokenDevelopmentRequest.md) + - [CloudGamesNamespacesValidateGameNamespaceTokenDevelopmentResponse](docs/CloudGamesNamespacesValidateGameNamespaceTokenDevelopmentResponse.md) + - [CloudGamesPrepareCustomAvatarUploadRequest](docs/CloudGamesPrepareCustomAvatarUploadRequest.md) + - [CloudGamesPrepareCustomAvatarUploadResponse](docs/CloudGamesPrepareCustomAvatarUploadResponse.md) + - [CloudGamesReserveVersionNameResponse](docs/CloudGamesReserveVersionNameResponse.md) + - [CloudGamesValidateGameRequest](docs/CloudGamesValidateGameRequest.md) + - [CloudGamesValidateGameResponse](docs/CloudGamesValidateGameResponse.md) + - [CloudGamesValidateGameVersionRequest](docs/CloudGamesValidateGameVersionRequest.md) + - [CloudGamesValidateGameVersionResponse](docs/CloudGamesValidateGameVersionResponse.md) + - [CloudGetRayPerfLogsResponse](docs/CloudGetRayPerfLogsResponse.md) + - [CloudGetRegionTiersResponse](docs/CloudGetRegionTiersResponse.md) + - [CloudGroupBankSource](docs/CloudGroupBankSource.md) + - [CloudInspectResponse](docs/CloudInspectResponse.md) + - [CloudLobbySummaryAnalytics](docs/CloudLobbySummaryAnalytics.md) + - [CloudLogsLobbyStatus](docs/CloudLogsLobbyStatus.md) + - [CloudLogsLobbyStatusStopped](docs/CloudLogsLobbyStatusStopped.md) + - [CloudLogsLobbySummary](docs/CloudLogsLobbySummary.md) + - [CloudLogsPerfMark](docs/CloudLogsPerfMark.md) + - [CloudLogsPerfSpan](docs/CloudLogsPerfSpan.md) + - [CloudMatchmakerDevelopmentPort](docs/CloudMatchmakerDevelopmentPort.md) + - [CloudMatchmakerNamespaceConfig](docs/CloudMatchmakerNamespaceConfig.md) + - [CloudNamespaceConfig](docs/CloudNamespaceConfig.md) + - [CloudNamespaceFull](docs/CloudNamespaceFull.md) + - [CloudNamespaceSummary](docs/CloudNamespaceSummary.md) + - [CloudNamespaceVersion](docs/CloudNamespaceVersion.md) + - [CloudRegionSummary](docs/CloudRegionSummary.md) + - [CloudRegionTier](docs/CloudRegionTier.md) + - [CloudRegionTierExpenses](docs/CloudRegionTierExpenses.md) + - [CloudSvcMetrics](docs/CloudSvcMetrics.md) + - [CloudSvcPerf](docs/CloudSvcPerf.md) + - [CloudUniversalRegion](docs/CloudUniversalRegion.md) + - [CloudValidateGroupRequest](docs/CloudValidateGroupRequest.md) + - [CloudValidateGroupResponse](docs/CloudValidateGroupResponse.md) + - [CloudVersionCdnConfig](docs/CloudVersionCdnConfig.md) + - [CloudVersionCdnCustomHeadersMiddleware](docs/CloudVersionCdnCustomHeadersMiddleware.md) + - [CloudVersionCdnHeader](docs/CloudVersionCdnHeader.md) + - [CloudVersionCdnMiddleware](docs/CloudVersionCdnMiddleware.md) + - [CloudVersionCdnMiddlewareKind](docs/CloudVersionCdnMiddlewareKind.md) + - [CloudVersionCdnRoute](docs/CloudVersionCdnRoute.md) + - [CloudVersionConfig](docs/CloudVersionConfig.md) + - [CloudVersionEngineConfig](docs/CloudVersionEngineConfig.md) + - [CloudVersionEngineUnrealConfig](docs/CloudVersionEngineUnrealConfig.md) + - [CloudVersionFull](docs/CloudVersionFull.md) + - [CloudVersionIdentityConfig](docs/CloudVersionIdentityConfig.md) + - [CloudVersionIdentityCustomAvatar](docs/CloudVersionIdentityCustomAvatar.md) + - [CloudVersionIdentityCustomDisplayName](docs/CloudVersionIdentityCustomDisplayName.md) + - [CloudVersionMatchmakerCaptcha](docs/CloudVersionMatchmakerCaptcha.md) + - [CloudVersionMatchmakerCaptchaHcaptcha](docs/CloudVersionMatchmakerCaptchaHcaptcha.md) + - [CloudVersionMatchmakerCaptchaHcaptchaLevel](docs/CloudVersionMatchmakerCaptchaHcaptchaLevel.md) + - [CloudVersionMatchmakerCaptchaTurnstile](docs/CloudVersionMatchmakerCaptchaTurnstile.md) + - [CloudVersionMatchmakerConfig](docs/CloudVersionMatchmakerConfig.md) + - [CloudVersionMatchmakerGameMode](docs/CloudVersionMatchmakerGameMode.md) + - [CloudVersionMatchmakerGameModeActions](docs/CloudVersionMatchmakerGameModeActions.md) + - [CloudVersionMatchmakerGameModeCreateConfig](docs/CloudVersionMatchmakerGameModeCreateConfig.md) + - [CloudVersionMatchmakerGameModeFindConfig](docs/CloudVersionMatchmakerGameModeFindConfig.md) + - [CloudVersionMatchmakerGameModeIdentityRequirement](docs/CloudVersionMatchmakerGameModeIdentityRequirement.md) + - [CloudVersionMatchmakerGameModeIdleLobbiesConfig](docs/CloudVersionMatchmakerGameModeIdleLobbiesConfig.md) + - [CloudVersionMatchmakerGameModeJoinConfig](docs/CloudVersionMatchmakerGameModeJoinConfig.md) + - [CloudVersionMatchmakerGameModeRegion](docs/CloudVersionMatchmakerGameModeRegion.md) + - [CloudVersionMatchmakerGameModeRuntimeDocker](docs/CloudVersionMatchmakerGameModeRuntimeDocker.md) + - [CloudVersionMatchmakerGameModeRuntimeDockerPort](docs/CloudVersionMatchmakerGameModeRuntimeDockerPort.md) + - [CloudVersionMatchmakerGameModeVerificationConfig](docs/CloudVersionMatchmakerGameModeVerificationConfig.md) + - [CloudVersionMatchmakerLobbyGroup](docs/CloudVersionMatchmakerLobbyGroup.md) + - [CloudVersionMatchmakerLobbyGroupIdleLobbiesConfig](docs/CloudVersionMatchmakerLobbyGroupIdleLobbiesConfig.md) + - [CloudVersionMatchmakerLobbyGroupRegion](docs/CloudVersionMatchmakerLobbyGroupRegion.md) + - [CloudVersionMatchmakerLobbyGroupRuntime](docs/CloudVersionMatchmakerLobbyGroupRuntime.md) + - [CloudVersionMatchmakerLobbyGroupRuntimeDocker](docs/CloudVersionMatchmakerLobbyGroupRuntimeDocker.md) + - [CloudVersionMatchmakerLobbyGroupRuntimeDockerEnvVar](docs/CloudVersionMatchmakerLobbyGroupRuntimeDockerEnvVar.md) + - [CloudVersionMatchmakerLobbyGroupRuntimeDockerPort](docs/CloudVersionMatchmakerLobbyGroupRuntimeDockerPort.md) + - [CloudVersionMatchmakerNetworkMode](docs/CloudVersionMatchmakerNetworkMode.md) + - [CloudVersionMatchmakerPortProtocol](docs/CloudVersionMatchmakerPortProtocol.md) + - [CloudVersionMatchmakerPortRange](docs/CloudVersionMatchmakerPortRange.md) + - [CloudVersionMatchmakerProxyKind](docs/CloudVersionMatchmakerProxyKind.md) + - [CloudVersionSummary](docs/CloudVersionSummary.md) + - [ErrorBody](docs/ErrorBody.md) + - [GameHandle](docs/GameHandle.md) + - [GameLeaderboardCategory](docs/GameLeaderboardCategory.md) + - [GamePlatformLink](docs/GamePlatformLink.md) + - [GameProfile](docs/GameProfile.md) + - [GameStat](docs/GameStat.md) + - [GameStatAggregationMethod](docs/GameStatAggregationMethod.md) + - [GameStatConfig](docs/GameStatConfig.md) + - [GameStatFormatMethod](docs/GameStatFormatMethod.md) + - [GameStatSortingMethod](docs/GameStatSortingMethod.md) + - [GameStatSummary](docs/GameStatSummary.md) + - [GameSummary](docs/GameSummary.md) + - [GeoCoord](docs/GeoCoord.md) + - [GeoDistance](docs/GeoDistance.md) + - [GlobalEventNotification](docs/GlobalEventNotification.md) + - [GroupBannedIdentity](docs/GroupBannedIdentity.md) + - [GroupConsumeInviteResponse](docs/GroupConsumeInviteResponse.md) + - [GroupCreateInviteRequest](docs/GroupCreateInviteRequest.md) + - [GroupCreateInviteResponse](docs/GroupCreateInviteResponse.md) + - [GroupCreateRequest](docs/GroupCreateRequest.md) + - [GroupCreateResponse](docs/GroupCreateResponse.md) + - [GroupExternalLinks](docs/GroupExternalLinks.md) + - [GroupGetBansResponse](docs/GroupGetBansResponse.md) + - [GroupGetInviteResponse](docs/GroupGetInviteResponse.md) + - [GroupGetJoinRequestsResponse](docs/GroupGetJoinRequestsResponse.md) + - [GroupGetMembersResponse](docs/GroupGetMembersResponse.md) + - [GroupGetProfileResponse](docs/GroupGetProfileResponse.md) + - [GroupGetSummaryResponse](docs/GroupGetSummaryResponse.md) + - [GroupHandle](docs/GroupHandle.md) + - [GroupJoinRequest](docs/GroupJoinRequest.md) + - [GroupListSuggestedResponse](docs/GroupListSuggestedResponse.md) + - [GroupMember](docs/GroupMember.md) + - [GroupPrepareAvatarUploadRequest](docs/GroupPrepareAvatarUploadRequest.md) + - [GroupPrepareAvatarUploadResponse](docs/GroupPrepareAvatarUploadResponse.md) + - [GroupProfile](docs/GroupProfile.md) + - [GroupPublicity](docs/GroupPublicity.md) + - [GroupResolveJoinRequestRequest](docs/GroupResolveJoinRequestRequest.md) + - [GroupSearchResponse](docs/GroupSearchResponse.md) + - [GroupSummary](docs/GroupSummary.md) + - [GroupTransferOwnershipRequest](docs/GroupTransferOwnershipRequest.md) + - [GroupUpdateProfileRequest](docs/GroupUpdateProfileRequest.md) + - [GroupValidateProfileRequest](docs/GroupValidateProfileRequest.md) + - [GroupValidateProfileResponse](docs/GroupValidateProfileResponse.md) + - [IdentityAccessTokenLinkedAccount](docs/IdentityAccessTokenLinkedAccount.md) + - [IdentityCancelGameLinkRequest](docs/IdentityCancelGameLinkRequest.md) + - [IdentityCompleteGameLinkRequest](docs/IdentityCompleteGameLinkRequest.md) + - [IdentityDevState](docs/IdentityDevState.md) + - [IdentityEmailLinkedAccount](docs/IdentityEmailLinkedAccount.md) + - [IdentityExternalLinks](docs/IdentityExternalLinks.md) + - [IdentityGameActivity](docs/IdentityGameActivity.md) + - [IdentityGameLinkStatus](docs/IdentityGameLinkStatus.md) + - [IdentityGetGameLinkNewIdentity](docs/IdentityGetGameLinkNewIdentity.md) + - [IdentityGetGameLinkResponse](docs/IdentityGetGameLinkResponse.md) + - [IdentityGetHandlesResponse](docs/IdentityGetHandlesResponse.md) + - [IdentityGetProfileResponse](docs/IdentityGetProfileResponse.md) + - [IdentityGetSummariesResponse](docs/IdentityGetSummariesResponse.md) + - [IdentityGlobalEvent](docs/IdentityGlobalEvent.md) + - [IdentityGlobalEventIdentityUpdate](docs/IdentityGlobalEventIdentityUpdate.md) + - [IdentityGlobalEventKind](docs/IdentityGlobalEventKind.md) + - [IdentityGlobalEventMatchmakerLobbyJoin](docs/IdentityGlobalEventMatchmakerLobbyJoin.md) + - [IdentityGlobalEventNotification](docs/IdentityGlobalEventNotification.md) + - [IdentityGroup](docs/IdentityGroup.md) + - [IdentityHandle](docs/IdentityHandle.md) + - [IdentityLinkedAccount](docs/IdentityLinkedAccount.md) + - [IdentityListActivitiesResponse](docs/IdentityListActivitiesResponse.md) + - [IdentityListFollowersResponse](docs/IdentityListFollowersResponse.md) + - [IdentityListFollowingResponse](docs/IdentityListFollowingResponse.md) + - [IdentityListFriendsResponse](docs/IdentityListFriendsResponse.md) + - [IdentityListMutualFriendsResponse](docs/IdentityListMutualFriendsResponse.md) + - [IdentityListRecentFollowersResponse](docs/IdentityListRecentFollowersResponse.md) + - [IdentityPrepareAvatarUploadRequest](docs/IdentityPrepareAvatarUploadRequest.md) + - [IdentityPrepareAvatarUploadResponse](docs/IdentityPrepareAvatarUploadResponse.md) + - [IdentityPrepareGameLinkResponse](docs/IdentityPrepareGameLinkResponse.md) + - [IdentityPresence](docs/IdentityPresence.md) + - [IdentityProfile](docs/IdentityProfile.md) + - [IdentityReportRequest](docs/IdentityReportRequest.md) + - [IdentitySearchResponse](docs/IdentitySearchResponse.md) + - [IdentitySetGameActivityRequest](docs/IdentitySetGameActivityRequest.md) + - [IdentitySetupRequest](docs/IdentitySetupRequest.md) + - [IdentitySetupResponse](docs/IdentitySetupResponse.md) + - [IdentitySignupForBetaRequest](docs/IdentitySignupForBetaRequest.md) + - [IdentityStatus](docs/IdentityStatus.md) + - [IdentitySummary](docs/IdentitySummary.md) + - [IdentityUpdateGameActivity](docs/IdentityUpdateGameActivity.md) + - [IdentityUpdateProfileRequest](docs/IdentityUpdateProfileRequest.md) + - [IdentityUpdateStatusRequest](docs/IdentityUpdateStatusRequest.md) + - [IdentityValidateProfileResponse](docs/IdentityValidateProfileResponse.md) + - [IdentityWatchEventsResponse](docs/IdentityWatchEventsResponse.md) + - [KvEntry](docs/KvEntry.md) + - [KvGetBatchResponse](docs/KvGetBatchResponse.md) + - [KvGetResponse](docs/KvGetResponse.md) + - [KvListResponse](docs/KvListResponse.md) + - [KvPutBatchRequest](docs/KvPutBatchRequest.md) + - [KvPutEntry](docs/KvPutEntry.md) + - [KvPutRequest](docs/KvPutRequest.md) + - [MatchmakerCreateLobbyResponse](docs/MatchmakerCreateLobbyResponse.md) + - [MatchmakerCustomLobbyPublicity](docs/MatchmakerCustomLobbyPublicity.md) + - [MatchmakerFindLobbyResponse](docs/MatchmakerFindLobbyResponse.md) + - [MatchmakerGameModeInfo](docs/MatchmakerGameModeInfo.md) + - [MatchmakerGameModeStatistics](docs/MatchmakerGameModeStatistics.md) + - [MatchmakerGetStatisticsResponse](docs/MatchmakerGetStatisticsResponse.md) + - [MatchmakerJoinLobby](docs/MatchmakerJoinLobby.md) + - [MatchmakerJoinLobbyResponse](docs/MatchmakerJoinLobbyResponse.md) + - [MatchmakerJoinPlayer](docs/MatchmakerJoinPlayer.md) + - [MatchmakerJoinPort](docs/MatchmakerJoinPort.md) + - [MatchmakerJoinPortRange](docs/MatchmakerJoinPortRange.md) + - [MatchmakerJoinRegion](docs/MatchmakerJoinRegion.md) + - [MatchmakerListLobbiesResponse](docs/MatchmakerListLobbiesResponse.md) + - [MatchmakerListRegionsResponse](docs/MatchmakerListRegionsResponse.md) + - [MatchmakerLobbiesCreateRequest](docs/MatchmakerLobbiesCreateRequest.md) + - [MatchmakerLobbiesFindRequest](docs/MatchmakerLobbiesFindRequest.md) + - [MatchmakerLobbiesJoinRequest](docs/MatchmakerLobbiesJoinRequest.md) + - [MatchmakerLobbiesSetClosedRequest](docs/MatchmakerLobbiesSetClosedRequest.md) + - [MatchmakerLobbyInfo](docs/MatchmakerLobbyInfo.md) + - [MatchmakerPlayersConnectedRequest](docs/MatchmakerPlayersConnectedRequest.md) + - [MatchmakerRegionInfo](docs/MatchmakerRegionInfo.md) + - [MatchmakerRegionStatistics](docs/MatchmakerRegionStatistics.md) + - [PortalGetGameProfileResponse](docs/PortalGetGameProfileResponse.md) + - [PortalGetSuggestedGamesResponse](docs/PortalGetSuggestedGamesResponse.md) + - [PortalNotificationRegisterFirebaseService](docs/PortalNotificationRegisterFirebaseService.md) + - [PortalNotificationRegisterService](docs/PortalNotificationRegisterService.md) + - [PortalNotificationUnregisterService](docs/PortalNotificationUnregisterService.md) + - [ProvisionDatacentersGetTlsResponse](docs/ProvisionDatacentersGetTlsResponse.md) + - [ProvisionServersGetInfoResponse](docs/ProvisionServersGetInfoResponse.md) + - [ServersBuild](docs/ServersBuild.md) + - [ServersBuildCompression](docs/ServersBuildCompression.md) + - [ServersBuildKind](docs/ServersBuildKind.md) + - [ServersCreateBuildRequest](docs/ServersCreateBuildRequest.md) + - [ServersCreateBuildResponse](docs/ServersCreateBuildResponse.md) + - [ServersCreateServerNetworkRequest](docs/ServersCreateServerNetworkRequest.md) + - [ServersCreateServerPortRequest](docs/ServersCreateServerPortRequest.md) + - [ServersCreateServerRequest](docs/ServersCreateServerRequest.md) + - [ServersCreateServerResponse](docs/ServersCreateServerResponse.md) + - [ServersGetBuildResponse](docs/ServersGetBuildResponse.md) + - [ServersGetServerLogsResponse](docs/ServersGetServerLogsResponse.md) + - [ServersGetServerResponse](docs/ServersGetServerResponse.md) + - [ServersListBuildsResponse](docs/ServersListBuildsResponse.md) + - [ServersListServersResponse](docs/ServersListServersResponse.md) + - [ServersLogStream](docs/ServersLogStream.md) + - [ServersNetwork](docs/ServersNetwork.md) + - [ServersNetworkMode](docs/ServersNetworkMode.md) + - [ServersPort](docs/ServersPort.md) + - [ServersPortProtocol](docs/ServersPortProtocol.md) + - [ServersPortRouting](docs/ServersPortRouting.md) + - [ServersResources](docs/ServersResources.md) + - [ServersServer](docs/ServersServer.md) + - [UploadPrepareFile](docs/UploadPrepareFile.md) + - [UploadPresignedRequest](docs/UploadPresignedRequest.md) + - [ValidationError](docs/ValidationError.md) + - [WatchResponse](docs/WatchResponse.md) + + +To get access to the crate's generated documentation, use: + +``` +cargo doc --open +``` + +## Author + + + diff --git a/sdks/full/rust-cli/docs/AdminApi.md b/sdks/full/rust-cli/docs/AdminApi.md new file mode 100644 index 0000000000..dd056c3f17 --- /dev/null +++ b/sdks/full/rust-cli/docs/AdminApi.md @@ -0,0 +1,37 @@ +# \AdminApi + +All URIs are relative to *https://api.rivet.gg* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**admin_login**](AdminApi.md#admin_login) | **POST** /admin/login | + + + +## admin_login + +> crate::models::AdminLoginResponse admin_login(admin_login_request) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**admin_login_request** | [**AdminLoginRequest**](AdminLoginRequest.md) | | [required] | + +### Return type + +[**crate::models::AdminLoginResponse**](AdminLoginResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/sdks/full/rust-cli/docs/AdminClustersApi.md b/sdks/full/rust-cli/docs/AdminClustersApi.md new file mode 100644 index 0000000000..f27fac5547 --- /dev/null +++ b/sdks/full/rust-cli/docs/AdminClustersApi.md @@ -0,0 +1,67 @@ +# \AdminClustersApi + +All URIs are relative to *https://api.rivet.gg* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**admin_clusters_create**](AdminClustersApi.md#admin_clusters_create) | **POST** /admin/clusters | +[**admin_clusters_list**](AdminClustersApi.md#admin_clusters_list) | **GET** /admin/clusters | + + + +## admin_clusters_create + +> crate::models::AdminClustersCreateClusterResponse admin_clusters_create(admin_clusters_create_cluster_request) + + +Create a new cluster + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**admin_clusters_create_cluster_request** | [**AdminClustersCreateClusterRequest**](AdminClustersCreateClusterRequest.md) | | [required] | + +### Return type + +[**crate::models::AdminClustersCreateClusterResponse**](AdminClustersCreateClusterResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## admin_clusters_list + +> crate::models::AdminClustersListClustersResponse admin_clusters_list() + + +Get clusters + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**crate::models::AdminClustersListClustersResponse**](AdminClustersListClustersResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/sdks/full/rust-cli/docs/AdminClustersBuildDeliveryMethod.md b/sdks/full/rust-cli/docs/AdminClustersBuildDeliveryMethod.md new file mode 100644 index 0000000000..bc34427365 --- /dev/null +++ b/sdks/full/rust-cli/docs/AdminClustersBuildDeliveryMethod.md @@ -0,0 +1,10 @@ +# AdminClustersBuildDeliveryMethod + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/AdminClustersCluster.md b/sdks/full/rust-cli/docs/AdminClustersCluster.md new file mode 100644 index 0000000000..03e3a2c817 --- /dev/null +++ b/sdks/full/rust-cli/docs/AdminClustersCluster.md @@ -0,0 +1,14 @@ +# AdminClustersCluster + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cluster_id** | [**uuid::Uuid**](uuid::Uuid.md) | | +**create_ts** | **i64** | | +**name_id** | **String** | | +**owner_team_id** | Option<[**uuid::Uuid**](uuid::Uuid.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/AdminClustersCreateClusterRequest.md b/sdks/full/rust-cli/docs/AdminClustersCreateClusterRequest.md new file mode 100644 index 0000000000..41829e0aa8 --- /dev/null +++ b/sdks/full/rust-cli/docs/AdminClustersCreateClusterRequest.md @@ -0,0 +1,12 @@ +# AdminClustersCreateClusterRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name_id** | **String** | | +**owner_team_id** | Option<[**uuid::Uuid**](uuid::Uuid.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/AdminClustersCreateClusterResponse.md b/sdks/full/rust-cli/docs/AdminClustersCreateClusterResponse.md new file mode 100644 index 0000000000..96ef5fa154 --- /dev/null +++ b/sdks/full/rust-cli/docs/AdminClustersCreateClusterResponse.md @@ -0,0 +1,11 @@ +# AdminClustersCreateClusterResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cluster_id** | [**uuid::Uuid**](uuid::Uuid.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/AdminClustersCreateDatacenterRequest.md b/sdks/full/rust-cli/docs/AdminClustersCreateDatacenterRequest.md new file mode 100644 index 0000000000..68a4a44289 --- /dev/null +++ b/sdks/full/rust-cli/docs/AdminClustersCreateDatacenterRequest.md @@ -0,0 +1,16 @@ +# AdminClustersCreateDatacenterRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**build_delivery_method** | [**crate::models::AdminClustersBuildDeliveryMethod**](AdminClustersBuildDeliveryMethod.md) | | +**display_name** | **String** | | +**name_id** | **String** | | +**prebakes_enabled** | **bool** | | +**provider** | [**crate::models::AdminClustersProvider**](AdminClustersProvider.md) | | +**provider_datacenter_id** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/AdminClustersCreateDatacenterResponse.md b/sdks/full/rust-cli/docs/AdminClustersCreateDatacenterResponse.md new file mode 100644 index 0000000000..19bba07ccc --- /dev/null +++ b/sdks/full/rust-cli/docs/AdminClustersCreateDatacenterResponse.md @@ -0,0 +1,11 @@ +# AdminClustersCreateDatacenterResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**datacenter_id** | [**uuid::Uuid**](uuid::Uuid.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/AdminClustersDatacenter.md b/sdks/full/rust-cli/docs/AdminClustersDatacenter.md new file mode 100644 index 0000000000..bd81008321 --- /dev/null +++ b/sdks/full/rust-cli/docs/AdminClustersDatacenter.md @@ -0,0 +1,19 @@ +# AdminClustersDatacenter + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**build_delivery_method** | [**crate::models::AdminClustersBuildDeliveryMethod**](AdminClustersBuildDeliveryMethod.md) | | +**cluster_id** | [**uuid::Uuid**](uuid::Uuid.md) | | +**datacenter_id** | [**uuid::Uuid**](uuid::Uuid.md) | | +**display_name** | **String** | | +**name_id** | **String** | | +**pools** | [**Vec**](AdminClustersPool.md) | | +**provider** | [**crate::models::AdminClustersProvider**](AdminClustersProvider.md) | | +**provider_api_token** | Option<**String**> | | [optional] +**provider_datacenter_id** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/AdminClustersDatacentersApi.md b/sdks/full/rust-cli/docs/AdminClustersDatacentersApi.md new file mode 100644 index 0000000000..5db9f51b2c --- /dev/null +++ b/sdks/full/rust-cli/docs/AdminClustersDatacentersApi.md @@ -0,0 +1,100 @@ +# \AdminClustersDatacentersApi + +All URIs are relative to *https://api.rivet.gg* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**admin_clusters_datacenters_create**](AdminClustersDatacentersApi.md#admin_clusters_datacenters_create) | **POST** /admin/clusters/{cluster_id}/datacenters | +[**admin_clusters_datacenters_list**](AdminClustersDatacentersApi.md#admin_clusters_datacenters_list) | **GET** /admin/clusters/{cluster_id}/datacenters | +[**admin_clusters_datacenters_update**](AdminClustersDatacentersApi.md#admin_clusters_datacenters_update) | **PATCH** /admin/clusters/{cluster_id}/datacenters/{datacenter_id} | + + + +## admin_clusters_datacenters_create + +> crate::models::AdminClustersCreateDatacenterResponse admin_clusters_datacenters_create(cluster_id, admin_clusters_create_datacenter_request) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**cluster_id** | **uuid::Uuid** | | [required] | +**admin_clusters_create_datacenter_request** | [**AdminClustersCreateDatacenterRequest**](AdminClustersCreateDatacenterRequest.md) | | [required] | + +### Return type + +[**crate::models::AdminClustersCreateDatacenterResponse**](AdminClustersCreateDatacenterResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## admin_clusters_datacenters_list + +> crate::models::AdminClustersListDatacentersResponse admin_clusters_datacenters_list(cluster_id) + + +Get datacenters of a cluster + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**cluster_id** | **uuid::Uuid** | | [required] | + +### Return type + +[**crate::models::AdminClustersListDatacentersResponse**](AdminClustersListDatacentersResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## admin_clusters_datacenters_update + +> admin_clusters_datacenters_update(cluster_id, datacenter_id, admin_clusters_update_datacenter_request) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**cluster_id** | **uuid::Uuid** | | [required] | +**datacenter_id** | **uuid::Uuid** | | [required] | +**admin_clusters_update_datacenter_request** | [**AdminClustersUpdateDatacenterRequest**](AdminClustersUpdateDatacenterRequest.md) | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/sdks/full/rust-cli/docs/AdminClustersHardware.md b/sdks/full/rust-cli/docs/AdminClustersHardware.md new file mode 100644 index 0000000000..5c09e0ceec --- /dev/null +++ b/sdks/full/rust-cli/docs/AdminClustersHardware.md @@ -0,0 +1,11 @@ +# AdminClustersHardware + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**provider_hardware** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/AdminClustersListClustersResponse.md b/sdks/full/rust-cli/docs/AdminClustersListClustersResponse.md new file mode 100644 index 0000000000..1eee53d067 --- /dev/null +++ b/sdks/full/rust-cli/docs/AdminClustersListClustersResponse.md @@ -0,0 +1,11 @@ +# AdminClustersListClustersResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**clusters** | [**Vec**](AdminClustersCluster.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/AdminClustersListDatacentersResponse.md b/sdks/full/rust-cli/docs/AdminClustersListDatacentersResponse.md new file mode 100644 index 0000000000..75f9d63ae1 --- /dev/null +++ b/sdks/full/rust-cli/docs/AdminClustersListDatacentersResponse.md @@ -0,0 +1,11 @@ +# AdminClustersListDatacentersResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**datacenters** | [**Vec**](AdminClustersDatacenter.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/AdminClustersListServersResponse.md b/sdks/full/rust-cli/docs/AdminClustersListServersResponse.md new file mode 100644 index 0000000000..e40cafae1e --- /dev/null +++ b/sdks/full/rust-cli/docs/AdminClustersListServersResponse.md @@ -0,0 +1,11 @@ +# AdminClustersListServersResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**servers** | [**Vec**](AdminClustersServer.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/AdminClustersPool.md b/sdks/full/rust-cli/docs/AdminClustersPool.md new file mode 100644 index 0000000000..85b3e15347 --- /dev/null +++ b/sdks/full/rust-cli/docs/AdminClustersPool.md @@ -0,0 +1,16 @@ +# AdminClustersPool + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**desired_count** | **i32** | | +**drain_timeout** | **i64** | | +**hardware** | [**Vec**](AdminClustersHardware.md) | | +**max_count** | **i32** | | +**min_count** | **i32** | | +**pool_type** | [**crate::models::AdminClustersPoolType**](AdminClustersPoolType.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/AdminClustersPoolType.md b/sdks/full/rust-cli/docs/AdminClustersPoolType.md new file mode 100644 index 0000000000..8e5de0ca96 --- /dev/null +++ b/sdks/full/rust-cli/docs/AdminClustersPoolType.md @@ -0,0 +1,10 @@ +# AdminClustersPoolType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/AdminClustersPoolUpdate.md b/sdks/full/rust-cli/docs/AdminClustersPoolUpdate.md new file mode 100644 index 0000000000..20ac98882c --- /dev/null +++ b/sdks/full/rust-cli/docs/AdminClustersPoolUpdate.md @@ -0,0 +1,16 @@ +# AdminClustersPoolUpdate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**desired_count** | Option<**i32**> | | [optional] +**drain_timeout** | Option<**i64**> | | [optional] +**hardware** | [**Vec**](AdminClustersHardware.md) | | +**max_count** | Option<**i32**> | | [optional] +**min_count** | Option<**i32**> | | [optional] +**pool_type** | [**crate::models::AdminClustersPoolType**](AdminClustersPoolType.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/AdminClustersProvider.md b/sdks/full/rust-cli/docs/AdminClustersProvider.md new file mode 100644 index 0000000000..736c088972 --- /dev/null +++ b/sdks/full/rust-cli/docs/AdminClustersProvider.md @@ -0,0 +1,10 @@ +# AdminClustersProvider + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/AdminClustersServer.md b/sdks/full/rust-cli/docs/AdminClustersServer.md new file mode 100644 index 0000000000..08f7aa7f98 --- /dev/null +++ b/sdks/full/rust-cli/docs/AdminClustersServer.md @@ -0,0 +1,12 @@ +# AdminClustersServer + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**public_ip** | Option<**String**> | | [optional] +**server_id** | [**uuid::Uuid**](uuid::Uuid.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/AdminClustersServersApi.md b/sdks/full/rust-cli/docs/AdminClustersServersApi.md new file mode 100644 index 0000000000..78a82f9172 --- /dev/null +++ b/sdks/full/rust-cli/docs/AdminClustersServersApi.md @@ -0,0 +1,107 @@ +# \AdminClustersServersApi + +All URIs are relative to *https://api.rivet.gg* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**admin_clusters_servers_destroy**](AdminClustersServersApi.md#admin_clusters_servers_destroy) | **POST** /admin/clusters/{cluster_id}/servers/destroy | +[**admin_clusters_servers_list**](AdminClustersServersApi.md#admin_clusters_servers_list) | **GET** /admin/clusters/{cluster_id}/servers | +[**admin_clusters_servers_taint**](AdminClustersServersApi.md#admin_clusters_servers_taint) | **POST** /admin/clusters/{cluster_id}/servers/taint | + + + +## admin_clusters_servers_destroy + +> admin_clusters_servers_destroy(cluster_id, server_id, datacenter, pool, public_ip) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**cluster_id** | **uuid::Uuid** | | [required] | +**server_id** | Option<**String**> | | | +**datacenter** | Option<**String**> | | | +**pool** | Option<[**AdminClustersPoolType**](.md)> | | | +**public_ip** | Option<**String**> | | | + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## admin_clusters_servers_list + +> crate::models::AdminClustersListServersResponse admin_clusters_servers_list(cluster_id, server_id, datacenter, pool, public_ip) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**cluster_id** | **uuid::Uuid** | | [required] | +**server_id** | Option<**String**> | | | +**datacenter** | Option<**String**> | | | +**pool** | Option<[**AdminClustersPoolType**](.md)> | | | +**public_ip** | Option<**String**> | | | + +### Return type + +[**crate::models::AdminClustersListServersResponse**](AdminClustersListServersResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## admin_clusters_servers_taint + +> admin_clusters_servers_taint(cluster_id, server_id, datacenter, pool, public_ip) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**cluster_id** | **uuid::Uuid** | | [required] | +**server_id** | Option<**String**> | | | +**datacenter** | Option<**String**> | | | +**pool** | Option<[**AdminClustersPoolType**](.md)> | | | +**public_ip** | Option<**String**> | | | + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/sdks/full/rust-cli/docs/AdminClustersUpdateDatacenterRequest.md b/sdks/full/rust-cli/docs/AdminClustersUpdateDatacenterRequest.md new file mode 100644 index 0000000000..8709d3d16f --- /dev/null +++ b/sdks/full/rust-cli/docs/AdminClustersUpdateDatacenterRequest.md @@ -0,0 +1,12 @@ +# AdminClustersUpdateDatacenterRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**pools** | [**Vec**](AdminClustersPoolUpdate.md) | | +**prebakes_enabled** | Option<**bool**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/AdminLoginRequest.md b/sdks/full/rust-cli/docs/AdminLoginRequest.md new file mode 100644 index 0000000000..9927921fde --- /dev/null +++ b/sdks/full/rust-cli/docs/AdminLoginRequest.md @@ -0,0 +1,11 @@ +# AdminLoginRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/AdminLoginResponse.md b/sdks/full/rust-cli/docs/AdminLoginResponse.md new file mode 100644 index 0000000000..78b88d9a81 --- /dev/null +++ b/sdks/full/rust-cli/docs/AdminLoginResponse.md @@ -0,0 +1,11 @@ +# AdminLoginResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**url** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/AuthCompleteStatus.md b/sdks/full/rust-cli/docs/AuthCompleteStatus.md new file mode 100644 index 0000000000..41dc437806 --- /dev/null +++ b/sdks/full/rust-cli/docs/AuthCompleteStatus.md @@ -0,0 +1,10 @@ +# AuthCompleteStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/AuthIdentityAccessTokenApi.md b/sdks/full/rust-cli/docs/AuthIdentityAccessTokenApi.md new file mode 100644 index 0000000000..1db8141fe9 --- /dev/null +++ b/sdks/full/rust-cli/docs/AuthIdentityAccessTokenApi.md @@ -0,0 +1,39 @@ +# \AuthIdentityAccessTokenApi + +All URIs are relative to *https://api.rivet.gg* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**auth_identity_access_token_complete_access_token_verification**](AuthIdentityAccessTokenApi.md#auth_identity_access_token_complete_access_token_verification) | **POST** /auth/identity/access-token/complete-verification | + + + +## auth_identity_access_token_complete_access_token_verification + +> auth_identity_access_token_complete_access_token_verification(auth_identity_complete_access_token_verification_request) + + +Completes the access token verification process. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**auth_identity_complete_access_token_verification_request** | [**AuthIdentityCompleteAccessTokenVerificationRequest**](AuthIdentityCompleteAccessTokenVerificationRequest.md) | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/sdks/full/rust-cli/docs/AuthIdentityCompleteAccessTokenVerificationRequest.md b/sdks/full/rust-cli/docs/AuthIdentityCompleteAccessTokenVerificationRequest.md new file mode 100644 index 0000000000..0ee0e0658e --- /dev/null +++ b/sdks/full/rust-cli/docs/AuthIdentityCompleteAccessTokenVerificationRequest.md @@ -0,0 +1,11 @@ +# AuthIdentityCompleteAccessTokenVerificationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**access_token** | **String** | Documentation at https://jwt.io/ | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/AuthIdentityCompleteEmailVerificationRequest.md b/sdks/full/rust-cli/docs/AuthIdentityCompleteEmailVerificationRequest.md new file mode 100644 index 0000000000..7472a7777b --- /dev/null +++ b/sdks/full/rust-cli/docs/AuthIdentityCompleteEmailVerificationRequest.md @@ -0,0 +1,12 @@ +# AuthIdentityCompleteEmailVerificationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**code** | **String** | The code sent to the requestee's email. | +**verification_id** | [**uuid::Uuid**](uuid::Uuid.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/AuthIdentityCompleteEmailVerificationResponse.md b/sdks/full/rust-cli/docs/AuthIdentityCompleteEmailVerificationResponse.md new file mode 100644 index 0000000000..98575843a2 --- /dev/null +++ b/sdks/full/rust-cli/docs/AuthIdentityCompleteEmailVerificationResponse.md @@ -0,0 +1,11 @@ +# AuthIdentityCompleteEmailVerificationResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | [**crate::models::AuthCompleteStatus**](AuthCompleteStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/AuthIdentityEmailApi.md b/sdks/full/rust-cli/docs/AuthIdentityEmailApi.md new file mode 100644 index 0000000000..d885bb88b5 --- /dev/null +++ b/sdks/full/rust-cli/docs/AuthIdentityEmailApi.md @@ -0,0 +1,70 @@ +# \AuthIdentityEmailApi + +All URIs are relative to *https://api.rivet.gg* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**auth_identity_email_complete_email_verification**](AuthIdentityEmailApi.md#auth_identity_email_complete_email_verification) | **POST** /auth/identity/email/complete-verification | +[**auth_identity_email_start_email_verification**](AuthIdentityEmailApi.md#auth_identity_email_start_email_verification) | **POST** /auth/identity/email/start-verification | + + + +## auth_identity_email_complete_email_verification + +> crate::models::AuthIdentityCompleteEmailVerificationResponse auth_identity_email_complete_email_verification(auth_identity_complete_email_verification_request) + + +Completes the email verification process. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**auth_identity_complete_email_verification_request** | [**AuthIdentityCompleteEmailVerificationRequest**](AuthIdentityCompleteEmailVerificationRequest.md) | | [required] | + +### Return type + +[**crate::models::AuthIdentityCompleteEmailVerificationResponse**](AuthIdentityCompleteEmailVerificationResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## auth_identity_email_start_email_verification + +> crate::models::AuthIdentityStartEmailVerificationResponse auth_identity_email_start_email_verification(auth_identity_start_email_verification_request) + + +Starts the verification process for linking an email to your identity. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**auth_identity_start_email_verification_request** | [**AuthIdentityStartEmailVerificationRequest**](AuthIdentityStartEmailVerificationRequest.md) | | [required] | + +### Return type + +[**crate::models::AuthIdentityStartEmailVerificationResponse**](AuthIdentityStartEmailVerificationResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/sdks/full/rust-cli/docs/AuthIdentityStartEmailVerificationRequest.md b/sdks/full/rust-cli/docs/AuthIdentityStartEmailVerificationRequest.md new file mode 100644 index 0000000000..cbc1c02e2b --- /dev/null +++ b/sdks/full/rust-cli/docs/AuthIdentityStartEmailVerificationRequest.md @@ -0,0 +1,13 @@ +# AuthIdentityStartEmailVerificationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**captcha** | Option<[**crate::models::CaptchaConfig**](CaptchaConfig.md)> | | [optional] +**email** | **String** | | +**game_id** | Option<[**uuid::Uuid**](uuid::Uuid.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/AuthIdentityStartEmailVerificationResponse.md b/sdks/full/rust-cli/docs/AuthIdentityStartEmailVerificationResponse.md new file mode 100644 index 0000000000..bd663723f3 --- /dev/null +++ b/sdks/full/rust-cli/docs/AuthIdentityStartEmailVerificationResponse.md @@ -0,0 +1,11 @@ +# AuthIdentityStartEmailVerificationResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**verification_id** | [**uuid::Uuid**](uuid::Uuid.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/AuthRefreshIdentityTokenRequest.md b/sdks/full/rust-cli/docs/AuthRefreshIdentityTokenRequest.md new file mode 100644 index 0000000000..229dcb4dba --- /dev/null +++ b/sdks/full/rust-cli/docs/AuthRefreshIdentityTokenRequest.md @@ -0,0 +1,11 @@ +# AuthRefreshIdentityTokenRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**logout** | Option<**bool**> | When `true`, the current identity for the provided cookie will be logged out and a new identity will be returned. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/AuthRefreshIdentityTokenResponse.md b/sdks/full/rust-cli/docs/AuthRefreshIdentityTokenResponse.md new file mode 100644 index 0000000000..4d14382963 --- /dev/null +++ b/sdks/full/rust-cli/docs/AuthRefreshIdentityTokenResponse.md @@ -0,0 +1,13 @@ +# AuthRefreshIdentityTokenResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**exp** | **String** | Token expiration time (in milliseconds). | +**identity_id** | [**uuid::Uuid**](uuid::Uuid.md) | | +**token** | **String** | A JSON Web Token. Slightly modified to include a description prefix and use Protobufs of JSON. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/AuthTokensApi.md b/sdks/full/rust-cli/docs/AuthTokensApi.md new file mode 100644 index 0000000000..e34f69d096 --- /dev/null +++ b/sdks/full/rust-cli/docs/AuthTokensApi.md @@ -0,0 +1,39 @@ +# \AuthTokensApi + +All URIs are relative to *https://api.rivet.gg* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**auth_tokens_refresh_identity_token**](AuthTokensApi.md#auth_tokens_refresh_identity_token) | **POST** /auth/tokens/identity | + + + +## auth_tokens_refresh_identity_token + +> crate::models::AuthRefreshIdentityTokenResponse auth_tokens_refresh_identity_token(auth_refresh_identity_token_request) + + +Refreshes the current identity's token and sets authentication headers. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**auth_refresh_identity_token_request** | [**AuthRefreshIdentityTokenRequest**](AuthRefreshIdentityTokenRequest.md) | | [required] | + +### Return type + +[**crate::models::AuthRefreshIdentityTokenResponse**](AuthRefreshIdentityTokenResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/sdks/full/rust-cli/docs/CaptchaConfig.md b/sdks/full/rust-cli/docs/CaptchaConfig.md new file mode 100644 index 0000000000..ccbccbd355 --- /dev/null +++ b/sdks/full/rust-cli/docs/CaptchaConfig.md @@ -0,0 +1,12 @@ +# CaptchaConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**hcaptcha** | Option<[**crate::models::CaptchaConfigHcaptcha**](CaptchaConfigHcaptcha.md)> | | [optional] +**turnstile** | Option<[**crate::models::CaptchaConfigTurnstile**](CaptchaConfigTurnstile.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CaptchaConfigHcaptcha.md b/sdks/full/rust-cli/docs/CaptchaConfigHcaptcha.md new file mode 100644 index 0000000000..42d89248b4 --- /dev/null +++ b/sdks/full/rust-cli/docs/CaptchaConfigHcaptcha.md @@ -0,0 +1,11 @@ +# CaptchaConfigHcaptcha + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**client_response** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CaptchaConfigTurnstile.md b/sdks/full/rust-cli/docs/CaptchaConfigTurnstile.md new file mode 100644 index 0000000000..7816b9984f --- /dev/null +++ b/sdks/full/rust-cli/docs/CaptchaConfigTurnstile.md @@ -0,0 +1,11 @@ +# CaptchaConfigTurnstile + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**client_response** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudApi.md b/sdks/full/rust-cli/docs/CloudApi.md new file mode 100644 index 0000000000..f1e0b4c721 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudApi.md @@ -0,0 +1,36 @@ +# \CloudApi + +All URIs are relative to *https://api.rivet.gg* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**cloud_bootstrap**](CloudApi.md#cloud_bootstrap) | **GET** /cloud/bootstrap | + + + +## cloud_bootstrap + +> crate::models::CloudBootstrapResponse cloud_bootstrap() + + +Returns the basic information required to use the cloud APIs. + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**crate::models::CloudBootstrapResponse**](CloudBootstrapResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/sdks/full/rust-cli/docs/CloudAuthAgent.md b/sdks/full/rust-cli/docs/CloudAuthAgent.md new file mode 100644 index 0000000000..16329abf69 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudAuthAgent.md @@ -0,0 +1,12 @@ +# CloudAuthAgent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**game_cloud** | Option<[**crate::models::CloudAuthAgentGameCloud**](CloudAuthAgentGameCloud.md)> | | [optional] +**identity** | Option<[**crate::models::CloudAuthAgentIdentity**](CloudAuthAgentIdentity.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudAuthAgentGameCloud.md b/sdks/full/rust-cli/docs/CloudAuthAgentGameCloud.md new file mode 100644 index 0000000000..7a9eac911c --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudAuthAgentGameCloud.md @@ -0,0 +1,11 @@ +# CloudAuthAgentGameCloud + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**game_id** | [**uuid::Uuid**](uuid::Uuid.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudAuthAgentIdentity.md b/sdks/full/rust-cli/docs/CloudAuthAgentIdentity.md new file mode 100644 index 0000000000..42a4ce7f2b --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudAuthAgentIdentity.md @@ -0,0 +1,11 @@ +# CloudAuthAgentIdentity + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**identity_id** | [**uuid::Uuid**](uuid::Uuid.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudAuthApi.md b/sdks/full/rust-cli/docs/CloudAuthApi.md new file mode 100644 index 0000000000..89a4921113 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudAuthApi.md @@ -0,0 +1,36 @@ +# \CloudAuthApi + +All URIs are relative to *https://api.rivet.gg* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**cloud_auth_inspect**](CloudAuthApi.md#cloud_auth_inspect) | **GET** /cloud/auth/inspect | + + + +## cloud_auth_inspect + +> crate::models::CloudInspectResponse cloud_auth_inspect() + + +Returns information about the current authenticated agent. + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**crate::models::CloudInspectResponse**](CloudInspectResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/sdks/full/rust-cli/docs/CloudBootstrapAccess.md b/sdks/full/rust-cli/docs/CloudBootstrapAccess.md new file mode 100644 index 0000000000..b1f50e3d24 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudBootstrapAccess.md @@ -0,0 +1,10 @@ +# CloudBootstrapAccess + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudBootstrapCaptcha.md b/sdks/full/rust-cli/docs/CloudBootstrapCaptcha.md new file mode 100644 index 0000000000..71166d11f3 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudBootstrapCaptcha.md @@ -0,0 +1,11 @@ +# CloudBootstrapCaptcha + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**turnstile** | Option<[**crate::models::CloudBootstrapCaptchaTurnstile**](CloudBootstrapCaptchaTurnstile.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudBootstrapCaptchaTurnstile.md b/sdks/full/rust-cli/docs/CloudBootstrapCaptchaTurnstile.md new file mode 100644 index 0000000000..bd61ed2479 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudBootstrapCaptchaTurnstile.md @@ -0,0 +1,11 @@ +# CloudBootstrapCaptchaTurnstile + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**site_key** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudBootstrapCluster.md b/sdks/full/rust-cli/docs/CloudBootstrapCluster.md new file mode 100644 index 0000000000..6efadb3c9c --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudBootstrapCluster.md @@ -0,0 +1,10 @@ +# CloudBootstrapCluster + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudBootstrapDomains.md b/sdks/full/rust-cli/docs/CloudBootstrapDomains.md new file mode 100644 index 0000000000..160289d149 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudBootstrapDomains.md @@ -0,0 +1,14 @@ +# CloudBootstrapDomains + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cdn** | **String** | | +**job** | **String** | | +**main** | **String** | | +**opengb** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudBootstrapLoginMethods.md b/sdks/full/rust-cli/docs/CloudBootstrapLoginMethods.md new file mode 100644 index 0000000000..f9fee91da3 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudBootstrapLoginMethods.md @@ -0,0 +1,12 @@ +# CloudBootstrapLoginMethods + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**access_token** | **bool** | | +**email** | **bool** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudBootstrapOrigins.md b/sdks/full/rust-cli/docs/CloudBootstrapOrigins.md new file mode 100644 index 0000000000..b6260e3ca3 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudBootstrapOrigins.md @@ -0,0 +1,11 @@ +# CloudBootstrapOrigins + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**hub** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudBootstrapResponse.md b/sdks/full/rust-cli/docs/CloudBootstrapResponse.md new file mode 100644 index 0000000000..59b6d5d897 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudBootstrapResponse.md @@ -0,0 +1,16 @@ +# CloudBootstrapResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**access** | [**crate::models::CloudBootstrapAccess**](CloudBootstrapAccess.md) | | +**captcha** | [**crate::models::CloudBootstrapCaptcha**](CloudBootstrapCaptcha.md) | | +**cluster** | [**crate::models::CloudBootstrapCluster**](CloudBootstrapCluster.md) | | +**domains** | Option<[**crate::models::CloudBootstrapDomains**](CloudBootstrapDomains.md)> | | [optional] +**login_methods** | [**crate::models::CloudBootstrapLoginMethods**](CloudBootstrapLoginMethods.md) | | +**origins** | [**crate::models::CloudBootstrapOrigins**](CloudBootstrapOrigins.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudBuildSummary.md b/sdks/full/rust-cli/docs/CloudBuildSummary.md new file mode 100644 index 0000000000..f3b76d934d --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudBuildSummary.md @@ -0,0 +1,17 @@ +# CloudBuildSummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**build_id** | [**uuid::Uuid**](uuid::Uuid.md) | | +**complete** | **bool** | Whether or not this build has completely been uploaded. | +**content_length** | **i64** | Unsigned 64 bit integer. | +**create_ts** | **String** | RFC3339 timestamp | +**display_name** | **String** | Represent a resource's readable display name. | +**tags** | **::std::collections::HashMap** | Tags of this build | +**upload_id** | [**uuid::Uuid**](uuid::Uuid.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudCdnAuthType.md b/sdks/full/rust-cli/docs/CloudCdnAuthType.md new file mode 100644 index 0000000000..8bb0f647b7 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudCdnAuthType.md @@ -0,0 +1,10 @@ +# CloudCdnAuthType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudCdnNamespaceAuthUser.md b/sdks/full/rust-cli/docs/CloudCdnNamespaceAuthUser.md new file mode 100644 index 0000000000..4f26f3d1ca --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudCdnNamespaceAuthUser.md @@ -0,0 +1,11 @@ +# CloudCdnNamespaceAuthUser + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**user** | **String** | A user name. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudCdnNamespaceConfig.md b/sdks/full/rust-cli/docs/CloudCdnNamespaceConfig.md new file mode 100644 index 0000000000..f6cd670dcf --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudCdnNamespaceConfig.md @@ -0,0 +1,14 @@ +# CloudCdnNamespaceConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**auth_type** | [**crate::models::CloudCdnAuthType**](CloudCdnAuthType.md) | | +**auth_user_list** | [**Vec**](CloudCdnNamespaceAuthUser.md) | A list of CDN authenticated users for a given namespace. | +**domains** | [**Vec**](CloudCdnNamespaceDomain.md) | A list of CDN domains for a given namespace. | +**enable_domain_public_auth** | **bool** | Whether or not to allow users to connect to the given namespace via domain name. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudCdnNamespaceDomain.md b/sdks/full/rust-cli/docs/CloudCdnNamespaceDomain.md new file mode 100644 index 0000000000..af93fcc7d6 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudCdnNamespaceDomain.md @@ -0,0 +1,15 @@ +# CloudCdnNamespaceDomain + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**create_ts** | **String** | RFC3339 timestamp | +**domain** | **String** | A valid domain name (no protocol). | +**verification_errors** | **Vec** | | +**verification_method** | [**crate::models::CloudCdnNamespaceDomainVerificationMethod**](CloudCdnNamespaceDomainVerificationMethod.md) | | +**verification_status** | [**crate::models::CloudCdnNamespaceDomainVerificationStatus**](CloudCdnNamespaceDomainVerificationStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudCdnNamespaceDomainVerificationMethod.md b/sdks/full/rust-cli/docs/CloudCdnNamespaceDomainVerificationMethod.md new file mode 100644 index 0000000000..028afecc8a --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudCdnNamespaceDomainVerificationMethod.md @@ -0,0 +1,12 @@ +# CloudCdnNamespaceDomainVerificationMethod + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**http** | Option<[**crate::models::CloudCdnNamespaceDomainVerificationMethodHttp**](CloudCdnNamespaceDomainVerificationMethodHttp.md)> | | [optional] +**invalid** | Option<[**serde_json::Value**](.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudCdnNamespaceDomainVerificationMethodHttp.md b/sdks/full/rust-cli/docs/CloudCdnNamespaceDomainVerificationMethodHttp.md new file mode 100644 index 0000000000..5b765d9d41 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudCdnNamespaceDomainVerificationMethodHttp.md @@ -0,0 +1,11 @@ +# CloudCdnNamespaceDomainVerificationMethodHttp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cname_record** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudCdnNamespaceDomainVerificationStatus.md b/sdks/full/rust-cli/docs/CloudCdnNamespaceDomainVerificationStatus.md new file mode 100644 index 0000000000..ec1c576cc9 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudCdnNamespaceDomainVerificationStatus.md @@ -0,0 +1,10 @@ +# CloudCdnNamespaceDomainVerificationStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudCdnSiteSummary.md b/sdks/full/rust-cli/docs/CloudCdnSiteSummary.md new file mode 100644 index 0000000000..8292f21f3f --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudCdnSiteSummary.md @@ -0,0 +1,16 @@ +# CloudCdnSiteSummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**complete** | **bool** | Whether or not this site has completely been uploaded. | +**content_length** | **i64** | Unsigned 64 bit integer. | +**create_ts** | **String** | RFC3339 timestamp | +**display_name** | **String** | Represent a resource's readable display name. | +**site_id** | [**uuid::Uuid**](uuid::Uuid.md) | | +**upload_id** | [**uuid::Uuid**](uuid::Uuid.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudCustomAvatarSummary.md b/sdks/full/rust-cli/docs/CloudCustomAvatarSummary.md new file mode 100644 index 0000000000..ce06bd3020 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudCustomAvatarSummary.md @@ -0,0 +1,16 @@ +# CloudCustomAvatarSummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**complete** | **bool** | Whether or not this custom avatar has completely been uploaded. | +**content_length** | **i64** | Unsigned 64 bit integer. | +**create_ts** | **String** | RFC3339 timestamp | +**display_name** | **String** | Represent a resource's readable display name. | +**upload_id** | [**uuid::Uuid**](uuid::Uuid.md) | | +**url** | Option<**String**> | The URL of this custom avatar image. Only present if upload is complete. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudDevicesCompleteDeviceLinkRequest.md b/sdks/full/rust-cli/docs/CloudDevicesCompleteDeviceLinkRequest.md new file mode 100644 index 0000000000..0586ccf87f --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudDevicesCompleteDeviceLinkRequest.md @@ -0,0 +1,12 @@ +# CloudDevicesCompleteDeviceLinkRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**device_link_token** | **String** | Documentation at https://jwt.io/ | +**game_id** | [**uuid::Uuid**](uuid::Uuid.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudDevicesGetDeviceLinkResponse.md b/sdks/full/rust-cli/docs/CloudDevicesGetDeviceLinkResponse.md new file mode 100644 index 0000000000..ca9e4819a1 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudDevicesGetDeviceLinkResponse.md @@ -0,0 +1,12 @@ +# CloudDevicesGetDeviceLinkResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cloud_token** | Option<**String**> | | [optional] +**watch** | [**crate::models::WatchResponse**](WatchResponse.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudDevicesLinksApi.md b/sdks/full/rust-cli/docs/CloudDevicesLinksApi.md new file mode 100644 index 0000000000..af898a3706 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudDevicesLinksApi.md @@ -0,0 +1,93 @@ +# \CloudDevicesLinksApi + +All URIs are relative to *https://api.rivet.gg* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**cloud_devices_links_complete**](CloudDevicesLinksApi.md#cloud_devices_links_complete) | **POST** /cloud/devices/links/complete | +[**cloud_devices_links_get**](CloudDevicesLinksApi.md#cloud_devices_links_get) | **GET** /cloud/devices/links | +[**cloud_devices_links_prepare**](CloudDevicesLinksApi.md#cloud_devices_links_prepare) | **POST** /cloud/devices/links | + + + +## cloud_devices_links_complete + +> cloud_devices_links_complete(cloud_devices_complete_device_link_request) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**cloud_devices_complete_device_link_request** | [**CloudDevicesCompleteDeviceLinkRequest**](CloudDevicesCompleteDeviceLinkRequest.md) | | [required] | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## cloud_devices_links_get + +> crate::models::CloudDevicesGetDeviceLinkResponse cloud_devices_links_get(device_link_token, watch_index) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**device_link_token** | **String** | | [required] | +**watch_index** | Option<**String**> | | | + +### Return type + +[**crate::models::CloudDevicesGetDeviceLinkResponse**](CloudDevicesGetDeviceLinkResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## cloud_devices_links_prepare + +> crate::models::CloudDevicesPrepareDeviceLinkResponse cloud_devices_links_prepare() + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**crate::models::CloudDevicesPrepareDeviceLinkResponse**](CloudDevicesPrepareDeviceLinkResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/sdks/full/rust-cli/docs/CloudDevicesPrepareDeviceLinkResponse.md b/sdks/full/rust-cli/docs/CloudDevicesPrepareDeviceLinkResponse.md new file mode 100644 index 0000000000..2f088238d0 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudDevicesPrepareDeviceLinkResponse.md @@ -0,0 +1,13 @@ +# CloudDevicesPrepareDeviceLinkResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**device_link_id** | [**uuid::Uuid**](uuid::Uuid.md) | | +**device_link_token** | **String** | | +**device_link_url** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudGameFull.md b/sdks/full/rust-cli/docs/CloudGameFull.md new file mode 100644 index 0000000000..dd4d876bc8 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGameFull.md @@ -0,0 +1,21 @@ +# CloudGameFull + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**available_regions** | [**Vec**](CloudRegionSummary.md) | A list of region summaries. | +**banner_url** | Option<**String**> | The URL of this game's banner image. | [optional] +**create_ts** | **String** | RFC3339 timestamp | +**developer_group_id** | [**uuid::Uuid**](uuid::Uuid.md) | | +**display_name** | **String** | Represent a resource's readable display name. | +**game_id** | [**uuid::Uuid**](uuid::Uuid.md) | | +**logo_url** | Option<**String**> | The URL of this game's logo image. | [optional] +**name_id** | **String** | A human readable short identifier used to references resources. Different than a `rivet.common#Uuid` because this is intended to be human readable. Different than `rivet.common#DisplayName` because this should not include special characters and be short. | +**namespaces** | [**Vec**](CloudNamespaceSummary.md) | A list of namespace summaries. | +**total_player_count** | **i32** | Unsigned 32 bit integer. | +**versions** | [**Vec**](CloudVersionSummary.md) | A list of version summaries. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudGameLobbyExpenses.md b/sdks/full/rust-cli/docs/CloudGameLobbyExpenses.md new file mode 100644 index 0000000000..4bd3ab7576 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGameLobbyExpenses.md @@ -0,0 +1,13 @@ +# CloudGameLobbyExpenses + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**expenses** | [**Vec**](CloudRegionTierExpenses.md) | A list of multiple region tier expenses. | +**game** | [**crate::models::GameHandle**](GameHandle.md) | | +**namespaces** | [**Vec**](CloudNamespaceSummary.md) | A list of namespace summaries. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudGamesApi.md b/sdks/full/rust-cli/docs/CloudGamesApi.md new file mode 100644 index 0000000000..479675ff95 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGamesApi.md @@ -0,0 +1,261 @@ +# \CloudGamesApi + +All URIs are relative to *https://api.rivet.gg* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**cloud_games_create_game**](CloudGamesApi.md#cloud_games_create_game) | **POST** /cloud/games | +[**cloud_games_game_banner_upload_complete**](CloudGamesApi.md#cloud_games_game_banner_upload_complete) | **POST** /cloud/games/{game_id}/banner-upload/{upload_id}/complete | +[**cloud_games_game_banner_upload_prepare**](CloudGamesApi.md#cloud_games_game_banner_upload_prepare) | **POST** /cloud/games/{game_id}/banner-upload/prepare | +[**cloud_games_game_logo_upload_complete**](CloudGamesApi.md#cloud_games_game_logo_upload_complete) | **POST** /cloud/games/{game_id}/logo-upload/{upload_id}/complete | +[**cloud_games_game_logo_upload_prepare**](CloudGamesApi.md#cloud_games_game_logo_upload_prepare) | **POST** /cloud/games/{game_id}/logo-upload/prepare | +[**cloud_games_get_game_by_id**](CloudGamesApi.md#cloud_games_get_game_by_id) | **GET** /cloud/games/{game_id} | +[**cloud_games_get_games**](CloudGamesApi.md#cloud_games_get_games) | **GET** /cloud/games | +[**cloud_games_validate_game**](CloudGamesApi.md#cloud_games_validate_game) | **POST** /cloud/games/validate | + + + +## cloud_games_create_game + +> crate::models::CloudGamesCreateGameResponse cloud_games_create_game(cloud_games_create_game_request) + + +Creates a new game. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**cloud_games_create_game_request** | [**CloudGamesCreateGameRequest**](CloudGamesCreateGameRequest.md) | | [required] | + +### Return type + +[**crate::models::CloudGamesCreateGameResponse**](CloudGamesCreateGameResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## cloud_games_game_banner_upload_complete + +> cloud_games_game_banner_upload_complete(game_id, upload_id) + + +Completes an game banner image upload. Must be called after the file upload process completes. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**game_id** | **uuid::Uuid** | | [required] | +**upload_id** | **uuid::Uuid** | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## cloud_games_game_banner_upload_prepare + +> crate::models::CloudGamesGameBannerUploadPrepareResponse cloud_games_game_banner_upload_prepare(game_id, cloud_games_game_banner_upload_prepare_request) + + +Prepares a game banner image upload. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**game_id** | **uuid::Uuid** | | [required] | +**cloud_games_game_banner_upload_prepare_request** | [**CloudGamesGameBannerUploadPrepareRequest**](CloudGamesGameBannerUploadPrepareRequest.md) | | [required] | + +### Return type + +[**crate::models::CloudGamesGameBannerUploadPrepareResponse**](CloudGamesGameBannerUploadPrepareResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## cloud_games_game_logo_upload_complete + +> cloud_games_game_logo_upload_complete(game_id, upload_id) + + +Completes a game logo image upload. Must be called after the file upload process completes. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**game_id** | **uuid::Uuid** | | [required] | +**upload_id** | **uuid::Uuid** | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## cloud_games_game_logo_upload_prepare + +> crate::models::CloudGamesGameLogoUploadPrepareResponse cloud_games_game_logo_upload_prepare(game_id, cloud_games_game_logo_upload_prepare_request) + + +Prepares a game logo image upload. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**game_id** | **uuid::Uuid** | | [required] | +**cloud_games_game_logo_upload_prepare_request** | [**CloudGamesGameLogoUploadPrepareRequest**](CloudGamesGameLogoUploadPrepareRequest.md) | | [required] | + +### Return type + +[**crate::models::CloudGamesGameLogoUploadPrepareResponse**](CloudGamesGameLogoUploadPrepareResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## cloud_games_get_game_by_id + +> crate::models::CloudGamesGetGameByIdResponse cloud_games_get_game_by_id(game_id, watch_index) + + +Returns a game by its game id. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**game_id** | **uuid::Uuid** | | [required] | +**watch_index** | Option<**String**> | A query parameter denoting the requests watch index. | | + +### Return type + +[**crate::models::CloudGamesGetGameByIdResponse**](CloudGamesGetGameByIdResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## cloud_games_get_games + +> crate::models::CloudGamesGetGamesResponse cloud_games_get_games(watch_index) + + +Returns a list of games in which the current identity is a group member of its development team. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**watch_index** | Option<**String**> | A query parameter denoting the requests watch index. | | + +### Return type + +[**crate::models::CloudGamesGetGamesResponse**](CloudGamesGetGamesResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## cloud_games_validate_game + +> crate::models::CloudGamesValidateGameResponse cloud_games_validate_game(cloud_games_validate_game_request) + + +Validates information used to create a new game. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**cloud_games_validate_game_request** | [**CloudGamesValidateGameRequest**](CloudGamesValidateGameRequest.md) | | [required] | + +### Return type + +[**crate::models::CloudGamesValidateGameResponse**](CloudGamesValidateGameResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/sdks/full/rust-cli/docs/CloudGamesAvatarsApi.md b/sdks/full/rust-cli/docs/CloudGamesAvatarsApi.md new file mode 100644 index 0000000000..1d24f668dc --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGamesAvatarsApi.md @@ -0,0 +1,103 @@ +# \CloudGamesAvatarsApi + +All URIs are relative to *https://api.rivet.gg* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**cloud_games_avatars_complete_custom_avatar_upload**](CloudGamesAvatarsApi.md#cloud_games_avatars_complete_custom_avatar_upload) | **POST** /cloud/games/{game_id}/avatar-upload/{upload_id}/complete | +[**cloud_games_avatars_list_game_custom_avatars**](CloudGamesAvatarsApi.md#cloud_games_avatars_list_game_custom_avatars) | **GET** /cloud/games/{game_id}/avatars | +[**cloud_games_avatars_prepare_custom_avatar_upload**](CloudGamesAvatarsApi.md#cloud_games_avatars_prepare_custom_avatar_upload) | **POST** /cloud/games/{game_id}/prepare | + + + +## cloud_games_avatars_complete_custom_avatar_upload + +> cloud_games_avatars_complete_custom_avatar_upload(game_id, upload_id) + + +Completes a custom avatar image upload. Must be called after the file upload process completes. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**game_id** | **uuid::Uuid** | | [required] | +**upload_id** | **uuid::Uuid** | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## cloud_games_avatars_list_game_custom_avatars + +> crate::models::CloudGamesListGameCustomAvatarsResponse cloud_games_avatars_list_game_custom_avatars(game_id) + + +Lists custom avatars for the given game. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**game_id** | **uuid::Uuid** | | [required] | + +### Return type + +[**crate::models::CloudGamesListGameCustomAvatarsResponse**](CloudGamesListGameCustomAvatarsResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## cloud_games_avatars_prepare_custom_avatar_upload + +> crate::models::CloudGamesPrepareCustomAvatarUploadResponse cloud_games_avatars_prepare_custom_avatar_upload(game_id, cloud_games_prepare_custom_avatar_upload_request) + + +Prepares a custom avatar image upload. Complete upload with `rivet.api.cloud#CompleteCustomAvatarUpload`. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**game_id** | **uuid::Uuid** | | [required] | +**cloud_games_prepare_custom_avatar_upload_request** | [**CloudGamesPrepareCustomAvatarUploadRequest**](CloudGamesPrepareCustomAvatarUploadRequest.md) | | [required] | + +### Return type + +[**crate::models::CloudGamesPrepareCustomAvatarUploadResponse**](CloudGamesPrepareCustomAvatarUploadResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/sdks/full/rust-cli/docs/CloudGamesBuildCompression.md b/sdks/full/rust-cli/docs/CloudGamesBuildCompression.md new file mode 100644 index 0000000000..fb25e9a05e --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGamesBuildCompression.md @@ -0,0 +1,10 @@ +# CloudGamesBuildCompression + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudGamesBuildKind.md b/sdks/full/rust-cli/docs/CloudGamesBuildKind.md new file mode 100644 index 0000000000..0bbba38deb --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGamesBuildKind.md @@ -0,0 +1,10 @@ +# CloudGamesBuildKind + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudGamesBuildsApi.md b/sdks/full/rust-cli/docs/CloudGamesBuildsApi.md new file mode 100644 index 0000000000..85885a62ab --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGamesBuildsApi.md @@ -0,0 +1,71 @@ +# \CloudGamesBuildsApi + +All URIs are relative to *https://api.rivet.gg* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**cloud_games_builds_create_game_build**](CloudGamesBuildsApi.md#cloud_games_builds_create_game_build) | **POST** /cloud/games/{game_id}/builds | +[**cloud_games_builds_list_game_builds**](CloudGamesBuildsApi.md#cloud_games_builds_list_game_builds) | **GET** /cloud/games/{game_id}/builds | + + + +## cloud_games_builds_create_game_build + +> crate::models::CloudGamesCreateGameBuildResponse cloud_games_builds_create_game_build(game_id, cloud_games_create_game_build_request) + + +Creates a new game build for the given game. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**game_id** | **uuid::Uuid** | | [required] | +**cloud_games_create_game_build_request** | [**CloudGamesCreateGameBuildRequest**](CloudGamesCreateGameBuildRequest.md) | | [required] | + +### Return type + +[**crate::models::CloudGamesCreateGameBuildResponse**](CloudGamesCreateGameBuildResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## cloud_games_builds_list_game_builds + +> crate::models::CloudGamesListGameBuildsResponse cloud_games_builds_list_game_builds(game_id) + + +Lists game builds for the given game. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**game_id** | **uuid::Uuid** | | [required] | + +### Return type + +[**crate::models::CloudGamesListGameBuildsResponse**](CloudGamesListGameBuildsResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/sdks/full/rust-cli/docs/CloudGamesCdnApi.md b/sdks/full/rust-cli/docs/CloudGamesCdnApi.md new file mode 100644 index 0000000000..2896c54689 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGamesCdnApi.md @@ -0,0 +1,71 @@ +# \CloudGamesCdnApi + +All URIs are relative to *https://api.rivet.gg* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**cloud_games_cdn_create_game_cdn_site**](CloudGamesCdnApi.md#cloud_games_cdn_create_game_cdn_site) | **POST** /cloud/games/{game_id}/cdn/sites | +[**cloud_games_cdn_list_game_cdn_sites**](CloudGamesCdnApi.md#cloud_games_cdn_list_game_cdn_sites) | **GET** /cloud/games/{game_id}/cdn/sites | + + + +## cloud_games_cdn_create_game_cdn_site + +> crate::models::CloudGamesCreateGameCdnSiteResponse cloud_games_cdn_create_game_cdn_site(game_id, cloud_games_create_game_cdn_site_request) + + +Creates a new CDN site for the given game. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**game_id** | **uuid::Uuid** | | [required] | +**cloud_games_create_game_cdn_site_request** | [**CloudGamesCreateGameCdnSiteRequest**](CloudGamesCreateGameCdnSiteRequest.md) | | [required] | + +### Return type + +[**crate::models::CloudGamesCreateGameCdnSiteResponse**](CloudGamesCreateGameCdnSiteResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## cloud_games_cdn_list_game_cdn_sites + +> crate::models::CloudGamesListGameCdnSitesResponse cloud_games_cdn_list_game_cdn_sites(game_id) + + +Lists CDN sites for a game. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**game_id** | **uuid::Uuid** | | [required] | + +### Return type + +[**crate::models::CloudGamesListGameCdnSitesResponse**](CloudGamesListGameCdnSitesResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/sdks/full/rust-cli/docs/CloudGamesCreateCloudTokenResponse.md b/sdks/full/rust-cli/docs/CloudGamesCreateCloudTokenResponse.md new file mode 100644 index 0000000000..0dd9b03275 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGamesCreateCloudTokenResponse.md @@ -0,0 +1,11 @@ +# CloudGamesCreateCloudTokenResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**token** | **String** | A JSON Web Token. Slightly modified to include a description prefix and use Protobufs of JSON. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudGamesCreateGameBuildRequest.md b/sdks/full/rust-cli/docs/CloudGamesCreateGameBuildRequest.md new file mode 100644 index 0000000000..3861ff9f5d --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGamesCreateGameBuildRequest.md @@ -0,0 +1,16 @@ +# CloudGamesCreateGameBuildRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**compression** | Option<[**crate::models::CloudGamesBuildCompression**](CloudGamesBuildCompression.md)> | | [optional] +**display_name** | **String** | Represent a resource's readable display name. | +**image_file** | [**crate::models::UploadPrepareFile**](UploadPrepareFile.md) | | +**image_tag** | **String** | A tag given to the game build. | +**kind** | Option<[**crate::models::CloudGamesBuildKind**](CloudGamesBuildKind.md)> | | [optional] +**multipart_upload** | Option<**bool**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudGamesCreateGameBuildResponse.md b/sdks/full/rust-cli/docs/CloudGamesCreateGameBuildResponse.md new file mode 100644 index 0000000000..fb3c4a586a --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGamesCreateGameBuildResponse.md @@ -0,0 +1,14 @@ +# CloudGamesCreateGameBuildResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**build_id** | [**uuid::Uuid**](uuid::Uuid.md) | | +**image_presigned_request** | Option<[**crate::models::UploadPresignedRequest**](UploadPresignedRequest.md)> | | [optional] +**image_presigned_requests** | Option<[**Vec**](UploadPresignedRequest.md)> | | [optional] +**upload_id** | [**uuid::Uuid**](uuid::Uuid.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudGamesCreateGameCdnSiteRequest.md b/sdks/full/rust-cli/docs/CloudGamesCreateGameCdnSiteRequest.md new file mode 100644 index 0000000000..80690765c7 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGamesCreateGameCdnSiteRequest.md @@ -0,0 +1,12 @@ +# CloudGamesCreateGameCdnSiteRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**display_name** | **String** | Represent a resource's readable display name. | +**files** | [**Vec**](UploadPrepareFile.md) | A list of files preparing to upload. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudGamesCreateGameCdnSiteResponse.md b/sdks/full/rust-cli/docs/CloudGamesCreateGameCdnSiteResponse.md new file mode 100644 index 0000000000..b15588cb5e --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGamesCreateGameCdnSiteResponse.md @@ -0,0 +1,13 @@ +# CloudGamesCreateGameCdnSiteResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**presigned_requests** | [**Vec**](UploadPresignedRequest.md) | | +**site_id** | [**uuid::Uuid**](uuid::Uuid.md) | | +**upload_id** | [**uuid::Uuid**](uuid::Uuid.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudGamesCreateGameRequest.md b/sdks/full/rust-cli/docs/CloudGamesCreateGameRequest.md new file mode 100644 index 0000000000..7fda60818d --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGamesCreateGameRequest.md @@ -0,0 +1,13 @@ +# CloudGamesCreateGameRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**developer_group_id** | [**uuid::Uuid**](uuid::Uuid.md) | | +**display_name** | **String** | Represent a resource's readable display name. | +**name_id** | Option<**String**> | A human readable short identifier used to references resources. Different than a `uuid` because this is intended to be human readable. Different than `DisplayName` because this should not include special characters and be short. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudGamesCreateGameResponse.md b/sdks/full/rust-cli/docs/CloudGamesCreateGameResponse.md new file mode 100644 index 0000000000..9485a96f4d --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGamesCreateGameResponse.md @@ -0,0 +1,11 @@ +# CloudGamesCreateGameResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**game_id** | [**uuid::Uuid**](uuid::Uuid.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudGamesCreateGameVersionRequest.md b/sdks/full/rust-cli/docs/CloudGamesCreateGameVersionRequest.md new file mode 100644 index 0000000000..e383f235a1 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGamesCreateGameVersionRequest.md @@ -0,0 +1,12 @@ +# CloudGamesCreateGameVersionRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**config** | [**crate::models::CloudVersionConfig**](CloudVersionConfig.md) | | +**display_name** | **String** | Represent a resource's readable display name. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudGamesCreateGameVersionResponse.md b/sdks/full/rust-cli/docs/CloudGamesCreateGameVersionResponse.md new file mode 100644 index 0000000000..bb7b9a270f --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGamesCreateGameVersionResponse.md @@ -0,0 +1,11 @@ +# CloudGamesCreateGameVersionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**version_id** | [**uuid::Uuid**](uuid::Uuid.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudGamesCreateServiceTokenResponse.md b/sdks/full/rust-cli/docs/CloudGamesCreateServiceTokenResponse.md new file mode 100644 index 0000000000..c8d021b0f2 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGamesCreateServiceTokenResponse.md @@ -0,0 +1,11 @@ +# CloudGamesCreateServiceTokenResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**token** | **String** | A JSON Web Token. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudGamesDeleteMatchmakerLobbyResponse.md b/sdks/full/rust-cli/docs/CloudGamesDeleteMatchmakerLobbyResponse.md new file mode 100644 index 0000000000..0fb423ca74 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGamesDeleteMatchmakerLobbyResponse.md @@ -0,0 +1,11 @@ +# CloudGamesDeleteMatchmakerLobbyResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**did_remove** | **bool** | Whether or not the lobby was successfully stopped. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudGamesExportLobbyLogsRequest.md b/sdks/full/rust-cli/docs/CloudGamesExportLobbyLogsRequest.md new file mode 100644 index 0000000000..d8f0d85816 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGamesExportLobbyLogsRequest.md @@ -0,0 +1,11 @@ +# CloudGamesExportLobbyLogsRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**stream** | [**crate::models::CloudGamesLogStream**](CloudGamesLogStream.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudGamesExportLobbyLogsResponse.md b/sdks/full/rust-cli/docs/CloudGamesExportLobbyLogsResponse.md new file mode 100644 index 0000000000..dbae3b5a70 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGamesExportLobbyLogsResponse.md @@ -0,0 +1,11 @@ +# CloudGamesExportLobbyLogsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**url** | **String** | The URL to a CSV file for the given lobby history. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudGamesExportMatchmakerLobbyHistoryRequest.md b/sdks/full/rust-cli/docs/CloudGamesExportMatchmakerLobbyHistoryRequest.md new file mode 100644 index 0000000000..5014fa483c --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGamesExportMatchmakerLobbyHistoryRequest.md @@ -0,0 +1,12 @@ +# CloudGamesExportMatchmakerLobbyHistoryRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**query_end** | **i64** | Unsigned 64 bit integer. | +**query_start** | **i64** | Unsigned 64 bit integer. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudGamesExportMatchmakerLobbyHistoryResponse.md b/sdks/full/rust-cli/docs/CloudGamesExportMatchmakerLobbyHistoryResponse.md new file mode 100644 index 0000000000..c1784b66a8 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGamesExportMatchmakerLobbyHistoryResponse.md @@ -0,0 +1,11 @@ +# CloudGamesExportMatchmakerLobbyHistoryResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**url** | **String** | The URL to a CSV file for the given lobby history. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudGamesGameBannerUploadPrepareRequest.md b/sdks/full/rust-cli/docs/CloudGamesGameBannerUploadPrepareRequest.md new file mode 100644 index 0000000000..9266135dd5 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGamesGameBannerUploadPrepareRequest.md @@ -0,0 +1,13 @@ +# CloudGamesGameBannerUploadPrepareRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**content_length** | **i64** | Unsigned 64 bit integer. | +**mime** | Option<**String**> | The MIME type of the game banner. | [optional] +**path** | **String** | The path/filename of the game banner. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudGamesGameBannerUploadPrepareResponse.md b/sdks/full/rust-cli/docs/CloudGamesGameBannerUploadPrepareResponse.md new file mode 100644 index 0000000000..d716b1bb0c --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGamesGameBannerUploadPrepareResponse.md @@ -0,0 +1,12 @@ +# CloudGamesGameBannerUploadPrepareResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**presigned_request** | [**crate::models::UploadPresignedRequest**](UploadPresignedRequest.md) | | +**upload_id** | [**uuid::Uuid**](uuid::Uuid.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudGamesGameLogoUploadPrepareRequest.md b/sdks/full/rust-cli/docs/CloudGamesGameLogoUploadPrepareRequest.md new file mode 100644 index 0000000000..459e05574e --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGamesGameLogoUploadPrepareRequest.md @@ -0,0 +1,13 @@ +# CloudGamesGameLogoUploadPrepareRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**content_length** | **i64** | Unsigned 64 bit integer. | +**mime** | Option<**String**> | The MIME type of the game logo. | [optional] +**path** | **String** | The path/filename of the game logo. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudGamesGameLogoUploadPrepareResponse.md b/sdks/full/rust-cli/docs/CloudGamesGameLogoUploadPrepareResponse.md new file mode 100644 index 0000000000..592a33332c --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGamesGameLogoUploadPrepareResponse.md @@ -0,0 +1,12 @@ +# CloudGamesGameLogoUploadPrepareResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**presigned_request** | [**crate::models::UploadPresignedRequest**](UploadPresignedRequest.md) | | +**upload_id** | [**uuid::Uuid**](uuid::Uuid.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudGamesGetGameByIdResponse.md b/sdks/full/rust-cli/docs/CloudGamesGetGameByIdResponse.md new file mode 100644 index 0000000000..f6ec8834cb --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGamesGetGameByIdResponse.md @@ -0,0 +1,12 @@ +# CloudGamesGetGameByIdResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**game** | [**crate::models::CloudGameFull**](CloudGameFull.md) | | +**watch** | [**crate::models::WatchResponse**](WatchResponse.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudGamesGetGameVersionByIdResponse.md b/sdks/full/rust-cli/docs/CloudGamesGetGameVersionByIdResponse.md new file mode 100644 index 0000000000..269714c904 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGamesGetGameVersionByIdResponse.md @@ -0,0 +1,11 @@ +# CloudGamesGetGameVersionByIdResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**version** | [**crate::models::CloudVersionFull**](CloudVersionFull.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudGamesGetGamesResponse.md b/sdks/full/rust-cli/docs/CloudGamesGetGamesResponse.md new file mode 100644 index 0000000000..45faa83f49 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGamesGetGamesResponse.md @@ -0,0 +1,13 @@ +# CloudGamesGetGamesResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**games** | [**Vec**](GameSummary.md) | A list of game summaries. | +**groups** | [**Vec**](GroupSummary.md) | A list of group summaries. | +**watch** | [**crate::models::WatchResponse**](WatchResponse.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudGamesGetLobbyLogsResponse.md b/sdks/full/rust-cli/docs/CloudGamesGetLobbyLogsResponse.md new file mode 100644 index 0000000000..c8e1e250ec --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGamesGetLobbyLogsResponse.md @@ -0,0 +1,13 @@ +# CloudGamesGetLobbyLogsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**lines** | **Vec** | Sorted old to new. | +**timestamps** | **Vec** | Sorted old to new. | +**watch** | [**crate::models::WatchResponse**](WatchResponse.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudGamesListGameBuildsResponse.md b/sdks/full/rust-cli/docs/CloudGamesListGameBuildsResponse.md new file mode 100644 index 0000000000..14bf4e7708 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGamesListGameBuildsResponse.md @@ -0,0 +1,11 @@ +# CloudGamesListGameBuildsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**builds** | [**Vec**](CloudBuildSummary.md) | A list of build summaries. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudGamesListGameCdnSitesResponse.md b/sdks/full/rust-cli/docs/CloudGamesListGameCdnSitesResponse.md new file mode 100644 index 0000000000..5394c325b3 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGamesListGameCdnSitesResponse.md @@ -0,0 +1,11 @@ +# CloudGamesListGameCdnSitesResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sites** | [**Vec**](CloudCdnSiteSummary.md) | A list of CDN site summaries. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudGamesListGameCustomAvatarsResponse.md b/sdks/full/rust-cli/docs/CloudGamesListGameCustomAvatarsResponse.md new file mode 100644 index 0000000000..b2ade0eacf --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGamesListGameCustomAvatarsResponse.md @@ -0,0 +1,11 @@ +# CloudGamesListGameCustomAvatarsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**custom_avatars** | [**Vec**](CloudCustomAvatarSummary.md) | A list of custom avatar summaries. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudGamesLogStream.md b/sdks/full/rust-cli/docs/CloudGamesLogStream.md new file mode 100644 index 0000000000..12bb8d0bfb --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGamesLogStream.md @@ -0,0 +1,10 @@ +# CloudGamesLogStream + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudGamesMatchmakerApi.md b/sdks/full/rust-cli/docs/CloudGamesMatchmakerApi.md new file mode 100644 index 0000000000..570be45bce --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGamesMatchmakerApi.md @@ -0,0 +1,139 @@ +# \CloudGamesMatchmakerApi + +All URIs are relative to *https://api.rivet.gg* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**cloud_games_matchmaker_delete_matchmaker_lobby**](CloudGamesMatchmakerApi.md#cloud_games_matchmaker_delete_matchmaker_lobby) | **DELETE** /cloud/games/{game_id}/matchmaker/lobbies/{lobby_id} | +[**cloud_games_matchmaker_export_lobby_logs**](CloudGamesMatchmakerApi.md#cloud_games_matchmaker_export_lobby_logs) | **POST** /cloud/games/{game_id}/matchmaker/lobbies/{lobby_id}/logs/export | +[**cloud_games_matchmaker_export_matchmaker_lobby_history**](CloudGamesMatchmakerApi.md#cloud_games_matchmaker_export_matchmaker_lobby_history) | **POST** /cloud/games/{game_id}/matchmaker/lobbies/export-history | +[**cloud_games_matchmaker_get_lobby_logs**](CloudGamesMatchmakerApi.md#cloud_games_matchmaker_get_lobby_logs) | **GET** /cloud/games/{game_id}/matchmaker/lobbies/{lobby_id}/logs | + + + +## cloud_games_matchmaker_delete_matchmaker_lobby + +> crate::models::CloudGamesDeleteMatchmakerLobbyResponse cloud_games_matchmaker_delete_matchmaker_lobby(game_id, lobby_id) + + +Deletes a matchmaker lobby, stopping it immediately. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**game_id** | **uuid::Uuid** | | [required] | +**lobby_id** | **uuid::Uuid** | | [required] | + +### Return type + +[**crate::models::CloudGamesDeleteMatchmakerLobbyResponse**](CloudGamesDeleteMatchmakerLobbyResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## cloud_games_matchmaker_export_lobby_logs + +> crate::models::CloudGamesExportLobbyLogsResponse cloud_games_matchmaker_export_lobby_logs(game_id, lobby_id, cloud_games_export_lobby_logs_request) + + +Generates a download URL for logs. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**game_id** | **uuid::Uuid** | | [required] | +**lobby_id** | **uuid::Uuid** | | [required] | +**cloud_games_export_lobby_logs_request** | [**CloudGamesExportLobbyLogsRequest**](CloudGamesExportLobbyLogsRequest.md) | | [required] | + +### Return type + +[**crate::models::CloudGamesExportLobbyLogsResponse**](CloudGamesExportLobbyLogsResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## cloud_games_matchmaker_export_matchmaker_lobby_history + +> crate::models::CloudGamesExportMatchmakerLobbyHistoryResponse cloud_games_matchmaker_export_matchmaker_lobby_history(game_id, cloud_games_export_matchmaker_lobby_history_request) + + +Exports lobby history over a given query time span. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**game_id** | **uuid::Uuid** | | [required] | +**cloud_games_export_matchmaker_lobby_history_request** | [**CloudGamesExportMatchmakerLobbyHistoryRequest**](CloudGamesExportMatchmakerLobbyHistoryRequest.md) | | [required] | + +### Return type + +[**crate::models::CloudGamesExportMatchmakerLobbyHistoryResponse**](CloudGamesExportMatchmakerLobbyHistoryResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## cloud_games_matchmaker_get_lobby_logs + +> crate::models::CloudGamesGetLobbyLogsResponse cloud_games_matchmaker_get_lobby_logs(game_id, lobby_id, stream, watch_index) + + +Returns the logs for a given lobby. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**game_id** | **uuid::Uuid** | | [required] | +**lobby_id** | **uuid::Uuid** | | [required] | +**stream** | [**CloudGamesLogStream**](.md) | | [required] | +**watch_index** | Option<**String**> | A query parameter denoting the requests watch index. | | + +### Return type + +[**crate::models::CloudGamesGetLobbyLogsResponse**](CloudGamesGetLobbyLogsResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/sdks/full/rust-cli/docs/CloudGamesNamespacesAddNamespaceDomainRequest.md b/sdks/full/rust-cli/docs/CloudGamesNamespacesAddNamespaceDomainRequest.md new file mode 100644 index 0000000000..9ca30a3a9b --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGamesNamespacesAddNamespaceDomainRequest.md @@ -0,0 +1,11 @@ +# CloudGamesNamespacesAddNamespaceDomainRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**domain** | **String** | A valid domain name (no protocol). | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudGamesNamespacesAnalyticsApi.md b/sdks/full/rust-cli/docs/CloudGamesNamespacesAnalyticsApi.md new file mode 100644 index 0000000000..ca26b7b810 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGamesNamespacesAnalyticsApi.md @@ -0,0 +1,40 @@ +# \CloudGamesNamespacesAnalyticsApi + +All URIs are relative to *https://api.rivet.gg* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**cloud_games_namespaces_analytics_get_analytics_matchmaker_live**](CloudGamesNamespacesAnalyticsApi.md#cloud_games_namespaces_analytics_get_analytics_matchmaker_live) | **GET** /cloud/games/{game_id}/namespaces/{namespace_id}/analytics/matchmaker/live | + + + +## cloud_games_namespaces_analytics_get_analytics_matchmaker_live + +> crate::models::CloudGamesNamespacesGetAnalyticsMatchmakerLiveResponse cloud_games_namespaces_analytics_get_analytics_matchmaker_live(game_id, namespace_id) + + +Returns live information about all active lobbies for a given namespace. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**game_id** | **uuid::Uuid** | | [required] | +**namespace_id** | **uuid::Uuid** | | [required] | + +### Return type + +[**crate::models::CloudGamesNamespacesGetAnalyticsMatchmakerLiveResponse**](CloudGamesNamespacesGetAnalyticsMatchmakerLiveResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/sdks/full/rust-cli/docs/CloudGamesNamespacesApi.md b/sdks/full/rust-cli/docs/CloudGamesNamespacesApi.md new file mode 100644 index 0000000000..19b6bfabbc --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGamesNamespacesApi.md @@ -0,0 +1,533 @@ +# \CloudGamesNamespacesApi + +All URIs are relative to *https://api.rivet.gg* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**cloud_games_namespaces_add_namespace_domain**](CloudGamesNamespacesApi.md#cloud_games_namespaces_add_namespace_domain) | **POST** /cloud/games/{game_id}/namespaces/{namespace_id}/domains | +[**cloud_games_namespaces_create_game_namespace**](CloudGamesNamespacesApi.md#cloud_games_namespaces_create_game_namespace) | **POST** /cloud/games/{game_id}/namespaces | +[**cloud_games_namespaces_create_game_namespace_token_development**](CloudGamesNamespacesApi.md#cloud_games_namespaces_create_game_namespace_token_development) | **POST** /cloud/games/{game_id}/namespaces/{namespace_id}/tokens/development | +[**cloud_games_namespaces_create_game_namespace_token_public**](CloudGamesNamespacesApi.md#cloud_games_namespaces_create_game_namespace_token_public) | **POST** /cloud/games/{game_id}/namespaces/{namespace_id}/tokens/public | +[**cloud_games_namespaces_get_game_namespace_by_id**](CloudGamesNamespacesApi.md#cloud_games_namespaces_get_game_namespace_by_id) | **GET** /cloud/games/{game_id}/namespaces/{namespace_id} | +[**cloud_games_namespaces_get_game_namespace_version_history_list**](CloudGamesNamespacesApi.md#cloud_games_namespaces_get_game_namespace_version_history_list) | **GET** /cloud/games/{game_id}/namespaces/{namespace_id}/version-history | +[**cloud_games_namespaces_remove_namespace_cdn_auth_user**](CloudGamesNamespacesApi.md#cloud_games_namespaces_remove_namespace_cdn_auth_user) | **DELETE** /cloud/games/{game_id}/namespaces/{namespace_id}/auth-user/{user} | +[**cloud_games_namespaces_remove_namespace_domain**](CloudGamesNamespacesApi.md#cloud_games_namespaces_remove_namespace_domain) | **DELETE** /cloud/games/{game_id}/namespaces/{namespace_id}/domains/{domain} | +[**cloud_games_namespaces_set_namespace_cdn_auth_type**](CloudGamesNamespacesApi.md#cloud_games_namespaces_set_namespace_cdn_auth_type) | **PUT** /cloud/games/{game_id}/namespaces/{namespace_id}/cdn-auth | +[**cloud_games_namespaces_toggle_namespace_domain_public_auth**](CloudGamesNamespacesApi.md#cloud_games_namespaces_toggle_namespace_domain_public_auth) | **PUT** /cloud/games/{game_id}/namespaces/{namespace_id}/domain-public-auth | +[**cloud_games_namespaces_update_game_namespace_matchmaker_config**](CloudGamesNamespacesApi.md#cloud_games_namespaces_update_game_namespace_matchmaker_config) | **POST** /cloud/games/{game_id}/namespaces/{namespace_id}/mm-config | +[**cloud_games_namespaces_update_game_namespace_version**](CloudGamesNamespacesApi.md#cloud_games_namespaces_update_game_namespace_version) | **PUT** /cloud/games/{game_id}/namespaces/{namespace_id}/version | +[**cloud_games_namespaces_update_namespace_cdn_auth_user**](CloudGamesNamespacesApi.md#cloud_games_namespaces_update_namespace_cdn_auth_user) | **POST** /cloud/games/{game_id}/namespaces/{namespace_id}/auth-user | +[**cloud_games_namespaces_validate_game_namespace**](CloudGamesNamespacesApi.md#cloud_games_namespaces_validate_game_namespace) | **POST** /cloud/games/{game_id}/namespaces/validate | +[**cloud_games_namespaces_validate_game_namespace_matchmaker_config**](CloudGamesNamespacesApi.md#cloud_games_namespaces_validate_game_namespace_matchmaker_config) | **POST** /cloud/games/{game_id}/namespaces/{namespace_id}/mm-config/validate | +[**cloud_games_namespaces_validate_game_namespace_token_development**](CloudGamesNamespacesApi.md#cloud_games_namespaces_validate_game_namespace_token_development) | **POST** /cloud/games/{game_id}/namespaces/{namespace_id}/tokens/development/validate | + + + +## cloud_games_namespaces_add_namespace_domain + +> cloud_games_namespaces_add_namespace_domain(game_id, namespace_id, cloud_games_namespaces_add_namespace_domain_request) + + +Adds a domain to the given game namespace. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**game_id** | **uuid::Uuid** | | [required] | +**namespace_id** | **uuid::Uuid** | | [required] | +**cloud_games_namespaces_add_namespace_domain_request** | [**CloudGamesNamespacesAddNamespaceDomainRequest**](CloudGamesNamespacesAddNamespaceDomainRequest.md) | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## cloud_games_namespaces_create_game_namespace + +> crate::models::CloudGamesNamespacesCreateGameNamespaceResponse cloud_games_namespaces_create_game_namespace(game_id, cloud_games_namespaces_create_game_namespace_request) + + +Creates a new namespace for the given game. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**game_id** | **uuid::Uuid** | | [required] | +**cloud_games_namespaces_create_game_namespace_request** | [**CloudGamesNamespacesCreateGameNamespaceRequest**](CloudGamesNamespacesCreateGameNamespaceRequest.md) | | [required] | + +### Return type + +[**crate::models::CloudGamesNamespacesCreateGameNamespaceResponse**](CloudGamesNamespacesCreateGameNamespaceResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## cloud_games_namespaces_create_game_namespace_token_development + +> crate::models::CloudGamesNamespacesCreateGameNamespaceTokenDevelopmentResponse cloud_games_namespaces_create_game_namespace_token_development(game_id, namespace_id, cloud_games_namespaces_create_game_namespace_token_development_request) + + +Creates a development token for the given namespace. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**game_id** | **uuid::Uuid** | | [required] | +**namespace_id** | **uuid::Uuid** | | [required] | +**cloud_games_namespaces_create_game_namespace_token_development_request** | [**CloudGamesNamespacesCreateGameNamespaceTokenDevelopmentRequest**](CloudGamesNamespacesCreateGameNamespaceTokenDevelopmentRequest.md) | | [required] | + +### Return type + +[**crate::models::CloudGamesNamespacesCreateGameNamespaceTokenDevelopmentResponse**](CloudGamesNamespacesCreateGameNamespaceTokenDevelopmentResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## cloud_games_namespaces_create_game_namespace_token_public + +> crate::models::CloudGamesNamespacesCreateGameNamespaceTokenPublicResponse cloud_games_namespaces_create_game_namespace_token_public(game_id, namespace_id) + + +Creates a public token for the given namespace. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**game_id** | **uuid::Uuid** | | [required] | +**namespace_id** | **uuid::Uuid** | | [required] | + +### Return type + +[**crate::models::CloudGamesNamespacesCreateGameNamespaceTokenPublicResponse**](CloudGamesNamespacesCreateGameNamespaceTokenPublicResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## cloud_games_namespaces_get_game_namespace_by_id + +> crate::models::CloudGamesNamespacesGetGameNamespaceByIdResponse cloud_games_namespaces_get_game_namespace_by_id(game_id, namespace_id) + + +Gets a game namespace by namespace ID. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**game_id** | **uuid::Uuid** | | [required] | +**namespace_id** | **uuid::Uuid** | | [required] | + +### Return type + +[**crate::models::CloudGamesNamespacesGetGameNamespaceByIdResponse**](CloudGamesNamespacesGetGameNamespaceByIdResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## cloud_games_namespaces_get_game_namespace_version_history_list + +> crate::models::CloudGamesNamespacesGetGameNamespaceVersionHistoryResponse cloud_games_namespaces_get_game_namespace_version_history_list(game_id, namespace_id, anchor, limit) + + +Gets the version history for a given namespace. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**game_id** | **String** | A universally unique identifier. | [required] | +**namespace_id** | **String** | A universally unique identifier. | [required] | +**anchor** | Option<**String**> | How many items to offset the search by. | | +**limit** | Option<**i32**> | Amount of items to return. Must be between 1 and 32 inclusive. | | + +### Return type + +[**crate::models::CloudGamesNamespacesGetGameNamespaceVersionHistoryResponse**](CloudGamesNamespacesGetGameNamespaceVersionHistoryResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## cloud_games_namespaces_remove_namespace_cdn_auth_user + +> cloud_games_namespaces_remove_namespace_cdn_auth_user(game_id, namespace_id, user) + + +Removes an authenticated user from the given game namespace. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**game_id** | **uuid::Uuid** | | [required] | +**namespace_id** | **uuid::Uuid** | | [required] | +**user** | **String** | A user name. | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## cloud_games_namespaces_remove_namespace_domain + +> cloud_games_namespaces_remove_namespace_domain(game_id, namespace_id, domain) + + +Removes a domain from the given game namespace. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**game_id** | **uuid::Uuid** | | [required] | +**namespace_id** | **uuid::Uuid** | | [required] | +**domain** | **String** | A valid domain name (no protocol). | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## cloud_games_namespaces_set_namespace_cdn_auth_type + +> cloud_games_namespaces_set_namespace_cdn_auth_type(game_id, namespace_id, cloud_games_namespaces_set_namespace_cdn_auth_type_request) + + +Updates the CDN authentication type of the given game namespace. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**game_id** | **uuid::Uuid** | | [required] | +**namespace_id** | **uuid::Uuid** | | [required] | +**cloud_games_namespaces_set_namespace_cdn_auth_type_request** | [**CloudGamesNamespacesSetNamespaceCdnAuthTypeRequest**](CloudGamesNamespacesSetNamespaceCdnAuthTypeRequest.md) | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## cloud_games_namespaces_toggle_namespace_domain_public_auth + +> cloud_games_namespaces_toggle_namespace_domain_public_auth(game_id, namespace_id, cloud_games_namespaces_toggle_namespace_domain_public_auth_request) + + +Toggles whether or not to allow authentication based on domain for the given game namespace. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**game_id** | **uuid::Uuid** | | [required] | +**namespace_id** | **uuid::Uuid** | | [required] | +**cloud_games_namespaces_toggle_namespace_domain_public_auth_request** | [**CloudGamesNamespacesToggleNamespaceDomainPublicAuthRequest**](CloudGamesNamespacesToggleNamespaceDomainPublicAuthRequest.md) | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## cloud_games_namespaces_update_game_namespace_matchmaker_config + +> cloud_games_namespaces_update_game_namespace_matchmaker_config(game_id, namespace_id, cloud_games_namespaces_update_game_namespace_matchmaker_config_request) + + +Updates matchmaker config for the given game namespace. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**game_id** | **uuid::Uuid** | | [required] | +**namespace_id** | **uuid::Uuid** | | [required] | +**cloud_games_namespaces_update_game_namespace_matchmaker_config_request** | [**CloudGamesNamespacesUpdateGameNamespaceMatchmakerConfigRequest**](CloudGamesNamespacesUpdateGameNamespaceMatchmakerConfigRequest.md) | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## cloud_games_namespaces_update_game_namespace_version + +> cloud_games_namespaces_update_game_namespace_version(game_id, namespace_id, cloud_games_namespaces_update_game_namespace_version_request) + + +Updates the version of a game namespace. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**game_id** | **uuid::Uuid** | | [required] | +**namespace_id** | **uuid::Uuid** | | [required] | +**cloud_games_namespaces_update_game_namespace_version_request** | [**CloudGamesNamespacesUpdateGameNamespaceVersionRequest**](CloudGamesNamespacesUpdateGameNamespaceVersionRequest.md) | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## cloud_games_namespaces_update_namespace_cdn_auth_user + +> cloud_games_namespaces_update_namespace_cdn_auth_user(game_id, namespace_id, cloud_games_namespaces_update_namespace_cdn_auth_user_request) + + +Adds an authenticated user to the given game namespace. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**game_id** | **uuid::Uuid** | | [required] | +**namespace_id** | **uuid::Uuid** | | [required] | +**cloud_games_namespaces_update_namespace_cdn_auth_user_request** | [**CloudGamesNamespacesUpdateNamespaceCdnAuthUserRequest**](CloudGamesNamespacesUpdateNamespaceCdnAuthUserRequest.md) | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## cloud_games_namespaces_validate_game_namespace + +> crate::models::CloudGamesNamespacesValidateGameNamespaceResponse cloud_games_namespaces_validate_game_namespace(game_id, cloud_games_namespaces_validate_game_namespace_request) + + +Validates information used to create a new game namespace. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**game_id** | **uuid::Uuid** | | [required] | +**cloud_games_namespaces_validate_game_namespace_request** | [**CloudGamesNamespacesValidateGameNamespaceRequest**](CloudGamesNamespacesValidateGameNamespaceRequest.md) | | [required] | + +### Return type + +[**crate::models::CloudGamesNamespacesValidateGameNamespaceResponse**](CloudGamesNamespacesValidateGameNamespaceResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## cloud_games_namespaces_validate_game_namespace_matchmaker_config + +> crate::models::CloudGamesNamespacesValidateGameNamespaceMatchmakerConfigResponse cloud_games_namespaces_validate_game_namespace_matchmaker_config(game_id, namespace_id, cloud_games_namespaces_validate_game_namespace_matchmaker_config_request) + + +Validates information used to update a game namespace's matchmaker config. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**game_id** | **uuid::Uuid** | | [required] | +**namespace_id** | **uuid::Uuid** | | [required] | +**cloud_games_namespaces_validate_game_namespace_matchmaker_config_request** | [**CloudGamesNamespacesValidateGameNamespaceMatchmakerConfigRequest**](CloudGamesNamespacesValidateGameNamespaceMatchmakerConfigRequest.md) | | [required] | + +### Return type + +[**crate::models::CloudGamesNamespacesValidateGameNamespaceMatchmakerConfigResponse**](CloudGamesNamespacesValidateGameNamespaceMatchmakerConfigResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## cloud_games_namespaces_validate_game_namespace_token_development + +> crate::models::CloudGamesNamespacesValidateGameNamespaceTokenDevelopmentResponse cloud_games_namespaces_validate_game_namespace_token_development(game_id, namespace_id, cloud_games_namespaces_validate_game_namespace_token_development_request) + + +Validates information used to create a new game namespace development token. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**game_id** | **uuid::Uuid** | | [required] | +**namespace_id** | **uuid::Uuid** | | [required] | +**cloud_games_namespaces_validate_game_namespace_token_development_request** | [**CloudGamesNamespacesValidateGameNamespaceTokenDevelopmentRequest**](CloudGamesNamespacesValidateGameNamespaceTokenDevelopmentRequest.md) | | [required] | + +### Return type + +[**crate::models::CloudGamesNamespacesValidateGameNamespaceTokenDevelopmentResponse**](CloudGamesNamespacesValidateGameNamespaceTokenDevelopmentResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/sdks/full/rust-cli/docs/CloudGamesNamespacesCreateGameNamespaceRequest.md b/sdks/full/rust-cli/docs/CloudGamesNamespacesCreateGameNamespaceRequest.md new file mode 100644 index 0000000000..34de4d1d82 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGamesNamespacesCreateGameNamespaceRequest.md @@ -0,0 +1,13 @@ +# CloudGamesNamespacesCreateGameNamespaceRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**display_name** | **String** | Represent a resource's readable display name. | +**name_id** | **String** | A human readable short identifier used to references resources. Different than a `rivet.common#Uuid` because this is intended to be human readable. Different than `rivet.common#DisplayName` because this should not include special characters and be short. | +**version_id** | [**uuid::Uuid**](uuid::Uuid.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudGamesNamespacesCreateGameNamespaceResponse.md b/sdks/full/rust-cli/docs/CloudGamesNamespacesCreateGameNamespaceResponse.md new file mode 100644 index 0000000000..709a01e382 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGamesNamespacesCreateGameNamespaceResponse.md @@ -0,0 +1,11 @@ +# CloudGamesNamespacesCreateGameNamespaceResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**namespace_id** | [**uuid::Uuid**](uuid::Uuid.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudGamesNamespacesCreateGameNamespaceTokenDevelopmentRequest.md b/sdks/full/rust-cli/docs/CloudGamesNamespacesCreateGameNamespaceTokenDevelopmentRequest.md new file mode 100644 index 0000000000..453c36094d --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGamesNamespacesCreateGameNamespaceTokenDevelopmentRequest.md @@ -0,0 +1,13 @@ +# CloudGamesNamespacesCreateGameNamespaceTokenDevelopmentRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**hostname** | **String** | The hostname used for the token. | +**lobby_ports** | Option<[**Vec**](CloudVersionMatchmakerLobbyGroupRuntimeDockerPort.md)> | **Deprecated** A list of docker ports. | [optional] +**ports** | Option<[**::std::collections::HashMap**](CloudMatchmakerDevelopmentPort.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudGamesNamespacesCreateGameNamespaceTokenDevelopmentResponse.md b/sdks/full/rust-cli/docs/CloudGamesNamespacesCreateGameNamespaceTokenDevelopmentResponse.md new file mode 100644 index 0000000000..6c9c6e9a53 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGamesNamespacesCreateGameNamespaceTokenDevelopmentResponse.md @@ -0,0 +1,11 @@ +# CloudGamesNamespacesCreateGameNamespaceTokenDevelopmentResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**token** | **String** | A JSON Web Token. Slightly modified to include a description prefix and use Protobufs of JSON. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudGamesNamespacesCreateGameNamespaceTokenPublicResponse.md b/sdks/full/rust-cli/docs/CloudGamesNamespacesCreateGameNamespaceTokenPublicResponse.md new file mode 100644 index 0000000000..5680ec0c22 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGamesNamespacesCreateGameNamespaceTokenPublicResponse.md @@ -0,0 +1,11 @@ +# CloudGamesNamespacesCreateGameNamespaceTokenPublicResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**token** | **String** | A JSON Web Token. Slightly modified to include a description prefix and use Protobufs of JSON. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudGamesNamespacesGetAnalyticsMatchmakerLiveResponse.md b/sdks/full/rust-cli/docs/CloudGamesNamespacesGetAnalyticsMatchmakerLiveResponse.md new file mode 100644 index 0000000000..e77d64a1ac --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGamesNamespacesGetAnalyticsMatchmakerLiveResponse.md @@ -0,0 +1,11 @@ +# CloudGamesNamespacesGetAnalyticsMatchmakerLiveResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**lobbies** | [**Vec**](CloudLobbySummaryAnalytics.md) | A list of analytics lobby summaries. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudGamesNamespacesGetGameNamespaceByIdResponse.md b/sdks/full/rust-cli/docs/CloudGamesNamespacesGetGameNamespaceByIdResponse.md new file mode 100644 index 0000000000..b0329d3f29 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGamesNamespacesGetGameNamespaceByIdResponse.md @@ -0,0 +1,11 @@ +# CloudGamesNamespacesGetGameNamespaceByIdResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**namespace** | [**crate::models::CloudNamespaceFull**](CloudNamespaceFull.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudGamesNamespacesGetGameNamespaceVersionHistoryResponse.md b/sdks/full/rust-cli/docs/CloudGamesNamespacesGetGameNamespaceVersionHistoryResponse.md new file mode 100644 index 0000000000..f657a945fc --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGamesNamespacesGetGameNamespaceVersionHistoryResponse.md @@ -0,0 +1,11 @@ +# CloudGamesNamespacesGetGameNamespaceVersionHistoryResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**versions** | [**Vec**](CloudNamespaceVersion.md) | A list of previously deployed namespace versions. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudGamesNamespacesGetNamespaceLobbyResponse.md b/sdks/full/rust-cli/docs/CloudGamesNamespacesGetNamespaceLobbyResponse.md new file mode 100644 index 0000000000..febb39955c --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGamesNamespacesGetNamespaceLobbyResponse.md @@ -0,0 +1,15 @@ +# CloudGamesNamespacesGetNamespaceLobbyResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**lobby** | [**crate::models::CloudLogsLobbySummary**](CloudLogsLobbySummary.md) | | +**metrics** | Option<[**crate::models::CloudSvcMetrics**](CloudSvcMetrics.md)> | | [optional] +**perf_lists** | [**Vec**](CloudSvcPerf.md) | **Deprecated** A list of service performance summaries. | +**stderr_presigned_urls** | **Vec** | **Deprecated** A list of URLs. | +**stdout_presigned_urls** | **Vec** | **Deprecated** A list of URLs. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudGamesNamespacesInspectResponse.md b/sdks/full/rust-cli/docs/CloudGamesNamespacesInspectResponse.md new file mode 100644 index 0000000000..3055d064b8 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGamesNamespacesInspectResponse.md @@ -0,0 +1,11 @@ +# CloudGamesNamespacesInspectResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**agent** | [**crate::models::CloudAuthAgent**](CloudAuthAgent.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudGamesNamespacesListNamespaceLobbiesResponse.md b/sdks/full/rust-cli/docs/CloudGamesNamespacesListNamespaceLobbiesResponse.md new file mode 100644 index 0000000000..5a1989f945 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGamesNamespacesListNamespaceLobbiesResponse.md @@ -0,0 +1,11 @@ +# CloudGamesNamespacesListNamespaceLobbiesResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**lobbies** | [**Vec**](CloudLogsLobbySummary.md) | A list of lobby log summaries. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudGamesNamespacesLogsApi.md b/sdks/full/rust-cli/docs/CloudGamesNamespacesLogsApi.md new file mode 100644 index 0000000000..3e0465dbbf --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGamesNamespacesLogsApi.md @@ -0,0 +1,74 @@ +# \CloudGamesNamespacesLogsApi + +All URIs are relative to *https://api.rivet.gg* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**cloud_games_namespaces_logs_get_namespace_lobby**](CloudGamesNamespacesLogsApi.md#cloud_games_namespaces_logs_get_namespace_lobby) | **GET** /cloud/games/{game_id}/namespaces/{namespace_id}/logs/lobbies/{lobby_id} | +[**cloud_games_namespaces_logs_list_namespace_lobbies**](CloudGamesNamespacesLogsApi.md#cloud_games_namespaces_logs_list_namespace_lobbies) | **GET** /cloud/games/{game_id}/namespaces/{namespace_id}/logs/lobbies | + + + +## cloud_games_namespaces_logs_get_namespace_lobby + +> crate::models::CloudGamesNamespacesGetNamespaceLobbyResponse cloud_games_namespaces_logs_get_namespace_lobby(game_id, namespace_id, lobby_id) + + +Returns a lobby from the given game namespace. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**game_id** | **uuid::Uuid** | | [required] | +**namespace_id** | **uuid::Uuid** | | [required] | +**lobby_id** | **uuid::Uuid** | | [required] | + +### Return type + +[**crate::models::CloudGamesNamespacesGetNamespaceLobbyResponse**](CloudGamesNamespacesGetNamespaceLobbyResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## cloud_games_namespaces_logs_list_namespace_lobbies + +> crate::models::CloudGamesNamespacesListNamespaceLobbiesResponse cloud_games_namespaces_logs_list_namespace_lobbies(game_id, namespace_id, before_create_ts) + + +Returns a list of lobbies for the given game namespace. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**game_id** | **uuid::Uuid** | | [required] | +**namespace_id** | **uuid::Uuid** | | [required] | +**before_create_ts** | Option<**String**> | Returns lobbies created before this timestamp. | | + +### Return type + +[**crate::models::CloudGamesNamespacesListNamespaceLobbiesResponse**](CloudGamesNamespacesListNamespaceLobbiesResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/sdks/full/rust-cli/docs/CloudGamesNamespacesSetNamespaceCdnAuthTypeRequest.md b/sdks/full/rust-cli/docs/CloudGamesNamespacesSetNamespaceCdnAuthTypeRequest.md new file mode 100644 index 0000000000..68ab14d765 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGamesNamespacesSetNamespaceCdnAuthTypeRequest.md @@ -0,0 +1,11 @@ +# CloudGamesNamespacesSetNamespaceCdnAuthTypeRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**auth_type** | [**crate::models::CloudCdnAuthType**](CloudCdnAuthType.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudGamesNamespacesToggleNamespaceDomainPublicAuthRequest.md b/sdks/full/rust-cli/docs/CloudGamesNamespacesToggleNamespaceDomainPublicAuthRequest.md new file mode 100644 index 0000000000..fe55a0a283 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGamesNamespacesToggleNamespaceDomainPublicAuthRequest.md @@ -0,0 +1,11 @@ +# CloudGamesNamespacesToggleNamespaceDomainPublicAuthRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enabled** | **bool** | Whether or not to enable authentication based on domain. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudGamesNamespacesUpdateGameNamespaceMatchmakerConfigRequest.md b/sdks/full/rust-cli/docs/CloudGamesNamespacesUpdateGameNamespaceMatchmakerConfigRequest.md new file mode 100644 index 0000000000..26bd429a84 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGamesNamespacesUpdateGameNamespaceMatchmakerConfigRequest.md @@ -0,0 +1,12 @@ +# CloudGamesNamespacesUpdateGameNamespaceMatchmakerConfigRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**lobby_count_max** | **i32** | Unsigned 32 bit integer. | +**max_players** | **i32** | Unsigned 32 bit integer. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudGamesNamespacesUpdateGameNamespaceVersionRequest.md b/sdks/full/rust-cli/docs/CloudGamesNamespacesUpdateGameNamespaceVersionRequest.md new file mode 100644 index 0000000000..adfa21fe89 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGamesNamespacesUpdateGameNamespaceVersionRequest.md @@ -0,0 +1,11 @@ +# CloudGamesNamespacesUpdateGameNamespaceVersionRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**version_id** | [**uuid::Uuid**](uuid::Uuid.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudGamesNamespacesUpdateNamespaceCdnAuthUserRequest.md b/sdks/full/rust-cli/docs/CloudGamesNamespacesUpdateNamespaceCdnAuthUserRequest.md new file mode 100644 index 0000000000..cb6cadf3b1 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGamesNamespacesUpdateNamespaceCdnAuthUserRequest.md @@ -0,0 +1,12 @@ +# CloudGamesNamespacesUpdateNamespaceCdnAuthUserRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**password** | **String** | A bcrypt encrypted password. An error is returned if the given string is not properly encrypted. | +**user** | **String** | A user name. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudGamesNamespacesValidateGameNamespaceMatchmakerConfigRequest.md b/sdks/full/rust-cli/docs/CloudGamesNamespacesValidateGameNamespaceMatchmakerConfigRequest.md new file mode 100644 index 0000000000..7cf3c48945 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGamesNamespacesValidateGameNamespaceMatchmakerConfigRequest.md @@ -0,0 +1,12 @@ +# CloudGamesNamespacesValidateGameNamespaceMatchmakerConfigRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**lobby_count_max** | **i32** | Unsigned 32 bit integer. | +**max_players** | **i32** | Unsigned 32 bit integer. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudGamesNamespacesValidateGameNamespaceMatchmakerConfigResponse.md b/sdks/full/rust-cli/docs/CloudGamesNamespacesValidateGameNamespaceMatchmakerConfigResponse.md new file mode 100644 index 0000000000..9dcf2b2a60 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGamesNamespacesValidateGameNamespaceMatchmakerConfigResponse.md @@ -0,0 +1,11 @@ +# CloudGamesNamespacesValidateGameNamespaceMatchmakerConfigResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**errors** | [**Vec**](ValidationError.md) | A list of validation errors. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudGamesNamespacesValidateGameNamespaceRequest.md b/sdks/full/rust-cli/docs/CloudGamesNamespacesValidateGameNamespaceRequest.md new file mode 100644 index 0000000000..802162610e --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGamesNamespacesValidateGameNamespaceRequest.md @@ -0,0 +1,12 @@ +# CloudGamesNamespacesValidateGameNamespaceRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**display_name** | **String** | Represent a resource's readable display name. | +**name_id** | **String** | A human readable short identifier used to references resources. Different than a `rivet.common#Uuid` because this is intended to be human readable. Different than `rivet.common#DisplayName` because this should not include special characters and be short. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudGamesNamespacesValidateGameNamespaceResponse.md b/sdks/full/rust-cli/docs/CloudGamesNamespacesValidateGameNamespaceResponse.md new file mode 100644 index 0000000000..ccfbe8e127 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGamesNamespacesValidateGameNamespaceResponse.md @@ -0,0 +1,11 @@ +# CloudGamesNamespacesValidateGameNamespaceResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**errors** | [**Vec**](ValidationError.md) | A list of validation errors. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudGamesNamespacesValidateGameNamespaceTokenDevelopmentRequest.md b/sdks/full/rust-cli/docs/CloudGamesNamespacesValidateGameNamespaceTokenDevelopmentRequest.md new file mode 100644 index 0000000000..b49091c3df --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGamesNamespacesValidateGameNamespaceTokenDevelopmentRequest.md @@ -0,0 +1,12 @@ +# CloudGamesNamespacesValidateGameNamespaceTokenDevelopmentRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**hostname** | **String** | | +**lobby_ports** | [**Vec**](CloudVersionMatchmakerLobbyGroupRuntimeDockerPort.md) | A list of docker ports. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudGamesNamespacesValidateGameNamespaceTokenDevelopmentResponse.md b/sdks/full/rust-cli/docs/CloudGamesNamespacesValidateGameNamespaceTokenDevelopmentResponse.md new file mode 100644 index 0000000000..a5e8ca41a8 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGamesNamespacesValidateGameNamespaceTokenDevelopmentResponse.md @@ -0,0 +1,11 @@ +# CloudGamesNamespacesValidateGameNamespaceTokenDevelopmentResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**errors** | [**Vec**](ValidationError.md) | A list of validation errors. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudGamesPrepareCustomAvatarUploadRequest.md b/sdks/full/rust-cli/docs/CloudGamesPrepareCustomAvatarUploadRequest.md new file mode 100644 index 0000000000..262c98806d --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGamesPrepareCustomAvatarUploadRequest.md @@ -0,0 +1,13 @@ +# CloudGamesPrepareCustomAvatarUploadRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**content_length** | **i64** | Unsigned 64 bit integer. | +**mime** | Option<**String**> | The MIME type of the custom avatar. | [optional] +**path** | **String** | The path/filename of the custom avatar. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudGamesPrepareCustomAvatarUploadResponse.md b/sdks/full/rust-cli/docs/CloudGamesPrepareCustomAvatarUploadResponse.md new file mode 100644 index 0000000000..2b8d095d5e --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGamesPrepareCustomAvatarUploadResponse.md @@ -0,0 +1,12 @@ +# CloudGamesPrepareCustomAvatarUploadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**presigned_request** | [**crate::models::UploadPresignedRequest**](UploadPresignedRequest.md) | | +**upload_id** | [**uuid::Uuid**](uuid::Uuid.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudGamesReserveVersionNameResponse.md b/sdks/full/rust-cli/docs/CloudGamesReserveVersionNameResponse.md new file mode 100644 index 0000000000..616b45e50f --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGamesReserveVersionNameResponse.md @@ -0,0 +1,11 @@ +# CloudGamesReserveVersionNameResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**version_display_name** | **String** | Represent a resource's readable display name. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudGamesTokensApi.md b/sdks/full/rust-cli/docs/CloudGamesTokensApi.md new file mode 100644 index 0000000000..8c64a98652 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGamesTokensApi.md @@ -0,0 +1,70 @@ +# \CloudGamesTokensApi + +All URIs are relative to *https://api.rivet.gg* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**cloud_games_tokens_create_cloud_token**](CloudGamesTokensApi.md#cloud_games_tokens_create_cloud_token) | **POST** /cloud/games/{game_id}/tokens/cloud | +[**cloud_games_tokens_create_service_token**](CloudGamesTokensApi.md#cloud_games_tokens_create_service_token) | **POST** /cloud/games/{game_id}/tokens/service | + + + +## cloud_games_tokens_create_cloud_token + +> crate::models::CloudGamesCreateCloudTokenResponse cloud_games_tokens_create_cloud_token(game_id) + + +Creates a new game cloud token. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**game_id** | **uuid::Uuid** | | [required] | + +### Return type + +[**crate::models::CloudGamesCreateCloudTokenResponse**](CloudGamesCreateCloudTokenResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## cloud_games_tokens_create_service_token + +> crate::models::CloudGamesCreateCloudTokenResponse cloud_games_tokens_create_service_token(game_id) + + +Creates a new game service token. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**game_id** | **uuid::Uuid** | | [required] | + +### Return type + +[**crate::models::CloudGamesCreateCloudTokenResponse**](CloudGamesCreateCloudTokenResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/sdks/full/rust-cli/docs/CloudGamesValidateGameRequest.md b/sdks/full/rust-cli/docs/CloudGamesValidateGameRequest.md new file mode 100644 index 0000000000..06585ddd22 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGamesValidateGameRequest.md @@ -0,0 +1,12 @@ +# CloudGamesValidateGameRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**display_name** | **String** | Represent a resource's readable display name. | +**name_id** | Option<**String**> | A human readable short identifier used to references resources. Different than a `uuid` because this is intended to be human readable. Different than `DisplayName` because this should not include special characters and be short. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudGamesValidateGameResponse.md b/sdks/full/rust-cli/docs/CloudGamesValidateGameResponse.md new file mode 100644 index 0000000000..1f43aabfbd --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGamesValidateGameResponse.md @@ -0,0 +1,11 @@ +# CloudGamesValidateGameResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**errors** | [**Vec**](ValidationError.md) | A list of validation errors. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudGamesValidateGameVersionRequest.md b/sdks/full/rust-cli/docs/CloudGamesValidateGameVersionRequest.md new file mode 100644 index 0000000000..2e44708c12 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGamesValidateGameVersionRequest.md @@ -0,0 +1,12 @@ +# CloudGamesValidateGameVersionRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**config** | [**crate::models::CloudVersionConfig**](CloudVersionConfig.md) | | +**display_name** | **String** | Represent a resource's readable display name. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudGamesValidateGameVersionResponse.md b/sdks/full/rust-cli/docs/CloudGamesValidateGameVersionResponse.md new file mode 100644 index 0000000000..5b20b91c96 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGamesValidateGameVersionResponse.md @@ -0,0 +1,11 @@ +# CloudGamesValidateGameVersionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**errors** | [**Vec**](ValidationError.md) | A list of validation errors. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudGamesVersionsApi.md b/sdks/full/rust-cli/docs/CloudGamesVersionsApi.md new file mode 100644 index 0000000000..d7b6e2e8f4 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGamesVersionsApi.md @@ -0,0 +1,135 @@ +# \CloudGamesVersionsApi + +All URIs are relative to *https://api.rivet.gg* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**cloud_games_versions_create_game_version**](CloudGamesVersionsApi.md#cloud_games_versions_create_game_version) | **POST** /cloud/games/{game_id}/versions | +[**cloud_games_versions_get_game_version_by_id**](CloudGamesVersionsApi.md#cloud_games_versions_get_game_version_by_id) | **GET** /cloud/games/{game_id}/versions/{version_id} | +[**cloud_games_versions_reserve_version_name**](CloudGamesVersionsApi.md#cloud_games_versions_reserve_version_name) | **POST** /cloud/games/{game_id}/versions/reserve-name | +[**cloud_games_versions_validate_game_version**](CloudGamesVersionsApi.md#cloud_games_versions_validate_game_version) | **POST** /cloud/games/{game_id}/versions/validate | + + + +## cloud_games_versions_create_game_version + +> crate::models::CloudGamesCreateGameVersionResponse cloud_games_versions_create_game_version(game_id, cloud_games_create_game_version_request) + + +Creates a new game version. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**game_id** | **uuid::Uuid** | | [required] | +**cloud_games_create_game_version_request** | [**CloudGamesCreateGameVersionRequest**](CloudGamesCreateGameVersionRequest.md) | | [required] | + +### Return type + +[**crate::models::CloudGamesCreateGameVersionResponse**](CloudGamesCreateGameVersionResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## cloud_games_versions_get_game_version_by_id + +> crate::models::CloudGamesGetGameVersionByIdResponse cloud_games_versions_get_game_version_by_id(game_id, version_id) + + +Returns a game version by its version ID. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**game_id** | **uuid::Uuid** | | [required] | +**version_id** | **uuid::Uuid** | | [required] | + +### Return type + +[**crate::models::CloudGamesGetGameVersionByIdResponse**](CloudGamesGetGameVersionByIdResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## cloud_games_versions_reserve_version_name + +> crate::models::CloudGamesReserveVersionNameResponse cloud_games_versions_reserve_version_name(game_id) + + +Reserves a display name for the next version. Used to generate a monotomically increasing build number without causing a race condition with multiple versions getting created at the same time. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**game_id** | **uuid::Uuid** | | [required] | + +### Return type + +[**crate::models::CloudGamesReserveVersionNameResponse**](CloudGamesReserveVersionNameResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## cloud_games_versions_validate_game_version + +> crate::models::CloudGamesValidateGameVersionResponse cloud_games_versions_validate_game_version(game_id, cloud_games_validate_game_version_request) + + +Validates information used to create a new game version. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**game_id** | **uuid::Uuid** | | [required] | +**cloud_games_validate_game_version_request** | [**CloudGamesValidateGameVersionRequest**](CloudGamesValidateGameVersionRequest.md) | | [required] | + +### Return type + +[**crate::models::CloudGamesValidateGameVersionResponse**](CloudGamesValidateGameVersionResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/sdks/full/rust-cli/docs/CloudGetRayPerfLogsResponse.md b/sdks/full/rust-cli/docs/CloudGetRayPerfLogsResponse.md new file mode 100644 index 0000000000..c24e07d13c --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGetRayPerfLogsResponse.md @@ -0,0 +1,11 @@ +# CloudGetRayPerfLogsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**perf_lists** | [**Vec**](CloudSvcPerf.md) | A list of service performance summaries. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudGetRegionTiersResponse.md b/sdks/full/rust-cli/docs/CloudGetRegionTiersResponse.md new file mode 100644 index 0000000000..752bc83ec7 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGetRegionTiersResponse.md @@ -0,0 +1,11 @@ +# CloudGetRegionTiersResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**tiers** | [**Vec**](CloudRegionTier.md) | A list of region server tiers. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudGroupBankSource.md b/sdks/full/rust-cli/docs/CloudGroupBankSource.md new file mode 100644 index 0000000000..8b187194d6 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGroupBankSource.md @@ -0,0 +1,12 @@ +# CloudGroupBankSource + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_number** | **String** | The bank account number of this group's bank source. | +**routing_number** | **String** | The bank routing number of this group's bank source. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudGroupsApi.md b/sdks/full/rust-cli/docs/CloudGroupsApi.md new file mode 100644 index 0000000000..7e0a72633d --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudGroupsApi.md @@ -0,0 +1,39 @@ +# \CloudGroupsApi + +All URIs are relative to *https://api.rivet.gg* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**cloud_groups_validate**](CloudGroupsApi.md#cloud_groups_validate) | **POST** /cloud/groups/validate | + + + +## cloud_groups_validate + +> crate::models::CloudValidateGroupResponse cloud_groups_validate(cloud_validate_group_request) + + +Validates information used to create a new group. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**cloud_validate_group_request** | [**CloudValidateGroupRequest**](CloudValidateGroupRequest.md) | | [required] | + +### Return type + +[**crate::models::CloudValidateGroupResponse**](CloudValidateGroupResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/sdks/full/rust-cli/docs/CloudInspectResponse.md b/sdks/full/rust-cli/docs/CloudInspectResponse.md new file mode 100644 index 0000000000..ad849137dd --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudInspectResponse.md @@ -0,0 +1,11 @@ +# CloudInspectResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**agent** | [**crate::models::CloudAuthAgent**](CloudAuthAgent.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudLobbySummaryAnalytics.md b/sdks/full/rust-cli/docs/CloudLobbySummaryAnalytics.md new file mode 100644 index 0000000000..168dfed374 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudLobbySummaryAnalytics.md @@ -0,0 +1,24 @@ +# CloudLobbySummaryAnalytics + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**create_ts** | **String** | RFC3339 timestamp | +**is_closed** | **bool** | Whether or not this lobby is in a closed state. | +**is_idle** | **bool** | Whether or not this lobby is idle. | +**is_outdated** | **bool** | Whether or not this lobby is outdated. | +**is_ready** | **bool** | Whether or not this lobby is ready. | +**lobby_group_id** | [**uuid::Uuid**](uuid::Uuid.md) | | +**lobby_group_name_id** | **String** | A human readable short identifier used to references resources. Different than a `rivet.common#Uuid` because this is intended to be human readable. Different than `rivet.common#DisplayName` because this should not include special characters and be short. | +**lobby_id** | [**uuid::Uuid**](uuid::Uuid.md) | | +**max_players_direct** | **i32** | Unsigned 32 bit integer. | +**max_players_normal** | **i32** | Unsigned 32 bit integer. | +**max_players_party** | **i32** | Unsigned 32 bit integer. | +**region_id** | [**uuid::Uuid**](uuid::Uuid.md) | | +**registered_player_count** | **i32** | Unsigned 32 bit integer. | +**total_player_count** | **i32** | Unsigned 32 bit integer. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudLogsApi.md b/sdks/full/rust-cli/docs/CloudLogsApi.md new file mode 100644 index 0000000000..c13e97fb15 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudLogsApi.md @@ -0,0 +1,39 @@ +# \CloudLogsApi + +All URIs are relative to *https://api.rivet.gg* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**cloud_logs_get_ray_perf_logs**](CloudLogsApi.md#cloud_logs_get_ray_perf_logs) | **GET** /cloud/rays/{ray_id}/perf | + + + +## cloud_logs_get_ray_perf_logs + +> crate::models::CloudGetRayPerfLogsResponse cloud_logs_get_ray_perf_logs(ray_id) + + +Returns performance information about a Rivet Ray. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**ray_id** | **uuid::Uuid** | | [required] | + +### Return type + +[**crate::models::CloudGetRayPerfLogsResponse**](CloudGetRayPerfLogsResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/sdks/full/rust-cli/docs/CloudLogsLobbyStatus.md b/sdks/full/rust-cli/docs/CloudLogsLobbyStatus.md new file mode 100644 index 0000000000..42d9a4ddb5 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudLogsLobbyStatus.md @@ -0,0 +1,12 @@ +# CloudLogsLobbyStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**running** | [**serde_json::Value**](.md) | | +**stopped** | Option<[**crate::models::CloudLogsLobbyStatusStopped**](CloudLogsLobbyStatusStopped.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudLogsLobbyStatusStopped.md b/sdks/full/rust-cli/docs/CloudLogsLobbyStatusStopped.md new file mode 100644 index 0000000000..7a39226e29 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudLogsLobbyStatusStopped.md @@ -0,0 +1,13 @@ +# CloudLogsLobbyStatusStopped + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**exit_code** | **i32** | The exit code returned by the lobby's main process when stopped. | +**failed** | **bool** | Whether or not the lobby failed or stopped successfully. | +**stop_ts** | **String** | RFC3339 timestamp | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudLogsLobbySummary.md b/sdks/full/rust-cli/docs/CloudLogsLobbySummary.md new file mode 100644 index 0000000000..b228893602 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudLogsLobbySummary.md @@ -0,0 +1,18 @@ +# CloudLogsLobbySummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**create_ts** | **String** | RFC3339 timestamp | +**lobby_group_name_id** | **String** | A human readable short identifier used to references resources. Different than a `rivet.common#Uuid` because this is intended to be human readable. Different than `rivet.common#DisplayName` because this should not include special characters and be short. | +**lobby_id** | [**uuid::Uuid**](uuid::Uuid.md) | | +**namespace_id** | [**uuid::Uuid**](uuid::Uuid.md) | | +**ready_ts** | Option<**String**> | RFC3339 timestamp | [optional] +**region_id** | [**uuid::Uuid**](uuid::Uuid.md) | | +**start_ts** | Option<**String**> | RFC3339 timestamp | [optional] +**status** | [**crate::models::CloudLogsLobbyStatus**](CloudLogsLobbyStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudLogsPerfMark.md b/sdks/full/rust-cli/docs/CloudLogsPerfMark.md new file mode 100644 index 0000000000..d2f018666d --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudLogsPerfMark.md @@ -0,0 +1,14 @@ +# CloudLogsPerfMark + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**label** | **String** | The label given to this performance mark. | +**ray_id** | Option<[**uuid::Uuid**](uuid::Uuid.md)> | | [optional] +**req_id** | Option<[**uuid::Uuid**](uuid::Uuid.md)> | | [optional] +**ts** | **String** | RFC3339 timestamp | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudLogsPerfSpan.md b/sdks/full/rust-cli/docs/CloudLogsPerfSpan.md new file mode 100644 index 0000000000..2772228a19 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudLogsPerfSpan.md @@ -0,0 +1,14 @@ +# CloudLogsPerfSpan + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**finish_ts** | Option<**String**> | RFC3339 timestamp | [optional] +**label** | **String** | The label given to this performance span. | +**req_id** | Option<[**uuid::Uuid**](uuid::Uuid.md)> | | [optional] +**start_ts** | **String** | RFC3339 timestamp | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudMatchmakerDevelopmentPort.md b/sdks/full/rust-cli/docs/CloudMatchmakerDevelopmentPort.md new file mode 100644 index 0000000000..43d2ed62cc --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudMatchmakerDevelopmentPort.md @@ -0,0 +1,13 @@ +# CloudMatchmakerDevelopmentPort + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**port** | Option<**i32**> | | [optional] +**port_range** | Option<[**crate::models::CloudVersionMatchmakerPortRange**](CloudVersionMatchmakerPortRange.md)> | | [optional] +**protocol** | [**crate::models::CloudVersionMatchmakerPortProtocol**](CloudVersionMatchmakerPortProtocol.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudMatchmakerNamespaceConfig.md b/sdks/full/rust-cli/docs/CloudMatchmakerNamespaceConfig.md new file mode 100644 index 0000000000..86371f89f8 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudMatchmakerNamespaceConfig.md @@ -0,0 +1,16 @@ +# CloudMatchmakerNamespaceConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**lobby_count_max** | **i32** | Unsigned 32 bit integer. | +**max_players_per_client** | **i32** | Unsigned 32 bit integer. | +**max_players_per_client_hosting** | **i32** | Unsigned 32 bit integer. | +**max_players_per_client_proxy** | **i32** | Unsigned 32 bit integer. | +**max_players_per_client_tor** | **i32** | Unsigned 32 bit integer. | +**max_players_per_client_vpn** | **i32** | Unsigned 32 bit integer. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudNamespaceConfig.md b/sdks/full/rust-cli/docs/CloudNamespaceConfig.md new file mode 100644 index 0000000000..2f94651627 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudNamespaceConfig.md @@ -0,0 +1,14 @@ +# CloudNamespaceConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cdn** | [**crate::models::CloudCdnNamespaceConfig**](CloudCdnNamespaceConfig.md) | | +**identity** | [**serde_json::Value**](.md) | Identity configuration for a given namespace. | +**kv** | [**serde_json::Value**](.md) | KV configuration for a given namespace. | +**matchmaker** | [**crate::models::CloudMatchmakerNamespaceConfig**](CloudMatchmakerNamespaceConfig.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudNamespaceFull.md b/sdks/full/rust-cli/docs/CloudNamespaceFull.md new file mode 100644 index 0000000000..8a62def44a --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudNamespaceFull.md @@ -0,0 +1,16 @@ +# CloudNamespaceFull + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**config** | [**crate::models::CloudNamespaceConfig**](CloudNamespaceConfig.md) | | +**create_ts** | **String** | RFC3339 timestamp | +**display_name** | **String** | Represent a resource's readable display name. | +**name_id** | **String** | A human readable short identifier used to references resources. Different than a `rivet.common#Uuid` because this is intended to be human readable. Different than `rivet.common#DisplayName` because this should not include special characters and be short. | +**namespace_id** | [**uuid::Uuid**](uuid::Uuid.md) | | +**version_id** | [**uuid::Uuid**](uuid::Uuid.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudNamespaceSummary.md b/sdks/full/rust-cli/docs/CloudNamespaceSummary.md new file mode 100644 index 0000000000..58bf40d498 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudNamespaceSummary.md @@ -0,0 +1,15 @@ +# CloudNamespaceSummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**create_ts** | **String** | RFC3339 timestamp | +**display_name** | **String** | Represent a resource's readable display name. | +**name_id** | **String** | A human readable short identifier used to references resources. Different than a `rivet.common#Uuid` because this is intended to be human readable. Different than `rivet.common#DisplayName` because this should not include special characters and be short. | +**namespace_id** | [**uuid::Uuid**](uuid::Uuid.md) | | +**version_id** | [**uuid::Uuid**](uuid::Uuid.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudNamespaceVersion.md b/sdks/full/rust-cli/docs/CloudNamespaceVersion.md new file mode 100644 index 0000000000..2b9e1bfa00 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudNamespaceVersion.md @@ -0,0 +1,13 @@ +# CloudNamespaceVersion + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**deploy_ts** | **String** | RFC3339 timestamp | +**namespace_id** | **String** | A universally unique identifier. | +**version_id** | **String** | A universally unique identifier. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudRegionSummary.md b/sdks/full/rust-cli/docs/CloudRegionSummary.md new file mode 100644 index 0000000000..56a181b231 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudRegionSummary.md @@ -0,0 +1,16 @@ +# CloudRegionSummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**provider** | **String** | The server provider of this region. | +**provider_display_name** | **String** | Represent a resource's readable display name. | +**region_display_name** | **String** | Represent a resource's readable display name. | +**region_id** | [**uuid::Uuid**](uuid::Uuid.md) | | +**region_name_id** | **String** | A human readable short identifier used to references resources. Different than a `rivet.common#Uuid` because this is intended to be human readable. Different than `rivet.common#DisplayName` because this should not include special characters and be short. | +**universal_region** | [**crate::models::CloudUniversalRegion**](CloudUniversalRegion.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudRegionTier.md b/sdks/full/rust-cli/docs/CloudRegionTier.md new file mode 100644 index 0000000000..74094ab9c0 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudRegionTier.md @@ -0,0 +1,18 @@ +# CloudRegionTier + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bandwidth** | **i32** | Internet bandwidth (MB). | +**cpu** | **i32** | CPU frequency (MHz). | +**disk** | **i32** | Allocated disk space (MB). | +**memory** | **i32** | Allocated memory (MB). | +**price_per_second** | **i32** | **Deprecated** Price billed for every second this server is running (in quadrillionth USD, 1,000,000,000,000 = $1.00). | +**rivet_cores_denominator** | **i32** | Together with the numerator, denotes the portion of the CPU a given server uses. | +**rivet_cores_numerator** | **i32** | Together with the denominator, denotes the portion of the CPU a given server uses. | +**tier_name_id** | **String** | A human readable short identifier used to references resources. Different than a `rivet.common#Uuid` because this is intended to be human readable. Different than `rivet.common#DisplayName` because this should not include special characters and be short. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudRegionTierExpenses.md b/sdks/full/rust-cli/docs/CloudRegionTierExpenses.md new file mode 100644 index 0000000000..1d6b18c479 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudRegionTierExpenses.md @@ -0,0 +1,16 @@ +# CloudRegionTierExpenses + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**expenses** | **f64** | Amount of expenses for this region tier (in hundred-thousandths USD, 100,000 = $1.00). | +**lobby_group_name_id** | **String** | A human readable short identifier used to references resources. Different than a `rivet.common#Uuid` because this is intended to be human readable. Different than `rivet.common#DisplayName` because this should not include special characters and be short. | +**namespace_id** | [**uuid::Uuid**](uuid::Uuid.md) | | +**region_id** | [**uuid::Uuid**](uuid::Uuid.md) | | +**tier_name_id** | **String** | A human readable short identifier used to references resources. Different than a `rivet.common#Uuid` because this is intended to be human readable. Different than `rivet.common#DisplayName` because this should not include special characters and be short. | +**uptime** | **f64** | How long a region tier has been active (in milliseconds). | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudSvcMetrics.md b/sdks/full/rust-cli/docs/CloudSvcMetrics.md new file mode 100644 index 0000000000..0c27d94dde --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudSvcMetrics.md @@ -0,0 +1,14 @@ +# CloudSvcMetrics + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allocated_memory** | Option<**f64**> | Total allocated memory (MB). | [optional] +**cpu** | **Vec** | CPU metrics. | +**job** | **String** | The job name. | +**memory** | **Vec** | Memory metrics. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudSvcPerf.md b/sdks/full/rust-cli/docs/CloudSvcPerf.md new file mode 100644 index 0000000000..a207bd3d02 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudSvcPerf.md @@ -0,0 +1,16 @@ +# CloudSvcPerf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**duration** | **i64** | Unsigned 64 bit integer. | +**marks** | [**Vec**](CloudLogsPerfMark.md) | A list of performance marks. | +**req_id** | Option<[**uuid::Uuid**](uuid::Uuid.md)> | | [optional] +**spans** | [**Vec**](CloudLogsPerfSpan.md) | A list of performance spans. | +**svc_name** | **String** | The name of the service. | +**ts** | **String** | RFC3339 timestamp | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudTiersApi.md b/sdks/full/rust-cli/docs/CloudTiersApi.md new file mode 100644 index 0000000000..40fa5a582d --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudTiersApi.md @@ -0,0 +1,36 @@ +# \CloudTiersApi + +All URIs are relative to *https://api.rivet.gg* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**cloud_tiers_get_region_tiers**](CloudTiersApi.md#cloud_tiers_get_region_tiers) | **GET** /cloud/region-tiers | + + + +## cloud_tiers_get_region_tiers + +> crate::models::CloudGetRegionTiersResponse cloud_tiers_get_region_tiers() + + +Returns all available region tiers. + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**crate::models::CloudGetRegionTiersResponse**](CloudGetRegionTiersResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/sdks/full/rust-cli/docs/CloudUniversalRegion.md b/sdks/full/rust-cli/docs/CloudUniversalRegion.md new file mode 100644 index 0000000000..f3a1ad9699 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudUniversalRegion.md @@ -0,0 +1,10 @@ +# CloudUniversalRegion + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudUploadsApi.md b/sdks/full/rust-cli/docs/CloudUploadsApi.md new file mode 100644 index 0000000000..02bf637fa6 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudUploadsApi.md @@ -0,0 +1,39 @@ +# \CloudUploadsApi + +All URIs are relative to *https://api.rivet.gg* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**cloud_uploads_complete_upload**](CloudUploadsApi.md#cloud_uploads_complete_upload) | **POST** /cloud/uploads/{upload_id}/complete | + + + +## cloud_uploads_complete_upload + +> cloud_uploads_complete_upload(upload_id) + + +Marks an upload as complete. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**upload_id** | **uuid::Uuid** | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/sdks/full/rust-cli/docs/CloudValidateGroupRequest.md b/sdks/full/rust-cli/docs/CloudValidateGroupRequest.md new file mode 100644 index 0000000000..bfc2b1d39a --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudValidateGroupRequest.md @@ -0,0 +1,11 @@ +# CloudValidateGroupRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**display_name** | **String** | Represent a resource's readable display name. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudValidateGroupResponse.md b/sdks/full/rust-cli/docs/CloudValidateGroupResponse.md new file mode 100644 index 0000000000..bdca42212d --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudValidateGroupResponse.md @@ -0,0 +1,11 @@ +# CloudValidateGroupResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**errors** | [**Vec**](ValidationError.md) | A list of validation errors. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudVersionCdnConfig.md b/sdks/full/rust-cli/docs/CloudVersionCdnConfig.md new file mode 100644 index 0000000000..107fc21da5 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudVersionCdnConfig.md @@ -0,0 +1,15 @@ +# CloudVersionCdnConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**build_command** | Option<**String**> | _Configures Rivet CLI behavior. Has no effect on server behavior._ | [optional] +**build_env** | Option<**::std::collections::HashMap**> | _Configures Rivet CLI behavior. Has no effect on server behavior._ | [optional] +**build_output** | Option<**String**> | _Configures Rivet CLI behavior. Has no effect on server behavior._ | [optional] +**routes** | Option<[**Vec**](CloudVersionCdnRoute.md)> | Multiple CDN version routes. | [optional] +**site_id** | Option<[**uuid::Uuid**](uuid::Uuid.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudVersionCdnCustomHeadersMiddleware.md b/sdks/full/rust-cli/docs/CloudVersionCdnCustomHeadersMiddleware.md new file mode 100644 index 0000000000..2399a52a65 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudVersionCdnCustomHeadersMiddleware.md @@ -0,0 +1,11 @@ +# CloudVersionCdnCustomHeadersMiddleware + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**headers** | [**Vec**](CloudVersionCdnHeader.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudVersionCdnHeader.md b/sdks/full/rust-cli/docs/CloudVersionCdnHeader.md new file mode 100644 index 0000000000..74a472ddea --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudVersionCdnHeader.md @@ -0,0 +1,12 @@ +# CloudVersionCdnHeader + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | | +**value** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudVersionCdnMiddleware.md b/sdks/full/rust-cli/docs/CloudVersionCdnMiddleware.md new file mode 100644 index 0000000000..6e7a08ce52 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudVersionCdnMiddleware.md @@ -0,0 +1,11 @@ +# CloudVersionCdnMiddleware + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**kind** | [**crate::models::CloudVersionCdnMiddlewareKind**](CloudVersionCdnMiddlewareKind.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudVersionCdnMiddlewareKind.md b/sdks/full/rust-cli/docs/CloudVersionCdnMiddlewareKind.md new file mode 100644 index 0000000000..b738715474 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudVersionCdnMiddlewareKind.md @@ -0,0 +1,11 @@ +# CloudVersionCdnMiddlewareKind + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**custom_headers** | Option<[**crate::models::CloudVersionCdnCustomHeadersMiddleware**](CloudVersionCdnCustomHeadersMiddleware.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudVersionCdnRoute.md b/sdks/full/rust-cli/docs/CloudVersionCdnRoute.md new file mode 100644 index 0000000000..c0fca13481 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudVersionCdnRoute.md @@ -0,0 +1,13 @@ +# CloudVersionCdnRoute + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**glob** | **String** | | +**middlewares** | [**Vec**](CloudVersionCdnMiddleware.md) | Multiple CDN version middleware. | +**priority** | **i32** | Unsigned 32 bit integer. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudVersionConfig.md b/sdks/full/rust-cli/docs/CloudVersionConfig.md new file mode 100644 index 0000000000..bd39db3f48 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudVersionConfig.md @@ -0,0 +1,16 @@ +# CloudVersionConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cdn** | Option<[**crate::models::CloudVersionCdnConfig**](CloudVersionCdnConfig.md)> | | [optional] +**engine** | Option<[**crate::models::CloudVersionEngineConfig**](CloudVersionEngineConfig.md)> | | [optional] +**identity** | Option<[**crate::models::CloudVersionIdentityConfig**](CloudVersionIdentityConfig.md)> | | [optional] +**kv** | Option<[**serde_json::Value**](.md)> | KV configuration for a given version. | [optional] +**matchmaker** | Option<[**crate::models::CloudVersionMatchmakerConfig**](CloudVersionMatchmakerConfig.md)> | | [optional] +**scripts** | Option<**::std::collections::HashMap**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudVersionEngineConfig.md b/sdks/full/rust-cli/docs/CloudVersionEngineConfig.md new file mode 100644 index 0000000000..825d8f1a72 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudVersionEngineConfig.md @@ -0,0 +1,15 @@ +# CloudVersionEngineConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**custom** | Option<[**serde_json::Value**](.md)> | | [optional] +**godot** | Option<[**serde_json::Value**](.md)> | | [optional] +**html5** | Option<[**serde_json::Value**](.md)> | | [optional] +**unity** | Option<[**serde_json::Value**](.md)> | | [optional] +**unreal** | Option<[**crate::models::CloudVersionEngineUnrealConfig**](CloudVersionEngineUnrealConfig.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudVersionEngineUnrealConfig.md b/sdks/full/rust-cli/docs/CloudVersionEngineUnrealConfig.md new file mode 100644 index 0000000000..5529bf0f33 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudVersionEngineUnrealConfig.md @@ -0,0 +1,11 @@ +# CloudVersionEngineUnrealConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**game_module** | **String** | Name of the Unreal module that holds the game code. This is usually the value of `$.Modules[0].Name` in the file `MyProject.unproject`. _Configures Rivet CLI behavior. Has no effect on server behavior._ | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudVersionFull.md b/sdks/full/rust-cli/docs/CloudVersionFull.md new file mode 100644 index 0000000000..2368ab6f29 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudVersionFull.md @@ -0,0 +1,14 @@ +# CloudVersionFull + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**config** | [**crate::models::CloudVersionConfig**](CloudVersionConfig.md) | | +**create_ts** | **String** | RFC3339 timestamp | +**display_name** | **String** | Represent a resource's readable display name. | +**version_id** | [**uuid::Uuid**](uuid::Uuid.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudVersionIdentityConfig.md b/sdks/full/rust-cli/docs/CloudVersionIdentityConfig.md new file mode 100644 index 0000000000..82503eb83a --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudVersionIdentityConfig.md @@ -0,0 +1,14 @@ +# CloudVersionIdentityConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**avatars** | Option<[**Vec**](uuid::Uuid.md)> | **Deprecated** | [optional] +**custom_avatars** | Option<[**Vec**](CloudVersionIdentityCustomAvatar.md)> | **Deprecated** | [optional] +**custom_display_names** | Option<[**Vec**](CloudVersionIdentityCustomDisplayName.md)> | **Deprecated** | [optional] +**display_names** | Option<**Vec**> | **Deprecated** | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudVersionIdentityCustomAvatar.md b/sdks/full/rust-cli/docs/CloudVersionIdentityCustomAvatar.md new file mode 100644 index 0000000000..1bc8667875 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudVersionIdentityCustomAvatar.md @@ -0,0 +1,11 @@ +# CloudVersionIdentityCustomAvatar + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**upload_id** | [**uuid::Uuid**](uuid::Uuid.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudVersionIdentityCustomDisplayName.md b/sdks/full/rust-cli/docs/CloudVersionIdentityCustomDisplayName.md new file mode 100644 index 0000000000..e31747bb8f --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudVersionIdentityCustomDisplayName.md @@ -0,0 +1,11 @@ +# CloudVersionIdentityCustomDisplayName + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**display_name** | **String** | Represent a resource's readable display name. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudVersionMatchmakerCaptcha.md b/sdks/full/rust-cli/docs/CloudVersionMatchmakerCaptcha.md new file mode 100644 index 0000000000..f0dec143ff --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudVersionMatchmakerCaptcha.md @@ -0,0 +1,14 @@ +# CloudVersionMatchmakerCaptcha + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**hcaptcha** | Option<[**crate::models::CloudVersionMatchmakerCaptchaHcaptcha**](CloudVersionMatchmakerCaptchaHcaptcha.md)> | | [optional] +**requests_before_reverify** | **i32** | Denotes how many requests a connection can make before it is required to reverify a captcha. | +**turnstile** | Option<[**crate::models::CloudVersionMatchmakerCaptchaTurnstile**](CloudVersionMatchmakerCaptchaTurnstile.md)> | | [optional] +**verification_ttl** | **i64** | Denotes how long a connection can continue to reconnect without having to reverify a captcha (in milliseconds). | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudVersionMatchmakerCaptchaHcaptcha.md b/sdks/full/rust-cli/docs/CloudVersionMatchmakerCaptchaHcaptcha.md new file mode 100644 index 0000000000..0f3bea23ab --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudVersionMatchmakerCaptchaHcaptcha.md @@ -0,0 +1,13 @@ +# CloudVersionMatchmakerCaptchaHcaptcha + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**level** | Option<[**crate::models::CloudVersionMatchmakerCaptchaHcaptchaLevel**](CloudVersionMatchmakerCaptchaHcaptchaLevel.md)> | | [optional] +**secret_key** | Option<**String**> | Secret key for your hCaptcha application. Must be set. | [optional] +**site_key** | Option<**String**> | Site key for your hCaptcha application. Must be set. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudVersionMatchmakerCaptchaHcaptchaLevel.md b/sdks/full/rust-cli/docs/CloudVersionMatchmakerCaptchaHcaptchaLevel.md new file mode 100644 index 0000000000..e1b1c3dfae --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudVersionMatchmakerCaptchaHcaptchaLevel.md @@ -0,0 +1,10 @@ +# CloudVersionMatchmakerCaptchaHcaptchaLevel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudVersionMatchmakerCaptchaTurnstile.md b/sdks/full/rust-cli/docs/CloudVersionMatchmakerCaptchaTurnstile.md new file mode 100644 index 0000000000..d90a0e1128 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudVersionMatchmakerCaptchaTurnstile.md @@ -0,0 +1,12 @@ +# CloudVersionMatchmakerCaptchaTurnstile + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**secret_key** | **String** | | +**site_key** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudVersionMatchmakerConfig.md b/sdks/full/rust-cli/docs/CloudVersionMatchmakerConfig.md new file mode 100644 index 0000000000..2fff0e2aa4 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudVersionMatchmakerConfig.md @@ -0,0 +1,21 @@ +# CloudVersionMatchmakerConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**captcha** | Option<[**crate::models::CloudVersionMatchmakerCaptcha**](CloudVersionMatchmakerCaptcha.md)> | | [optional] +**dev_hostname** | Option<**String**> | _Configures Rivet CLI behavior. Has no effect on server behavior._ | [optional] +**docker** | Option<[**crate::models::CloudVersionMatchmakerGameModeRuntimeDocker**](CloudVersionMatchmakerGameModeRuntimeDocker.md)> | | [optional] +**game_modes** | Option<[**::std::collections::HashMap**](CloudVersionMatchmakerGameMode.md)> | A list of game modes. | [optional] +**idle_lobbies** | Option<[**crate::models::CloudVersionMatchmakerGameModeIdleLobbiesConfig**](CloudVersionMatchmakerGameModeIdleLobbiesConfig.md)> | | [optional] +**lobby_groups** | Option<[**Vec**](CloudVersionMatchmakerLobbyGroup.md)> | **Deprecated: use `game_modes` instead** A list of game modes. | [optional] +**max_players** | Option<**i32**> | | [optional] +**max_players_direct** | Option<**i32**> | | [optional] +**max_players_party** | Option<**i32**> | | [optional] +**regions** | Option<[**::std::collections::HashMap**](CloudVersionMatchmakerGameModeRegion.md)> | | [optional] +**tier** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudVersionMatchmakerGameMode.md b/sdks/full/rust-cli/docs/CloudVersionMatchmakerGameMode.md new file mode 100644 index 0000000000..9db73b3bbf --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudVersionMatchmakerGameMode.md @@ -0,0 +1,21 @@ +# CloudVersionMatchmakerGameMode + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**actions** | Option<[**crate::models::CloudVersionMatchmakerGameModeActions**](CloudVersionMatchmakerGameModeActions.md)> | | [optional] +**allow_dynamic_max_players** | Option<**bool**> | | [optional] +**docker** | Option<[**crate::models::CloudVersionMatchmakerGameModeRuntimeDocker**](CloudVersionMatchmakerGameModeRuntimeDocker.md)> | | [optional] +**idle_lobbies** | Option<[**crate::models::CloudVersionMatchmakerGameModeIdleLobbiesConfig**](CloudVersionMatchmakerGameModeIdleLobbiesConfig.md)> | | [optional] +**listable** | Option<**bool**> | | [optional] +**max_players** | Option<**i32**> | | [optional] +**max_players_direct** | Option<**i32**> | | [optional] +**max_players_party** | Option<**i32**> | | [optional] +**regions** | Option<[**::std::collections::HashMap**](CloudVersionMatchmakerGameModeRegion.md)> | | [optional] +**taggable** | Option<**bool**> | | [optional] +**tier** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudVersionMatchmakerGameModeActions.md b/sdks/full/rust-cli/docs/CloudVersionMatchmakerGameModeActions.md new file mode 100644 index 0000000000..365dcae2c3 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudVersionMatchmakerGameModeActions.md @@ -0,0 +1,13 @@ +# CloudVersionMatchmakerGameModeActions + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**create** | Option<[**crate::models::CloudVersionMatchmakerGameModeCreateConfig**](CloudVersionMatchmakerGameModeCreateConfig.md)> | | [optional] +**find** | Option<[**crate::models::CloudVersionMatchmakerGameModeFindConfig**](CloudVersionMatchmakerGameModeFindConfig.md)> | | [optional] +**join** | Option<[**crate::models::CloudVersionMatchmakerGameModeJoinConfig**](CloudVersionMatchmakerGameModeJoinConfig.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudVersionMatchmakerGameModeCreateConfig.md b/sdks/full/rust-cli/docs/CloudVersionMatchmakerGameModeCreateConfig.md new file mode 100644 index 0000000000..cda73e7379 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudVersionMatchmakerGameModeCreateConfig.md @@ -0,0 +1,16 @@ +# CloudVersionMatchmakerGameModeCreateConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enable_private** | Option<**bool**> | Defaults to true when unset. | [optional] +**enable_public** | Option<**bool**> | Defaults to false when unset. | [optional] +**enabled** | **bool** | Sets whether or not the /create endpoint is enabled. | +**identity_requirement** | Option<[**crate::models::CloudVersionMatchmakerGameModeIdentityRequirement**](CloudVersionMatchmakerGameModeIdentityRequirement.md)> | | [optional] +**max_lobbies_per_identity** | Option<**i32**> | **Deprecated** | [optional] +**verification** | Option<[**crate::models::CloudVersionMatchmakerGameModeVerificationConfig**](CloudVersionMatchmakerGameModeVerificationConfig.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudVersionMatchmakerGameModeFindConfig.md b/sdks/full/rust-cli/docs/CloudVersionMatchmakerGameModeFindConfig.md new file mode 100644 index 0000000000..48cdb9ea93 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudVersionMatchmakerGameModeFindConfig.md @@ -0,0 +1,13 @@ +# CloudVersionMatchmakerGameModeFindConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enabled** | **bool** | Sets whether or not the /find endpoint is enabled. | +**identity_requirement** | Option<[**crate::models::CloudVersionMatchmakerGameModeIdentityRequirement**](CloudVersionMatchmakerGameModeIdentityRequirement.md)> | | [optional] +**verification** | Option<[**crate::models::CloudVersionMatchmakerGameModeVerificationConfig**](CloudVersionMatchmakerGameModeVerificationConfig.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudVersionMatchmakerGameModeIdentityRequirement.md b/sdks/full/rust-cli/docs/CloudVersionMatchmakerGameModeIdentityRequirement.md new file mode 100644 index 0000000000..f8d550d34d --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudVersionMatchmakerGameModeIdentityRequirement.md @@ -0,0 +1,10 @@ +# CloudVersionMatchmakerGameModeIdentityRequirement + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudVersionMatchmakerGameModeIdleLobbiesConfig.md b/sdks/full/rust-cli/docs/CloudVersionMatchmakerGameModeIdleLobbiesConfig.md new file mode 100644 index 0000000000..28230f8594 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudVersionMatchmakerGameModeIdleLobbiesConfig.md @@ -0,0 +1,12 @@ +# CloudVersionMatchmakerGameModeIdleLobbiesConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**max** | **i32** | | +**min** | **i32** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudVersionMatchmakerGameModeJoinConfig.md b/sdks/full/rust-cli/docs/CloudVersionMatchmakerGameModeJoinConfig.md new file mode 100644 index 0000000000..33e9fcc1ed --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudVersionMatchmakerGameModeJoinConfig.md @@ -0,0 +1,13 @@ +# CloudVersionMatchmakerGameModeJoinConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enabled** | **bool** | Sets whether or not the /join endpoint is enabled. | +**identity_requirement** | Option<[**crate::models::CloudVersionMatchmakerGameModeIdentityRequirement**](CloudVersionMatchmakerGameModeIdentityRequirement.md)> | | [optional] +**verification** | Option<[**crate::models::CloudVersionMatchmakerGameModeVerificationConfig**](CloudVersionMatchmakerGameModeVerificationConfig.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudVersionMatchmakerGameModeRegion.md b/sdks/full/rust-cli/docs/CloudVersionMatchmakerGameModeRegion.md new file mode 100644 index 0000000000..aed04c5b7e --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudVersionMatchmakerGameModeRegion.md @@ -0,0 +1,12 @@ +# CloudVersionMatchmakerGameModeRegion + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**idle_lobbies** | Option<[**crate::models::CloudVersionMatchmakerGameModeIdleLobbiesConfig**](CloudVersionMatchmakerGameModeIdleLobbiesConfig.md)> | | [optional] +**tier** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudVersionMatchmakerGameModeRuntimeDocker.md b/sdks/full/rust-cli/docs/CloudVersionMatchmakerGameModeRuntimeDocker.md new file mode 100644 index 0000000000..9687c39f1e --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudVersionMatchmakerGameModeRuntimeDocker.md @@ -0,0 +1,18 @@ +# CloudVersionMatchmakerGameModeRuntimeDocker + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**args** | Option<**Vec**> | | [optional] +**build_args** | Option<**::std::collections::HashMap**> | _Configures Rivet CLI behavior. Has no effect on server behavior._ | [optional] +**dockerfile** | Option<**String**> | _Configures Rivet CLI behavior. Has no effect on server behavior._ | [optional] +**env** | Option<**::std::collections::HashMap**> | | [optional] +**image** | Option<**String**> | _Configures Rivet CLI behavior. Has no effect on server behavior._ | [optional] +**image_id** | Option<[**uuid::Uuid**](uuid::Uuid.md)> | | [optional] +**network_mode** | Option<[**crate::models::CloudVersionMatchmakerNetworkMode**](CloudVersionMatchmakerNetworkMode.md)> | | [optional] +**ports** | Option<[**::std::collections::HashMap**](CloudVersionMatchmakerGameModeRuntimeDockerPort.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudVersionMatchmakerGameModeRuntimeDockerPort.md b/sdks/full/rust-cli/docs/CloudVersionMatchmakerGameModeRuntimeDockerPort.md new file mode 100644 index 0000000000..31cfd0f65a --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudVersionMatchmakerGameModeRuntimeDockerPort.md @@ -0,0 +1,17 @@ +# CloudVersionMatchmakerGameModeRuntimeDockerPort + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dev_port** | Option<**i32**> | _Configures Rivet CLI behavior. Has no effect on server behavior._ | [optional] +**dev_port_range** | Option<[**crate::models::CloudVersionMatchmakerPortRange**](CloudVersionMatchmakerPortRange.md)> | | [optional] +**dev_protocol** | Option<[**crate::models::CloudVersionMatchmakerPortProtocol**](CloudVersionMatchmakerPortProtocol.md)> | | [optional] +**port** | Option<**i32**> | The port number to connect to. ### Related - cloud.version.matchmaker.PortProtocol - cloud.version.matchmaker.ProxyKind | [optional] +**port_range** | Option<[**crate::models::CloudVersionMatchmakerPortRange**](CloudVersionMatchmakerPortRange.md)> | | [optional] +**protocol** | Option<[**crate::models::CloudVersionMatchmakerPortProtocol**](CloudVersionMatchmakerPortProtocol.md)> | | [optional] +**proxy** | Option<[**crate::models::CloudVersionMatchmakerProxyKind**](CloudVersionMatchmakerProxyKind.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudVersionMatchmakerGameModeVerificationConfig.md b/sdks/full/rust-cli/docs/CloudVersionMatchmakerGameModeVerificationConfig.md new file mode 100644 index 0000000000..f2788127bb --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudVersionMatchmakerGameModeVerificationConfig.md @@ -0,0 +1,12 @@ +# CloudVersionMatchmakerGameModeVerificationConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**headers** | **::std::collections::HashMap** | | +**url** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudVersionMatchmakerLobbyGroup.md b/sdks/full/rust-cli/docs/CloudVersionMatchmakerLobbyGroup.md new file mode 100644 index 0000000000..1b71e1b88c --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudVersionMatchmakerLobbyGroup.md @@ -0,0 +1,16 @@ +# CloudVersionMatchmakerLobbyGroup + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**max_players_direct** | **i32** | Unsigned 32 bit integer. | +**max_players_normal** | **i32** | Unsigned 32 bit integer. | +**max_players_party** | **i32** | Unsigned 32 bit integer. | +**name_id** | **String** | **Deprecated: use GameMode instead** A human readable short identifier used to references resources. Different than a `rivet.common#Uuid` because this is intended to be human readable. Different than `rivet.common#DisplayName` because this should not include special characters and be short. | +**regions** | [**Vec**](CloudVersionMatchmakerLobbyGroupRegion.md) | A list of game mode regions. | +**runtime** | [**crate::models::CloudVersionMatchmakerLobbyGroupRuntime**](CloudVersionMatchmakerLobbyGroupRuntime.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudVersionMatchmakerLobbyGroupIdleLobbiesConfig.md b/sdks/full/rust-cli/docs/CloudVersionMatchmakerLobbyGroupIdleLobbiesConfig.md new file mode 100644 index 0000000000..68e5f4dfdc --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudVersionMatchmakerLobbyGroupIdleLobbiesConfig.md @@ -0,0 +1,12 @@ +# CloudVersionMatchmakerLobbyGroupIdleLobbiesConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**max_idle_lobbies** | **i32** | Unsigned 32 bit integer. | +**min_idle_lobbies** | **i32** | Unsigned 32 bit integer. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudVersionMatchmakerLobbyGroupRegion.md b/sdks/full/rust-cli/docs/CloudVersionMatchmakerLobbyGroupRegion.md new file mode 100644 index 0000000000..408a7b8c2d --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudVersionMatchmakerLobbyGroupRegion.md @@ -0,0 +1,13 @@ +# CloudVersionMatchmakerLobbyGroupRegion + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**idle_lobbies** | Option<[**crate::models::CloudVersionMatchmakerLobbyGroupIdleLobbiesConfig**](CloudVersionMatchmakerLobbyGroupIdleLobbiesConfig.md)> | | [optional] +**region_id** | [**uuid::Uuid**](uuid::Uuid.md) | | +**tier_name_id** | **String** | A human readable short identifier used to references resources. Different than a `rivet.common#Uuid` because this is intended to be human readable. Different than `rivet.common#DisplayName` because this should not include special characters and be short. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudVersionMatchmakerLobbyGroupRuntime.md b/sdks/full/rust-cli/docs/CloudVersionMatchmakerLobbyGroupRuntime.md new file mode 100644 index 0000000000..69cfe540ab --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudVersionMatchmakerLobbyGroupRuntime.md @@ -0,0 +1,11 @@ +# CloudVersionMatchmakerLobbyGroupRuntime + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**docker** | Option<[**crate::models::CloudVersionMatchmakerLobbyGroupRuntimeDocker**](CloudVersionMatchmakerLobbyGroupRuntimeDocker.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudVersionMatchmakerLobbyGroupRuntimeDocker.md b/sdks/full/rust-cli/docs/CloudVersionMatchmakerLobbyGroupRuntimeDocker.md new file mode 100644 index 0000000000..bd7df0a727 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudVersionMatchmakerLobbyGroupRuntimeDocker.md @@ -0,0 +1,15 @@ +# CloudVersionMatchmakerLobbyGroupRuntimeDocker + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**args** | **Vec** | | +**build_id** | Option<[**uuid::Uuid**](uuid::Uuid.md)> | | [optional] +**env_vars** | [**Vec**](CloudVersionMatchmakerLobbyGroupRuntimeDockerEnvVar.md) | | +**network_mode** | Option<[**crate::models::CloudVersionMatchmakerNetworkMode**](CloudVersionMatchmakerNetworkMode.md)> | | [optional] +**ports** | [**Vec**](CloudVersionMatchmakerLobbyGroupRuntimeDockerPort.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudVersionMatchmakerLobbyGroupRuntimeDockerEnvVar.md b/sdks/full/rust-cli/docs/CloudVersionMatchmakerLobbyGroupRuntimeDockerEnvVar.md new file mode 100644 index 0000000000..92231f0158 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudVersionMatchmakerLobbyGroupRuntimeDockerEnvVar.md @@ -0,0 +1,12 @@ +# CloudVersionMatchmakerLobbyGroupRuntimeDockerEnvVar + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**key** | **String** | | +**value** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudVersionMatchmakerLobbyGroupRuntimeDockerPort.md b/sdks/full/rust-cli/docs/CloudVersionMatchmakerLobbyGroupRuntimeDockerPort.md new file mode 100644 index 0000000000..58d36fb8b8 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudVersionMatchmakerLobbyGroupRuntimeDockerPort.md @@ -0,0 +1,14 @@ +# CloudVersionMatchmakerLobbyGroupRuntimeDockerPort + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**label** | **String** | The label of this docker port. | +**port_range** | Option<[**crate::models::CloudVersionMatchmakerPortRange**](CloudVersionMatchmakerPortRange.md)> | | [optional] +**proxy_protocol** | [**crate::models::CloudVersionMatchmakerPortProtocol**](CloudVersionMatchmakerPortProtocol.md) | | +**target_port** | Option<**i32**> | The port number to connect to. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudVersionMatchmakerNetworkMode.md b/sdks/full/rust-cli/docs/CloudVersionMatchmakerNetworkMode.md new file mode 100644 index 0000000000..aa0cc8101d --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudVersionMatchmakerNetworkMode.md @@ -0,0 +1,10 @@ +# CloudVersionMatchmakerNetworkMode + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudVersionMatchmakerPortProtocol.md b/sdks/full/rust-cli/docs/CloudVersionMatchmakerPortProtocol.md new file mode 100644 index 0000000000..614b3a7a9d --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudVersionMatchmakerPortProtocol.md @@ -0,0 +1,10 @@ +# CloudVersionMatchmakerPortProtocol + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudVersionMatchmakerPortRange.md b/sdks/full/rust-cli/docs/CloudVersionMatchmakerPortRange.md new file mode 100644 index 0000000000..07eb013c29 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudVersionMatchmakerPortRange.md @@ -0,0 +1,12 @@ +# CloudVersionMatchmakerPortRange + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**max** | **i32** | Unsigned 32 bit integer. | +**min** | **i32** | Unsigned 32 bit integer. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudVersionMatchmakerProxyKind.md b/sdks/full/rust-cli/docs/CloudVersionMatchmakerProxyKind.md new file mode 100644 index 0000000000..787bb32866 --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudVersionMatchmakerProxyKind.md @@ -0,0 +1,10 @@ +# CloudVersionMatchmakerProxyKind + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/CloudVersionSummary.md b/sdks/full/rust-cli/docs/CloudVersionSummary.md new file mode 100644 index 0000000000..820cd4b7cb --- /dev/null +++ b/sdks/full/rust-cli/docs/CloudVersionSummary.md @@ -0,0 +1,13 @@ +# CloudVersionSummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**create_ts** | **String** | RFC3339 timestamp | +**display_name** | **String** | Represent a resource's readable display name. | +**version_id** | [**uuid::Uuid**](uuid::Uuid.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/ErrorBody.md b/sdks/full/rust-cli/docs/ErrorBody.md new file mode 100644 index 0000000000..53e4659415 --- /dev/null +++ b/sdks/full/rust-cli/docs/ErrorBody.md @@ -0,0 +1,15 @@ +# ErrorBody + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**code** | **String** | | +**documentation** | Option<**String**> | | [optional] +**message** | **String** | | +**metadata** | Option<[**serde_json::Value**](.md)> | Unstructured metadata relating to an error. Must be manually parsed. | [optional] +**ray_id** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/GameHandle.md b/sdks/full/rust-cli/docs/GameHandle.md new file mode 100644 index 0000000000..21d5ab9809 --- /dev/null +++ b/sdks/full/rust-cli/docs/GameHandle.md @@ -0,0 +1,15 @@ +# GameHandle + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**banner_url** | Option<**String**> | The URL of this game's banner image. | [optional] +**display_name** | **String** | Represent a resource's readable display name. | +**game_id** | [**uuid::Uuid**](uuid::Uuid.md) | | +**logo_url** | Option<**String**> | The URL of this game's logo image. | [optional] +**name_id** | **String** | A human readable short identifier used to references resources. Different than a `uuid` because this is intended to be human readable. Different than `DisplayName` because this should not include special characters and be short. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/GameLeaderboardCategory.md b/sdks/full/rust-cli/docs/GameLeaderboardCategory.md new file mode 100644 index 0000000000..4f22c421f3 --- /dev/null +++ b/sdks/full/rust-cli/docs/GameLeaderboardCategory.md @@ -0,0 +1,11 @@ +# GameLeaderboardCategory + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**display_name** | **String** | Represent a resource's readable display name. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/GamePlatformLink.md b/sdks/full/rust-cli/docs/GamePlatformLink.md new file mode 100644 index 0000000000..bc212bc949 --- /dev/null +++ b/sdks/full/rust-cli/docs/GamePlatformLink.md @@ -0,0 +1,12 @@ +# GamePlatformLink + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**display_name** | **String** | Represent a resource's readable display name. | +**url** | **String** | The URL to the given game's method of distribution on this platform. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/GameProfile.md b/sdks/full/rust-cli/docs/GameProfile.md new file mode 100644 index 0000000000..217c50c68b --- /dev/null +++ b/sdks/full/rust-cli/docs/GameProfile.md @@ -0,0 +1,23 @@ +# GameProfile + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**banner_url** | Option<**String**> | The URL of this game's banner image. | [optional] +**description** | **String** | A description of the given game. | +**developer** | [**crate::models::GroupSummary**](GroupSummary.md) | | +**display_name** | **String** | Represent a resource's readable display name. | +**game_id** | [**uuid::Uuid**](uuid::Uuid.md) | | +**group_leaderboard_categories** | [**Vec**](GameLeaderboardCategory.md) | A list of game leaderboard categories. | +**identity_leaderboard_categories** | [**Vec**](GameLeaderboardCategory.md) | A list of game leaderboard categories. | +**logo_url** | Option<**String**> | The URL of this game's logo image. | [optional] +**name_id** | **String** | A human readable short identifier used to references resources. Different than a `rivet.common#Uuid` because this is intended to be human readable. Different than `rivet.common#DisplayName` because this should not include special characters and be short. | +**platforms** | [**Vec**](GamePlatformLink.md) | A list of platform links. | +**recommended_groups** | [**Vec**](GroupSummary.md) | A list of group summaries. | +**tags** | **Vec** | A list of game tags. | +**url** | **String** | The URL to this game's website. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/GameStat.md b/sdks/full/rust-cli/docs/GameStat.md new file mode 100644 index 0000000000..710911a4b4 --- /dev/null +++ b/sdks/full/rust-cli/docs/GameStat.md @@ -0,0 +1,12 @@ +# GameStat + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**config** | [**crate::models::GameStatConfig**](GameStatConfig.md) | | +**overall_value** | **f64** | A single overall value of the given statistic. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/GameStatAggregationMethod.md b/sdks/full/rust-cli/docs/GameStatAggregationMethod.md new file mode 100644 index 0000000000..66efb32f0a --- /dev/null +++ b/sdks/full/rust-cli/docs/GameStatAggregationMethod.md @@ -0,0 +1,10 @@ +# GameStatAggregationMethod + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/GameStatConfig.md b/sdks/full/rust-cli/docs/GameStatConfig.md new file mode 100644 index 0000000000..f11e6ea9ee --- /dev/null +++ b/sdks/full/rust-cli/docs/GameStatConfig.md @@ -0,0 +1,21 @@ +# GameStatConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**aggregation** | [**crate::models::GameStatAggregationMethod**](GameStatAggregationMethod.md) | | +**display_name** | **String** | Represent a resource's readable display name. | +**format** | [**crate::models::GameStatFormatMethod**](GameStatFormatMethod.md) | | +**icon_id** | [**uuid::Uuid**](uuid::Uuid.md) | | +**postfix_plural** | Option<**String**> | A string appended to the end of a game statistic's value that is not exactly 1. Example: 45 **dollars**. | [optional] +**postfix_singular** | Option<**String**> | A string appended to the end of a singular game statistic's value. Example: 1 **dollar**. | [optional] +**prefix_plural** | Option<**String**> | A string prepended to the beginning of a game statistic's value that is not exactly 1. Example: **values** 45. | [optional] +**prefix_singular** | Option<**String**> | A string appended to the beginning of a singular game statistic's value. Example: **value** 1. | [optional] +**priority** | **i32** | | +**record_id** | [**uuid::Uuid**](uuid::Uuid.md) | | +**sorting** | [**crate::models::GameStatSortingMethod**](GameStatSortingMethod.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/GameStatFormatMethod.md b/sdks/full/rust-cli/docs/GameStatFormatMethod.md new file mode 100644 index 0000000000..12123c4c3f --- /dev/null +++ b/sdks/full/rust-cli/docs/GameStatFormatMethod.md @@ -0,0 +1,10 @@ +# GameStatFormatMethod + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/GameStatSortingMethod.md b/sdks/full/rust-cli/docs/GameStatSortingMethod.md new file mode 100644 index 0000000000..053a4b3d0a --- /dev/null +++ b/sdks/full/rust-cli/docs/GameStatSortingMethod.md @@ -0,0 +1,10 @@ +# GameStatSortingMethod + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/GameStatSummary.md b/sdks/full/rust-cli/docs/GameStatSummary.md new file mode 100644 index 0000000000..1d5ae18547 --- /dev/null +++ b/sdks/full/rust-cli/docs/GameStatSummary.md @@ -0,0 +1,12 @@ +# GameStatSummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**game** | [**crate::models::GameHandle**](GameHandle.md) | | +**stats** | [**Vec**](GameStat.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/GameSummary.md b/sdks/full/rust-cli/docs/GameSummary.md new file mode 100644 index 0000000000..5d421cb8f5 --- /dev/null +++ b/sdks/full/rust-cli/docs/GameSummary.md @@ -0,0 +1,18 @@ +# GameSummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**banner_url** | Option<**String**> | The URL of this game's banner image. | [optional] +**developer** | [**crate::models::GroupHandle**](GroupHandle.md) | | +**display_name** | **String** | Represent a resource's readable display name. | +**game_id** | [**uuid::Uuid**](uuid::Uuid.md) | | +**logo_url** | Option<**String**> | The URL of this game's logo image. | [optional] +**name_id** | **String** | A human readable short identifier used to references resources. Different than a `uuid` because this is intended to be human readable. Different than `DisplayName` because this should not include special characters and be short. | +**total_player_count** | **i32** | Unsigned 32 bit integer. | +**url** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/GeoCoord.md b/sdks/full/rust-cli/docs/GeoCoord.md new file mode 100644 index 0000000000..4ca238d544 --- /dev/null +++ b/sdks/full/rust-cli/docs/GeoCoord.md @@ -0,0 +1,12 @@ +# GeoCoord + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**latitude** | **f64** | | +**longitude** | **f64** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/GeoDistance.md b/sdks/full/rust-cli/docs/GeoDistance.md new file mode 100644 index 0000000000..b06e5575f0 --- /dev/null +++ b/sdks/full/rust-cli/docs/GeoDistance.md @@ -0,0 +1,12 @@ +# GeoDistance + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**kilometers** | **f64** | | +**miles** | **f64** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/GlobalEventNotification.md b/sdks/full/rust-cli/docs/GlobalEventNotification.md new file mode 100644 index 0000000000..7d1e57fd29 --- /dev/null +++ b/sdks/full/rust-cli/docs/GlobalEventNotification.md @@ -0,0 +1,14 @@ +# GlobalEventNotification + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **String** | | +**thumbnail_url** | **String** | | +**title** | **String** | | +**url** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/GroupApi.md b/sdks/full/rust-cli/docs/GroupApi.md new file mode 100644 index 0000000000..b7042992fc --- /dev/null +++ b/sdks/full/rust-cli/docs/GroupApi.md @@ -0,0 +1,549 @@ +# \GroupApi + +All URIs are relative to *https://api.rivet.gg* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**group_ban_identity**](GroupApi.md#group_ban_identity) | **POST** /group/groups/{group_id}/bans/{identity_id} | +[**group_complete_avatar_upload**](GroupApi.md#group_complete_avatar_upload) | **POST** /group/groups/{group_id}/avatar-upload/{upload_id}/complete | +[**group_create**](GroupApi.md#group_create) | **POST** /group/groups | +[**group_get_bans**](GroupApi.md#group_get_bans) | **GET** /group/groups/{group_id}/bans | +[**group_get_join_requests**](GroupApi.md#group_get_join_requests) | **GET** /group/groups/{group_id}/join-requests | +[**group_get_members**](GroupApi.md#group_get_members) | **GET** /group/groups/{group_id}/members | +[**group_get_profile**](GroupApi.md#group_get_profile) | **GET** /group/groups/{group_id}/profile | +[**group_get_summary**](GroupApi.md#group_get_summary) | **GET** /group/groups/{group_id}/summary | +[**group_kick_member**](GroupApi.md#group_kick_member) | **POST** /group/groups/{group_id}/kick/{identity_id} | +[**group_leave**](GroupApi.md#group_leave) | **POST** /group/groups/{group_id}/leave | +[**group_list_suggested**](GroupApi.md#group_list_suggested) | **GET** /group/groups | +[**group_prepare_avatar_upload**](GroupApi.md#group_prepare_avatar_upload) | **POST** /group/groups/avatar-upload/prepare | +[**group_search**](GroupApi.md#group_search) | **GET** /group/groups/search | +[**group_transfer_ownership**](GroupApi.md#group_transfer_ownership) | **POST** /group/groups/{group_id}/transfer-owner | +[**group_unban_identity**](GroupApi.md#group_unban_identity) | **DELETE** /group/groups/{group_id}/bans/{identity_id} | +[**group_update_profile**](GroupApi.md#group_update_profile) | **POST** /group/groups/{group_id}/profile | +[**group_validate_profile**](GroupApi.md#group_validate_profile) | **POST** /group/groups/profile/validate | + + + +## group_ban_identity + +> group_ban_identity(group_id, identity_id) + + +Bans an identity from a group. Must be the owner of the group to perform this action. The banned identity will no longer be able to create a join request or use a group invite. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**group_id** | **uuid::Uuid** | | [required] | +**identity_id** | **uuid::Uuid** | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## group_complete_avatar_upload + +> group_complete_avatar_upload(group_id, upload_id) + + +Completes an avatar image upload. Must be called after the file upload process completes. Call `rivet.api.group#PrepareAvatarUpload` first. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**group_id** | **uuid::Uuid** | | [required] | +**upload_id** | **uuid::Uuid** | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## group_create + +> crate::models::GroupCreateResponse group_create(group_create_request) + + +Creates a new group. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**group_create_request** | [**GroupCreateRequest**](GroupCreateRequest.md) | | [required] | + +### Return type + +[**crate::models::GroupCreateResponse**](GroupCreateResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## group_get_bans + +> crate::models::GroupGetBansResponse group_get_bans(group_id, anchor, count, watch_index) + + +Returns a group's bans. Must have valid permissions to view. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**group_id** | **uuid::Uuid** | | [required] | +**anchor** | Option<**String**> | The pagination anchor. Set to the returned anchor of this endpoint to receive the next set of items. | | +**count** | Option<**f64**> | Amount of bans to return. | | +**watch_index** | Option<**String**> | A query parameter denoting the requests watch index. | | + +### Return type + +[**crate::models::GroupGetBansResponse**](GroupGetBansResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## group_get_join_requests + +> crate::models::GroupGetJoinRequestsResponse group_get_join_requests(group_id, anchor, count, watch_index) + + +Returns a group's join requests. Must have valid permissions to view. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**group_id** | **uuid::Uuid** | | [required] | +**anchor** | Option<**String**> | The pagination anchor. Set to the returned anchor of this endpoint to receive the next set of items. | | +**count** | Option<**f64**> | Amount of join requests to return. | | +**watch_index** | Option<**String**> | A query parameter denoting the requests watch index. | | + +### Return type + +[**crate::models::GroupGetJoinRequestsResponse**](GroupGetJoinRequestsResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## group_get_members + +> crate::models::GroupGetMembersResponse group_get_members(group_id, anchor, count, watch_index) + + +Returns a group's members. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**group_id** | **uuid::Uuid** | | [required] | +**anchor** | Option<**String**> | The pagination anchor. Set to the returned anchor of this endpoint to receive the next set of items. | | +**count** | Option<**f64**> | Amount of members to return. | | +**watch_index** | Option<**String**> | A query parameter denoting the requests watch index. | | + +### Return type + +[**crate::models::GroupGetMembersResponse**](GroupGetMembersResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## group_get_profile + +> crate::models::GroupGetProfileResponse group_get_profile(group_id, watch_index) + + +Returns a group profile. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**group_id** | **uuid::Uuid** | | [required] | +**watch_index** | Option<**String**> | A query parameter denoting the requests watch index. | | + +### Return type + +[**crate::models::GroupGetProfileResponse**](GroupGetProfileResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## group_get_summary + +> crate::models::GroupGetSummaryResponse group_get_summary(group_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**group_id** | **uuid::Uuid** | | [required] | + +### Return type + +[**crate::models::GroupGetSummaryResponse**](GroupGetSummaryResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## group_kick_member + +> group_kick_member(group_id, identity_id) + + +Kicks an identity from a group. Must be the owner of the group to perform this action. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**group_id** | **uuid::Uuid** | | [required] | +**identity_id** | **uuid::Uuid** | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## group_leave + +> group_leave(group_id) + + +Leaves a group. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**group_id** | **uuid::Uuid** | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## group_list_suggested + +> crate::models::GroupListSuggestedResponse group_list_suggested(watch_index) + + +Returns a list of suggested groups. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**watch_index** | Option<**String**> | A query parameter denoting the requests watch index. | | + +### Return type + +[**crate::models::GroupListSuggestedResponse**](GroupListSuggestedResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## group_prepare_avatar_upload + +> crate::models::GroupPrepareAvatarUploadResponse group_prepare_avatar_upload(group_prepare_avatar_upload_request) + + +Prepares an avatar image upload. Complete upload with `rivet.api.group#CompleteAvatarUpload`. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**group_prepare_avatar_upload_request** | [**GroupPrepareAvatarUploadRequest**](GroupPrepareAvatarUploadRequest.md) | | [required] | + +### Return type + +[**crate::models::GroupPrepareAvatarUploadResponse**](GroupPrepareAvatarUploadResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## group_search + +> crate::models::GroupSearchResponse group_search(query, anchor, limit) + + +Fuzzy search for groups. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**query** | **String** | The query to match group display names against. | [required] | +**anchor** | Option<**String**> | | | +**limit** | Option<**f64**> | Unsigned 32 bit integer. | | + +### Return type + +[**crate::models::GroupSearchResponse**](GroupSearchResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## group_transfer_ownership + +> group_transfer_ownership(group_id, group_transfer_ownership_request) + + +Transfers ownership of a group to another identity. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**group_id** | **uuid::Uuid** | | [required] | +**group_transfer_ownership_request** | [**GroupTransferOwnershipRequest**](GroupTransferOwnershipRequest.md) | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## group_unban_identity + +> group_unban_identity(group_id, identity_id) + + +Unbans an identity from a group. Must be the owner of the group to perform this action. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**group_id** | **uuid::Uuid** | | [required] | +**identity_id** | **uuid::Uuid** | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## group_update_profile + +> group_update_profile(group_id, group_update_profile_request) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**group_id** | **uuid::Uuid** | | [required] | +**group_update_profile_request** | [**GroupUpdateProfileRequest**](GroupUpdateProfileRequest.md) | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## group_validate_profile + +> crate::models::GroupValidateProfileResponse group_validate_profile(group_validate_profile_request) + + +Validate contents of group profile. Use to provide immediate feedback on profile changes before committing them. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**group_validate_profile_request** | [**GroupValidateProfileRequest**](GroupValidateProfileRequest.md) | | [required] | + +### Return type + +[**crate::models::GroupValidateProfileResponse**](GroupValidateProfileResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/sdks/full/rust-cli/docs/GroupBannedIdentity.md b/sdks/full/rust-cli/docs/GroupBannedIdentity.md new file mode 100644 index 0000000000..cd6aadff02 --- /dev/null +++ b/sdks/full/rust-cli/docs/GroupBannedIdentity.md @@ -0,0 +1,12 @@ +# GroupBannedIdentity + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ban_ts** | **String** | RFC3339 timestamp | +**identity** | [**crate::models::IdentityHandle**](IdentityHandle.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/GroupConsumeInviteResponse.md b/sdks/full/rust-cli/docs/GroupConsumeInviteResponse.md new file mode 100644 index 0000000000..17109cf1b0 --- /dev/null +++ b/sdks/full/rust-cli/docs/GroupConsumeInviteResponse.md @@ -0,0 +1,11 @@ +# GroupConsumeInviteResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**group_id** | Option<[**uuid::Uuid**](uuid::Uuid.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/GroupCreateInviteRequest.md b/sdks/full/rust-cli/docs/GroupCreateInviteRequest.md new file mode 100644 index 0000000000..8ea7d8610a --- /dev/null +++ b/sdks/full/rust-cli/docs/GroupCreateInviteRequest.md @@ -0,0 +1,12 @@ +# GroupCreateInviteRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ttl** | Option<**f64**> | How long until the group invite expires (in milliseconds). | [optional] +**use_count** | Option<**f64**> | How many times the group invite can be used. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/GroupCreateInviteResponse.md b/sdks/full/rust-cli/docs/GroupCreateInviteResponse.md new file mode 100644 index 0000000000..f8bb082672 --- /dev/null +++ b/sdks/full/rust-cli/docs/GroupCreateInviteResponse.md @@ -0,0 +1,11 @@ +# GroupCreateInviteResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**code** | **String** | The code that will be passed to `rivet.api.group#ConsumeInvite` to join a group. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/GroupCreateRequest.md b/sdks/full/rust-cli/docs/GroupCreateRequest.md new file mode 100644 index 0000000000..112b0a960a --- /dev/null +++ b/sdks/full/rust-cli/docs/GroupCreateRequest.md @@ -0,0 +1,11 @@ +# GroupCreateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**display_name** | **String** | Represent a resource's readable display name. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/GroupCreateResponse.md b/sdks/full/rust-cli/docs/GroupCreateResponse.md new file mode 100644 index 0000000000..30b7d3283a --- /dev/null +++ b/sdks/full/rust-cli/docs/GroupCreateResponse.md @@ -0,0 +1,11 @@ +# GroupCreateResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**group_id** | [**uuid::Uuid**](uuid::Uuid.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/GroupExternalLinks.md b/sdks/full/rust-cli/docs/GroupExternalLinks.md new file mode 100644 index 0000000000..b216f55b21 --- /dev/null +++ b/sdks/full/rust-cli/docs/GroupExternalLinks.md @@ -0,0 +1,11 @@ +# GroupExternalLinks + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**profile** | **String** | A link to this group's profile page. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/GroupGetBansResponse.md b/sdks/full/rust-cli/docs/GroupGetBansResponse.md new file mode 100644 index 0000000000..e393d233d4 --- /dev/null +++ b/sdks/full/rust-cli/docs/GroupGetBansResponse.md @@ -0,0 +1,13 @@ +# GroupGetBansResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**anchor** | Option<**String**> | The pagination anchor. | [optional] +**banned_identities** | [**Vec**](GroupBannedIdentity.md) | A list of banned group members. | +**watch** | [**crate::models::WatchResponse**](WatchResponse.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/GroupGetInviteResponse.md b/sdks/full/rust-cli/docs/GroupGetInviteResponse.md new file mode 100644 index 0000000000..23509fdffe --- /dev/null +++ b/sdks/full/rust-cli/docs/GroupGetInviteResponse.md @@ -0,0 +1,11 @@ +# GroupGetInviteResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**group** | [**crate::models::GroupHandle**](GroupHandle.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/GroupGetJoinRequestsResponse.md b/sdks/full/rust-cli/docs/GroupGetJoinRequestsResponse.md new file mode 100644 index 0000000000..c170d6a749 --- /dev/null +++ b/sdks/full/rust-cli/docs/GroupGetJoinRequestsResponse.md @@ -0,0 +1,13 @@ +# GroupGetJoinRequestsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**anchor** | Option<**String**> | The pagination anchor. | [optional] +**join_requests** | [**Vec**](GroupJoinRequest.md) | A list of group join requests. | +**watch** | [**crate::models::WatchResponse**](WatchResponse.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/GroupGetMembersResponse.md b/sdks/full/rust-cli/docs/GroupGetMembersResponse.md new file mode 100644 index 0000000000..9362b70400 --- /dev/null +++ b/sdks/full/rust-cli/docs/GroupGetMembersResponse.md @@ -0,0 +1,13 @@ +# GroupGetMembersResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**anchor** | Option<**String**> | The pagination anchor. | [optional] +**members** | [**Vec**](GroupMember.md) | A list of group members. | +**watch** | [**crate::models::WatchResponse**](WatchResponse.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/GroupGetProfileResponse.md b/sdks/full/rust-cli/docs/GroupGetProfileResponse.md new file mode 100644 index 0000000000..dee7662d77 --- /dev/null +++ b/sdks/full/rust-cli/docs/GroupGetProfileResponse.md @@ -0,0 +1,12 @@ +# GroupGetProfileResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**group** | [**crate::models::GroupProfile**](GroupProfile.md) | | +**watch** | [**crate::models::WatchResponse**](WatchResponse.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/GroupGetSummaryResponse.md b/sdks/full/rust-cli/docs/GroupGetSummaryResponse.md new file mode 100644 index 0000000000..1db50d7b5e --- /dev/null +++ b/sdks/full/rust-cli/docs/GroupGetSummaryResponse.md @@ -0,0 +1,11 @@ +# GroupGetSummaryResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**group** | [**crate::models::GroupSummary**](GroupSummary.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/GroupHandle.md b/sdks/full/rust-cli/docs/GroupHandle.md new file mode 100644 index 0000000000..9eb1e35c46 --- /dev/null +++ b/sdks/full/rust-cli/docs/GroupHandle.md @@ -0,0 +1,15 @@ +# GroupHandle + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**avatar_url** | Option<**String**> | The URL of this group's avatar image | [optional] +**display_name** | **String** | Represent a resource's readable display name. | +**external** | [**crate::models::GroupExternalLinks**](GroupExternalLinks.md) | | +**group_id** | [**uuid::Uuid**](uuid::Uuid.md) | | +**is_developer** | Option<**bool**> | Whether or not this group is a developer group. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/GroupInvitesApi.md b/sdks/full/rust-cli/docs/GroupInvitesApi.md new file mode 100644 index 0000000000..303fc595db --- /dev/null +++ b/sdks/full/rust-cli/docs/GroupInvitesApi.md @@ -0,0 +1,102 @@ +# \GroupInvitesApi + +All URIs are relative to *https://api.rivet.gg* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**group_invites_consume_invite**](GroupInvitesApi.md#group_invites_consume_invite) | **POST** /group/invites/{group_invite_code}/consume | +[**group_invites_create_invite**](GroupInvitesApi.md#group_invites_create_invite) | **POST** /group/groups/{group_id}/invites | +[**group_invites_get_invite**](GroupInvitesApi.md#group_invites_get_invite) | **GET** /group/invites/{group_invite_code} | + + + +## group_invites_consume_invite + +> crate::models::GroupConsumeInviteResponse group_invites_consume_invite(group_invite_code) + + +Consumes a group invite to join a group. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**group_invite_code** | **String** | Provided by `rivet.api.group#CreateInviteResponse$code`. | [required] | + +### Return type + +[**crate::models::GroupConsumeInviteResponse**](GroupConsumeInviteResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## group_invites_create_invite + +> crate::models::GroupCreateInviteResponse group_invites_create_invite(group_id, group_create_invite_request) + + +Creates a group invite. Can be shared with other identities to let them join this group. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**group_id** | **uuid::Uuid** | | [required] | +**group_create_invite_request** | [**GroupCreateInviteRequest**](GroupCreateInviteRequest.md) | | [required] | + +### Return type + +[**crate::models::GroupCreateInviteResponse**](GroupCreateInviteResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## group_invites_get_invite + +> crate::models::GroupGetInviteResponse group_invites_get_invite(group_invite_code) + + +Inspects a group invite returning information about the team that created it. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**group_invite_code** | **String** | Provided by `rivet.api.group#CreateInviteResponse$code`. | [required] | + +### Return type + +[**crate::models::GroupGetInviteResponse**](GroupGetInviteResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/sdks/full/rust-cli/docs/GroupJoinRequest.md b/sdks/full/rust-cli/docs/GroupJoinRequest.md new file mode 100644 index 0000000000..9a0307703f --- /dev/null +++ b/sdks/full/rust-cli/docs/GroupJoinRequest.md @@ -0,0 +1,12 @@ +# GroupJoinRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**identity** | [**crate::models::IdentityHandle**](IdentityHandle.md) | | +**ts** | **String** | RFC3339 timestamp | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/GroupJoinRequestsApi.md b/sdks/full/rust-cli/docs/GroupJoinRequestsApi.md new file mode 100644 index 0000000000..4018b07198 --- /dev/null +++ b/sdks/full/rust-cli/docs/GroupJoinRequestsApi.md @@ -0,0 +1,72 @@ +# \GroupJoinRequestsApi + +All URIs are relative to *https://api.rivet.gg* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**group_join_requests_create_join_request**](GroupJoinRequestsApi.md#group_join_requests_create_join_request) | **POST** /group/groups/{group_id}/join-request | +[**group_join_requests_resolve_join_request**](GroupJoinRequestsApi.md#group_join_requests_resolve_join_request) | **POST** /group/groups/{group_id}/join-request/{identity_id} | + + + +## group_join_requests_create_join_request + +> group_join_requests_create_join_request(group_id) + + +Requests to join a group. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**group_id** | **uuid::Uuid** | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## group_join_requests_resolve_join_request + +> group_join_requests_resolve_join_request(group_id, identity_id, group_resolve_join_request_request) + + +Resolves a join request for a given group. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**group_id** | **uuid::Uuid** | | [required] | +**identity_id** | **uuid::Uuid** | | [required] | +**group_resolve_join_request_request** | [**GroupResolveJoinRequestRequest**](GroupResolveJoinRequestRequest.md) | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/sdks/full/rust-cli/docs/GroupListSuggestedResponse.md b/sdks/full/rust-cli/docs/GroupListSuggestedResponse.md new file mode 100644 index 0000000000..ffaed0a93f --- /dev/null +++ b/sdks/full/rust-cli/docs/GroupListSuggestedResponse.md @@ -0,0 +1,12 @@ +# GroupListSuggestedResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**groups** | [**Vec**](GroupSummary.md) | A list of group summaries. | +**watch** | [**crate::models::WatchResponse**](WatchResponse.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/GroupMember.md b/sdks/full/rust-cli/docs/GroupMember.md new file mode 100644 index 0000000000..7e5979f62a --- /dev/null +++ b/sdks/full/rust-cli/docs/GroupMember.md @@ -0,0 +1,11 @@ +# GroupMember + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**identity** | [**crate::models::IdentityHandle**](IdentityHandle.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/GroupPrepareAvatarUploadRequest.md b/sdks/full/rust-cli/docs/GroupPrepareAvatarUploadRequest.md new file mode 100644 index 0000000000..c73eaf1f99 --- /dev/null +++ b/sdks/full/rust-cli/docs/GroupPrepareAvatarUploadRequest.md @@ -0,0 +1,13 @@ +# GroupPrepareAvatarUploadRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**content_length** | **i64** | Unsigned 64 bit integer. | +**mime** | Option<**String**> | The MIME type of the group avatar. | [optional] +**path** | **String** | The path/filename of the group avatar. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/GroupPrepareAvatarUploadResponse.md b/sdks/full/rust-cli/docs/GroupPrepareAvatarUploadResponse.md new file mode 100644 index 0000000000..011da580f7 --- /dev/null +++ b/sdks/full/rust-cli/docs/GroupPrepareAvatarUploadResponse.md @@ -0,0 +1,12 @@ +# GroupPrepareAvatarUploadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**presigned_request** | [**crate::models::UploadPresignedRequest**](UploadPresignedRequest.md) | | +**upload_id** | [**uuid::Uuid**](uuid::Uuid.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/GroupProfile.md b/sdks/full/rust-cli/docs/GroupProfile.md new file mode 100644 index 0000000000..ea58979585 --- /dev/null +++ b/sdks/full/rust-cli/docs/GroupProfile.md @@ -0,0 +1,23 @@ +# GroupProfile + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**avatar_url** | Option<**String**> | The URL of this group's avatar image. | [optional] +**bio** | **String** | Detailed information about a profile. | +**display_name** | **String** | Represent a resource's readable display name. | +**external** | [**crate::models::GroupExternalLinks**](GroupExternalLinks.md) | | +**group_id** | [**uuid::Uuid**](uuid::Uuid.md) | | +**is_current_identity_member** | Option<**bool**> | Whether or not the current identity is a member of this group. | [optional] +**is_current_identity_requesting_join** | Option<**bool**> | Whether or not the current identity is currently requesting to join this group. | [optional] +**is_developer** | Option<**bool**> | Whether or not this group is a developer. | [optional] +**join_requests** | [**Vec**](GroupJoinRequest.md) | A list of group join requests. | +**member_count** | Option<**i32**> | Unsigned 32 bit integer. | [optional] +**members** | [**Vec**](GroupMember.md) | A list of group members. | +**owner_identity_id** | [**uuid::Uuid**](uuid::Uuid.md) | | +**publicity** | [**crate::models::GroupPublicity**](GroupPublicity.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/GroupPublicity.md b/sdks/full/rust-cli/docs/GroupPublicity.md new file mode 100644 index 0000000000..aad14f39fb --- /dev/null +++ b/sdks/full/rust-cli/docs/GroupPublicity.md @@ -0,0 +1,10 @@ +# GroupPublicity + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/GroupResolveJoinRequestRequest.md b/sdks/full/rust-cli/docs/GroupResolveJoinRequestRequest.md new file mode 100644 index 0000000000..2d887e1068 --- /dev/null +++ b/sdks/full/rust-cli/docs/GroupResolveJoinRequestRequest.md @@ -0,0 +1,11 @@ +# GroupResolveJoinRequestRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**resolution** | Option<**bool**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/GroupSearchResponse.md b/sdks/full/rust-cli/docs/GroupSearchResponse.md new file mode 100644 index 0000000000..d7d5b596e0 --- /dev/null +++ b/sdks/full/rust-cli/docs/GroupSearchResponse.md @@ -0,0 +1,12 @@ +# GroupSearchResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**anchor** | Option<**String**> | | [optional] +**groups** | [**Vec**](GroupHandle.md) | A list of group handles. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/GroupSummary.md b/sdks/full/rust-cli/docs/GroupSummary.md new file mode 100644 index 0000000000..9905aaf838 --- /dev/null +++ b/sdks/full/rust-cli/docs/GroupSummary.md @@ -0,0 +1,20 @@ +# GroupSummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**avatar_url** | Option<**String**> | The URL of this group's avatar image. | [optional] +**bio** | **String** | Follows regex ^(?:[^\\n\\r]+\\n?|\\n){1,5}$ | +**display_name** | **String** | Represent a resource's readable display name. | +**external** | [**crate::models::GroupExternalLinks**](GroupExternalLinks.md) | | +**group_id** | [**uuid::Uuid**](uuid::Uuid.md) | | +**is_current_identity_member** | **bool** | Whether or not the current identity is a member of this group. | +**is_developer** | **bool** | **Deprecated** Whether or not this group is a developer. | +**member_count** | **i32** | | +**owner_identity_id** | [**uuid::Uuid**](uuid::Uuid.md) | | +**publicity** | [**crate::models::GroupPublicity**](GroupPublicity.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/GroupTransferOwnershipRequest.md b/sdks/full/rust-cli/docs/GroupTransferOwnershipRequest.md new file mode 100644 index 0000000000..586497f9cb --- /dev/null +++ b/sdks/full/rust-cli/docs/GroupTransferOwnershipRequest.md @@ -0,0 +1,11 @@ +# GroupTransferOwnershipRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**new_owner_identity_id** | **String** | Identity to transfer the group to. Must be a member of the group. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/GroupUpdateProfileRequest.md b/sdks/full/rust-cli/docs/GroupUpdateProfileRequest.md new file mode 100644 index 0000000000..f70bbe190a --- /dev/null +++ b/sdks/full/rust-cli/docs/GroupUpdateProfileRequest.md @@ -0,0 +1,13 @@ +# GroupUpdateProfileRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bio** | Option<**String**> | Detailed information about a profile. | [optional] +**display_name** | Option<**String**> | Represent a resource's readable display name. | [optional] +**publicity** | Option<[**crate::models::GroupPublicity**](GroupPublicity.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/GroupValidateProfileRequest.md b/sdks/full/rust-cli/docs/GroupValidateProfileRequest.md new file mode 100644 index 0000000000..ee83335004 --- /dev/null +++ b/sdks/full/rust-cli/docs/GroupValidateProfileRequest.md @@ -0,0 +1,13 @@ +# GroupValidateProfileRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bio** | Option<**String**> | Represent a resource's readable display name. | [optional] +**display_name** | Option<**String**> | Represent a resource's readable display name. | [optional] +**publicity** | Option<[**crate::models::GroupPublicity**](GroupPublicity.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/GroupValidateProfileResponse.md b/sdks/full/rust-cli/docs/GroupValidateProfileResponse.md new file mode 100644 index 0000000000..72dbfd87e3 --- /dev/null +++ b/sdks/full/rust-cli/docs/GroupValidateProfileResponse.md @@ -0,0 +1,11 @@ +# GroupValidateProfileResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**errors** | [**Vec**](ValidationError.md) | A list of validation errors. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/IdentityAccessTokenLinkedAccount.md b/sdks/full/rust-cli/docs/IdentityAccessTokenLinkedAccount.md new file mode 100644 index 0000000000..364d1fe201 --- /dev/null +++ b/sdks/full/rust-cli/docs/IdentityAccessTokenLinkedAccount.md @@ -0,0 +1,11 @@ +# IdentityAccessTokenLinkedAccount + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/IdentityActivitiesApi.md b/sdks/full/rust-cli/docs/IdentityActivitiesApi.md new file mode 100644 index 0000000000..878f5d88fe --- /dev/null +++ b/sdks/full/rust-cli/docs/IdentityActivitiesApi.md @@ -0,0 +1,39 @@ +# \IdentityActivitiesApi + +All URIs are relative to *https://api.rivet.gg* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**identity_activities_list**](IdentityActivitiesApi.md#identity_activities_list) | **GET** /identity/activities | + + + +## identity_activities_list + +> crate::models::IdentityListActivitiesResponse identity_activities_list(watch_index) + + +Returns an overview of all players currently online or in game. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**watch_index** | Option<**String**> | | | + +### Return type + +[**crate::models::IdentityListActivitiesResponse**](IdentityListActivitiesResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/sdks/full/rust-cli/docs/IdentityApi.md b/sdks/full/rust-cli/docs/IdentityApi.md new file mode 100644 index 0000000000..ae0d55788f --- /dev/null +++ b/sdks/full/rust-cli/docs/IdentityApi.md @@ -0,0 +1,770 @@ +# \IdentityApi + +All URIs are relative to *https://api.rivet.gg* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**identity_complete_avatar_upload**](IdentityApi.md#identity_complete_avatar_upload) | **POST** /identity/identities/avatar-upload/{upload_id}/complete | +[**identity_follow**](IdentityApi.md#identity_follow) | **POST** /identity/identities/{identity_id}/follow | +[**identity_get_handles**](IdentityApi.md#identity_get_handles) | **GET** /identity/identities/batch/handle | +[**identity_get_profile**](IdentityApi.md#identity_get_profile) | **GET** /identity/identities/{identity_id}/profile | +[**identity_get_self_profile**](IdentityApi.md#identity_get_self_profile) | **GET** /identity/identities/self/profile | +[**identity_get_summaries**](IdentityApi.md#identity_get_summaries) | **GET** /identity/identities/batch/summary | +[**identity_ignore_recent_follower**](IdentityApi.md#identity_ignore_recent_follower) | **POST** /identity/identities/self/recent-followers/{identity_id}/ignore | +[**identity_list_followers**](IdentityApi.md#identity_list_followers) | **GET** /identity/identities/{identity_id}/followers | +[**identity_list_following**](IdentityApi.md#identity_list_following) | **GET** /identity/identities/{identity_id}/following | +[**identity_list_friends**](IdentityApi.md#identity_list_friends) | **GET** /identity/identities/self/friends | +[**identity_list_mutual_friends**](IdentityApi.md#identity_list_mutual_friends) | **GET** /identity/identities/{identity_id}/mutual-friends | +[**identity_list_recent_followers**](IdentityApi.md#identity_list_recent_followers) | **GET** /identity/identities/self/recent-followers | +[**identity_mark_deletion**](IdentityApi.md#identity_mark_deletion) | **POST** /identity/identities/self/delete-request | +[**identity_prepare_avatar_upload**](IdentityApi.md#identity_prepare_avatar_upload) | **POST** /identity/identities/avatar-upload/prepare | +[**identity_remove_game_activity**](IdentityApi.md#identity_remove_game_activity) | **DELETE** /identity/identities/self/activity | +[**identity_report**](IdentityApi.md#identity_report) | **POST** /identity/identities/{identity_id}/report | +[**identity_search**](IdentityApi.md#identity_search) | **GET** /identity/identities/search | +[**identity_set_game_activity**](IdentityApi.md#identity_set_game_activity) | **POST** /identity/identities/self/activity | +[**identity_setup**](IdentityApi.md#identity_setup) | **POST** /identity/identities | +[**identity_signup_for_beta**](IdentityApi.md#identity_signup_for_beta) | **POST** /identity/identities/self/beta-signup | +[**identity_unfollow**](IdentityApi.md#identity_unfollow) | **DELETE** /identity/identities/{identity_id}/follow | +[**identity_unmark_deletion**](IdentityApi.md#identity_unmark_deletion) | **DELETE** /identity/identities/self/delete-request | +[**identity_update_profile**](IdentityApi.md#identity_update_profile) | **POST** /identity/identities/self/profile | +[**identity_update_status**](IdentityApi.md#identity_update_status) | **POST** /identity/identities/identities/self/status | +[**identity_validate_profile**](IdentityApi.md#identity_validate_profile) | **POST** /identity/identities/self/profile/validate | + + + +## identity_complete_avatar_upload + +> identity_complete_avatar_upload(upload_id) + + +Completes an avatar image upload. Must be called after the file upload process completes. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**upload_id** | **uuid::Uuid** | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## identity_follow + +> identity_follow(identity_id) + + +Follows the given identity. In order for identities to be \"friends\", the other identity has to also follow this identity. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**identity_id** | **uuid::Uuid** | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## identity_get_handles + +> crate::models::IdentityGetHandlesResponse identity_get_handles(identity_ids) + + +Fetches a list of identity handles. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**identity_ids** | **String** | | [required] | + +### Return type + +[**crate::models::IdentityGetHandlesResponse**](IdentityGetHandlesResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## identity_get_profile + +> crate::models::IdentityGetProfileResponse identity_get_profile(identity_id, watch_index) + + +Fetches an identity profile. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**identity_id** | **uuid::Uuid** | | [required] | +**watch_index** | Option<**String**> | | | + +### Return type + +[**crate::models::IdentityGetProfileResponse**](IdentityGetProfileResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## identity_get_self_profile + +> crate::models::IdentityGetProfileResponse identity_get_self_profile(watch_index) + + +Fetches the current identity's profile. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**watch_index** | Option<**String**> | | | + +### Return type + +[**crate::models::IdentityGetProfileResponse**](IdentityGetProfileResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## identity_get_summaries + +> crate::models::IdentityGetSummariesResponse identity_get_summaries(identity_ids) + + +Fetches a list of identity summaries. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**identity_ids** | **String** | | [required] | + +### Return type + +[**crate::models::IdentityGetSummariesResponse**](IdentityGetSummariesResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## identity_ignore_recent_follower + +> identity_ignore_recent_follower(identity_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**identity_id** | **uuid::Uuid** | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## identity_list_followers + +> crate::models::IdentityListFollowersResponse identity_list_followers(identity_id, anchor, limit) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**identity_id** | **uuid::Uuid** | | [required] | +**anchor** | Option<**String**> | | | +**limit** | Option<**String**> | Range is between 1 and 32 (inclusive). | | + +### Return type + +[**crate::models::IdentityListFollowersResponse**](IdentityListFollowersResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## identity_list_following + +> crate::models::IdentityListFollowingResponse identity_list_following(identity_id, anchor, limit) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**identity_id** | **uuid::Uuid** | | [required] | +**anchor** | Option<**String**> | | | +**limit** | Option<**String**> | Range is between 1 and 32 (inclusive). | | + +### Return type + +[**crate::models::IdentityListFollowingResponse**](IdentityListFollowingResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## identity_list_friends + +> crate::models::IdentityListFriendsResponse identity_list_friends(anchor, limit) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**anchor** | Option<**String**> | | | +**limit** | Option<**String**> | Range is between 1 and 32 (inclusive). | | + +### Return type + +[**crate::models::IdentityListFriendsResponse**](IdentityListFriendsResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## identity_list_mutual_friends + +> crate::models::IdentityListMutualFriendsResponse identity_list_mutual_friends(identity_id, anchor, limit) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**identity_id** | **uuid::Uuid** | | [required] | +**anchor** | Option<**String**> | | | +**limit** | Option<**String**> | Range is between 1 and 32 (inclusive). | | + +### Return type + +[**crate::models::IdentityListMutualFriendsResponse**](IdentityListMutualFriendsResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## identity_list_recent_followers + +> crate::models::IdentityListRecentFollowersResponse identity_list_recent_followers(count, watch_index) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**count** | Option<**i32**> | | | +**watch_index** | Option<**String**> | | | + +### Return type + +[**crate::models::IdentityListRecentFollowersResponse**](IdentityListRecentFollowersResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## identity_mark_deletion + +> identity_mark_deletion() + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## identity_prepare_avatar_upload + +> crate::models::IdentityPrepareAvatarUploadResponse identity_prepare_avatar_upload(identity_prepare_avatar_upload_request) + + +Prepares an avatar image upload. Complete upload with `CompleteIdentityAvatarUpload`. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**identity_prepare_avatar_upload_request** | [**IdentityPrepareAvatarUploadRequest**](IdentityPrepareAvatarUploadRequest.md) | | [required] | + +### Return type + +[**crate::models::IdentityPrepareAvatarUploadResponse**](IdentityPrepareAvatarUploadResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## identity_remove_game_activity + +> identity_remove_game_activity() + + +Removes the current identity's game activity. + +### Parameters + +This endpoint does not need any parameter. + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## identity_report + +> identity_report(identity_id, identity_report_request) + + +Creates an abuse report for an identity. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**identity_id** | **uuid::Uuid** | | [required] | +**identity_report_request** | [**IdentityReportRequest**](IdentityReportRequest.md) | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## identity_search + +> crate::models::IdentitySearchResponse identity_search(query, anchor, limit) + + +Fuzzy search for identities. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**query** | **String** | The query to match identity display names and account numbers against. | [required] | +**anchor** | Option<**String**> | How many identities to offset the search by. | | +**limit** | Option<**i32**> | Amount of identities to return. Must be between 1 and 32 inclusive. | | + +### Return type + +[**crate::models::IdentitySearchResponse**](IdentitySearchResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## identity_set_game_activity + +> identity_set_game_activity(identity_set_game_activity_request) + + +Sets the current identity's game activity. This activity will automatically be removed when the identity goes offline. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**identity_set_game_activity_request** | [**IdentitySetGameActivityRequest**](IdentitySetGameActivityRequest.md) | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## identity_setup + +> crate::models::IdentitySetupResponse identity_setup(identity_setup_request) + + +Gets or creates an identity. Passing an existing identity token in the body refreshes the token. Temporary Accounts Until the identity is linked with the Rivet Hub (see `PrepareGameLink`), this identity will be temporary but still behave like all other identities. This is intended to allow users to play the game without signing up while still having the benefits of having an account. When they are ready to save their account, they should be instructed to link their account (see `PrepareGameLink`). Storing Token `identity_token` should be stored in some form of persistent storage. The token should be read from storage and passed to `Setup` every time the client starts. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**identity_setup_request** | [**IdentitySetupRequest**](IdentitySetupRequest.md) | | [required] | + +### Return type + +[**crate::models::IdentitySetupResponse**](IdentitySetupResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## identity_signup_for_beta + +> identity_signup_for_beta(identity_signup_for_beta_request) + + +Completes an avatar image upload. Must be called after the file upload process completes. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**identity_signup_for_beta_request** | [**IdentitySignupForBetaRequest**](IdentitySignupForBetaRequest.md) | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## identity_unfollow + +> identity_unfollow(identity_id) + + +Unfollows the given identity. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**identity_id** | **uuid::Uuid** | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## identity_unmark_deletion + +> identity_unmark_deletion() + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## identity_update_profile + +> identity_update_profile(identity_update_profile_request) + + +Updates profile of the current identity. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**identity_update_profile_request** | [**IdentityUpdateProfileRequest**](IdentityUpdateProfileRequest.md) | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## identity_update_status + +> identity_update_status(identity_update_status_request) + + +Updates the current identity's status. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**identity_update_status_request** | [**IdentityUpdateStatusRequest**](IdentityUpdateStatusRequest.md) | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## identity_validate_profile + +> identity_validate_profile(identity_update_profile_request) + + +Validate contents of identity profile. Use to provide immediate feedback on profile changes before committing them. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**identity_update_profile_request** | [**IdentityUpdateProfileRequest**](IdentityUpdateProfileRequest.md) | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/sdks/full/rust-cli/docs/IdentityCancelGameLinkRequest.md b/sdks/full/rust-cli/docs/IdentityCancelGameLinkRequest.md new file mode 100644 index 0000000000..fdc38ee3db --- /dev/null +++ b/sdks/full/rust-cli/docs/IdentityCancelGameLinkRequest.md @@ -0,0 +1,11 @@ +# IdentityCancelGameLinkRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**identity_link_token** | **String** | Documentation at https://jwt.io/ | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/IdentityCompleteGameLinkRequest.md b/sdks/full/rust-cli/docs/IdentityCompleteGameLinkRequest.md new file mode 100644 index 0000000000..84a2a86451 --- /dev/null +++ b/sdks/full/rust-cli/docs/IdentityCompleteGameLinkRequest.md @@ -0,0 +1,11 @@ +# IdentityCompleteGameLinkRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**identity_link_token** | **String** | Documentation at https://jwt.io/ | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/IdentityDevState.md b/sdks/full/rust-cli/docs/IdentityDevState.md new file mode 100644 index 0000000000..5934401972 --- /dev/null +++ b/sdks/full/rust-cli/docs/IdentityDevState.md @@ -0,0 +1,10 @@ +# IdentityDevState + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/IdentityEmailLinkedAccount.md b/sdks/full/rust-cli/docs/IdentityEmailLinkedAccount.md new file mode 100644 index 0000000000..f09166f264 --- /dev/null +++ b/sdks/full/rust-cli/docs/IdentityEmailLinkedAccount.md @@ -0,0 +1,11 @@ +# IdentityEmailLinkedAccount + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**email** | **String** | A valid email address | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/IdentityEventsApi.md b/sdks/full/rust-cli/docs/IdentityEventsApi.md new file mode 100644 index 0000000000..3d3d2bf6d3 --- /dev/null +++ b/sdks/full/rust-cli/docs/IdentityEventsApi.md @@ -0,0 +1,39 @@ +# \IdentityEventsApi + +All URIs are relative to *https://api.rivet.gg* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**identity_events_watch**](IdentityEventsApi.md#identity_events_watch) | **GET** /identity/events/live | + + + +## identity_events_watch + +> crate::models::IdentityWatchEventsResponse identity_events_watch(watch_index) + + +Returns all events relative to the current identity. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**watch_index** | Option<**String**> | | | + +### Return type + +[**crate::models::IdentityWatchEventsResponse**](IdentityWatchEventsResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/sdks/full/rust-cli/docs/IdentityExternalLinks.md b/sdks/full/rust-cli/docs/IdentityExternalLinks.md new file mode 100644 index 0000000000..6f8d724d9f --- /dev/null +++ b/sdks/full/rust-cli/docs/IdentityExternalLinks.md @@ -0,0 +1,12 @@ +# IdentityExternalLinks + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**profile** | **String** | A link to this identity's profile page. | +**settings** | Option<**String**> | A link to the Rivet settings page. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/IdentityGameActivity.md b/sdks/full/rust-cli/docs/IdentityGameActivity.md new file mode 100644 index 0000000000..99d20ad0fe --- /dev/null +++ b/sdks/full/rust-cli/docs/IdentityGameActivity.md @@ -0,0 +1,14 @@ +# IdentityGameActivity + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**game** | [**crate::models::GameHandle**](GameHandle.md) | | +**message** | **String** | A short activity message about the current game activity. | +**mutual_metadata** | Option<[**serde_json::Value**](.md)> | JSON data seen only by the given identity and their mutual followers. | [optional] +**public_metadata** | Option<[**serde_json::Value**](.md)> | JSON data seen by anyone. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/IdentityGameLinkStatus.md b/sdks/full/rust-cli/docs/IdentityGameLinkStatus.md new file mode 100644 index 0000000000..9455112195 --- /dev/null +++ b/sdks/full/rust-cli/docs/IdentityGameLinkStatus.md @@ -0,0 +1,10 @@ +# IdentityGameLinkStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/IdentityGetGameLinkNewIdentity.md b/sdks/full/rust-cli/docs/IdentityGetGameLinkNewIdentity.md new file mode 100644 index 0000000000..ca35a6612d --- /dev/null +++ b/sdks/full/rust-cli/docs/IdentityGetGameLinkNewIdentity.md @@ -0,0 +1,13 @@ +# IdentityGetGameLinkNewIdentity + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**identity** | [**crate::models::IdentityProfile**](IdentityProfile.md) | | +**identity_token** | **String** | Documentation at https://jwt.io/ | +**identity_token_expire_ts** | **String** | RFC3339 timestamp | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/IdentityGetGameLinkResponse.md b/sdks/full/rust-cli/docs/IdentityGetGameLinkResponse.md new file mode 100644 index 0000000000..0c4da269c7 --- /dev/null +++ b/sdks/full/rust-cli/docs/IdentityGetGameLinkResponse.md @@ -0,0 +1,15 @@ +# IdentityGetGameLinkResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**current_identity** | [**crate::models::IdentityHandle**](IdentityHandle.md) | | +**game** | [**crate::models::GameHandle**](GameHandle.md) | | +**new_identity** | Option<[**crate::models::IdentityGetGameLinkNewIdentity**](IdentityGetGameLinkNewIdentity.md)> | | [optional] +**status** | [**crate::models::IdentityGameLinkStatus**](IdentityGameLinkStatus.md) | | +**watch** | [**crate::models::WatchResponse**](WatchResponse.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/IdentityGetHandlesResponse.md b/sdks/full/rust-cli/docs/IdentityGetHandlesResponse.md new file mode 100644 index 0000000000..6c22309932 --- /dev/null +++ b/sdks/full/rust-cli/docs/IdentityGetHandlesResponse.md @@ -0,0 +1,12 @@ +# IdentityGetHandlesResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**identities** | [**Vec**](IdentityHandle.md) | | +**watch** | [**crate::models::WatchResponse**](WatchResponse.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/IdentityGetProfileResponse.md b/sdks/full/rust-cli/docs/IdentityGetProfileResponse.md new file mode 100644 index 0000000000..59181472d1 --- /dev/null +++ b/sdks/full/rust-cli/docs/IdentityGetProfileResponse.md @@ -0,0 +1,12 @@ +# IdentityGetProfileResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**identity** | [**crate::models::IdentityProfile**](IdentityProfile.md) | | +**watch** | [**crate::models::WatchResponse**](WatchResponse.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/IdentityGetSummariesResponse.md b/sdks/full/rust-cli/docs/IdentityGetSummariesResponse.md new file mode 100644 index 0000000000..3605a09100 --- /dev/null +++ b/sdks/full/rust-cli/docs/IdentityGetSummariesResponse.md @@ -0,0 +1,12 @@ +# IdentityGetSummariesResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**identities** | [**Vec**](IdentitySummary.md) | | +**watch** | [**crate::models::WatchResponse**](WatchResponse.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/IdentityGlobalEvent.md b/sdks/full/rust-cli/docs/IdentityGlobalEvent.md new file mode 100644 index 0000000000..8c0ea2d415 --- /dev/null +++ b/sdks/full/rust-cli/docs/IdentityGlobalEvent.md @@ -0,0 +1,13 @@ +# IdentityGlobalEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**kind** | [**crate::models::IdentityGlobalEventKind**](IdentityGlobalEventKind.md) | | +**notification** | Option<[**crate::models::IdentityGlobalEventNotification**](IdentityGlobalEventNotification.md)> | | [optional] +**ts** | **String** | RFC3339 timestamp | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/IdentityGlobalEventIdentityUpdate.md b/sdks/full/rust-cli/docs/IdentityGlobalEventIdentityUpdate.md new file mode 100644 index 0000000000..2d9cd07bd8 --- /dev/null +++ b/sdks/full/rust-cli/docs/IdentityGlobalEventIdentityUpdate.md @@ -0,0 +1,11 @@ +# IdentityGlobalEventIdentityUpdate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**identity** | [**crate::models::IdentityProfile**](IdentityProfile.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/IdentityGlobalEventKind.md b/sdks/full/rust-cli/docs/IdentityGlobalEventKind.md new file mode 100644 index 0000000000..86d3944414 --- /dev/null +++ b/sdks/full/rust-cli/docs/IdentityGlobalEventKind.md @@ -0,0 +1,12 @@ +# IdentityGlobalEventKind + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**identity_update** | Option<[**crate::models::IdentityGlobalEventIdentityUpdate**](IdentityGlobalEventIdentityUpdate.md)> | | [optional] +**matchmaker_lobby_join** | Option<[**crate::models::IdentityGlobalEventMatchmakerLobbyJoin**](IdentityGlobalEventMatchmakerLobbyJoin.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/IdentityGlobalEventMatchmakerLobbyJoin.md b/sdks/full/rust-cli/docs/IdentityGlobalEventMatchmakerLobbyJoin.md new file mode 100644 index 0000000000..3f6fa0a745 --- /dev/null +++ b/sdks/full/rust-cli/docs/IdentityGlobalEventMatchmakerLobbyJoin.md @@ -0,0 +1,13 @@ +# IdentityGlobalEventMatchmakerLobbyJoin + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**lobby** | [**crate::models::MatchmakerJoinLobby**](MatchmakerJoinLobby.md) | | +**player** | [**crate::models::MatchmakerJoinPlayer**](MatchmakerJoinPlayer.md) | | +**ports** | [**::std::collections::HashMap**](MatchmakerJoinPort.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/IdentityGlobalEventNotification.md b/sdks/full/rust-cli/docs/IdentityGlobalEventNotification.md new file mode 100644 index 0000000000..8c20ce1e5a --- /dev/null +++ b/sdks/full/rust-cli/docs/IdentityGlobalEventNotification.md @@ -0,0 +1,14 @@ +# IdentityGlobalEventNotification + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **String** | | +**thumbnail_url** | **String** | URL to an image thumbnail that should be shown for this notification. | +**title** | **String** | | +**url** | **String** | Rivet Hub URL that holds the relevant context for this notification. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/IdentityGroup.md b/sdks/full/rust-cli/docs/IdentityGroup.md new file mode 100644 index 0000000000..e961478d70 --- /dev/null +++ b/sdks/full/rust-cli/docs/IdentityGroup.md @@ -0,0 +1,11 @@ +# IdentityGroup + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**group** | [**crate::models::GroupHandle**](GroupHandle.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/IdentityHandle.md b/sdks/full/rust-cli/docs/IdentityHandle.md new file mode 100644 index 0000000000..629764404f --- /dev/null +++ b/sdks/full/rust-cli/docs/IdentityHandle.md @@ -0,0 +1,17 @@ +# IdentityHandle + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_number** | **i32** | | +**avatar_url** | **String** | The URL of this identity's avatar image. | +**display_name** | **String** | Represent a resource's readable display name. | +**external** | [**crate::models::IdentityExternalLinks**](IdentityExternalLinks.md) | | +**identity_id** | [**uuid::Uuid**](uuid::Uuid.md) | | +**is_registered** | **bool** | Whether or not this identity is registered with a linked account. | +**presence** | Option<[**crate::models::IdentityPresence**](IdentityPresence.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/IdentityLinkedAccount.md b/sdks/full/rust-cli/docs/IdentityLinkedAccount.md new file mode 100644 index 0000000000..3cb3fec9af --- /dev/null +++ b/sdks/full/rust-cli/docs/IdentityLinkedAccount.md @@ -0,0 +1,12 @@ +# IdentityLinkedAccount + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**access_token** | Option<[**crate::models::IdentityAccessTokenLinkedAccount**](IdentityAccessTokenLinkedAccount.md)> | | [optional] +**email** | Option<[**crate::models::IdentityEmailLinkedAccount**](IdentityEmailLinkedAccount.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/IdentityLinksApi.md b/sdks/full/rust-cli/docs/IdentityLinksApi.md new file mode 100644 index 0000000000..c1988a16f1 --- /dev/null +++ b/sdks/full/rust-cli/docs/IdentityLinksApi.md @@ -0,0 +1,130 @@ +# \IdentityLinksApi + +All URIs are relative to *https://api.rivet.gg* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**identity_links_cancel**](IdentityLinksApi.md#identity_links_cancel) | **POST** /identity/game-links/cancel | +[**identity_links_complete**](IdentityLinksApi.md#identity_links_complete) | **POST** /identity/game-links/complete | +[**identity_links_get**](IdentityLinksApi.md#identity_links_get) | **GET** /identity/game-links | +[**identity_links_prepare**](IdentityLinksApi.md#identity_links_prepare) | **POST** /identity/game-links | + + + +## identity_links_cancel + +> identity_links_cancel(identity_cancel_game_link_request) + + +Cancels a game link. It can no longer be used to link after cancellation. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**identity_cancel_game_link_request** | [**IdentityCancelGameLinkRequest**](IdentityCancelGameLinkRequest.md) | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## identity_links_complete + +> identity_links_complete(identity_complete_game_link_request) + + +Completes a game link process and returns whether or not the link is valid. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**identity_complete_game_link_request** | [**IdentityCompleteGameLinkRequest**](IdentityCompleteGameLinkRequest.md) | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## identity_links_get + +> crate::models::IdentityGetGameLinkResponse identity_links_get(identity_link_token, watch_index) + + +Returns the current status of a linking process. Once `status` is `complete`, the identity's profile should be fetched again since they may have switched accounts. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**identity_link_token** | **String** | | [required] | +**watch_index** | Option<**String**> | | | + +### Return type + +[**crate::models::IdentityGetGameLinkResponse**](IdentityGetGameLinkResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## identity_links_prepare + +> crate::models::IdentityPrepareGameLinkResponse identity_links_prepare() + + +Begins the process for linking an identity with the Rivet Hub. # Importance of Linking Identities When an identity is created via `rivet.api.identity#SetupIdentity`, the identity is temporary and is not shared with other games the user plays. In order to make the identity permanent and synchronize the identity with other games, the identity must be linked with the hub. # Linking Process The linking process works by opening `identity_link_url` in a browser then polling `rivet.api.identity#GetGameLink` to wait for it to complete. This is designed to be as flexible as possible so `identity_link_url` can be opened on any device. For example, when playing a console game, the user can scan a QR code for `identity_link_url` to authenticate on their phone. + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**crate::models::IdentityPrepareGameLinkResponse**](IdentityPrepareGameLinkResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/sdks/full/rust-cli/docs/IdentityListActivitiesResponse.md b/sdks/full/rust-cli/docs/IdentityListActivitiesResponse.md new file mode 100644 index 0000000000..b6a876ea3c --- /dev/null +++ b/sdks/full/rust-cli/docs/IdentityListActivitiesResponse.md @@ -0,0 +1,15 @@ +# IdentityListActivitiesResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**games** | [**Vec**](GameSummary.md) | | +**identities** | [**Vec**](IdentityHandle.md) | | +**suggested_groups** | [**Vec**](GroupSummary.md) | | +**suggested_players** | [**Vec**](IdentityHandle.md) | | +**watch** | [**crate::models::WatchResponse**](WatchResponse.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/IdentityListFollowersResponse.md b/sdks/full/rust-cli/docs/IdentityListFollowersResponse.md new file mode 100644 index 0000000000..6a90f8b2fd --- /dev/null +++ b/sdks/full/rust-cli/docs/IdentityListFollowersResponse.md @@ -0,0 +1,13 @@ +# IdentityListFollowersResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**anchor** | Option<**String**> | | [optional] +**identities** | [**Vec**](IdentityHandle.md) | | +**watch** | [**crate::models::WatchResponse**](WatchResponse.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/IdentityListFollowingResponse.md b/sdks/full/rust-cli/docs/IdentityListFollowingResponse.md new file mode 100644 index 0000000000..b703055bcb --- /dev/null +++ b/sdks/full/rust-cli/docs/IdentityListFollowingResponse.md @@ -0,0 +1,13 @@ +# IdentityListFollowingResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**anchor** | Option<**String**> | | [optional] +**identities** | [**Vec**](IdentityHandle.md) | | +**watch** | [**crate::models::WatchResponse**](WatchResponse.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/IdentityListFriendsResponse.md b/sdks/full/rust-cli/docs/IdentityListFriendsResponse.md new file mode 100644 index 0000000000..7b35a28472 --- /dev/null +++ b/sdks/full/rust-cli/docs/IdentityListFriendsResponse.md @@ -0,0 +1,13 @@ +# IdentityListFriendsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**anchor** | Option<**String**> | | [optional] +**identities** | [**Vec**](IdentityHandle.md) | | +**watch** | [**crate::models::WatchResponse**](WatchResponse.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/IdentityListMutualFriendsResponse.md b/sdks/full/rust-cli/docs/IdentityListMutualFriendsResponse.md new file mode 100644 index 0000000000..be14e66554 --- /dev/null +++ b/sdks/full/rust-cli/docs/IdentityListMutualFriendsResponse.md @@ -0,0 +1,12 @@ +# IdentityListMutualFriendsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**anchor** | Option<**String**> | | [optional] +**identities** | [**Vec**](IdentityHandle.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/IdentityListRecentFollowersResponse.md b/sdks/full/rust-cli/docs/IdentityListRecentFollowersResponse.md new file mode 100644 index 0000000000..1c3a279307 --- /dev/null +++ b/sdks/full/rust-cli/docs/IdentityListRecentFollowersResponse.md @@ -0,0 +1,13 @@ +# IdentityListRecentFollowersResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**anchor** | Option<**String**> | | [optional] +**identities** | [**Vec**](IdentityHandle.md) | | +**watch** | [**crate::models::WatchResponse**](WatchResponse.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/IdentityPrepareAvatarUploadRequest.md b/sdks/full/rust-cli/docs/IdentityPrepareAvatarUploadRequest.md new file mode 100644 index 0000000000..c8cb865892 --- /dev/null +++ b/sdks/full/rust-cli/docs/IdentityPrepareAvatarUploadRequest.md @@ -0,0 +1,13 @@ +# IdentityPrepareAvatarUploadRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**content_length** | **i64** | | +**mime** | **String** | See https://www.iana.org/assignments/media-types/media-types.xhtml | +**path** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/IdentityPrepareAvatarUploadResponse.md b/sdks/full/rust-cli/docs/IdentityPrepareAvatarUploadResponse.md new file mode 100644 index 0000000000..b2dcb72fe4 --- /dev/null +++ b/sdks/full/rust-cli/docs/IdentityPrepareAvatarUploadResponse.md @@ -0,0 +1,12 @@ +# IdentityPrepareAvatarUploadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**presigned_request** | [**crate::models::UploadPresignedRequest**](UploadPresignedRequest.md) | | +**upload_id** | [**uuid::Uuid**](uuid::Uuid.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/IdentityPrepareGameLinkResponse.md b/sdks/full/rust-cli/docs/IdentityPrepareGameLinkResponse.md new file mode 100644 index 0000000000..dc6cd813f4 --- /dev/null +++ b/sdks/full/rust-cli/docs/IdentityPrepareGameLinkResponse.md @@ -0,0 +1,13 @@ +# IdentityPrepareGameLinkResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**expire_ts** | **String** | RFC3339 timestamp | +**identity_link_token** | **String** | Pass this to `GetGameLink` to get the linking status. Valid for 15 minutes. | +**identity_link_url** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/IdentityPresence.md b/sdks/full/rust-cli/docs/IdentityPresence.md new file mode 100644 index 0000000000..66a71fd89e --- /dev/null +++ b/sdks/full/rust-cli/docs/IdentityPresence.md @@ -0,0 +1,13 @@ +# IdentityPresence + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**game_activity** | Option<[**crate::models::IdentityGameActivity**](IdentityGameActivity.md)> | | [optional] +**status** | [**crate::models::IdentityStatus**](IdentityStatus.md) | | +**update_ts** | **String** | RFC3339 timestamp | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/IdentityProfile.md b/sdks/full/rust-cli/docs/IdentityProfile.md new file mode 100644 index 0000000000..9c79c1ee4d --- /dev/null +++ b/sdks/full/rust-cli/docs/IdentityProfile.md @@ -0,0 +1,31 @@ +# IdentityProfile + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_number** | **i32** | | +**avatar_url** | **String** | The URL of this identity's avatar image. | +**awaiting_deletion** | Option<**bool**> | Whether or not this identity is awaiting account deletion. Only visible to when the requestee is this identity. | [optional] +**bio** | **String** | Follows regex ^(?:[^\\n\\r]+\\n?|\\n){1,5}$ | +**dev_state** | Option<[**crate::models::IdentityDevState**](IdentityDevState.md)> | | [optional] +**display_name** | **String** | Represent a resource's readable display name. | +**external** | [**crate::models::IdentityExternalLinks**](IdentityExternalLinks.md) | | +**follower_count** | **i64** | | +**following** | **bool** | Whether or not the requestee's identity is following this identity. | +**following_count** | **i64** | | +**games** | [**Vec**](GameStatSummary.md) | | +**groups** | [**Vec**](IdentityGroup.md) | | +**identity_id** | [**uuid::Uuid**](uuid::Uuid.md) | | +**is_admin** | **bool** | Whether or not this identity is an admin. | +**is_following_me** | **bool** | Whether or not this identity is both following and is followed by the requestee's identity. | +**is_game_linked** | Option<**bool**> | Whether or not this game user has been linked through the Rivet dashboard. | [optional] +**is_mutual_following** | **bool** | | +**is_registered** | **bool** | Whether or not this identity is registered with a linked account. | +**join_ts** | **String** | RFC3339 timestamp | +**linked_accounts** | [**Vec**](IdentityLinkedAccount.md) | | +**presence** | Option<[**crate::models::IdentityPresence**](IdentityPresence.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/IdentityReportRequest.md b/sdks/full/rust-cli/docs/IdentityReportRequest.md new file mode 100644 index 0000000000..d1b3022709 --- /dev/null +++ b/sdks/full/rust-cli/docs/IdentityReportRequest.md @@ -0,0 +1,11 @@ +# IdentityReportRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reason** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/IdentitySearchResponse.md b/sdks/full/rust-cli/docs/IdentitySearchResponse.md new file mode 100644 index 0000000000..38b9698305 --- /dev/null +++ b/sdks/full/rust-cli/docs/IdentitySearchResponse.md @@ -0,0 +1,12 @@ +# IdentitySearchResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**anchor** | Option<**String**> | The pagination anchor. | [optional] +**identities** | [**Vec**](IdentityHandle.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/IdentitySetGameActivityRequest.md b/sdks/full/rust-cli/docs/IdentitySetGameActivityRequest.md new file mode 100644 index 0000000000..a8a044536c --- /dev/null +++ b/sdks/full/rust-cli/docs/IdentitySetGameActivityRequest.md @@ -0,0 +1,11 @@ +# IdentitySetGameActivityRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**game_activity** | [**crate::models::IdentityUpdateGameActivity**](IdentityUpdateGameActivity.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/IdentitySetupRequest.md b/sdks/full/rust-cli/docs/IdentitySetupRequest.md new file mode 100644 index 0000000000..1ae990da1a --- /dev/null +++ b/sdks/full/rust-cli/docs/IdentitySetupRequest.md @@ -0,0 +1,11 @@ +# IdentitySetupRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**existing_identity_token** | Option<**String**> | Documentation at https://jwt.io/ | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/IdentitySetupResponse.md b/sdks/full/rust-cli/docs/IdentitySetupResponse.md new file mode 100644 index 0000000000..18f209b27b --- /dev/null +++ b/sdks/full/rust-cli/docs/IdentitySetupResponse.md @@ -0,0 +1,14 @@ +# IdentitySetupResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**game_id** | [**uuid::Uuid**](uuid::Uuid.md) | | +**identity** | [**crate::models::IdentityProfile**](IdentityProfile.md) | | +**identity_token** | **String** | Documentation at https://jwt.io/ | +**identity_token_expire_ts** | **String** | RFC3339 timestamp | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/IdentitySignupForBetaRequest.md b/sdks/full/rust-cli/docs/IdentitySignupForBetaRequest.md new file mode 100644 index 0000000000..44fac0430d --- /dev/null +++ b/sdks/full/rust-cli/docs/IdentitySignupForBetaRequest.md @@ -0,0 +1,15 @@ +# IdentitySignupForBetaRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**company_name** | Option<**String**> | | [optional] +**company_size** | **String** | | +**goals** | **String** | | +**name** | **String** | | +**preferred_tools** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/IdentityStatus.md b/sdks/full/rust-cli/docs/IdentityStatus.md new file mode 100644 index 0000000000..d7399858e7 --- /dev/null +++ b/sdks/full/rust-cli/docs/IdentityStatus.md @@ -0,0 +1,10 @@ +# IdentityStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/IdentitySummary.md b/sdks/full/rust-cli/docs/IdentitySummary.md new file mode 100644 index 0000000000..8b956b7a4e --- /dev/null +++ b/sdks/full/rust-cli/docs/IdentitySummary.md @@ -0,0 +1,20 @@ +# IdentitySummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_number** | **i32** | | +**avatar_url** | **String** | The URL of this identity's avatar image. | +**display_name** | **String** | Represent a resource's readable display name. | +**external** | [**crate::models::IdentityExternalLinks**](IdentityExternalLinks.md) | | +**following** | **bool** | Whether or not the requestee's identity is following this identity. | +**identity_id** | [**uuid::Uuid**](uuid::Uuid.md) | | +**is_following_me** | **bool** | Whether or not this identity is both following and is followed by the requestee's identity. | +**is_mutual_following** | **bool** | | +**is_registered** | **bool** | Whether or not this identity is registered with a linked account. | +**presence** | Option<[**crate::models::IdentityPresence**](IdentityPresence.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/IdentityUpdateGameActivity.md b/sdks/full/rust-cli/docs/IdentityUpdateGameActivity.md new file mode 100644 index 0000000000..c8bfcf1e56 --- /dev/null +++ b/sdks/full/rust-cli/docs/IdentityUpdateGameActivity.md @@ -0,0 +1,13 @@ +# IdentityUpdateGameActivity + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | Option<**String**> | A short message about the current game activity. | [optional] +**mutual_metadata** | Option<[**serde_json::Value**](.md)> | JSON data seen only by the given identity and their mutual followers. | [optional] +**public_metadata** | Option<[**serde_json::Value**](.md)> | JSON data seen by anyone. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/IdentityUpdateProfileRequest.md b/sdks/full/rust-cli/docs/IdentityUpdateProfileRequest.md new file mode 100644 index 0000000000..bf63d3e257 --- /dev/null +++ b/sdks/full/rust-cli/docs/IdentityUpdateProfileRequest.md @@ -0,0 +1,13 @@ +# IdentityUpdateProfileRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_number** | Option<**i32**> | | [optional] +**bio** | Option<**String**> | Follows regex ^(?:[^\\n\\r]+\\n?|\\n){1,5}$ | [optional] +**display_name** | Option<**String**> | Represent a resource's readable display name. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/IdentityUpdateStatusRequest.md b/sdks/full/rust-cli/docs/IdentityUpdateStatusRequest.md new file mode 100644 index 0000000000..9a3cdb1a0c --- /dev/null +++ b/sdks/full/rust-cli/docs/IdentityUpdateStatusRequest.md @@ -0,0 +1,11 @@ +# IdentityUpdateStatusRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | [**crate::models::IdentityStatus**](IdentityStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/IdentityValidateProfileResponse.md b/sdks/full/rust-cli/docs/IdentityValidateProfileResponse.md new file mode 100644 index 0000000000..3d0319b1d6 --- /dev/null +++ b/sdks/full/rust-cli/docs/IdentityValidateProfileResponse.md @@ -0,0 +1,11 @@ +# IdentityValidateProfileResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**errors** | [**Vec**](ValidationError.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/IdentityWatchEventsResponse.md b/sdks/full/rust-cli/docs/IdentityWatchEventsResponse.md new file mode 100644 index 0000000000..cb14e7a958 --- /dev/null +++ b/sdks/full/rust-cli/docs/IdentityWatchEventsResponse.md @@ -0,0 +1,12 @@ +# IdentityWatchEventsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**events** | [**Vec**](IdentityGlobalEvent.md) | | +**watch** | [**crate::models::WatchResponse**](WatchResponse.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/JobRunApi.md b/sdks/full/rust-cli/docs/JobRunApi.md new file mode 100644 index 0000000000..0184803488 --- /dev/null +++ b/sdks/full/rust-cli/docs/JobRunApi.md @@ -0,0 +1,34 @@ +# \JobRunApi + +All URIs are relative to *https://api.rivet.gg* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**job_run_cleanup**](JobRunApi.md#job_run_cleanup) | **POST** /job/runs/cleanup | + + + +## job_run_cleanup + +> job_run_cleanup() + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/sdks/full/rust-cli/docs/KvApi.md b/sdks/full/rust-cli/docs/KvApi.md new file mode 100644 index 0000000000..acb99b4f9d --- /dev/null +++ b/sdks/full/rust-cli/docs/KvApi.md @@ -0,0 +1,232 @@ +# \KvApi + +All URIs are relative to *https://api.rivet.gg* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**kv_delete**](KvApi.md#kv_delete) | **DELETE** /kv/entries | +[**kv_delete_batch**](KvApi.md#kv_delete_batch) | **DELETE** /kv/entries/batch | +[**kv_get**](KvApi.md#kv_get) | **GET** /kv/entries | +[**kv_get_batch**](KvApi.md#kv_get_batch) | **GET** /kv/entries/batch | +[**kv_list**](KvApi.md#kv_list) | **GET** /kv/entries/list | +[**kv_put**](KvApi.md#kv_put) | **PUT** /kv/entries | +[**kv_put_batch**](KvApi.md#kv_put_batch) | **PUT** /kv/entries/batch | + + + +## kv_delete + +> kv_delete(key, namespace_id) + + +Deletes a key-value entry by key. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**key** | **String** | | [required] | +**namespace_id** | Option<**uuid::Uuid**> | | | + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## kv_delete_batch + +> kv_delete_batch(keys, namespace_id) + + +Deletes multiple key-value entries by key(s). + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**keys** | **String** | | [required] | +**namespace_id** | Option<**uuid::Uuid**> | | | + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## kv_get + +> crate::models::KvGetResponse kv_get(key, watch_index, namespace_id) + + +Returns a specific key-value entry by key. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**key** | **String** | | [required] | +**watch_index** | Option<**String**> | A query parameter denoting the requests watch index. | | +**namespace_id** | Option<**uuid::Uuid**> | | | + +### Return type + +[**crate::models::KvGetResponse**](KvGetResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## kv_get_batch + +> crate::models::KvGetBatchResponse kv_get_batch(keys, watch_index, namespace_id) + + +Gets multiple key-value entries by key(s). + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**keys** | **String** | | [required] | +**watch_index** | Option<**String**> | A query parameter denoting the requests watch index. | | +**namespace_id** | Option<**uuid::Uuid**> | | | + +### Return type + +[**crate::models::KvGetBatchResponse**](KvGetBatchResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## kv_list + +> crate::models::KvListResponse kv_list(directory, namespace_id) + + +Lists all keys in a directory. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**directory** | **String** | | [required] | +**namespace_id** | **uuid::Uuid** | | [required] | + +### Return type + +[**crate::models::KvListResponse**](KvListResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## kv_put + +> kv_put(kv_put_request) + + +Puts (sets or overwrites) a key-value entry by key. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**kv_put_request** | [**KvPutRequest**](KvPutRequest.md) | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## kv_put_batch + +> kv_put_batch(kv_put_batch_request) + + +Puts (sets or overwrites) multiple key-value entries by key(s). + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**kv_put_batch_request** | [**KvPutBatchRequest**](KvPutBatchRequest.md) | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/sdks/full/rust-cli/docs/KvEntry.md b/sdks/full/rust-cli/docs/KvEntry.md new file mode 100644 index 0000000000..203241453f --- /dev/null +++ b/sdks/full/rust-cli/docs/KvEntry.md @@ -0,0 +1,13 @@ +# KvEntry + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**deleted** | Option<**bool**> | | [optional] +**key** | **String** | A string representing a key in the key-value database. Maximum length of 512 characters. _Recommended Key Path Format_ Key path components are split by a slash (e.g. `a/b/c` has the path components `[\"a\", \"b\", \"c\"]`). Slashes can be escaped by using a backslash (e.g. `a/b/c/d` has the path components `[\"a\", \"b/c\", \"d\"]`). This format is not enforced by Rivet, but the tools built around Rivet KV work better if this format is used. | +**value** | Option<[**serde_json::Value**](.md)> | A JSON object stored in the KV database. A `null` value indicates the entry is deleted. Maximum length of 262,144 bytes when encoded. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/KvGetBatchResponse.md b/sdks/full/rust-cli/docs/KvGetBatchResponse.md new file mode 100644 index 0000000000..33ecbfdd4e --- /dev/null +++ b/sdks/full/rust-cli/docs/KvGetBatchResponse.md @@ -0,0 +1,12 @@ +# KvGetBatchResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**entries** | [**Vec**](KvEntry.md) | | +**watch** | [**crate::models::WatchResponse**](WatchResponse.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/KvGetResponse.md b/sdks/full/rust-cli/docs/KvGetResponse.md new file mode 100644 index 0000000000..323c9260e4 --- /dev/null +++ b/sdks/full/rust-cli/docs/KvGetResponse.md @@ -0,0 +1,13 @@ +# KvGetResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**deleted** | Option<**bool**> | Whether or not the entry has been deleted. Only set when watching this endpoint. | [optional] +**value** | Option<[**serde_json::Value**](.md)> | A JSON object stored in the KV database. A `null` value indicates the entry is deleted. Maximum length of 262,144 bytes when encoded. | +**watch** | [**crate::models::WatchResponse**](WatchResponse.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/KvListResponse.md b/sdks/full/rust-cli/docs/KvListResponse.md new file mode 100644 index 0000000000..2315cef877 --- /dev/null +++ b/sdks/full/rust-cli/docs/KvListResponse.md @@ -0,0 +1,11 @@ +# KvListResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**entries** | [**Vec**](KvEntry.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/KvPutBatchRequest.md b/sdks/full/rust-cli/docs/KvPutBatchRequest.md new file mode 100644 index 0000000000..07c4ee6c7c --- /dev/null +++ b/sdks/full/rust-cli/docs/KvPutBatchRequest.md @@ -0,0 +1,12 @@ +# KvPutBatchRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**entries** | [**Vec**](KvPutEntry.md) | | +**namespace_id** | Option<[**uuid::Uuid**](uuid::Uuid.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/KvPutEntry.md b/sdks/full/rust-cli/docs/KvPutEntry.md new file mode 100644 index 0000000000..9e2d465b8c --- /dev/null +++ b/sdks/full/rust-cli/docs/KvPutEntry.md @@ -0,0 +1,12 @@ +# KvPutEntry + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**key** | **String** | A string representing a key in the key-value database. Maximum length of 512 characters. _Recommended Key Path Format_ Key path components are split by a slash (e.g. `a/b/c` has the path components `[\"a\", \"b\", \"c\"]`). Slashes can be escaped by using a backslash (e.g. `a/b/c/d` has the path components `[\"a\", \"b/c\", \"d\"]`). This format is not enforced by Rivet, but the tools built around Rivet KV work better if this format is used. | +**value** | Option<[**serde_json::Value**](.md)> | A JSON object stored in the KV database. A `null` value indicates the entry is deleted. Maximum length of 262,144 bytes when encoded. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/KvPutRequest.md b/sdks/full/rust-cli/docs/KvPutRequest.md new file mode 100644 index 0000000000..44af60b311 --- /dev/null +++ b/sdks/full/rust-cli/docs/KvPutRequest.md @@ -0,0 +1,13 @@ +# KvPutRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**key** | **String** | A string representing a key in the key-value database. Maximum length of 512 characters. _Recommended Key Path Format_ Key path components are split by a slash (e.g. `a/b/c` has the path components `[\"a\", \"b\", \"c\"]`). Slashes can be escaped by using a backslash (e.g. `a/b/c/d` has the path components `[\"a\", \"b/c\", \"d\"]`). This format is not enforced by Rivet, but the tools built around Rivet KV work better if this format is used. | +**namespace_id** | Option<[**uuid::Uuid**](uuid::Uuid.md)> | | [optional] +**value** | Option<[**serde_json::Value**](.md)> | A JSON object stored in the KV database. A `null` value indicates the entry is deleted. Maximum length of 262,144 bytes when encoded. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/MatchmakerCreateLobbyResponse.md b/sdks/full/rust-cli/docs/MatchmakerCreateLobbyResponse.md new file mode 100644 index 0000000000..d00ff19503 --- /dev/null +++ b/sdks/full/rust-cli/docs/MatchmakerCreateLobbyResponse.md @@ -0,0 +1,13 @@ +# MatchmakerCreateLobbyResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**lobby** | [**crate::models::MatchmakerJoinLobby**](MatchmakerJoinLobby.md) | | +**player** | [**crate::models::MatchmakerJoinPlayer**](MatchmakerJoinPlayer.md) | | +**ports** | [**::std::collections::HashMap**](MatchmakerJoinPort.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/MatchmakerCustomLobbyPublicity.md b/sdks/full/rust-cli/docs/MatchmakerCustomLobbyPublicity.md new file mode 100644 index 0000000000..9ef8998a74 --- /dev/null +++ b/sdks/full/rust-cli/docs/MatchmakerCustomLobbyPublicity.md @@ -0,0 +1,10 @@ +# MatchmakerCustomLobbyPublicity + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/MatchmakerFindLobbyResponse.md b/sdks/full/rust-cli/docs/MatchmakerFindLobbyResponse.md new file mode 100644 index 0000000000..de44dba1a0 --- /dev/null +++ b/sdks/full/rust-cli/docs/MatchmakerFindLobbyResponse.md @@ -0,0 +1,13 @@ +# MatchmakerFindLobbyResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**lobby** | [**crate::models::MatchmakerJoinLobby**](MatchmakerJoinLobby.md) | | +**player** | [**crate::models::MatchmakerJoinPlayer**](MatchmakerJoinPlayer.md) | | +**ports** | [**::std::collections::HashMap**](MatchmakerJoinPort.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/MatchmakerGameModeInfo.md b/sdks/full/rust-cli/docs/MatchmakerGameModeInfo.md new file mode 100644 index 0000000000..2fd265125b --- /dev/null +++ b/sdks/full/rust-cli/docs/MatchmakerGameModeInfo.md @@ -0,0 +1,11 @@ +# MatchmakerGameModeInfo + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**game_mode_id** | **String** | A human readable short identifier used to references resources. Different than a `uuid` because this is intended to be human readable. Different than `DisplayName` because this should not include special characters and be short. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/MatchmakerGameModeStatistics.md b/sdks/full/rust-cli/docs/MatchmakerGameModeStatistics.md new file mode 100644 index 0000000000..50ac1752c3 --- /dev/null +++ b/sdks/full/rust-cli/docs/MatchmakerGameModeStatistics.md @@ -0,0 +1,12 @@ +# MatchmakerGameModeStatistics + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**player_count** | **i64** | | +**regions** | [**::std::collections::HashMap**](MatchmakerRegionStatistics.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/MatchmakerGetStatisticsResponse.md b/sdks/full/rust-cli/docs/MatchmakerGetStatisticsResponse.md new file mode 100644 index 0000000000..ecc9cd7b94 --- /dev/null +++ b/sdks/full/rust-cli/docs/MatchmakerGetStatisticsResponse.md @@ -0,0 +1,12 @@ +# MatchmakerGetStatisticsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**game_modes** | [**::std::collections::HashMap**](MatchmakerGameModeStatistics.md) | | +**player_count** | **i64** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/MatchmakerJoinLobby.md b/sdks/full/rust-cli/docs/MatchmakerJoinLobby.md new file mode 100644 index 0000000000..ed37af2873 --- /dev/null +++ b/sdks/full/rust-cli/docs/MatchmakerJoinLobby.md @@ -0,0 +1,14 @@ +# MatchmakerJoinLobby + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**lobby_id** | [**uuid::Uuid**](uuid::Uuid.md) | | +**player** | [**crate::models::MatchmakerJoinPlayer**](MatchmakerJoinPlayer.md) | | +**ports** | [**::std::collections::HashMap**](MatchmakerJoinPort.md) | **Deprecated** | +**region** | [**crate::models::MatchmakerJoinRegion**](MatchmakerJoinRegion.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/MatchmakerJoinLobbyResponse.md b/sdks/full/rust-cli/docs/MatchmakerJoinLobbyResponse.md new file mode 100644 index 0000000000..c6b79ab84a --- /dev/null +++ b/sdks/full/rust-cli/docs/MatchmakerJoinLobbyResponse.md @@ -0,0 +1,13 @@ +# MatchmakerJoinLobbyResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**lobby** | [**crate::models::MatchmakerJoinLobby**](MatchmakerJoinLobby.md) | | +**player** | [**crate::models::MatchmakerJoinPlayer**](MatchmakerJoinPlayer.md) | | +**ports** | [**::std::collections::HashMap**](MatchmakerJoinPort.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/MatchmakerJoinPlayer.md b/sdks/full/rust-cli/docs/MatchmakerJoinPlayer.md new file mode 100644 index 0000000000..ec77d5f315 --- /dev/null +++ b/sdks/full/rust-cli/docs/MatchmakerJoinPlayer.md @@ -0,0 +1,11 @@ +# MatchmakerJoinPlayer + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**token** | **String** | Documentation at https://jwt.io/ | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/MatchmakerJoinPort.md b/sdks/full/rust-cli/docs/MatchmakerJoinPort.md new file mode 100644 index 0000000000..d32c534f6b --- /dev/null +++ b/sdks/full/rust-cli/docs/MatchmakerJoinPort.md @@ -0,0 +1,15 @@ +# MatchmakerJoinPort + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**host** | Option<**String**> | The host for the given port. Will be null if using a port range. | [optional] +**hostname** | **String** | | +**is_tls** | **bool** | Whether or not this lobby port uses TLS. You cannot mix a non-TLS and TLS ports. | +**port** | Option<**i32**> | The port number for this lobby. Will be null if using a port range. | [optional] +**port_range** | Option<[**crate::models::MatchmakerJoinPortRange**](MatchmakerJoinPortRange.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/MatchmakerJoinPortRange.md b/sdks/full/rust-cli/docs/MatchmakerJoinPortRange.md new file mode 100644 index 0000000000..28f302c2c1 --- /dev/null +++ b/sdks/full/rust-cli/docs/MatchmakerJoinPortRange.md @@ -0,0 +1,12 @@ +# MatchmakerJoinPortRange + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**max** | **i32** | Maximum port that can be connected to. Inclusive range. | +**min** | **i32** | Minimum port that can be connected to. Inclusive range. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/MatchmakerJoinRegion.md b/sdks/full/rust-cli/docs/MatchmakerJoinRegion.md new file mode 100644 index 0000000000..0ba22c74ff --- /dev/null +++ b/sdks/full/rust-cli/docs/MatchmakerJoinRegion.md @@ -0,0 +1,12 @@ +# MatchmakerJoinRegion + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**display_name** | **String** | Represent a resource's readable display name. | +**region_id** | **String** | A human readable short identifier used to references resources. Different than a `uuid` because this is intended to be human readable. Different than `DisplayName` because this should not include special characters and be short. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/MatchmakerListLobbiesResponse.md b/sdks/full/rust-cli/docs/MatchmakerListLobbiesResponse.md new file mode 100644 index 0000000000..2c037b2b1a --- /dev/null +++ b/sdks/full/rust-cli/docs/MatchmakerListLobbiesResponse.md @@ -0,0 +1,13 @@ +# MatchmakerListLobbiesResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**game_modes** | [**Vec**](MatchmakerGameModeInfo.md) | | +**lobbies** | [**Vec**](MatchmakerLobbyInfo.md) | | +**regions** | [**Vec**](MatchmakerRegionInfo.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/MatchmakerListRegionsResponse.md b/sdks/full/rust-cli/docs/MatchmakerListRegionsResponse.md new file mode 100644 index 0000000000..2ee5e5be0c --- /dev/null +++ b/sdks/full/rust-cli/docs/MatchmakerListRegionsResponse.md @@ -0,0 +1,11 @@ +# MatchmakerListRegionsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**regions** | [**Vec**](MatchmakerRegionInfo.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/MatchmakerLobbiesApi.md b/sdks/full/rust-cli/docs/MatchmakerLobbiesApi.md new file mode 100644 index 0000000000..cbecd8d12f --- /dev/null +++ b/sdks/full/rust-cli/docs/MatchmakerLobbiesApi.md @@ -0,0 +1,254 @@ +# \MatchmakerLobbiesApi + +All URIs are relative to *https://api.rivet.gg* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**matchmaker_lobbies_create**](MatchmakerLobbiesApi.md#matchmaker_lobbies_create) | **POST** /matchmaker/lobbies/create | +[**matchmaker_lobbies_find**](MatchmakerLobbiesApi.md#matchmaker_lobbies_find) | **POST** /matchmaker/lobbies/find | +[**matchmaker_lobbies_get_state**](MatchmakerLobbiesApi.md#matchmaker_lobbies_get_state) | **GET** /matchmaker/lobbies/{lobby_id}/state | +[**matchmaker_lobbies_join**](MatchmakerLobbiesApi.md#matchmaker_lobbies_join) | **POST** /matchmaker/lobbies/join | +[**matchmaker_lobbies_list**](MatchmakerLobbiesApi.md#matchmaker_lobbies_list) | **GET** /matchmaker/lobbies/list | +[**matchmaker_lobbies_ready**](MatchmakerLobbiesApi.md#matchmaker_lobbies_ready) | **POST** /matchmaker/lobbies/ready | +[**matchmaker_lobbies_set_closed**](MatchmakerLobbiesApi.md#matchmaker_lobbies_set_closed) | **PUT** /matchmaker/lobbies/closed | +[**matchmaker_lobbies_set_state**](MatchmakerLobbiesApi.md#matchmaker_lobbies_set_state) | **PUT** /matchmaker/lobbies/state | + + + +## matchmaker_lobbies_create + +> crate::models::MatchmakerCreateLobbyResponse matchmaker_lobbies_create(matchmaker_lobbies_create_request) + + +Creates a custom lobby. When [tokenless authentication](/docs/general/concepts/tokenless-authentication/web) is enabled in your game namespace, this endpoint does not require a token to authenticate. Otherwise, a [development namespace token](/docs/general/concepts/token-types#namespace-development) can be used for mock responses and a [public namespace token](/docs/general/concepts/token-types#namespace-public) can be used for general authentication. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**matchmaker_lobbies_create_request** | [**MatchmakerLobbiesCreateRequest**](MatchmakerLobbiesCreateRequest.md) | | [required] | + +### Return type + +[**crate::models::MatchmakerCreateLobbyResponse**](MatchmakerCreateLobbyResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## matchmaker_lobbies_find + +> crate::models::MatchmakerFindLobbyResponse matchmaker_lobbies_find(matchmaker_lobbies_find_request, origin) + + +Finds a lobby based on the given criteria. If a lobby is not found and `prevent_auto_create_lobby` is `false`, a new lobby will be created. When [tokenless authentication](/docs/general/concepts/tokenless-authentication/web) is enabled in your game namespace, this endpoint does not require a token to authenticate. Otherwise, a [development namespace token](/docs/general/concepts/token-types#namespace-development) can be used for mock responses and a [public namespace token](/docs/general/concepts/token-types#namespace-public) can be used for general authentication. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**matchmaker_lobbies_find_request** | [**MatchmakerLobbiesFindRequest**](MatchmakerLobbiesFindRequest.md) | | [required] | +**origin** | Option<**String**> | | | + +### Return type + +[**crate::models::MatchmakerFindLobbyResponse**](MatchmakerFindLobbyResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## matchmaker_lobbies_get_state + +> serde_json::Value matchmaker_lobbies_get_state(lobby_id) + + +Get the state of any lobby. This endpoint requires a [lobby token](/docs/general/concepts/token-types#matchmaker-lobby) for authentication, or a [development namespace token](/docs/general/concepts/token-types#namespace-development) for mock responses. When running on Rivet servers, you can access the given lobby token from the [`RIVET_TOKEN`](/docs/matchmaker/concepts/lobby-env) environment variable. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**lobby_id** | **uuid::Uuid** | | [required] | + +### Return type + +[**serde_json::Value**](serde_json::Value.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## matchmaker_lobbies_join + +> crate::models::MatchmakerJoinLobbyResponse matchmaker_lobbies_join(matchmaker_lobbies_join_request) + + +Joins a specific lobby. This request will use the direct player count configured for the lobby group. When [tokenless authentication](/docs/general/concepts/tokenless-authentication/web) is enabled in your game namespace, this endpoint does not require a token to authenticate. Otherwise, a [development namespace token](/docs/general/concepts/token-types#namespace-development) can be used for mock responses and a [public namespace token](/docs/general/concepts/token-types#namespace-public) can be used for general authentication. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**matchmaker_lobbies_join_request** | [**MatchmakerLobbiesJoinRequest**](MatchmakerLobbiesJoinRequest.md) | | [required] | + +### Return type + +[**crate::models::MatchmakerJoinLobbyResponse**](MatchmakerJoinLobbyResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## matchmaker_lobbies_list + +> crate::models::MatchmakerListLobbiesResponse matchmaker_lobbies_list(include_state) + + +Lists all open lobbies. When [tokenless authentication](/docs/general/concepts/tokenless-authentication/web) is enabled in your game namespace, this endpoint does not require a token to authenticate. Otherwise, a [development namespace token](/docs/general/concepts/token-types#namespace-development) can be used for mock responses and a [public namespace token](/docs/general/concepts/token-types#namespace-public) can be used for general authentication. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**include_state** | Option<**bool**> | | | + +### Return type + +[**crate::models::MatchmakerListLobbiesResponse**](MatchmakerListLobbiesResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## matchmaker_lobbies_ready + +> matchmaker_lobbies_ready() + + +Marks the current lobby as ready to accept connections. Players will not be able to connect to this lobby until the lobby is flagged as ready. This endpoint requires a [lobby token](/docs/general/concepts/token-types#matchmaker-lobby) for authentication, or a [development namespace token](/docs/general/concepts/token-types#namespace-development) for mock responses. When running on Rivet servers, you can access the given lobby token from the [`RIVET_TOKEN`](/docs/matchmaker/concepts/lobby-env) environment variable. + +### Parameters + +This endpoint does not need any parameter. + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## matchmaker_lobbies_set_closed + +> matchmaker_lobbies_set_closed(matchmaker_lobbies_set_closed_request) + + +If `is_closed` is `true`, the matchmaker will no longer route players to the lobby. Players can still join using the /join endpoint (this can be disabled by the developer by rejecting all new connections after setting the lobby to closed). Does not shutdown the lobby. This endpoint requires a [lobby token](/docs/general/concepts/token-types#matchmaker-lobby) for authentication, or a [development namespace token](/docs/general/concepts/token-types#namespace-development) for mock responses. When running on Rivet servers, you can access the given lobby token from the [`RIVET_TOKEN`](/docs/matchmaker/concepts/lobby-env) environment variable. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**matchmaker_lobbies_set_closed_request** | [**MatchmakerLobbiesSetClosedRequest**](MatchmakerLobbiesSetClosedRequest.md) | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## matchmaker_lobbies_set_state + +> matchmaker_lobbies_set_state(body) + + +Sets the state JSON of the current lobby. This endpoint requires a [lobby token](/docs/general/concepts/token-types#matchmaker-lobby) for authentication, or a [development namespace token](/docs/general/concepts/token-types#namespace-development) for mock responses. When running on Rivet servers, you can access the given lobby token from the [`RIVET_TOKEN`](/docs/matchmaker/concepts/lobby-env) environment variable. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**body** | Option<**serde_json::Value**> | | | + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/sdks/full/rust-cli/docs/MatchmakerLobbiesCreateRequest.md b/sdks/full/rust-cli/docs/MatchmakerLobbiesCreateRequest.md new file mode 100644 index 0000000000..d31bd7ab63 --- /dev/null +++ b/sdks/full/rust-cli/docs/MatchmakerLobbiesCreateRequest.md @@ -0,0 +1,18 @@ +# MatchmakerLobbiesCreateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**captcha** | Option<[**crate::models::CaptchaConfig**](CaptchaConfig.md)> | | [optional] +**game_mode** | **String** | | +**lobby_config** | Option<[**serde_json::Value**](.md)> | | [optional] +**max_players** | Option<**i32**> | | [optional] +**publicity** | Option<[**crate::models::MatchmakerCustomLobbyPublicity**](MatchmakerCustomLobbyPublicity.md)> | | [optional] +**region** | Option<**String**> | | [optional] +**tags** | Option<**::std::collections::HashMap**> | | [optional] +**verification_data** | Option<[**serde_json::Value**](.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/MatchmakerLobbiesFindRequest.md b/sdks/full/rust-cli/docs/MatchmakerLobbiesFindRequest.md new file mode 100644 index 0000000000..a0cdc87c19 --- /dev/null +++ b/sdks/full/rust-cli/docs/MatchmakerLobbiesFindRequest.md @@ -0,0 +1,17 @@ +# MatchmakerLobbiesFindRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**captcha** | Option<[**crate::models::CaptchaConfig**](CaptchaConfig.md)> | | [optional] +**game_modes** | **Vec** | | +**max_players** | Option<**i32**> | | [optional] +**prevent_auto_create_lobby** | Option<**bool**> | | [optional] +**regions** | Option<**Vec**> | | [optional] +**tags** | Option<**::std::collections::HashMap**> | | [optional] +**verification_data** | Option<[**serde_json::Value**](.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/MatchmakerLobbiesJoinRequest.md b/sdks/full/rust-cli/docs/MatchmakerLobbiesJoinRequest.md new file mode 100644 index 0000000000..afffc6e3b2 --- /dev/null +++ b/sdks/full/rust-cli/docs/MatchmakerLobbiesJoinRequest.md @@ -0,0 +1,13 @@ +# MatchmakerLobbiesJoinRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**captcha** | Option<[**crate::models::CaptchaConfig**](CaptchaConfig.md)> | | [optional] +**lobby_id** | **String** | | +**verification_data** | Option<[**serde_json::Value**](.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/MatchmakerLobbiesSetClosedRequest.md b/sdks/full/rust-cli/docs/MatchmakerLobbiesSetClosedRequest.md new file mode 100644 index 0000000000..687632d9b8 --- /dev/null +++ b/sdks/full/rust-cli/docs/MatchmakerLobbiesSetClosedRequest.md @@ -0,0 +1,11 @@ +# MatchmakerLobbiesSetClosedRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**is_closed** | **bool** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/MatchmakerLobbyInfo.md b/sdks/full/rust-cli/docs/MatchmakerLobbyInfo.md new file mode 100644 index 0000000000..02f40bef1a --- /dev/null +++ b/sdks/full/rust-cli/docs/MatchmakerLobbyInfo.md @@ -0,0 +1,18 @@ +# MatchmakerLobbyInfo + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**game_mode_id** | **String** | | +**lobby_id** | [**uuid::Uuid**](uuid::Uuid.md) | | +**max_players_direct** | **i32** | | +**max_players_normal** | **i32** | | +**max_players_party** | **i32** | | +**region_id** | **String** | | +**state** | Option<[**serde_json::Value**](.md)> | | [optional] +**total_player_count** | **i32** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/MatchmakerPlayersApi.md b/sdks/full/rust-cli/docs/MatchmakerPlayersApi.md new file mode 100644 index 0000000000..6e2549b32b --- /dev/null +++ b/sdks/full/rust-cli/docs/MatchmakerPlayersApi.md @@ -0,0 +1,98 @@ +# \MatchmakerPlayersApi + +All URIs are relative to *https://api.rivet.gg* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**matchmaker_players_connected**](MatchmakerPlayersApi.md#matchmaker_players_connected) | **POST** /matchmaker/players/connected | +[**matchmaker_players_disconnected**](MatchmakerPlayersApi.md#matchmaker_players_disconnected) | **POST** /matchmaker/players/disconnected | +[**matchmaker_players_get_statistics**](MatchmakerPlayersApi.md#matchmaker_players_get_statistics) | **GET** /matchmaker/players/statistics | + + + +## matchmaker_players_connected + +> matchmaker_players_connected(matchmaker_players_connected_request) + + +Validates the player token is valid and has not already been consumed then marks the player as connected. # Player Tokens and Reserved Slots Player tokens reserve a spot in the lobby until they expire. This allows for precise matchmaking up to exactly the lobby's player limit, which is important for games with small lobbies and a high influx of players. By calling this endpoint with the player token, the player's spot is marked as connected and will not expire. If this endpoint is never called, the player's token will expire and this spot will be filled by another player. # Anti-Botting Player tokens are only issued by caling `lobbies.join`, calling `lobbies.find`, or from the `GlobalEventMatchmakerLobbyJoin` event. These endpoints have anti-botting measures (i.e. enforcing max player limits, captchas, and detecting bots), so valid player tokens provide some confidence that the player is not a bot. Therefore, it's important to make sure the token is valid by waiting for this endpoint to return OK before allowing the connected socket to do anything else. If this endpoint returns an error, the socket should be disconnected immediately. # How to Transmit the Player Token The client is responsible for acquiring the player token by caling `lobbies.join`, calling `lobbies.find`, or from the `GlobalEventMatchmakerLobbyJoin` event. Beyond that, it's up to the developer how the player token is transmitted to the lobby. If using WebSockets, the player token can be transmitted as a query parameter. Otherwise, the player token will likely be automatically sent by the client once the socket opens. As mentioned above, nothing else should happen until the player token is validated. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**matchmaker_players_connected_request** | [**MatchmakerPlayersConnectedRequest**](MatchmakerPlayersConnectedRequest.md) | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## matchmaker_players_disconnected + +> matchmaker_players_disconnected(matchmaker_players_connected_request) + + +Marks a player as disconnected. # Ghost Players If players are not marked as disconnected, lobbies will result with \"ghost players\" that the matchmaker thinks exist but are no longer connected to the lobby. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**matchmaker_players_connected_request** | [**MatchmakerPlayersConnectedRequest**](MatchmakerPlayersConnectedRequest.md) | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## matchmaker_players_get_statistics + +> crate::models::MatchmakerGetStatisticsResponse matchmaker_players_get_statistics() + + +Gives matchmaker statistics about the players in game. + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**crate::models::MatchmakerGetStatisticsResponse**](MatchmakerGetStatisticsResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/sdks/full/rust-cli/docs/MatchmakerPlayersConnectedRequest.md b/sdks/full/rust-cli/docs/MatchmakerPlayersConnectedRequest.md new file mode 100644 index 0000000000..b4b004fe35 --- /dev/null +++ b/sdks/full/rust-cli/docs/MatchmakerPlayersConnectedRequest.md @@ -0,0 +1,11 @@ +# MatchmakerPlayersConnectedRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**player_token** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/MatchmakerRegionInfo.md b/sdks/full/rust-cli/docs/MatchmakerRegionInfo.md new file mode 100644 index 0000000000..10a2ff6747 --- /dev/null +++ b/sdks/full/rust-cli/docs/MatchmakerRegionInfo.md @@ -0,0 +1,15 @@ +# MatchmakerRegionInfo + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**datacenter_coord** | [**crate::models::GeoCoord**](GeoCoord.md) | | +**datacenter_distance_from_client** | [**crate::models::GeoDistance**](GeoDistance.md) | | +**provider_display_name** | **String** | Represent a resource's readable display name. | +**region_display_name** | **String** | Represent a resource's readable display name. | +**region_id** | **String** | A human readable short identifier used to references resources. Different than a `uuid` because this is intended to be human readable. Different than `DisplayName` because this should not include special characters and be short. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/MatchmakerRegionStatistics.md b/sdks/full/rust-cli/docs/MatchmakerRegionStatistics.md new file mode 100644 index 0000000000..ab5cdba9f8 --- /dev/null +++ b/sdks/full/rust-cli/docs/MatchmakerRegionStatistics.md @@ -0,0 +1,11 @@ +# MatchmakerRegionStatistics + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**player_count** | **i64** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/MatchmakerRegionsApi.md b/sdks/full/rust-cli/docs/MatchmakerRegionsApi.md new file mode 100644 index 0000000000..8855453e63 --- /dev/null +++ b/sdks/full/rust-cli/docs/MatchmakerRegionsApi.md @@ -0,0 +1,36 @@ +# \MatchmakerRegionsApi + +All URIs are relative to *https://api.rivet.gg* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**matchmaker_regions_list**](MatchmakerRegionsApi.md#matchmaker_regions_list) | **GET** /matchmaker/regions | + + + +## matchmaker_regions_list + +> crate::models::MatchmakerListRegionsResponse matchmaker_regions_list() + + +Returns a list of regions available to this namespace. Regions are sorted by most optimal to least optimal. The player's IP address is used to calculate the regions' optimality. + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**crate::models::MatchmakerListRegionsResponse**](MatchmakerListRegionsResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/sdks/full/rust-cli/docs/PortalGamesApi.md b/sdks/full/rust-cli/docs/PortalGamesApi.md new file mode 100644 index 0000000000..9cac3ddd4a --- /dev/null +++ b/sdks/full/rust-cli/docs/PortalGamesApi.md @@ -0,0 +1,40 @@ +# \PortalGamesApi + +All URIs are relative to *https://api.rivet.gg* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**portal_games_get_game_profile**](PortalGamesApi.md#portal_games_get_game_profile) | **GET** /portal/games/{game_name_id}/profile | + + + +## portal_games_get_game_profile + +> crate::models::PortalGetGameProfileResponse portal_games_get_game_profile(game_name_id, watch_index) + + +Returns a game profile. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**game_name_id** | **String** | A human readable short identifier used to references resources. Different than a `rivet.common#Uuid` because this is intended to be human readable. Different than `rivet.common#DisplayName` because this should not include special characters and be short. | [required] | +**watch_index** | Option<**String**> | A query parameter denoting the requests watch index. | | + +### Return type + +[**crate::models::PortalGetGameProfileResponse**](PortalGetGameProfileResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/sdks/full/rust-cli/docs/PortalGetGameProfileResponse.md b/sdks/full/rust-cli/docs/PortalGetGameProfileResponse.md new file mode 100644 index 0000000000..ed1c299add --- /dev/null +++ b/sdks/full/rust-cli/docs/PortalGetGameProfileResponse.md @@ -0,0 +1,12 @@ +# PortalGetGameProfileResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**game** | [**crate::models::GameProfile**](GameProfile.md) | | +**watch** | [**crate::models::WatchResponse**](WatchResponse.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/PortalGetSuggestedGamesResponse.md b/sdks/full/rust-cli/docs/PortalGetSuggestedGamesResponse.md new file mode 100644 index 0000000000..e446d3b664 --- /dev/null +++ b/sdks/full/rust-cli/docs/PortalGetSuggestedGamesResponse.md @@ -0,0 +1,12 @@ +# PortalGetSuggestedGamesResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**games** | [**Vec**](GameSummary.md) | A list of game summaries. | +**watch** | [**crate::models::WatchResponse**](WatchResponse.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/PortalNotificationRegisterFirebaseService.md b/sdks/full/rust-cli/docs/PortalNotificationRegisterFirebaseService.md new file mode 100644 index 0000000000..6761e395f9 --- /dev/null +++ b/sdks/full/rust-cli/docs/PortalNotificationRegisterFirebaseService.md @@ -0,0 +1,11 @@ +# PortalNotificationRegisterFirebaseService + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**access_key** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/PortalNotificationRegisterService.md b/sdks/full/rust-cli/docs/PortalNotificationRegisterService.md new file mode 100644 index 0000000000..00aade930f --- /dev/null +++ b/sdks/full/rust-cli/docs/PortalNotificationRegisterService.md @@ -0,0 +1,11 @@ +# PortalNotificationRegisterService + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**firebase** | Option<[**crate::models::PortalNotificationRegisterFirebaseService**](PortalNotificationRegisterFirebaseService.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/PortalNotificationUnregisterService.md b/sdks/full/rust-cli/docs/PortalNotificationUnregisterService.md new file mode 100644 index 0000000000..e6748b66d5 --- /dev/null +++ b/sdks/full/rust-cli/docs/PortalNotificationUnregisterService.md @@ -0,0 +1,10 @@ +# PortalNotificationUnregisterService + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/ProvisionDatacentersApi.md b/sdks/full/rust-cli/docs/ProvisionDatacentersApi.md new file mode 100644 index 0000000000..d028826fc4 --- /dev/null +++ b/sdks/full/rust-cli/docs/ProvisionDatacentersApi.md @@ -0,0 +1,37 @@ +# \ProvisionDatacentersApi + +All URIs are relative to *https://api.rivet.gg* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**provision_datacenters_get_tls**](ProvisionDatacentersApi.md#provision_datacenters_get_tls) | **GET** /datacenters/{datacenter_id}/tls | + + + +## provision_datacenters_get_tls + +> crate::models::ProvisionDatacentersGetTlsResponse provision_datacenters_get_tls(datacenter_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**datacenter_id** | **uuid::Uuid** | | [required] | + +### Return type + +[**crate::models::ProvisionDatacentersGetTlsResponse**](ProvisionDatacentersGetTlsResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/sdks/full/rust-cli/docs/ProvisionDatacentersGetTlsResponse.md b/sdks/full/rust-cli/docs/ProvisionDatacentersGetTlsResponse.md new file mode 100644 index 0000000000..8c3f97c386 --- /dev/null +++ b/sdks/full/rust-cli/docs/ProvisionDatacentersGetTlsResponse.md @@ -0,0 +1,12 @@ +# ProvisionDatacentersGetTlsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**job_cert_pem** | **String** | | +**job_private_key_pem** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/ProvisionServersApi.md b/sdks/full/rust-cli/docs/ProvisionServersApi.md new file mode 100644 index 0000000000..e67db2f3bb --- /dev/null +++ b/sdks/full/rust-cli/docs/ProvisionServersApi.md @@ -0,0 +1,37 @@ +# \ProvisionServersApi + +All URIs are relative to *https://api.rivet.gg* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**provision_servers_get_info**](ProvisionServersApi.md#provision_servers_get_info) | **GET** /servers/{ip} | + + + +## provision_servers_get_info + +> crate::models::ProvisionServersGetInfoResponse provision_servers_get_info(ip) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**ip** | **String** | | [required] | + +### Return type + +[**crate::models::ProvisionServersGetInfoResponse**](ProvisionServersGetInfoResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/sdks/full/rust-cli/docs/ProvisionServersGetInfoResponse.md b/sdks/full/rust-cli/docs/ProvisionServersGetInfoResponse.md new file mode 100644 index 0000000000..7421f0d36a --- /dev/null +++ b/sdks/full/rust-cli/docs/ProvisionServersGetInfoResponse.md @@ -0,0 +1,15 @@ +# ProvisionServersGetInfoResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cluster_id** | [**uuid::Uuid**](uuid::Uuid.md) | | +**datacenter_id** | [**uuid::Uuid**](uuid::Uuid.md) | | +**name** | **String** | | +**server_id** | [**uuid::Uuid**](uuid::Uuid.md) | | +**vlan_ip** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/ServersApi.md b/sdks/full/rust-cli/docs/ServersApi.md new file mode 100644 index 0000000000..f446dd1893 --- /dev/null +++ b/sdks/full/rust-cli/docs/ServersApi.md @@ -0,0 +1,138 @@ +# \ServersApi + +All URIs are relative to *https://api.rivet.gg* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**servers_create**](ServersApi.md#servers_create) | **POST** /games/{game_id}/servers | +[**servers_destroy**](ServersApi.md#servers_destroy) | **DELETE** /games/{game_id}/servers/{server_id} | +[**servers_get**](ServersApi.md#servers_get) | **GET** /games/{game_id}/servers/{server_id} | +[**servers_list**](ServersApi.md#servers_list) | **GET** /games/{game_id}/servers | + + + +## servers_create + +> crate::models::ServersCreateServerResponse servers_create(game_id, servers_create_server_request) + + +Create a new dynamic server. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**game_id** | **uuid::Uuid** | | [required] | +**servers_create_server_request** | [**ServersCreateServerRequest**](ServersCreateServerRequest.md) | | [required] | + +### Return type + +[**crate::models::ServersCreateServerResponse**](ServersCreateServerResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## servers_destroy + +> serde_json::Value servers_destroy(game_id, server_id, override_kill_timeout) + + +Destroy a dynamic server. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**game_id** | **uuid::Uuid** | | [required] | +**server_id** | **uuid::Uuid** | The id of the server to destroy | [required] | +**override_kill_timeout** | Option<**i64**> | The duration to wait for in milliseconds before killing the server. This should be used to override the default kill timeout if a faster time is needed, say for ignoring a graceful shutdown. | | + +### Return type + +[**serde_json::Value**](serde_json::Value.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## servers_get + +> crate::models::ServersGetServerResponse servers_get(game_id, server_id) + + +Gets a dynamic server. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**game_id** | **uuid::Uuid** | | [required] | +**server_id** | **uuid::Uuid** | The id of the server to destroy | [required] | + +### Return type + +[**crate::models::ServersGetServerResponse**](ServersGetServerResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## servers_list + +> crate::models::ServersListServersResponse servers_list(game_id, tags_json, game) + + +Lists all servers associated with the token used. Can be filtered by tags in the query string. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**game_id** | **uuid::Uuid** | | [required] | +**tags_json** | Option<**String**> | | | +**game** | Option<**uuid::Uuid**> | | | + +### Return type + +[**crate::models::ServersListServersResponse**](ServersListServersResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/sdks/full/rust-cli/docs/ServersBuild.md b/sdks/full/rust-cli/docs/ServersBuild.md new file mode 100644 index 0000000000..a1cfb90183 --- /dev/null +++ b/sdks/full/rust-cli/docs/ServersBuild.md @@ -0,0 +1,17 @@ +# ServersBuild + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**completed_at** | Option<**String**> | RFC3339 timestamp | [optional] +**content_length** | **i64** | Unsigned 64 bit integer. | +**created_at** | **String** | RFC3339 timestamp | +**id** | [**uuid::Uuid**](uuid::Uuid.md) | | +**name** | **String** | | +**tags** | **::std::collections::HashMap** | Tags of this build | +**upload** | [**uuid::Uuid**](uuid::Uuid.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/ServersBuildCompression.md b/sdks/full/rust-cli/docs/ServersBuildCompression.md new file mode 100644 index 0000000000..3e1b76a053 --- /dev/null +++ b/sdks/full/rust-cli/docs/ServersBuildCompression.md @@ -0,0 +1,10 @@ +# ServersBuildCompression + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/ServersBuildKind.md b/sdks/full/rust-cli/docs/ServersBuildKind.md new file mode 100644 index 0000000000..6fc399d0e0 --- /dev/null +++ b/sdks/full/rust-cli/docs/ServersBuildKind.md @@ -0,0 +1,10 @@ +# ServersBuildKind + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/ServersBuildsApi.md b/sdks/full/rust-cli/docs/ServersBuildsApi.md new file mode 100644 index 0000000000..bbc2592b8e --- /dev/null +++ b/sdks/full/rust-cli/docs/ServersBuildsApi.md @@ -0,0 +1,139 @@ +# \ServersBuildsApi + +All URIs are relative to *https://api.rivet.gg* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**servers_builds_complete_build**](ServersBuildsApi.md#servers_builds_complete_build) | **POST** /games/{game_id}/builds/{build_id}/complete | +[**servers_builds_get_build**](ServersBuildsApi.md#servers_builds_get_build) | **GET** /games/{game_id}/builds/{build_id} | +[**servers_builds_list_builds**](ServersBuildsApi.md#servers_builds_list_builds) | **GET** /games/{game_id}/builds | +[**servers_builds_prepare_build**](ServersBuildsApi.md#servers_builds_prepare_build) | **POST** /games/{game_id}/builds/prepare | + + + +## servers_builds_complete_build + +> servers_builds_complete_build(game_id, build_id) + + +Marks an upload as complete. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**game_id** | **uuid::Uuid** | | [required] | +**build_id** | **uuid::Uuid** | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## servers_builds_get_build + +> crate::models::ServersGetBuildResponse servers_builds_get_build(game_id, build_id, tags_json, game_id2) + + +Lists all builds of the game associated with the token used. Can be filtered by tags in the query string. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**game_id** | **uuid::Uuid** | | [required] | +**build_id** | **uuid::Uuid** | | [required] | +**tags_json** | Option<**String**> | | | +**game_id2** | Option<**uuid::Uuid**> | | | + +### Return type + +[**crate::models::ServersGetBuildResponse**](ServersGetBuildResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## servers_builds_list_builds + +> crate::models::ServersListBuildsResponse servers_builds_list_builds(game_id, tags_json, game_id2) + + +Lists all builds of the game associated with the token used. Can be filtered by tags in the query string. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**game_id** | **uuid::Uuid** | | [required] | +**tags_json** | Option<**String**> | | | +**game_id2** | Option<**uuid::Uuid**> | | | + +### Return type + +[**crate::models::ServersListBuildsResponse**](ServersListBuildsResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## servers_builds_prepare_build + +> crate::models::ServersCreateBuildResponse servers_builds_prepare_build(game_id, servers_create_build_request) + + +Creates a new game build for the given game. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**game_id** | **uuid::Uuid** | | [required] | +**servers_create_build_request** | [**ServersCreateBuildRequest**](ServersCreateBuildRequest.md) | | [required] | + +### Return type + +[**crate::models::ServersCreateBuildResponse**](ServersCreateBuildResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/sdks/full/rust-cli/docs/ServersCreateBuildRequest.md b/sdks/full/rust-cli/docs/ServersCreateBuildRequest.md new file mode 100644 index 0000000000..eb725e3361 --- /dev/null +++ b/sdks/full/rust-cli/docs/ServersCreateBuildRequest.md @@ -0,0 +1,17 @@ +# ServersCreateBuildRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**compression** | Option<[**crate::models::ServersBuildCompression**](ServersBuildCompression.md)> | | [optional] +**image_file** | [**crate::models::UploadPrepareFile**](UploadPrepareFile.md) | | +**image_tag** | **String** | A tag given to the game build. | +**kind** | Option<[**crate::models::ServersBuildKind**](ServersBuildKind.md)> | | [optional] +**multipart_upload** | Option<**bool**> | | [optional] +**name** | **String** | | +**tags** | Option<[**serde_json::Value**](.md)> | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/ServersCreateBuildResponse.md b/sdks/full/rust-cli/docs/ServersCreateBuildResponse.md new file mode 100644 index 0000000000..0793e6acd2 --- /dev/null +++ b/sdks/full/rust-cli/docs/ServersCreateBuildResponse.md @@ -0,0 +1,14 @@ +# ServersCreateBuildResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**build** | [**uuid::Uuid**](uuid::Uuid.md) | | +**image_presigned_request** | Option<[**crate::models::UploadPresignedRequest**](UploadPresignedRequest.md)> | | [optional] +**image_presigned_requests** | Option<[**Vec**](UploadPresignedRequest.md)> | | [optional] +**upload** | [**uuid::Uuid**](uuid::Uuid.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/ServersCreateServerNetworkRequest.md b/sdks/full/rust-cli/docs/ServersCreateServerNetworkRequest.md new file mode 100644 index 0000000000..633ac595fa --- /dev/null +++ b/sdks/full/rust-cli/docs/ServersCreateServerNetworkRequest.md @@ -0,0 +1,12 @@ +# ServersCreateServerNetworkRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**mode** | Option<[**crate::models::ServersNetworkMode**](ServersNetworkMode.md)> | | [optional] +**ports** | [**::std::collections::HashMap**](ServersCreateServerPortRequest.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/ServersCreateServerPortRequest.md b/sdks/full/rust-cli/docs/ServersCreateServerPortRequest.md new file mode 100644 index 0000000000..97c550c60d --- /dev/null +++ b/sdks/full/rust-cli/docs/ServersCreateServerPortRequest.md @@ -0,0 +1,13 @@ +# ServersCreateServerPortRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**internal_port** | Option<**i32**> | | [optional] +**protocol** | [**crate::models::ServersPortProtocol**](ServersPortProtocol.md) | | +**routing** | Option<[**crate::models::ServersPortRouting**](ServersPortRouting.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/ServersCreateServerRequest.md b/sdks/full/rust-cli/docs/ServersCreateServerRequest.md new file mode 100644 index 0000000000..5c7128b15c --- /dev/null +++ b/sdks/full/rust-cli/docs/ServersCreateServerRequest.md @@ -0,0 +1,19 @@ +# ServersCreateServerRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**arguments** | Option<**Vec**> | | [optional] +**datacenter** | [**uuid::Uuid**](uuid::Uuid.md) | | +**environment** | Option<**::std::collections::HashMap**> | | [optional] +**image** | [**uuid::Uuid**](uuid::Uuid.md) | | +**kill_timeout** | Option<**i64**> | The duration to wait for in milliseconds before killing the server. This should be set to a safe default, and can be overridden during a DELETE request if needed. | [optional] +**network** | [**crate::models::ServersCreateServerNetworkRequest**](ServersCreateServerNetworkRequest.md) | | +**resources** | [**crate::models::ServersResources**](ServersResources.md) | | +**tags** | Option<[**serde_json::Value**](.md)> | | +**webhook_url** | Option<**String**> | A url to send to which events from the server running will be sent | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/ServersCreateServerResponse.md b/sdks/full/rust-cli/docs/ServersCreateServerResponse.md new file mode 100644 index 0000000000..29bae37bf7 --- /dev/null +++ b/sdks/full/rust-cli/docs/ServersCreateServerResponse.md @@ -0,0 +1,11 @@ +# ServersCreateServerResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**server** | [**crate::models::ServersServer**](ServersServer.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/ServersGetBuildResponse.md b/sdks/full/rust-cli/docs/ServersGetBuildResponse.md new file mode 100644 index 0000000000..fdadac8aaf --- /dev/null +++ b/sdks/full/rust-cli/docs/ServersGetBuildResponse.md @@ -0,0 +1,11 @@ +# ServersGetBuildResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**build** | [**crate::models::ServersBuild**](ServersBuild.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/ServersGetServerLogsResponse.md b/sdks/full/rust-cli/docs/ServersGetServerLogsResponse.md new file mode 100644 index 0000000000..ed594b4b5f --- /dev/null +++ b/sdks/full/rust-cli/docs/ServersGetServerLogsResponse.md @@ -0,0 +1,13 @@ +# ServersGetServerLogsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**lines** | **Vec** | Sorted old to new. | +**timestamps** | **Vec** | Sorted old to new. | +**watch** | [**crate::models::WatchResponse**](WatchResponse.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/ServersGetServerResponse.md b/sdks/full/rust-cli/docs/ServersGetServerResponse.md new file mode 100644 index 0000000000..f5e5e42f86 --- /dev/null +++ b/sdks/full/rust-cli/docs/ServersGetServerResponse.md @@ -0,0 +1,11 @@ +# ServersGetServerResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**server** | [**crate::models::ServersServer**](ServersServer.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/ServersListBuildsResponse.md b/sdks/full/rust-cli/docs/ServersListBuildsResponse.md new file mode 100644 index 0000000000..b59db66aaf --- /dev/null +++ b/sdks/full/rust-cli/docs/ServersListBuildsResponse.md @@ -0,0 +1,11 @@ +# ServersListBuildsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**builds** | [**Vec**](ServersBuild.md) | A list of builds for the game associated with the token. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/ServersListServersResponse.md b/sdks/full/rust-cli/docs/ServersListServersResponse.md new file mode 100644 index 0000000000..b1c8e2d66a --- /dev/null +++ b/sdks/full/rust-cli/docs/ServersListServersResponse.md @@ -0,0 +1,11 @@ +# ServersListServersResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**servers** | [**Vec**](ServersServer.md) | A list of servers for the game associated with the token. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/ServersLogStream.md b/sdks/full/rust-cli/docs/ServersLogStream.md new file mode 100644 index 0000000000..9706b84a3a --- /dev/null +++ b/sdks/full/rust-cli/docs/ServersLogStream.md @@ -0,0 +1,10 @@ +# ServersLogStream + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/ServersLogsApi.md b/sdks/full/rust-cli/docs/ServersLogsApi.md new file mode 100644 index 0000000000..d3c3fd05b8 --- /dev/null +++ b/sdks/full/rust-cli/docs/ServersLogsApi.md @@ -0,0 +1,43 @@ +# \ServersLogsApi + +All URIs are relative to *https://api.rivet.gg* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**servers_logs_get_server_logs**](ServersLogsApi.md#servers_logs_get_server_logs) | **GET** /games/{game_id}/servers/{server_id}/logs | + + + +## servers_logs_get_server_logs + +> crate::models::ServersGetServerLogsResponse servers_logs_get_server_logs(game_id, server_id, stream, game, watch_index) + + +Returns the logs for a given server. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**game_id** | **uuid::Uuid** | | [required] | +**server_id** | **uuid::Uuid** | | [required] | +**stream** | [**ServersLogStream**](.md) | | [required] | +**game** | Option<**uuid::Uuid**> | | | +**watch_index** | Option<**String**> | A query parameter denoting the requests watch index. | | + +### Return type + +[**crate::models::ServersGetServerLogsResponse**](ServersGetServerLogsResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/sdks/full/rust-cli/docs/ServersNetwork.md b/sdks/full/rust-cli/docs/ServersNetwork.md new file mode 100644 index 0000000000..e1b819556d --- /dev/null +++ b/sdks/full/rust-cli/docs/ServersNetwork.md @@ -0,0 +1,12 @@ +# ServersNetwork + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**mode** | Option<[**crate::models::ServersNetworkMode**](ServersNetworkMode.md)> | | [optional] +**ports** | [**::std::collections::HashMap**](ServersPort.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/ServersNetworkMode.md b/sdks/full/rust-cli/docs/ServersNetworkMode.md new file mode 100644 index 0000000000..9fdd3e28c1 --- /dev/null +++ b/sdks/full/rust-cli/docs/ServersNetworkMode.md @@ -0,0 +1,10 @@ +# ServersNetworkMode + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/ServersPort.md b/sdks/full/rust-cli/docs/ServersPort.md new file mode 100644 index 0000000000..5ade4ddd58 --- /dev/null +++ b/sdks/full/rust-cli/docs/ServersPort.md @@ -0,0 +1,15 @@ +# ServersPort + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**internal_port** | Option<**i32**> | | [optional] +**protocol** | [**crate::models::ServersPortProtocol**](ServersPortProtocol.md) | | +**public_hostname** | Option<**String**> | | [optional] +**public_port** | Option<**i32**> | | [optional] +**routing** | [**crate::models::ServersPortRouting**](ServersPortRouting.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/ServersPortProtocol.md b/sdks/full/rust-cli/docs/ServersPortProtocol.md new file mode 100644 index 0000000000..595d11df8f --- /dev/null +++ b/sdks/full/rust-cli/docs/ServersPortProtocol.md @@ -0,0 +1,10 @@ +# ServersPortProtocol + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/ServersPortRouting.md b/sdks/full/rust-cli/docs/ServersPortRouting.md new file mode 100644 index 0000000000..1ac474c230 --- /dev/null +++ b/sdks/full/rust-cli/docs/ServersPortRouting.md @@ -0,0 +1,12 @@ +# ServersPortRouting + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**game_guard** | Option<[**serde_json::Value**](.md)> | | [optional] +**host** | Option<[**serde_json::Value**](.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/ServersResources.md b/sdks/full/rust-cli/docs/ServersResources.md new file mode 100644 index 0000000000..3b3f9d6882 --- /dev/null +++ b/sdks/full/rust-cli/docs/ServersResources.md @@ -0,0 +1,12 @@ +# ServersResources + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cpu** | **i32** | The number of CPU cores in millicores, or 1/1000 of a core. For example, 1/8 of a core would be 125 millicores, and 1 core would be 1000 millicores. | +**memory** | **i32** | The amount of memory in megabytes | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/ServersServer.md b/sdks/full/rust-cli/docs/ServersServer.md new file mode 100644 index 0000000000..9318bb1c47 --- /dev/null +++ b/sdks/full/rust-cli/docs/ServersServer.md @@ -0,0 +1,24 @@ +# ServersServer + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**arguments** | Option<**Vec**> | | [optional] +**cluster** | [**uuid::Uuid**](uuid::Uuid.md) | | +**created_at** | **i64** | | +**datacenter** | [**uuid::Uuid**](uuid::Uuid.md) | | +**destroyed_at** | Option<**i64**> | | [optional] +**environment** | Option<**::std::collections::HashMap**> | | [optional] +**game** | [**uuid::Uuid**](uuid::Uuid.md) | | +**id** | [**uuid::Uuid**](uuid::Uuid.md) | | +**image** | [**uuid::Uuid**](uuid::Uuid.md) | | +**kill_timeout** | Option<**i64**> | The duration to wait for in milliseconds before killing the server. This should be set to a safe default, and can be overridden during a DELETE request if needed. | [optional] +**network** | [**crate::models::ServersNetwork**](ServersNetwork.md) | | +**resources** | [**crate::models::ServersResources**](ServersResources.md) | | +**started_at** | Option<**i64**> | | [optional] +**tags** | Option<[**serde_json::Value**](.md)> | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/UploadPrepareFile.md b/sdks/full/rust-cli/docs/UploadPrepareFile.md new file mode 100644 index 0000000000..1d9005c4f8 --- /dev/null +++ b/sdks/full/rust-cli/docs/UploadPrepareFile.md @@ -0,0 +1,13 @@ +# UploadPrepareFile + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**content_length** | **i64** | Unsigned 64 bit integer. | +**content_type** | Option<**String**> | The MIME type of the file. | [optional] +**path** | **String** | The path/filename of the file. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/UploadPresignedRequest.md b/sdks/full/rust-cli/docs/UploadPresignedRequest.md new file mode 100644 index 0000000000..dcefbbcaba --- /dev/null +++ b/sdks/full/rust-cli/docs/UploadPresignedRequest.md @@ -0,0 +1,14 @@ +# UploadPresignedRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**byte_offset** | **i64** | The byte offset for this multipart chunk. Always 0 if not a multipart upload. | +**content_length** | **i64** | Expected size of this upload. | +**path** | **String** | The name of the file to upload. This is the same as the one given in the upload prepare file. | +**url** | **String** | The URL of the presigned request for which to upload your file to. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/ValidationError.md b/sdks/full/rust-cli/docs/ValidationError.md new file mode 100644 index 0000000000..600f96792f --- /dev/null +++ b/sdks/full/rust-cli/docs/ValidationError.md @@ -0,0 +1,11 @@ +# ValidationError + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**path** | **Vec** | A list of strings denoting the origin of a validation error. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/docs/WatchResponse.md b/sdks/full/rust-cli/docs/WatchResponse.md new file mode 100644 index 0000000000..9b64aba4f0 --- /dev/null +++ b/sdks/full/rust-cli/docs/WatchResponse.md @@ -0,0 +1,11 @@ +# WatchResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**index** | **String** | Index indicating the version of the data responded. Pass this to `WatchQuery` to block and wait for the next response. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust-cli/git_push.sh b/sdks/full/rust-cli/git_push.sh new file mode 100644 index 0000000000..f53a75d4fa --- /dev/null +++ b/sdks/full/rust-cli/git_push.sh @@ -0,0 +1,57 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +if [ "$git_user_id" = "" ]; then + git_user_id="GIT_USER_ID" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="GIT_REPO_ID" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=$(git remote) +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' diff --git a/sdks/full/rust-cli/src/apis/admin_api.rs b/sdks/full/rust-cli/src/apis/admin_api.rs new file mode 100644 index 0000000000..622655a3ba --- /dev/null +++ b/sdks/full/rust-cli/src/apis/admin_api.rs @@ -0,0 +1,62 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + + +/// struct for typed errors of method [`admin_login`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum AdminLoginError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + + +pub async fn admin_login(configuration: &configuration::Configuration, admin_login_request: crate::models::AdminLoginRequest) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/admin/login", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + local_var_req_builder = local_var_req_builder.json(&admin_login_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/sdks/full/rust-cli/src/apis/admin_clusters_api.rs b/sdks/full/rust-cli/src/apis/admin_clusters_api.rs new file mode 100644 index 0000000000..8cdf81d027 --- /dev/null +++ b/sdks/full/rust-cli/src/apis/admin_clusters_api.rs @@ -0,0 +1,107 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + + +/// struct for typed errors of method [`admin_clusters_create`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum AdminClustersCreateError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`admin_clusters_list`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum AdminClustersListError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + + +/// Create a new cluster +pub async fn admin_clusters_create(configuration: &configuration::Configuration, admin_clusters_create_cluster_request: crate::models::AdminClustersCreateClusterRequest) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/admin/clusters", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + local_var_req_builder = local_var_req_builder.json(&admin_clusters_create_cluster_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Get clusters +pub async fn admin_clusters_list(configuration: &configuration::Configuration, ) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/admin/clusters", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/sdks/full/rust-cli/src/apis/admin_clusters_datacenters_api.rs b/sdks/full/rust-cli/src/apis/admin_clusters_datacenters_api.rs new file mode 100644 index 0000000000..ca2129b895 --- /dev/null +++ b/sdks/full/rust-cli/src/apis/admin_clusters_datacenters_api.rs @@ -0,0 +1,150 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + + +/// struct for typed errors of method [`admin_clusters_datacenters_create`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum AdminClustersDatacentersCreateError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`admin_clusters_datacenters_list`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum AdminClustersDatacentersListError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`admin_clusters_datacenters_update`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum AdminClustersDatacentersUpdateError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + + +pub async fn admin_clusters_datacenters_create(configuration: &configuration::Configuration, cluster_id: &str, admin_clusters_create_datacenter_request: crate::models::AdminClustersCreateDatacenterRequest) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/admin/clusters/{cluster_id}/datacenters", local_var_configuration.base_path, cluster_id=crate::apis::urlencode(cluster_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + local_var_req_builder = local_var_req_builder.json(&admin_clusters_create_datacenter_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Get datacenters of a cluster +pub async fn admin_clusters_datacenters_list(configuration: &configuration::Configuration, cluster_id: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/admin/clusters/{cluster_id}/datacenters", local_var_configuration.base_path, cluster_id=crate::apis::urlencode(cluster_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +pub async fn admin_clusters_datacenters_update(configuration: &configuration::Configuration, cluster_id: &str, datacenter_id: &str, admin_clusters_update_datacenter_request: crate::models::AdminClustersUpdateDatacenterRequest) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/admin/clusters/{cluster_id}/datacenters/{datacenter_id}", local_var_configuration.base_path, cluster_id=crate::apis::urlencode(cluster_id), datacenter_id=crate::apis::urlencode(datacenter_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::PATCH, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + local_var_req_builder = local_var_req_builder.json(&admin_clusters_update_datacenter_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/sdks/full/rust-cli/src/apis/admin_clusters_servers_api.rs b/sdks/full/rust-cli/src/apis/admin_clusters_servers_api.rs new file mode 100644 index 0000000000..1bf403175b --- /dev/null +++ b/sdks/full/rust-cli/src/apis/admin_clusters_servers_api.rs @@ -0,0 +1,183 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + + +/// struct for typed errors of method [`admin_clusters_servers_destroy`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum AdminClustersServersDestroyError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`admin_clusters_servers_list`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum AdminClustersServersListError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`admin_clusters_servers_taint`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum AdminClustersServersTaintError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + + +pub async fn admin_clusters_servers_destroy(configuration: &configuration::Configuration, cluster_id: &str, server_id: Option<&str>, datacenter: Option<&str>, pool: Option, public_ip: Option<&str>) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/admin/clusters/{cluster_id}/servers/destroy", local_var_configuration.base_path, cluster_id=crate::apis::urlencode(cluster_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = server_id { + local_var_req_builder = local_var_req_builder.query(&[("server_id", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = datacenter { + local_var_req_builder = local_var_req_builder.query(&[("datacenter", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = pool { + local_var_req_builder = local_var_req_builder.query(&[("pool", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = public_ip { + local_var_req_builder = local_var_req_builder.query(&[("public_ip", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +pub async fn admin_clusters_servers_list(configuration: &configuration::Configuration, cluster_id: &str, server_id: Option<&str>, datacenter: Option<&str>, pool: Option, public_ip: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/admin/clusters/{cluster_id}/servers", local_var_configuration.base_path, cluster_id=crate::apis::urlencode(cluster_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = server_id { + local_var_req_builder = local_var_req_builder.query(&[("server_id", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = datacenter { + local_var_req_builder = local_var_req_builder.query(&[("datacenter", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = pool { + local_var_req_builder = local_var_req_builder.query(&[("pool", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = public_ip { + local_var_req_builder = local_var_req_builder.query(&[("public_ip", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +pub async fn admin_clusters_servers_taint(configuration: &configuration::Configuration, cluster_id: &str, server_id: Option<&str>, datacenter: Option<&str>, pool: Option, public_ip: Option<&str>) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/admin/clusters/{cluster_id}/servers/taint", local_var_configuration.base_path, cluster_id=crate::apis::urlencode(cluster_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = server_id { + local_var_req_builder = local_var_req_builder.query(&[("server_id", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = datacenter { + local_var_req_builder = local_var_req_builder.query(&[("datacenter", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = pool { + local_var_req_builder = local_var_req_builder.query(&[("pool", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = public_ip { + local_var_req_builder = local_var_req_builder.query(&[("public_ip", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/sdks/full/rust-cli/src/apis/auth_identity_access_token_api.rs b/sdks/full/rust-cli/src/apis/auth_identity_access_token_api.rs new file mode 100644 index 0000000000..6d63871a80 --- /dev/null +++ b/sdks/full/rust-cli/src/apis/auth_identity_access_token_api.rs @@ -0,0 +1,63 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + + +/// struct for typed errors of method [`auth_identity_access_token_complete_access_token_verification`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum AuthIdentityAccessTokenCompleteAccessTokenVerificationError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + + +/// Completes the access token verification process. +pub async fn auth_identity_access_token_complete_access_token_verification(configuration: &configuration::Configuration, auth_identity_complete_access_token_verification_request: crate::models::AuthIdentityCompleteAccessTokenVerificationRequest) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/auth/identity/access-token/complete-verification", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + local_var_req_builder = local_var_req_builder.json(&auth_identity_complete_access_token_verification_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/sdks/full/rust-cli/src/apis/auth_identity_email_api.rs b/sdks/full/rust-cli/src/apis/auth_identity_email_api.rs new file mode 100644 index 0000000000..751bdad564 --- /dev/null +++ b/sdks/full/rust-cli/src/apis/auth_identity_email_api.rs @@ -0,0 +1,108 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + + +/// struct for typed errors of method [`auth_identity_email_complete_email_verification`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum AuthIdentityEmailCompleteEmailVerificationError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`auth_identity_email_start_email_verification`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum AuthIdentityEmailStartEmailVerificationError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + + +/// Completes the email verification process. +pub async fn auth_identity_email_complete_email_verification(configuration: &configuration::Configuration, auth_identity_complete_email_verification_request: crate::models::AuthIdentityCompleteEmailVerificationRequest) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/auth/identity/email/complete-verification", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + local_var_req_builder = local_var_req_builder.json(&auth_identity_complete_email_verification_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Starts the verification process for linking an email to your identity. +pub async fn auth_identity_email_start_email_verification(configuration: &configuration::Configuration, auth_identity_start_email_verification_request: crate::models::AuthIdentityStartEmailVerificationRequest) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/auth/identity/email/start-verification", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + local_var_req_builder = local_var_req_builder.json(&auth_identity_start_email_verification_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/sdks/full/rust-cli/src/apis/auth_tokens_api.rs b/sdks/full/rust-cli/src/apis/auth_tokens_api.rs new file mode 100644 index 0000000000..1890915227 --- /dev/null +++ b/sdks/full/rust-cli/src/apis/auth_tokens_api.rs @@ -0,0 +1,63 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + + +/// struct for typed errors of method [`auth_tokens_refresh_identity_token`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum AuthTokensRefreshIdentityTokenError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + + +/// Refreshes the current identity's token and sets authentication headers. +pub async fn auth_tokens_refresh_identity_token(configuration: &configuration::Configuration, auth_refresh_identity_token_request: crate::models::AuthRefreshIdentityTokenRequest) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/auth/tokens/identity", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + local_var_req_builder = local_var_req_builder.json(&auth_refresh_identity_token_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/sdks/full/rust-cli/src/apis/cloud_api.rs b/sdks/full/rust-cli/src/apis/cloud_api.rs new file mode 100644 index 0000000000..a440747fbd --- /dev/null +++ b/sdks/full/rust-cli/src/apis/cloud_api.rs @@ -0,0 +1,62 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + + +/// struct for typed errors of method [`cloud_bootstrap`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CloudBootstrapError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + + +/// Returns the basic information required to use the cloud APIs. +pub async fn cloud_bootstrap(configuration: &configuration::Configuration, ) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/cloud/bootstrap", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/sdks/full/rust-cli/src/apis/cloud_auth_api.rs b/sdks/full/rust-cli/src/apis/cloud_auth_api.rs new file mode 100644 index 0000000000..dd9b6ace1c --- /dev/null +++ b/sdks/full/rust-cli/src/apis/cloud_auth_api.rs @@ -0,0 +1,62 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + + +/// struct for typed errors of method [`cloud_auth_inspect`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CloudAuthInspectError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + + +/// Returns information about the current authenticated agent. +pub async fn cloud_auth_inspect(configuration: &configuration::Configuration, ) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/cloud/auth/inspect", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/sdks/full/rust-cli/src/apis/cloud_devices_links_api.rs b/sdks/full/rust-cli/src/apis/cloud_devices_links_api.rs new file mode 100644 index 0000000000..ded16ed7e6 --- /dev/null +++ b/sdks/full/rust-cli/src/apis/cloud_devices_links_api.rs @@ -0,0 +1,143 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + + +/// struct for typed errors of method [`cloud_devices_links_complete`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CloudDevicesLinksCompleteError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`cloud_devices_links_get`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CloudDevicesLinksGetError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`cloud_devices_links_prepare`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CloudDevicesLinksPrepareError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + + +pub async fn cloud_devices_links_complete(configuration: &configuration::Configuration, cloud_devices_complete_device_link_request: crate::models::CloudDevicesCompleteDeviceLinkRequest) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/cloud/devices/links/complete", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + local_var_req_builder = local_var_req_builder.json(&cloud_devices_complete_device_link_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +pub async fn cloud_devices_links_get(configuration: &configuration::Configuration, device_link_token: &str, watch_index: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/cloud/devices/links", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + local_var_req_builder = local_var_req_builder.query(&[("device_link_token", &device_link_token.to_string())]); + if let Some(ref local_var_str) = watch_index { + local_var_req_builder = local_var_req_builder.query(&[("watch_index", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +pub async fn cloud_devices_links_prepare(configuration: &configuration::Configuration, ) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/cloud/devices/links", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/sdks/full/rust-cli/src/apis/cloud_games_api.rs b/sdks/full/rust-cli/src/apis/cloud_games_api.rs new file mode 100644 index 0000000000..b9a0a98e2b --- /dev/null +++ b/sdks/full/rust-cli/src/apis/cloud_games_api.rs @@ -0,0 +1,380 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + + +/// struct for typed errors of method [`cloud_games_create_game`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CloudGamesCreateGameError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`cloud_games_game_banner_upload_complete`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CloudGamesGameBannerUploadCompleteError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`cloud_games_game_banner_upload_prepare`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CloudGamesGameBannerUploadPrepareError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`cloud_games_game_logo_upload_complete`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CloudGamesGameLogoUploadCompleteError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`cloud_games_game_logo_upload_prepare`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CloudGamesGameLogoUploadPrepareError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`cloud_games_get_game_by_id`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CloudGamesGetGameByIdError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`cloud_games_get_games`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CloudGamesGetGamesError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`cloud_games_validate_game`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CloudGamesValidateGameError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + + +/// Creates a new game. +pub async fn cloud_games_create_game(configuration: &configuration::Configuration, cloud_games_create_game_request: crate::models::CloudGamesCreateGameRequest) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/cloud/games", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + local_var_req_builder = local_var_req_builder.json(&cloud_games_create_game_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Completes an game banner image upload. Must be called after the file upload process completes. +pub async fn cloud_games_game_banner_upload_complete(configuration: &configuration::Configuration, game_id: &str, upload_id: &str) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/cloud/games/{game_id}/banner-upload/{upload_id}/complete", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id), upload_id=crate::apis::urlencode(upload_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Prepares a game banner image upload. +pub async fn cloud_games_game_banner_upload_prepare(configuration: &configuration::Configuration, game_id: &str, cloud_games_game_banner_upload_prepare_request: crate::models::CloudGamesGameBannerUploadPrepareRequest) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/cloud/games/{game_id}/banner-upload/prepare", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + local_var_req_builder = local_var_req_builder.json(&cloud_games_game_banner_upload_prepare_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Completes a game logo image upload. Must be called after the file upload process completes. +pub async fn cloud_games_game_logo_upload_complete(configuration: &configuration::Configuration, game_id: &str, upload_id: &str) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/cloud/games/{game_id}/logo-upload/{upload_id}/complete", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id), upload_id=crate::apis::urlencode(upload_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Prepares a game logo image upload. +pub async fn cloud_games_game_logo_upload_prepare(configuration: &configuration::Configuration, game_id: &str, cloud_games_game_logo_upload_prepare_request: crate::models::CloudGamesGameLogoUploadPrepareRequest) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/cloud/games/{game_id}/logo-upload/prepare", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + local_var_req_builder = local_var_req_builder.json(&cloud_games_game_logo_upload_prepare_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Returns a game by its game id. +pub async fn cloud_games_get_game_by_id(configuration: &configuration::Configuration, game_id: &str, watch_index: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/cloud/games/{game_id}", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = watch_index { + local_var_req_builder = local_var_req_builder.query(&[("watch_index", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Returns a list of games in which the current identity is a group member of its development team. +pub async fn cloud_games_get_games(configuration: &configuration::Configuration, watch_index: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/cloud/games", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = watch_index { + local_var_req_builder = local_var_req_builder.query(&[("watch_index", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Validates information used to create a new game. +pub async fn cloud_games_validate_game(configuration: &configuration::Configuration, cloud_games_validate_game_request: crate::models::CloudGamesValidateGameRequest) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/cloud/games/validate", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + local_var_req_builder = local_var_req_builder.json(&cloud_games_validate_game_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/sdks/full/rust-cli/src/apis/cloud_games_avatars_api.rs b/sdks/full/rust-cli/src/apis/cloud_games_avatars_api.rs new file mode 100644 index 0000000000..f8f658cb3b --- /dev/null +++ b/sdks/full/rust-cli/src/apis/cloud_games_avatars_api.rs @@ -0,0 +1,151 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + + +/// struct for typed errors of method [`cloud_games_avatars_complete_custom_avatar_upload`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CloudGamesAvatarsCompleteCustomAvatarUploadError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`cloud_games_avatars_list_game_custom_avatars`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CloudGamesAvatarsListGameCustomAvatarsError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`cloud_games_avatars_prepare_custom_avatar_upload`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CloudGamesAvatarsPrepareCustomAvatarUploadError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + + +/// Completes a custom avatar image upload. Must be called after the file upload process completes. +pub async fn cloud_games_avatars_complete_custom_avatar_upload(configuration: &configuration::Configuration, game_id: &str, upload_id: &str) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/cloud/games/{game_id}/avatar-upload/{upload_id}/complete", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id), upload_id=crate::apis::urlencode(upload_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Lists custom avatars for the given game. +pub async fn cloud_games_avatars_list_game_custom_avatars(configuration: &configuration::Configuration, game_id: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/cloud/games/{game_id}/avatars", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Prepares a custom avatar image upload. Complete upload with `rivet.api.cloud#CompleteCustomAvatarUpload`. +pub async fn cloud_games_avatars_prepare_custom_avatar_upload(configuration: &configuration::Configuration, game_id: &str, cloud_games_prepare_custom_avatar_upload_request: crate::models::CloudGamesPrepareCustomAvatarUploadRequest) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/cloud/games/{game_id}/prepare", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + local_var_req_builder = local_var_req_builder.json(&cloud_games_prepare_custom_avatar_upload_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/sdks/full/rust-cli/src/apis/cloud_games_builds_api.rs b/sdks/full/rust-cli/src/apis/cloud_games_builds_api.rs new file mode 100644 index 0000000000..d1bc1e91f6 --- /dev/null +++ b/sdks/full/rust-cli/src/apis/cloud_games_builds_api.rs @@ -0,0 +1,107 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + + +/// struct for typed errors of method [`cloud_games_builds_create_game_build`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CloudGamesBuildsCreateGameBuildError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`cloud_games_builds_list_game_builds`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CloudGamesBuildsListGameBuildsError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + + +/// Creates a new game build for the given game. +pub async fn cloud_games_builds_create_game_build(configuration: &configuration::Configuration, game_id: &str, cloud_games_create_game_build_request: crate::models::CloudGamesCreateGameBuildRequest) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/cloud/games/{game_id}/builds", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + local_var_req_builder = local_var_req_builder.json(&cloud_games_create_game_build_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Lists game builds for the given game. +pub async fn cloud_games_builds_list_game_builds(configuration: &configuration::Configuration, game_id: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/cloud/games/{game_id}/builds", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/sdks/full/rust-cli/src/apis/cloud_games_cdn_api.rs b/sdks/full/rust-cli/src/apis/cloud_games_cdn_api.rs new file mode 100644 index 0000000000..7e017e7854 --- /dev/null +++ b/sdks/full/rust-cli/src/apis/cloud_games_cdn_api.rs @@ -0,0 +1,107 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + + +/// struct for typed errors of method [`cloud_games_cdn_create_game_cdn_site`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CloudGamesCdnCreateGameCdnSiteError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`cloud_games_cdn_list_game_cdn_sites`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CloudGamesCdnListGameCdnSitesError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + + +/// Creates a new CDN site for the given game. +pub async fn cloud_games_cdn_create_game_cdn_site(configuration: &configuration::Configuration, game_id: &str, cloud_games_create_game_cdn_site_request: crate::models::CloudGamesCreateGameCdnSiteRequest) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/cloud/games/{game_id}/cdn/sites", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + local_var_req_builder = local_var_req_builder.json(&cloud_games_create_game_cdn_site_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Lists CDN sites for a game. +pub async fn cloud_games_cdn_list_game_cdn_sites(configuration: &configuration::Configuration, game_id: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/cloud/games/{game_id}/cdn/sites", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/sdks/full/rust-cli/src/apis/cloud_games_matchmaker_api.rs b/sdks/full/rust-cli/src/apis/cloud_games_matchmaker_api.rs new file mode 100644 index 0000000000..81ac9a1086 --- /dev/null +++ b/sdks/full/rust-cli/src/apis/cloud_games_matchmaker_api.rs @@ -0,0 +1,200 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + + +/// struct for typed errors of method [`cloud_games_matchmaker_delete_matchmaker_lobby`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CloudGamesMatchmakerDeleteMatchmakerLobbyError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`cloud_games_matchmaker_export_lobby_logs`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CloudGamesMatchmakerExportLobbyLogsError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`cloud_games_matchmaker_export_matchmaker_lobby_history`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CloudGamesMatchmakerExportMatchmakerLobbyHistoryError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`cloud_games_matchmaker_get_lobby_logs`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CloudGamesMatchmakerGetLobbyLogsError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + + +/// Deletes a matchmaker lobby, stopping it immediately. +pub async fn cloud_games_matchmaker_delete_matchmaker_lobby(configuration: &configuration::Configuration, game_id: &str, lobby_id: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/cloud/games/{game_id}/matchmaker/lobbies/{lobby_id}", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id), lobby_id=crate::apis::urlencode(lobby_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Generates a download URL for logs. +pub async fn cloud_games_matchmaker_export_lobby_logs(configuration: &configuration::Configuration, game_id: &str, lobby_id: &str, cloud_games_export_lobby_logs_request: crate::models::CloudGamesExportLobbyLogsRequest) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/cloud/games/{game_id}/matchmaker/lobbies/{lobby_id}/logs/export", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id), lobby_id=crate::apis::urlencode(lobby_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + local_var_req_builder = local_var_req_builder.json(&cloud_games_export_lobby_logs_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Exports lobby history over a given query time span. +pub async fn cloud_games_matchmaker_export_matchmaker_lobby_history(configuration: &configuration::Configuration, game_id: &str, cloud_games_export_matchmaker_lobby_history_request: crate::models::CloudGamesExportMatchmakerLobbyHistoryRequest) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/cloud/games/{game_id}/matchmaker/lobbies/export-history", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + local_var_req_builder = local_var_req_builder.json(&cloud_games_export_matchmaker_lobby_history_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Returns the logs for a given lobby. +pub async fn cloud_games_matchmaker_get_lobby_logs(configuration: &configuration::Configuration, game_id: &str, lobby_id: &str, stream: crate::models::CloudGamesLogStream, watch_index: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/cloud/games/{game_id}/matchmaker/lobbies/{lobby_id}/logs", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id), lobby_id=crate::apis::urlencode(lobby_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + local_var_req_builder = local_var_req_builder.query(&[("stream", &stream.to_string())]); + if let Some(ref local_var_str) = watch_index { + local_var_req_builder = local_var_req_builder.query(&[("watch_index", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/sdks/full/rust-cli/src/apis/cloud_games_namespaces_analytics_api.rs b/sdks/full/rust-cli/src/apis/cloud_games_namespaces_analytics_api.rs new file mode 100644 index 0000000000..07ac2d5954 --- /dev/null +++ b/sdks/full/rust-cli/src/apis/cloud_games_namespaces_analytics_api.rs @@ -0,0 +1,62 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + + +/// struct for typed errors of method [`cloud_games_namespaces_analytics_get_analytics_matchmaker_live`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CloudGamesNamespacesAnalyticsGetAnalyticsMatchmakerLiveError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + + +/// Returns live information about all active lobbies for a given namespace. +pub async fn cloud_games_namespaces_analytics_get_analytics_matchmaker_live(configuration: &configuration::Configuration, game_id: &str, namespace_id: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/cloud/games/{game_id}/namespaces/{namespace_id}/analytics/matchmaker/live", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id), namespace_id=crate::apis::urlencode(namespace_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/sdks/full/rust-cli/src/apis/cloud_games_namespaces_api.rs b/sdks/full/rust-cli/src/apis/cloud_games_namespaces_api.rs new file mode 100644 index 0000000000..db4128e3af --- /dev/null +++ b/sdks/full/rust-cli/src/apis/cloud_games_namespaces_api.rs @@ -0,0 +1,739 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + + +/// struct for typed errors of method [`cloud_games_namespaces_add_namespace_domain`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CloudGamesNamespacesAddNamespaceDomainError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`cloud_games_namespaces_create_game_namespace`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CloudGamesNamespacesCreateGameNamespaceError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`cloud_games_namespaces_create_game_namespace_token_development`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CloudGamesNamespacesCreateGameNamespaceTokenDevelopmentError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`cloud_games_namespaces_create_game_namespace_token_public`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CloudGamesNamespacesCreateGameNamespaceTokenPublicError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`cloud_games_namespaces_get_game_namespace_by_id`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CloudGamesNamespacesGetGameNamespaceByIdError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`cloud_games_namespaces_get_game_namespace_version_history_list`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CloudGamesNamespacesGetGameNamespaceVersionHistoryListError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`cloud_games_namespaces_remove_namespace_cdn_auth_user`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CloudGamesNamespacesRemoveNamespaceCdnAuthUserError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`cloud_games_namespaces_remove_namespace_domain`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CloudGamesNamespacesRemoveNamespaceDomainError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`cloud_games_namespaces_set_namespace_cdn_auth_type`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CloudGamesNamespacesSetNamespaceCdnAuthTypeError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`cloud_games_namespaces_toggle_namespace_domain_public_auth`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CloudGamesNamespacesToggleNamespaceDomainPublicAuthError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`cloud_games_namespaces_update_game_namespace_matchmaker_config`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CloudGamesNamespacesUpdateGameNamespaceMatchmakerConfigError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`cloud_games_namespaces_update_game_namespace_version`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CloudGamesNamespacesUpdateGameNamespaceVersionError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`cloud_games_namespaces_update_namespace_cdn_auth_user`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CloudGamesNamespacesUpdateNamespaceCdnAuthUserError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`cloud_games_namespaces_validate_game_namespace`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CloudGamesNamespacesValidateGameNamespaceError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`cloud_games_namespaces_validate_game_namespace_matchmaker_config`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CloudGamesNamespacesValidateGameNamespaceMatchmakerConfigError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`cloud_games_namespaces_validate_game_namespace_token_development`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CloudGamesNamespacesValidateGameNamespaceTokenDevelopmentError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + + +/// Adds a domain to the given game namespace. +pub async fn cloud_games_namespaces_add_namespace_domain(configuration: &configuration::Configuration, game_id: &str, namespace_id: &str, cloud_games_namespaces_add_namespace_domain_request: crate::models::CloudGamesNamespacesAddNamespaceDomainRequest) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/cloud/games/{game_id}/namespaces/{namespace_id}/domains", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id), namespace_id=crate::apis::urlencode(namespace_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + local_var_req_builder = local_var_req_builder.json(&cloud_games_namespaces_add_namespace_domain_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Creates a new namespace for the given game. +pub async fn cloud_games_namespaces_create_game_namespace(configuration: &configuration::Configuration, game_id: &str, cloud_games_namespaces_create_game_namespace_request: crate::models::CloudGamesNamespacesCreateGameNamespaceRequest) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/cloud/games/{game_id}/namespaces", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + local_var_req_builder = local_var_req_builder.json(&cloud_games_namespaces_create_game_namespace_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Creates a development token for the given namespace. +pub async fn cloud_games_namespaces_create_game_namespace_token_development(configuration: &configuration::Configuration, game_id: &str, namespace_id: &str, cloud_games_namespaces_create_game_namespace_token_development_request: crate::models::CloudGamesNamespacesCreateGameNamespaceTokenDevelopmentRequest) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/cloud/games/{game_id}/namespaces/{namespace_id}/tokens/development", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id), namespace_id=crate::apis::urlencode(namespace_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + local_var_req_builder = local_var_req_builder.json(&cloud_games_namespaces_create_game_namespace_token_development_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Creates a public token for the given namespace. +pub async fn cloud_games_namespaces_create_game_namespace_token_public(configuration: &configuration::Configuration, game_id: &str, namespace_id: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/cloud/games/{game_id}/namespaces/{namespace_id}/tokens/public", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id), namespace_id=crate::apis::urlencode(namespace_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Gets a game namespace by namespace ID. +pub async fn cloud_games_namespaces_get_game_namespace_by_id(configuration: &configuration::Configuration, game_id: &str, namespace_id: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/cloud/games/{game_id}/namespaces/{namespace_id}", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id), namespace_id=crate::apis::urlencode(namespace_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Gets the version history for a given namespace. +pub async fn cloud_games_namespaces_get_game_namespace_version_history_list(configuration: &configuration::Configuration, game_id: &str, namespace_id: &str, anchor: Option<&str>, limit: Option) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/cloud/games/{game_id}/namespaces/{namespace_id}/version-history", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id), namespace_id=crate::apis::urlencode(namespace_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = anchor { + local_var_req_builder = local_var_req_builder.query(&[("anchor", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = limit { + local_var_req_builder = local_var_req_builder.query(&[("limit", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Removes an authenticated user from the given game namespace. +pub async fn cloud_games_namespaces_remove_namespace_cdn_auth_user(configuration: &configuration::Configuration, game_id: &str, namespace_id: &str, user: &str) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/cloud/games/{game_id}/namespaces/{namespace_id}/auth-user/{user}", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id), namespace_id=crate::apis::urlencode(namespace_id), user=crate::apis::urlencode(user)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Removes a domain from the given game namespace. +pub async fn cloud_games_namespaces_remove_namespace_domain(configuration: &configuration::Configuration, game_id: &str, namespace_id: &str, domain: &str) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/cloud/games/{game_id}/namespaces/{namespace_id}/domains/{domain}", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id), namespace_id=crate::apis::urlencode(namespace_id), domain=crate::apis::urlencode(domain)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Updates the CDN authentication type of the given game namespace. +pub async fn cloud_games_namespaces_set_namespace_cdn_auth_type(configuration: &configuration::Configuration, game_id: &str, namespace_id: &str, cloud_games_namespaces_set_namespace_cdn_auth_type_request: crate::models::CloudGamesNamespacesSetNamespaceCdnAuthTypeRequest) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/cloud/games/{game_id}/namespaces/{namespace_id}/cdn-auth", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id), namespace_id=crate::apis::urlencode(namespace_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::PUT, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + local_var_req_builder = local_var_req_builder.json(&cloud_games_namespaces_set_namespace_cdn_auth_type_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Toggles whether or not to allow authentication based on domain for the given game namespace. +pub async fn cloud_games_namespaces_toggle_namespace_domain_public_auth(configuration: &configuration::Configuration, game_id: &str, namespace_id: &str, cloud_games_namespaces_toggle_namespace_domain_public_auth_request: crate::models::CloudGamesNamespacesToggleNamespaceDomainPublicAuthRequest) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/cloud/games/{game_id}/namespaces/{namespace_id}/domain-public-auth", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id), namespace_id=crate::apis::urlencode(namespace_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::PUT, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + local_var_req_builder = local_var_req_builder.json(&cloud_games_namespaces_toggle_namespace_domain_public_auth_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Updates matchmaker config for the given game namespace. +pub async fn cloud_games_namespaces_update_game_namespace_matchmaker_config(configuration: &configuration::Configuration, game_id: &str, namespace_id: &str, cloud_games_namespaces_update_game_namespace_matchmaker_config_request: crate::models::CloudGamesNamespacesUpdateGameNamespaceMatchmakerConfigRequest) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/cloud/games/{game_id}/namespaces/{namespace_id}/mm-config", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id), namespace_id=crate::apis::urlencode(namespace_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + local_var_req_builder = local_var_req_builder.json(&cloud_games_namespaces_update_game_namespace_matchmaker_config_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Updates the version of a game namespace. +pub async fn cloud_games_namespaces_update_game_namespace_version(configuration: &configuration::Configuration, game_id: &str, namespace_id: &str, cloud_games_namespaces_update_game_namespace_version_request: crate::models::CloudGamesNamespacesUpdateGameNamespaceVersionRequest) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/cloud/games/{game_id}/namespaces/{namespace_id}/version", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id), namespace_id=crate::apis::urlencode(namespace_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::PUT, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + local_var_req_builder = local_var_req_builder.json(&cloud_games_namespaces_update_game_namespace_version_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Adds an authenticated user to the given game namespace. +pub async fn cloud_games_namespaces_update_namespace_cdn_auth_user(configuration: &configuration::Configuration, game_id: &str, namespace_id: &str, cloud_games_namespaces_update_namespace_cdn_auth_user_request: crate::models::CloudGamesNamespacesUpdateNamespaceCdnAuthUserRequest) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/cloud/games/{game_id}/namespaces/{namespace_id}/auth-user", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id), namespace_id=crate::apis::urlencode(namespace_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + local_var_req_builder = local_var_req_builder.json(&cloud_games_namespaces_update_namespace_cdn_auth_user_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Validates information used to create a new game namespace. +pub async fn cloud_games_namespaces_validate_game_namespace(configuration: &configuration::Configuration, game_id: &str, cloud_games_namespaces_validate_game_namespace_request: crate::models::CloudGamesNamespacesValidateGameNamespaceRequest) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/cloud/games/{game_id}/namespaces/validate", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + local_var_req_builder = local_var_req_builder.json(&cloud_games_namespaces_validate_game_namespace_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Validates information used to update a game namespace's matchmaker config. +pub async fn cloud_games_namespaces_validate_game_namespace_matchmaker_config(configuration: &configuration::Configuration, game_id: &str, namespace_id: &str, cloud_games_namespaces_validate_game_namespace_matchmaker_config_request: crate::models::CloudGamesNamespacesValidateGameNamespaceMatchmakerConfigRequest) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/cloud/games/{game_id}/namespaces/{namespace_id}/mm-config/validate", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id), namespace_id=crate::apis::urlencode(namespace_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + local_var_req_builder = local_var_req_builder.json(&cloud_games_namespaces_validate_game_namespace_matchmaker_config_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Validates information used to create a new game namespace development token. +pub async fn cloud_games_namespaces_validate_game_namespace_token_development(configuration: &configuration::Configuration, game_id: &str, namespace_id: &str, cloud_games_namespaces_validate_game_namespace_token_development_request: crate::models::CloudGamesNamespacesValidateGameNamespaceTokenDevelopmentRequest) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/cloud/games/{game_id}/namespaces/{namespace_id}/tokens/development/validate", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id), namespace_id=crate::apis::urlencode(namespace_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + local_var_req_builder = local_var_req_builder.json(&cloud_games_namespaces_validate_game_namespace_token_development_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/sdks/full/rust-cli/src/apis/cloud_games_namespaces_logs_api.rs b/sdks/full/rust-cli/src/apis/cloud_games_namespaces_logs_api.rs new file mode 100644 index 0000000000..43e8b17d20 --- /dev/null +++ b/sdks/full/rust-cli/src/apis/cloud_games_namespaces_logs_api.rs @@ -0,0 +1,109 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + + +/// struct for typed errors of method [`cloud_games_namespaces_logs_get_namespace_lobby`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CloudGamesNamespacesLogsGetNamespaceLobbyError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`cloud_games_namespaces_logs_list_namespace_lobbies`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CloudGamesNamespacesLogsListNamespaceLobbiesError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + + +/// Returns a lobby from the given game namespace. +pub async fn cloud_games_namespaces_logs_get_namespace_lobby(configuration: &configuration::Configuration, game_id: &str, namespace_id: &str, lobby_id: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/cloud/games/{game_id}/namespaces/{namespace_id}/logs/lobbies/{lobby_id}", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id), namespace_id=crate::apis::urlencode(namespace_id), lobby_id=crate::apis::urlencode(lobby_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Returns a list of lobbies for the given game namespace. +pub async fn cloud_games_namespaces_logs_list_namespace_lobbies(configuration: &configuration::Configuration, game_id: &str, namespace_id: &str, before_create_ts: Option) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/cloud/games/{game_id}/namespaces/{namespace_id}/logs/lobbies", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id), namespace_id=crate::apis::urlencode(namespace_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = before_create_ts { + local_var_req_builder = local_var_req_builder.query(&[("before_create_ts", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/sdks/full/rust-cli/src/apis/cloud_games_tokens_api.rs b/sdks/full/rust-cli/src/apis/cloud_games_tokens_api.rs new file mode 100644 index 0000000000..5541d05823 --- /dev/null +++ b/sdks/full/rust-cli/src/apis/cloud_games_tokens_api.rs @@ -0,0 +1,106 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + + +/// struct for typed errors of method [`cloud_games_tokens_create_cloud_token`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CloudGamesTokensCreateCloudTokenError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`cloud_games_tokens_create_service_token`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CloudGamesTokensCreateServiceTokenError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + + +/// Creates a new game cloud token. +pub async fn cloud_games_tokens_create_cloud_token(configuration: &configuration::Configuration, game_id: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/cloud/games/{game_id}/tokens/cloud", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Creates a new game service token. +pub async fn cloud_games_tokens_create_service_token(configuration: &configuration::Configuration, game_id: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/cloud/games/{game_id}/tokens/service", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/sdks/full/rust-cli/src/apis/cloud_games_versions_api.rs b/sdks/full/rust-cli/src/apis/cloud_games_versions_api.rs new file mode 100644 index 0000000000..3b57b01cc3 --- /dev/null +++ b/sdks/full/rust-cli/src/apis/cloud_games_versions_api.rs @@ -0,0 +1,196 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + + +/// struct for typed errors of method [`cloud_games_versions_create_game_version`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CloudGamesVersionsCreateGameVersionError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`cloud_games_versions_get_game_version_by_id`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CloudGamesVersionsGetGameVersionByIdError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`cloud_games_versions_reserve_version_name`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CloudGamesVersionsReserveVersionNameError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`cloud_games_versions_validate_game_version`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CloudGamesVersionsValidateGameVersionError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + + +/// Creates a new game version. +pub async fn cloud_games_versions_create_game_version(configuration: &configuration::Configuration, game_id: &str, cloud_games_create_game_version_request: crate::models::CloudGamesCreateGameVersionRequest) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/cloud/games/{game_id}/versions", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + local_var_req_builder = local_var_req_builder.json(&cloud_games_create_game_version_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Returns a game version by its version ID. +pub async fn cloud_games_versions_get_game_version_by_id(configuration: &configuration::Configuration, game_id: &str, version_id: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/cloud/games/{game_id}/versions/{version_id}", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id), version_id=crate::apis::urlencode(version_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Reserves a display name for the next version. Used to generate a monotomically increasing build number without causing a race condition with multiple versions getting created at the same time. +pub async fn cloud_games_versions_reserve_version_name(configuration: &configuration::Configuration, game_id: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/cloud/games/{game_id}/versions/reserve-name", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Validates information used to create a new game version. +pub async fn cloud_games_versions_validate_game_version(configuration: &configuration::Configuration, game_id: &str, cloud_games_validate_game_version_request: crate::models::CloudGamesValidateGameVersionRequest) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/cloud/games/{game_id}/versions/validate", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + local_var_req_builder = local_var_req_builder.json(&cloud_games_validate_game_version_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/sdks/full/rust-cli/src/apis/cloud_groups_api.rs b/sdks/full/rust-cli/src/apis/cloud_groups_api.rs new file mode 100644 index 0000000000..74d4ad260f --- /dev/null +++ b/sdks/full/rust-cli/src/apis/cloud_groups_api.rs @@ -0,0 +1,63 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + + +/// struct for typed errors of method [`cloud_groups_validate`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CloudGroupsValidateError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + + +/// Validates information used to create a new group. +pub async fn cloud_groups_validate(configuration: &configuration::Configuration, cloud_validate_group_request: crate::models::CloudValidateGroupRequest) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/cloud/groups/validate", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + local_var_req_builder = local_var_req_builder.json(&cloud_validate_group_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/sdks/full/rust-cli/src/apis/cloud_logs_api.rs b/sdks/full/rust-cli/src/apis/cloud_logs_api.rs new file mode 100644 index 0000000000..30436fa40d --- /dev/null +++ b/sdks/full/rust-cli/src/apis/cloud_logs_api.rs @@ -0,0 +1,62 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + + +/// struct for typed errors of method [`cloud_logs_get_ray_perf_logs`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CloudLogsGetRayPerfLogsError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + + +/// Returns performance information about a Rivet Ray. +pub async fn cloud_logs_get_ray_perf_logs(configuration: &configuration::Configuration, ray_id: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/cloud/rays/{ray_id}/perf", local_var_configuration.base_path, ray_id=crate::apis::urlencode(ray_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/sdks/full/rust-cli/src/apis/cloud_tiers_api.rs b/sdks/full/rust-cli/src/apis/cloud_tiers_api.rs new file mode 100644 index 0000000000..3f8df8ee31 --- /dev/null +++ b/sdks/full/rust-cli/src/apis/cloud_tiers_api.rs @@ -0,0 +1,62 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + + +/// struct for typed errors of method [`cloud_tiers_get_region_tiers`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CloudTiersGetRegionTiersError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + + +/// Returns all available region tiers. +pub async fn cloud_tiers_get_region_tiers(configuration: &configuration::Configuration, ) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/cloud/region-tiers", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/sdks/full/rust-cli/src/apis/cloud_uploads_api.rs b/sdks/full/rust-cli/src/apis/cloud_uploads_api.rs new file mode 100644 index 0000000000..5ff4809f43 --- /dev/null +++ b/sdks/full/rust-cli/src/apis/cloud_uploads_api.rs @@ -0,0 +1,62 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + + +/// struct for typed errors of method [`cloud_uploads_complete_upload`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CloudUploadsCompleteUploadError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + + +/// Marks an upload as complete. +pub async fn cloud_uploads_complete_upload(configuration: &configuration::Configuration, upload_id: &str) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/cloud/uploads/{upload_id}/complete", local_var_configuration.base_path, upload_id=crate::apis::urlencode(upload_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/sdks/full/rust-cli/src/apis/configuration.rs b/sdks/full/rust-cli/src/apis/configuration.rs new file mode 100644 index 0000000000..6535a51c12 --- /dev/null +++ b/sdks/full/rust-cli/src/apis/configuration.rs @@ -0,0 +1,53 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + +#[derive(Debug, Clone)] +pub struct Configuration { + pub base_path: String, + pub user_agent: Option, + pub client: reqwest::Client, + pub basic_auth: Option, + pub oauth_access_token: Option, + pub bearer_access_token: Option, + pub api_key: Option, + // TODO: take an oauth2 token source, similar to the go one +} + +pub type BasicAuth = (String, Option); + +#[derive(Debug, Clone)] +pub struct ApiKey { + pub prefix: Option, + pub key: String, +} + + +impl Configuration { + pub fn new() -> Configuration { + Configuration::default() + } +} + +impl Default for Configuration { + fn default() -> Self { + Configuration { + base_path: "https://api.rivet.gg".to_owned(), + user_agent: Some("OpenAPI-Generator/0.0.1/rust".to_owned()), + client: reqwest::Client::new(), + basic_auth: None, + oauth_access_token: None, + bearer_access_token: None, + api_key: None, + + } + } +} diff --git a/sdks/full/rust-cli/src/apis/group_api.rs b/sdks/full/rust-cli/src/apis/group_api.rs new file mode 100644 index 0000000000..cab1bd763a --- /dev/null +++ b/sdks/full/rust-cli/src/apis/group_api.rs @@ -0,0 +1,809 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + + +/// struct for typed errors of method [`group_ban_identity`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GroupBanIdentityError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`group_complete_avatar_upload`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GroupCompleteAvatarUploadError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`group_create`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GroupCreateError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`group_get_bans`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GroupGetBansError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`group_get_join_requests`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GroupGetJoinRequestsError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`group_get_members`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GroupGetMembersError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`group_get_profile`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GroupGetProfileError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`group_get_summary`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GroupGetSummaryError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`group_kick_member`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GroupKickMemberError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`group_leave`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GroupLeaveError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`group_list_suggested`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GroupListSuggestedError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`group_prepare_avatar_upload`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GroupPrepareAvatarUploadError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`group_search`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GroupSearchError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`group_transfer_ownership`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GroupTransferOwnershipError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`group_unban_identity`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GroupUnbanIdentityError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`group_update_profile`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GroupUpdateProfileError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`group_validate_profile`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GroupValidateProfileError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + + +/// Bans an identity from a group. Must be the owner of the group to perform this action. The banned identity will no longer be able to create a join request or use a group invite. +pub async fn group_ban_identity(configuration: &configuration::Configuration, group_id: &str, identity_id: &str) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/group/groups/{group_id}/bans/{identity_id}", local_var_configuration.base_path, group_id=crate::apis::urlencode(group_id), identity_id=crate::apis::urlencode(identity_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Completes an avatar image upload. Must be called after the file upload process completes. Call `rivet.api.group#PrepareAvatarUpload` first. +pub async fn group_complete_avatar_upload(configuration: &configuration::Configuration, group_id: &str, upload_id: &str) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/group/groups/{group_id}/avatar-upload/{upload_id}/complete", local_var_configuration.base_path, group_id=crate::apis::urlencode(group_id), upload_id=crate::apis::urlencode(upload_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Creates a new group. +pub async fn group_create(configuration: &configuration::Configuration, group_create_request: crate::models::GroupCreateRequest) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/group/groups", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + local_var_req_builder = local_var_req_builder.json(&group_create_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Returns a group's bans. Must have valid permissions to view. +pub async fn group_get_bans(configuration: &configuration::Configuration, group_id: &str, anchor: Option<&str>, count: Option, watch_index: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/group/groups/{group_id}/bans", local_var_configuration.base_path, group_id=crate::apis::urlencode(group_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = anchor { + local_var_req_builder = local_var_req_builder.query(&[("anchor", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = count { + local_var_req_builder = local_var_req_builder.query(&[("count", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = watch_index { + local_var_req_builder = local_var_req_builder.query(&[("watch_index", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Returns a group's join requests. Must have valid permissions to view. +pub async fn group_get_join_requests(configuration: &configuration::Configuration, group_id: &str, anchor: Option<&str>, count: Option, watch_index: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/group/groups/{group_id}/join-requests", local_var_configuration.base_path, group_id=crate::apis::urlencode(group_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = anchor { + local_var_req_builder = local_var_req_builder.query(&[("anchor", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = count { + local_var_req_builder = local_var_req_builder.query(&[("count", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = watch_index { + local_var_req_builder = local_var_req_builder.query(&[("watch_index", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Returns a group's members. +pub async fn group_get_members(configuration: &configuration::Configuration, group_id: &str, anchor: Option<&str>, count: Option, watch_index: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/group/groups/{group_id}/members", local_var_configuration.base_path, group_id=crate::apis::urlencode(group_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = anchor { + local_var_req_builder = local_var_req_builder.query(&[("anchor", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = count { + local_var_req_builder = local_var_req_builder.query(&[("count", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = watch_index { + local_var_req_builder = local_var_req_builder.query(&[("watch_index", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Returns a group profile. +pub async fn group_get_profile(configuration: &configuration::Configuration, group_id: &str, watch_index: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/group/groups/{group_id}/profile", local_var_configuration.base_path, group_id=crate::apis::urlencode(group_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = watch_index { + local_var_req_builder = local_var_req_builder.query(&[("watch_index", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +pub async fn group_get_summary(configuration: &configuration::Configuration, group_id: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/group/groups/{group_id}/summary", local_var_configuration.base_path, group_id=crate::apis::urlencode(group_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Kicks an identity from a group. Must be the owner of the group to perform this action. +pub async fn group_kick_member(configuration: &configuration::Configuration, group_id: &str, identity_id: &str) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/group/groups/{group_id}/kick/{identity_id}", local_var_configuration.base_path, group_id=crate::apis::urlencode(group_id), identity_id=crate::apis::urlencode(identity_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Leaves a group. +pub async fn group_leave(configuration: &configuration::Configuration, group_id: &str) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/group/groups/{group_id}/leave", local_var_configuration.base_path, group_id=crate::apis::urlencode(group_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Returns a list of suggested groups. +pub async fn group_list_suggested(configuration: &configuration::Configuration, watch_index: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/group/groups", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = watch_index { + local_var_req_builder = local_var_req_builder.query(&[("watch_index", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Prepares an avatar image upload. Complete upload with `rivet.api.group#CompleteAvatarUpload`. +pub async fn group_prepare_avatar_upload(configuration: &configuration::Configuration, group_prepare_avatar_upload_request: crate::models::GroupPrepareAvatarUploadRequest) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/group/groups/avatar-upload/prepare", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + local_var_req_builder = local_var_req_builder.json(&group_prepare_avatar_upload_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fuzzy search for groups. +pub async fn group_search(configuration: &configuration::Configuration, query: &str, anchor: Option<&str>, limit: Option) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/group/groups/search", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + local_var_req_builder = local_var_req_builder.query(&[("query", &query.to_string())]); + if let Some(ref local_var_str) = anchor { + local_var_req_builder = local_var_req_builder.query(&[("anchor", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = limit { + local_var_req_builder = local_var_req_builder.query(&[("limit", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Transfers ownership of a group to another identity. +pub async fn group_transfer_ownership(configuration: &configuration::Configuration, group_id: &str, group_transfer_ownership_request: crate::models::GroupTransferOwnershipRequest) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/group/groups/{group_id}/transfer-owner", local_var_configuration.base_path, group_id=crate::apis::urlencode(group_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + local_var_req_builder = local_var_req_builder.json(&group_transfer_ownership_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Unbans an identity from a group. Must be the owner of the group to perform this action. +pub async fn group_unban_identity(configuration: &configuration::Configuration, group_id: &str, identity_id: &str) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/group/groups/{group_id}/bans/{identity_id}", local_var_configuration.base_path, group_id=crate::apis::urlencode(group_id), identity_id=crate::apis::urlencode(identity_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +pub async fn group_update_profile(configuration: &configuration::Configuration, group_id: &str, group_update_profile_request: crate::models::GroupUpdateProfileRequest) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/group/groups/{group_id}/profile", local_var_configuration.base_path, group_id=crate::apis::urlencode(group_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + local_var_req_builder = local_var_req_builder.json(&group_update_profile_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Validate contents of group profile. Use to provide immediate feedback on profile changes before committing them. +pub async fn group_validate_profile(configuration: &configuration::Configuration, group_validate_profile_request: crate::models::GroupValidateProfileRequest) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/group/groups/profile/validate", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + local_var_req_builder = local_var_req_builder.json(&group_validate_profile_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/sdks/full/rust-cli/src/apis/group_invites_api.rs b/sdks/full/rust-cli/src/apis/group_invites_api.rs new file mode 100644 index 0000000000..2940010eeb --- /dev/null +++ b/sdks/full/rust-cli/src/apis/group_invites_api.rs @@ -0,0 +1,151 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + + +/// struct for typed errors of method [`group_invites_consume_invite`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GroupInvitesConsumeInviteError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`group_invites_create_invite`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GroupInvitesCreateInviteError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`group_invites_get_invite`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GroupInvitesGetInviteError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + + +/// Consumes a group invite to join a group. +pub async fn group_invites_consume_invite(configuration: &configuration::Configuration, group_invite_code: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/group/invites/{group_invite_code}/consume", local_var_configuration.base_path, group_invite_code=crate::apis::urlencode(group_invite_code)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Creates a group invite. Can be shared with other identities to let them join this group. +pub async fn group_invites_create_invite(configuration: &configuration::Configuration, group_id: &str, group_create_invite_request: crate::models::GroupCreateInviteRequest) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/group/groups/{group_id}/invites", local_var_configuration.base_path, group_id=crate::apis::urlencode(group_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + local_var_req_builder = local_var_req_builder.json(&group_create_invite_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Inspects a group invite returning information about the team that created it. +pub async fn group_invites_get_invite(configuration: &configuration::Configuration, group_invite_code: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/group/invites/{group_invite_code}", local_var_configuration.base_path, group_invite_code=crate::apis::urlencode(group_invite_code)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/sdks/full/rust-cli/src/apis/group_join_requests_api.rs b/sdks/full/rust-cli/src/apis/group_join_requests_api.rs new file mode 100644 index 0000000000..1b345544c5 --- /dev/null +++ b/sdks/full/rust-cli/src/apis/group_join_requests_api.rs @@ -0,0 +1,107 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + + +/// struct for typed errors of method [`group_join_requests_create_join_request`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GroupJoinRequestsCreateJoinRequestError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`group_join_requests_resolve_join_request`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GroupJoinRequestsResolveJoinRequestError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + + +/// Requests to join a group. +pub async fn group_join_requests_create_join_request(configuration: &configuration::Configuration, group_id: &str) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/group/groups/{group_id}/join-request", local_var_configuration.base_path, group_id=crate::apis::urlencode(group_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Resolves a join request for a given group. +pub async fn group_join_requests_resolve_join_request(configuration: &configuration::Configuration, group_id: &str, identity_id: &str, group_resolve_join_request_request: crate::models::GroupResolveJoinRequestRequest) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/group/groups/{group_id}/join-request/{identity_id}", local_var_configuration.base_path, group_id=crate::apis::urlencode(group_id), identity_id=crate::apis::urlencode(identity_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + local_var_req_builder = local_var_req_builder.json(&group_resolve_join_request_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/sdks/full/rust-cli/src/apis/identity_activities_api.rs b/sdks/full/rust-cli/src/apis/identity_activities_api.rs new file mode 100644 index 0000000000..b50c773b28 --- /dev/null +++ b/sdks/full/rust-cli/src/apis/identity_activities_api.rs @@ -0,0 +1,65 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + + +/// struct for typed errors of method [`identity_activities_list`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum IdentityActivitiesListError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + + +/// Returns an overview of all players currently online or in game. +pub async fn identity_activities_list(configuration: &configuration::Configuration, watch_index: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/identity/activities", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = watch_index { + local_var_req_builder = local_var_req_builder.query(&[("watch_index", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/sdks/full/rust-cli/src/apis/identity_api.rs b/sdks/full/rust-cli/src/apis/identity_api.rs new file mode 100644 index 0000000000..15329c2b16 --- /dev/null +++ b/sdks/full/rust-cli/src/apis/identity_api.rs @@ -0,0 +1,1163 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + + +/// struct for typed errors of method [`identity_complete_avatar_upload`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum IdentityCompleteAvatarUploadError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`identity_follow`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum IdentityFollowError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`identity_get_handles`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum IdentityGetHandlesError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`identity_get_profile`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum IdentityGetProfileError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`identity_get_self_profile`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum IdentityGetSelfProfileError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`identity_get_summaries`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum IdentityGetSummariesError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`identity_ignore_recent_follower`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum IdentityIgnoreRecentFollowerError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`identity_list_followers`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum IdentityListFollowersError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`identity_list_following`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum IdentityListFollowingError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`identity_list_friends`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum IdentityListFriendsError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`identity_list_mutual_friends`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum IdentityListMutualFriendsError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`identity_list_recent_followers`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum IdentityListRecentFollowersError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`identity_mark_deletion`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum IdentityMarkDeletionError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`identity_prepare_avatar_upload`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum IdentityPrepareAvatarUploadError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`identity_remove_game_activity`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum IdentityRemoveGameActivityError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`identity_report`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum IdentityReportError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`identity_search`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum IdentitySearchError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`identity_set_game_activity`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum IdentitySetGameActivityError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`identity_setup`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum IdentitySetupError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`identity_signup_for_beta`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum IdentitySignupForBetaError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`identity_unfollow`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum IdentityUnfollowError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`identity_unmark_deletion`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum IdentityUnmarkDeletionError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`identity_update_profile`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum IdentityUpdateProfileError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`identity_update_status`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum IdentityUpdateStatusError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`identity_validate_profile`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum IdentityValidateProfileError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + + +/// Completes an avatar image upload. Must be called after the file upload process completes. +pub async fn identity_complete_avatar_upload(configuration: &configuration::Configuration, upload_id: &str) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/identity/identities/avatar-upload/{upload_id}/complete", local_var_configuration.base_path, upload_id=crate::apis::urlencode(upload_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Follows the given identity. In order for identities to be \"friends\", the other identity has to also follow this identity. +pub async fn identity_follow(configuration: &configuration::Configuration, identity_id: &str) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/identity/identities/{identity_id}/follow", local_var_configuration.base_path, identity_id=crate::apis::urlencode(identity_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetches a list of identity handles. +pub async fn identity_get_handles(configuration: &configuration::Configuration, identity_ids: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/identity/identities/batch/handle", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + local_var_req_builder = local_var_req_builder.query(&[("identity_ids", &identity_ids.to_string())]); + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetches an identity profile. +pub async fn identity_get_profile(configuration: &configuration::Configuration, identity_id: &str, watch_index: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/identity/identities/{identity_id}/profile", local_var_configuration.base_path, identity_id=crate::apis::urlencode(identity_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = watch_index { + local_var_req_builder = local_var_req_builder.query(&[("watch_index", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetches the current identity's profile. +pub async fn identity_get_self_profile(configuration: &configuration::Configuration, watch_index: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/identity/identities/self/profile", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = watch_index { + local_var_req_builder = local_var_req_builder.query(&[("watch_index", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetches a list of identity summaries. +pub async fn identity_get_summaries(configuration: &configuration::Configuration, identity_ids: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/identity/identities/batch/summary", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + local_var_req_builder = local_var_req_builder.query(&[("identity_ids", &identity_ids.to_string())]); + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +pub async fn identity_ignore_recent_follower(configuration: &configuration::Configuration, identity_id: &str) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/identity/identities/self/recent-followers/{identity_id}/ignore", local_var_configuration.base_path, identity_id=crate::apis::urlencode(identity_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +pub async fn identity_list_followers(configuration: &configuration::Configuration, identity_id: &str, anchor: Option<&str>, limit: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/identity/identities/{identity_id}/followers", local_var_configuration.base_path, identity_id=crate::apis::urlencode(identity_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = anchor { + local_var_req_builder = local_var_req_builder.query(&[("anchor", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = limit { + local_var_req_builder = local_var_req_builder.query(&[("limit", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +pub async fn identity_list_following(configuration: &configuration::Configuration, identity_id: &str, anchor: Option<&str>, limit: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/identity/identities/{identity_id}/following", local_var_configuration.base_path, identity_id=crate::apis::urlencode(identity_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = anchor { + local_var_req_builder = local_var_req_builder.query(&[("anchor", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = limit { + local_var_req_builder = local_var_req_builder.query(&[("limit", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +pub async fn identity_list_friends(configuration: &configuration::Configuration, anchor: Option<&str>, limit: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/identity/identities/self/friends", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = anchor { + local_var_req_builder = local_var_req_builder.query(&[("anchor", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = limit { + local_var_req_builder = local_var_req_builder.query(&[("limit", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +pub async fn identity_list_mutual_friends(configuration: &configuration::Configuration, identity_id: &str, anchor: Option<&str>, limit: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/identity/identities/{identity_id}/mutual-friends", local_var_configuration.base_path, identity_id=crate::apis::urlencode(identity_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = anchor { + local_var_req_builder = local_var_req_builder.query(&[("anchor", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = limit { + local_var_req_builder = local_var_req_builder.query(&[("limit", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +pub async fn identity_list_recent_followers(configuration: &configuration::Configuration, count: Option, watch_index: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/identity/identities/self/recent-followers", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = count { + local_var_req_builder = local_var_req_builder.query(&[("count", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = watch_index { + local_var_req_builder = local_var_req_builder.query(&[("watch_index", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +pub async fn identity_mark_deletion(configuration: &configuration::Configuration, ) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/identity/identities/self/delete-request", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Prepares an avatar image upload. Complete upload with `CompleteIdentityAvatarUpload`. +pub async fn identity_prepare_avatar_upload(configuration: &configuration::Configuration, identity_prepare_avatar_upload_request: crate::models::IdentityPrepareAvatarUploadRequest) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/identity/identities/avatar-upload/prepare", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + local_var_req_builder = local_var_req_builder.json(&identity_prepare_avatar_upload_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Removes the current identity's game activity. +pub async fn identity_remove_game_activity(configuration: &configuration::Configuration, ) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/identity/identities/self/activity", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Creates an abuse report for an identity. +pub async fn identity_report(configuration: &configuration::Configuration, identity_id: &str, identity_report_request: crate::models::IdentityReportRequest) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/identity/identities/{identity_id}/report", local_var_configuration.base_path, identity_id=crate::apis::urlencode(identity_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + local_var_req_builder = local_var_req_builder.json(&identity_report_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fuzzy search for identities. +pub async fn identity_search(configuration: &configuration::Configuration, query: &str, anchor: Option<&str>, limit: Option) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/identity/identities/search", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + local_var_req_builder = local_var_req_builder.query(&[("query", &query.to_string())]); + if let Some(ref local_var_str) = anchor { + local_var_req_builder = local_var_req_builder.query(&[("anchor", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = limit { + local_var_req_builder = local_var_req_builder.query(&[("limit", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Sets the current identity's game activity. This activity will automatically be removed when the identity goes offline. +pub async fn identity_set_game_activity(configuration: &configuration::Configuration, identity_set_game_activity_request: crate::models::IdentitySetGameActivityRequest) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/identity/identities/self/activity", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + local_var_req_builder = local_var_req_builder.json(&identity_set_game_activity_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Gets or creates an identity. Passing an existing identity token in the body refreshes the token. Temporary Accounts Until the identity is linked with the Rivet Hub (see `PrepareGameLink`), this identity will be temporary but still behave like all other identities. This is intended to allow users to play the game without signing up while still having the benefits of having an account. When they are ready to save their account, they should be instructed to link their account (see `PrepareGameLink`). Storing Token `identity_token` should be stored in some form of persistent storage. The token should be read from storage and passed to `Setup` every time the client starts. +pub async fn identity_setup(configuration: &configuration::Configuration, identity_setup_request: crate::models::IdentitySetupRequest) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/identity/identities", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + local_var_req_builder = local_var_req_builder.json(&identity_setup_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Completes an avatar image upload. Must be called after the file upload process completes. +pub async fn identity_signup_for_beta(configuration: &configuration::Configuration, identity_signup_for_beta_request: crate::models::IdentitySignupForBetaRequest) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/identity/identities/self/beta-signup", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + local_var_req_builder = local_var_req_builder.json(&identity_signup_for_beta_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Unfollows the given identity. +pub async fn identity_unfollow(configuration: &configuration::Configuration, identity_id: &str) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/identity/identities/{identity_id}/follow", local_var_configuration.base_path, identity_id=crate::apis::urlencode(identity_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +pub async fn identity_unmark_deletion(configuration: &configuration::Configuration, ) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/identity/identities/self/delete-request", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Updates profile of the current identity. +pub async fn identity_update_profile(configuration: &configuration::Configuration, identity_update_profile_request: crate::models::IdentityUpdateProfileRequest) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/identity/identities/self/profile", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + local_var_req_builder = local_var_req_builder.json(&identity_update_profile_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Updates the current identity's status. +pub async fn identity_update_status(configuration: &configuration::Configuration, identity_update_status_request: crate::models::IdentityUpdateStatusRequest) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/identity/identities/identities/self/status", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + local_var_req_builder = local_var_req_builder.json(&identity_update_status_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Validate contents of identity profile. Use to provide immediate feedback on profile changes before committing them. +pub async fn identity_validate_profile(configuration: &configuration::Configuration, identity_update_profile_request: crate::models::IdentityUpdateProfileRequest) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/identity/identities/self/profile/validate", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + local_var_req_builder = local_var_req_builder.json(&identity_update_profile_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/sdks/full/rust-cli/src/apis/identity_events_api.rs b/sdks/full/rust-cli/src/apis/identity_events_api.rs new file mode 100644 index 0000000000..db247b63fe --- /dev/null +++ b/sdks/full/rust-cli/src/apis/identity_events_api.rs @@ -0,0 +1,65 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + + +/// struct for typed errors of method [`identity_events_watch`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum IdentityEventsWatchError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + + +/// Returns all events relative to the current identity. +pub async fn identity_events_watch(configuration: &configuration::Configuration, watch_index: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/identity/events/live", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = watch_index { + local_var_req_builder = local_var_req_builder.query(&[("watch_index", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/sdks/full/rust-cli/src/apis/identity_links_api.rs b/sdks/full/rust-cli/src/apis/identity_links_api.rs new file mode 100644 index 0000000000..b15f92bb60 --- /dev/null +++ b/sdks/full/rust-cli/src/apis/identity_links_api.rs @@ -0,0 +1,200 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + + +/// struct for typed errors of method [`identity_links_cancel`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum IdentityLinksCancelError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`identity_links_complete`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum IdentityLinksCompleteError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`identity_links_get`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum IdentityLinksGetError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`identity_links_prepare`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum IdentityLinksPrepareError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + + +/// Cancels a game link. It can no longer be used to link after cancellation. +pub async fn identity_links_cancel(configuration: &configuration::Configuration, identity_cancel_game_link_request: crate::models::IdentityCancelGameLinkRequest) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/identity/game-links/cancel", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + local_var_req_builder = local_var_req_builder.json(&identity_cancel_game_link_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Completes a game link process and returns whether or not the link is valid. +pub async fn identity_links_complete(configuration: &configuration::Configuration, identity_complete_game_link_request: crate::models::IdentityCompleteGameLinkRequest) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/identity/game-links/complete", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + local_var_req_builder = local_var_req_builder.json(&identity_complete_game_link_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Returns the current status of a linking process. Once `status` is `complete`, the identity's profile should be fetched again since they may have switched accounts. +pub async fn identity_links_get(configuration: &configuration::Configuration, identity_link_token: &str, watch_index: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/identity/game-links", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + local_var_req_builder = local_var_req_builder.query(&[("identity_link_token", &identity_link_token.to_string())]); + if let Some(ref local_var_str) = watch_index { + local_var_req_builder = local_var_req_builder.query(&[("watch_index", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Begins the process for linking an identity with the Rivet Hub. # Importance of Linking Identities When an identity is created via `rivet.api.identity#SetupIdentity`, the identity is temporary and is not shared with other games the user plays. In order to make the identity permanent and synchronize the identity with other games, the identity must be linked with the hub. # Linking Process The linking process works by opening `identity_link_url` in a browser then polling `rivet.api.identity#GetGameLink` to wait for it to complete. This is designed to be as flexible as possible so `identity_link_url` can be opened on any device. For example, when playing a console game, the user can scan a QR code for `identity_link_url` to authenticate on their phone. +pub async fn identity_links_prepare(configuration: &configuration::Configuration, ) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/identity/game-links", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/sdks/full/rust-cli/src/apis/job_run_api.rs b/sdks/full/rust-cli/src/apis/job_run_api.rs new file mode 100644 index 0000000000..a67c3ad575 --- /dev/null +++ b/sdks/full/rust-cli/src/apis/job_run_api.rs @@ -0,0 +1,61 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + + +/// struct for typed errors of method [`job_run_cleanup`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum JobRunCleanupError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + + +pub async fn job_run_cleanup(configuration: &configuration::Configuration, ) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/job/runs/cleanup", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/sdks/full/rust-cli/src/apis/kv_api.rs b/sdks/full/rust-cli/src/apis/kv_api.rs new file mode 100644 index 0000000000..e54f756b80 --- /dev/null +++ b/sdks/full/rust-cli/src/apis/kv_api.rs @@ -0,0 +1,352 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + + +/// struct for typed errors of method [`kv_delete`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum KvDeleteError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`kv_delete_batch`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum KvDeleteBatchError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`kv_get`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum KvGetError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`kv_get_batch`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum KvGetBatchError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`kv_list`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum KvListError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`kv_put`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum KvPutError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`kv_put_batch`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum KvPutBatchError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + + +/// Deletes a key-value entry by key. +pub async fn kv_delete(configuration: &configuration::Configuration, key: &str, namespace_id: Option<&str>) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/kv/entries", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + local_var_req_builder = local_var_req_builder.query(&[("key", &key.to_string())]); + if let Some(ref local_var_str) = namespace_id { + local_var_req_builder = local_var_req_builder.query(&[("namespace_id", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Deletes multiple key-value entries by key(s). +pub async fn kv_delete_batch(configuration: &configuration::Configuration, keys: &str, namespace_id: Option<&str>) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/kv/entries/batch", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + local_var_req_builder = local_var_req_builder.query(&[("keys", &keys.to_string())]); + if let Some(ref local_var_str) = namespace_id { + local_var_req_builder = local_var_req_builder.query(&[("namespace_id", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Returns a specific key-value entry by key. +pub async fn kv_get(configuration: &configuration::Configuration, key: &str, watch_index: Option<&str>, namespace_id: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/kv/entries", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + local_var_req_builder = local_var_req_builder.query(&[("key", &key.to_string())]); + if let Some(ref local_var_str) = watch_index { + local_var_req_builder = local_var_req_builder.query(&[("watch_index", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = namespace_id { + local_var_req_builder = local_var_req_builder.query(&[("namespace_id", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Gets multiple key-value entries by key(s). +pub async fn kv_get_batch(configuration: &configuration::Configuration, keys: &str, watch_index: Option<&str>, namespace_id: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/kv/entries/batch", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + local_var_req_builder = local_var_req_builder.query(&[("keys", &keys.to_string())]); + if let Some(ref local_var_str) = watch_index { + local_var_req_builder = local_var_req_builder.query(&[("watch_index", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = namespace_id { + local_var_req_builder = local_var_req_builder.query(&[("namespace_id", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Lists all keys in a directory. +pub async fn kv_list(configuration: &configuration::Configuration, directory: &str, namespace_id: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/kv/entries/list", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + local_var_req_builder = local_var_req_builder.query(&[("directory", &directory.to_string())]); + local_var_req_builder = local_var_req_builder.query(&[("namespace_id", &namespace_id.to_string())]); + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Puts (sets or overwrites) a key-value entry by key. +pub async fn kv_put(configuration: &configuration::Configuration, kv_put_request: crate::models::KvPutRequest) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/kv/entries", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::PUT, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + local_var_req_builder = local_var_req_builder.json(&kv_put_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Puts (sets or overwrites) multiple key-value entries by key(s). +pub async fn kv_put_batch(configuration: &configuration::Configuration, kv_put_batch_request: crate::models::KvPutBatchRequest) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/kv/entries/batch", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::PUT, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + local_var_req_builder = local_var_req_builder.json(&kv_put_batch_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/sdks/full/rust-cli/src/apis/matchmaker_lobbies_api.rs b/sdks/full/rust-cli/src/apis/matchmaker_lobbies_api.rs new file mode 100644 index 0000000000..50c2f0f0c6 --- /dev/null +++ b/sdks/full/rust-cli/src/apis/matchmaker_lobbies_api.rs @@ -0,0 +1,381 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + + +/// struct for typed errors of method [`matchmaker_lobbies_create`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum MatchmakerLobbiesCreateError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`matchmaker_lobbies_find`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum MatchmakerLobbiesFindError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`matchmaker_lobbies_get_state`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum MatchmakerLobbiesGetStateError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`matchmaker_lobbies_join`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum MatchmakerLobbiesJoinError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`matchmaker_lobbies_list`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum MatchmakerLobbiesListError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`matchmaker_lobbies_ready`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum MatchmakerLobbiesReadyError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`matchmaker_lobbies_set_closed`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum MatchmakerLobbiesSetClosedError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`matchmaker_lobbies_set_state`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum MatchmakerLobbiesSetStateError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + + +/// Creates a custom lobby. When [tokenless authentication](/docs/general/concepts/tokenless-authentication/web) is enabled in your game namespace, this endpoint does not require a token to authenticate. Otherwise, a [development namespace token](/docs/general/concepts/token-types#namespace-development) can be used for mock responses and a [public namespace token](/docs/general/concepts/token-types#namespace-public) can be used for general authentication. +pub async fn matchmaker_lobbies_create(configuration: &configuration::Configuration, matchmaker_lobbies_create_request: crate::models::MatchmakerLobbiesCreateRequest) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/matchmaker/lobbies/create", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + local_var_req_builder = local_var_req_builder.json(&matchmaker_lobbies_create_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Finds a lobby based on the given criteria. If a lobby is not found and `prevent_auto_create_lobby` is `false`, a new lobby will be created. When [tokenless authentication](/docs/general/concepts/tokenless-authentication/web) is enabled in your game namespace, this endpoint does not require a token to authenticate. Otherwise, a [development namespace token](/docs/general/concepts/token-types#namespace-development) can be used for mock responses and a [public namespace token](/docs/general/concepts/token-types#namespace-public) can be used for general authentication. +pub async fn matchmaker_lobbies_find(configuration: &configuration::Configuration, matchmaker_lobbies_find_request: crate::models::MatchmakerLobbiesFindRequest, origin: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/matchmaker/lobbies/find", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(local_var_param_value) = origin { + local_var_req_builder = local_var_req_builder.header("origin", local_var_param_value.to_string()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + local_var_req_builder = local_var_req_builder.json(&matchmaker_lobbies_find_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Get the state of any lobby. This endpoint requires a [lobby token](/docs/general/concepts/token-types#matchmaker-lobby) for authentication, or a [development namespace token](/docs/general/concepts/token-types#namespace-development) for mock responses. When running on Rivet servers, you can access the given lobby token from the [`RIVET_TOKEN`](/docs/matchmaker/concepts/lobby-env) environment variable. +pub async fn matchmaker_lobbies_get_state(configuration: &configuration::Configuration, lobby_id: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/matchmaker/lobbies/{lobby_id}/state", local_var_configuration.base_path, lobby_id=crate::apis::urlencode(lobby_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Joins a specific lobby. This request will use the direct player count configured for the lobby group. When [tokenless authentication](/docs/general/concepts/tokenless-authentication/web) is enabled in your game namespace, this endpoint does not require a token to authenticate. Otherwise, a [development namespace token](/docs/general/concepts/token-types#namespace-development) can be used for mock responses and a [public namespace token](/docs/general/concepts/token-types#namespace-public) can be used for general authentication. +pub async fn matchmaker_lobbies_join(configuration: &configuration::Configuration, matchmaker_lobbies_join_request: crate::models::MatchmakerLobbiesJoinRequest) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/matchmaker/lobbies/join", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + local_var_req_builder = local_var_req_builder.json(&matchmaker_lobbies_join_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Lists all open lobbies. When [tokenless authentication](/docs/general/concepts/tokenless-authentication/web) is enabled in your game namespace, this endpoint does not require a token to authenticate. Otherwise, a [development namespace token](/docs/general/concepts/token-types#namespace-development) can be used for mock responses and a [public namespace token](/docs/general/concepts/token-types#namespace-public) can be used for general authentication. +pub async fn matchmaker_lobbies_list(configuration: &configuration::Configuration, include_state: Option) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/matchmaker/lobbies/list", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = include_state { + local_var_req_builder = local_var_req_builder.query(&[("include_state", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Marks the current lobby as ready to accept connections. Players will not be able to connect to this lobby until the lobby is flagged as ready. This endpoint requires a [lobby token](/docs/general/concepts/token-types#matchmaker-lobby) for authentication, or a [development namespace token](/docs/general/concepts/token-types#namespace-development) for mock responses. When running on Rivet servers, you can access the given lobby token from the [`RIVET_TOKEN`](/docs/matchmaker/concepts/lobby-env) environment variable. +pub async fn matchmaker_lobbies_ready(configuration: &configuration::Configuration, ) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/matchmaker/lobbies/ready", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// If `is_closed` is `true`, the matchmaker will no longer route players to the lobby. Players can still join using the /join endpoint (this can be disabled by the developer by rejecting all new connections after setting the lobby to closed). Does not shutdown the lobby. This endpoint requires a [lobby token](/docs/general/concepts/token-types#matchmaker-lobby) for authentication, or a [development namespace token](/docs/general/concepts/token-types#namespace-development) for mock responses. When running on Rivet servers, you can access the given lobby token from the [`RIVET_TOKEN`](/docs/matchmaker/concepts/lobby-env) environment variable. +pub async fn matchmaker_lobbies_set_closed(configuration: &configuration::Configuration, matchmaker_lobbies_set_closed_request: crate::models::MatchmakerLobbiesSetClosedRequest) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/matchmaker/lobbies/closed", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::PUT, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + local_var_req_builder = local_var_req_builder.json(&matchmaker_lobbies_set_closed_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Sets the state JSON of the current lobby. This endpoint requires a [lobby token](/docs/general/concepts/token-types#matchmaker-lobby) for authentication, or a [development namespace token](/docs/general/concepts/token-types#namespace-development) for mock responses. When running on Rivet servers, you can access the given lobby token from the [`RIVET_TOKEN`](/docs/matchmaker/concepts/lobby-env) environment variable. +pub async fn matchmaker_lobbies_set_state(configuration: &configuration::Configuration, body: Option) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/matchmaker/lobbies/state", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::PUT, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + local_var_req_builder = local_var_req_builder.json(&body); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/sdks/full/rust-cli/src/apis/matchmaker_players_api.rs b/sdks/full/rust-cli/src/apis/matchmaker_players_api.rs new file mode 100644 index 0000000000..e0cb52729e --- /dev/null +++ b/sdks/full/rust-cli/src/apis/matchmaker_players_api.rs @@ -0,0 +1,152 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + + +/// struct for typed errors of method [`matchmaker_players_connected`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum MatchmakerPlayersConnectedError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`matchmaker_players_disconnected`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum MatchmakerPlayersDisconnectedError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`matchmaker_players_get_statistics`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum MatchmakerPlayersGetStatisticsError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + + +/// Validates the player token is valid and has not already been consumed then marks the player as connected. # Player Tokens and Reserved Slots Player tokens reserve a spot in the lobby until they expire. This allows for precise matchmaking up to exactly the lobby's player limit, which is important for games with small lobbies and a high influx of players. By calling this endpoint with the player token, the player's spot is marked as connected and will not expire. If this endpoint is never called, the player's token will expire and this spot will be filled by another player. # Anti-Botting Player tokens are only issued by caling `lobbies.join`, calling `lobbies.find`, or from the `GlobalEventMatchmakerLobbyJoin` event. These endpoints have anti-botting measures (i.e. enforcing max player limits, captchas, and detecting bots), so valid player tokens provide some confidence that the player is not a bot. Therefore, it's important to make sure the token is valid by waiting for this endpoint to return OK before allowing the connected socket to do anything else. If this endpoint returns an error, the socket should be disconnected immediately. # How to Transmit the Player Token The client is responsible for acquiring the player token by caling `lobbies.join`, calling `lobbies.find`, or from the `GlobalEventMatchmakerLobbyJoin` event. Beyond that, it's up to the developer how the player token is transmitted to the lobby. If using WebSockets, the player token can be transmitted as a query parameter. Otherwise, the player token will likely be automatically sent by the client once the socket opens. As mentioned above, nothing else should happen until the player token is validated. +pub async fn matchmaker_players_connected(configuration: &configuration::Configuration, matchmaker_players_connected_request: crate::models::MatchmakerPlayersConnectedRequest) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/matchmaker/players/connected", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + local_var_req_builder = local_var_req_builder.json(&matchmaker_players_connected_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Marks a player as disconnected. # Ghost Players If players are not marked as disconnected, lobbies will result with \"ghost players\" that the matchmaker thinks exist but are no longer connected to the lobby. +pub async fn matchmaker_players_disconnected(configuration: &configuration::Configuration, matchmaker_players_connected_request: crate::models::MatchmakerPlayersConnectedRequest) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/matchmaker/players/disconnected", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + local_var_req_builder = local_var_req_builder.json(&matchmaker_players_connected_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Gives matchmaker statistics about the players in game. +pub async fn matchmaker_players_get_statistics(configuration: &configuration::Configuration, ) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/matchmaker/players/statistics", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/sdks/full/rust-cli/src/apis/matchmaker_regions_api.rs b/sdks/full/rust-cli/src/apis/matchmaker_regions_api.rs new file mode 100644 index 0000000000..f70241924f --- /dev/null +++ b/sdks/full/rust-cli/src/apis/matchmaker_regions_api.rs @@ -0,0 +1,62 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + + +/// struct for typed errors of method [`matchmaker_regions_list`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum MatchmakerRegionsListError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + + +/// Returns a list of regions available to this namespace. Regions are sorted by most optimal to least optimal. The player's IP address is used to calculate the regions' optimality. +pub async fn matchmaker_regions_list(configuration: &configuration::Configuration, ) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/matchmaker/regions", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/sdks/full/rust-cli/src/apis/mod.rs b/sdks/full/rust-cli/src/apis/mod.rs new file mode 100644 index 0000000000..11b380d655 --- /dev/null +++ b/sdks/full/rust-cli/src/apis/mod.rs @@ -0,0 +1,136 @@ +use std::error; +use std::fmt; + +#[derive(Debug, Clone)] +pub struct ResponseContent { + pub status: reqwest::StatusCode, + pub content: String, + pub entity: Option, +} + +#[derive(Debug)] +pub enum Error { + Reqwest(reqwest::Error), + Serde(serde_json::Error), + Io(std::io::Error), + ResponseError(ResponseContent), +} + +impl fmt::Display for Error { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + let (module, e) = match self { + Error::Reqwest(e) => ("reqwest", e.to_string()), + Error::Serde(e) => ("serde", e.to_string()), + Error::Io(e) => ("IO", e.to_string()), + Error::ResponseError(e) => ("response", format!("status code {}", e.status)), + }; + write!(f, "error in {}: {}", module, e) + } +} + +impl error::Error for Error { + fn source(&self) -> Option<&(dyn error::Error + 'static)> { + Some(match self { + Error::Reqwest(e) => e, + Error::Serde(e) => e, + Error::Io(e) => e, + Error::ResponseError(_) => return None, + }) + } +} + +impl From for Error { + fn from(e: reqwest::Error) -> Self { + Error::Reqwest(e) + } +} + +impl From for Error { + fn from(e: serde_json::Error) -> Self { + Error::Serde(e) + } +} + +impl From for Error { + fn from(e: std::io::Error) -> Self { + Error::Io(e) + } +} + +pub fn urlencode>(s: T) -> String { + ::url::form_urlencoded::byte_serialize(s.as_ref().as_bytes()).collect() +} + +pub fn parse_deep_object(prefix: &str, value: &serde_json::Value) -> Vec<(String, String)> { + if let serde_json::Value::Object(object) = value { + let mut params = vec![]; + + for (key, value) in object { + match value { + serde_json::Value::Object(_) => params.append(&mut parse_deep_object( + &format!("{}[{}]", prefix, key), + value, + )), + serde_json::Value::Array(array) => { + for (i, value) in array.iter().enumerate() { + params.append(&mut parse_deep_object( + &format!("{}[{}][{}]", prefix, key, i), + value, + )); + } + }, + serde_json::Value::String(s) => params.push((format!("{}[{}]", prefix, key), s.clone())), + _ => params.push((format!("{}[{}]", prefix, key), value.to_string())), + } + } + + return params; + } + + unimplemented!("Only objects are supported with style=deepObject") +} + +pub mod admin_api; +pub mod admin_clusters_api; +pub mod admin_clusters_datacenters_api; +pub mod admin_clusters_servers_api; +pub mod auth_identity_access_token_api; +pub mod auth_identity_email_api; +pub mod auth_tokens_api; +pub mod cloud_api; +pub mod cloud_auth_api; +pub mod cloud_devices_links_api; +pub mod cloud_games_api; +pub mod cloud_games_avatars_api; +pub mod cloud_games_builds_api; +pub mod cloud_games_cdn_api; +pub mod cloud_games_matchmaker_api; +pub mod cloud_games_namespaces_api; +pub mod cloud_games_namespaces_analytics_api; +pub mod cloud_games_namespaces_logs_api; +pub mod cloud_games_tokens_api; +pub mod cloud_games_versions_api; +pub mod cloud_groups_api; +pub mod cloud_logs_api; +pub mod cloud_tiers_api; +pub mod cloud_uploads_api; +pub mod group_api; +pub mod group_invites_api; +pub mod group_join_requests_api; +pub mod identity_api; +pub mod identity_activities_api; +pub mod identity_events_api; +pub mod identity_links_api; +pub mod job_run_api; +pub mod kv_api; +pub mod matchmaker_lobbies_api; +pub mod matchmaker_players_api; +pub mod matchmaker_regions_api; +pub mod portal_games_api; +pub mod provision_datacenters_api; +pub mod provision_servers_api; +pub mod servers_api; +pub mod servers_builds_api; +pub mod servers_logs_api; + +pub mod configuration; diff --git a/sdks/full/rust-cli/src/apis/portal_games_api.rs b/sdks/full/rust-cli/src/apis/portal_games_api.rs new file mode 100644 index 0000000000..731e627d6b --- /dev/null +++ b/sdks/full/rust-cli/src/apis/portal_games_api.rs @@ -0,0 +1,65 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + + +/// struct for typed errors of method [`portal_games_get_game_profile`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum PortalGamesGetGameProfileError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + + +/// Returns a game profile. +pub async fn portal_games_get_game_profile(configuration: &configuration::Configuration, game_name_id: &str, watch_index: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/portal/games/{game_name_id}/profile", local_var_configuration.base_path, game_name_id=crate::apis::urlencode(game_name_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = watch_index { + local_var_req_builder = local_var_req_builder.query(&[("watch_index", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/sdks/full/rust-cli/src/apis/provision_datacenters_api.rs b/sdks/full/rust-cli/src/apis/provision_datacenters_api.rs new file mode 100644 index 0000000000..f65a93e263 --- /dev/null +++ b/sdks/full/rust-cli/src/apis/provision_datacenters_api.rs @@ -0,0 +1,61 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + + +/// struct for typed errors of method [`provision_datacenters_get_tls`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ProvisionDatacentersGetTlsError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + + +pub async fn provision_datacenters_get_tls(configuration: &configuration::Configuration, datacenter_id: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/datacenters/{datacenter_id}/tls", local_var_configuration.base_path, datacenter_id=crate::apis::urlencode(datacenter_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/sdks/full/rust-cli/src/apis/provision_servers_api.rs b/sdks/full/rust-cli/src/apis/provision_servers_api.rs new file mode 100644 index 0000000000..c2aab2852d --- /dev/null +++ b/sdks/full/rust-cli/src/apis/provision_servers_api.rs @@ -0,0 +1,61 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + + +/// struct for typed errors of method [`provision_servers_get_info`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ProvisionServersGetInfoError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + + +pub async fn provision_servers_get_info(configuration: &configuration::Configuration, ip: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/servers/{ip}", local_var_configuration.base_path, ip=crate::apis::urlencode(ip)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/sdks/full/rust-cli/src/apis/servers_api.rs b/sdks/full/rust-cli/src/apis/servers_api.rs new file mode 100644 index 0000000000..5b89e415cd --- /dev/null +++ b/sdks/full/rust-cli/src/apis/servers_api.rs @@ -0,0 +1,204 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + + +/// struct for typed errors of method [`servers_create`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ServersCreateError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`servers_destroy`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ServersDestroyError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`servers_get`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ServersGetError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`servers_list`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ServersListError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + + +/// Create a new dynamic server. +pub async fn servers_create(configuration: &configuration::Configuration, game_id: &str, servers_create_server_request: crate::models::ServersCreateServerRequest) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/games/{game_id}/servers", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + local_var_req_builder = local_var_req_builder.json(&servers_create_server_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Destroy a dynamic server. +pub async fn servers_destroy(configuration: &configuration::Configuration, game_id: &str, server_id: &str, override_kill_timeout: Option) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/games/{game_id}/servers/{server_id}", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id), server_id=crate::apis::urlencode(server_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = override_kill_timeout { + local_var_req_builder = local_var_req_builder.query(&[("override_kill_timeout", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Gets a dynamic server. +pub async fn servers_get(configuration: &configuration::Configuration, game_id: &str, server_id: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/games/{game_id}/servers/{server_id}", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id), server_id=crate::apis::urlencode(server_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Lists all servers associated with the token used. Can be filtered by tags in the query string. +pub async fn servers_list(configuration: &configuration::Configuration, game_id: &str, tags_json: Option<&str>, game: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/games/{game_id}/servers", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = tags_json { + local_var_req_builder = local_var_req_builder.query(&[("tags_json", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = game { + local_var_req_builder = local_var_req_builder.query(&[("game", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/sdks/full/rust-cli/src/apis/servers_builds_api.rs b/sdks/full/rust-cli/src/apis/servers_builds_api.rs new file mode 100644 index 0000000000..6e78d49658 --- /dev/null +++ b/sdks/full/rust-cli/src/apis/servers_builds_api.rs @@ -0,0 +1,207 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + + +/// struct for typed errors of method [`servers_builds_complete_build`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ServersBuildsCompleteBuildError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`servers_builds_get_build`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ServersBuildsGetBuildError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`servers_builds_list_builds`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ServersBuildsListBuildsError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`servers_builds_prepare_build`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ServersBuildsPrepareBuildError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + + +/// Marks an upload as complete. +pub async fn servers_builds_complete_build(configuration: &configuration::Configuration, game_id: &str, build_id: &str) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/games/{game_id}/builds/{build_id}/complete", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id), build_id=crate::apis::urlencode(build_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Lists all builds of the game associated with the token used. Can be filtered by tags in the query string. +pub async fn servers_builds_get_build(configuration: &configuration::Configuration, game_id: &str, build_id: &str, tags_json: Option<&str>, game_id2: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/games/{game_id}/builds/{build_id}", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id), build_id=crate::apis::urlencode(build_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = tags_json { + local_var_req_builder = local_var_req_builder.query(&[("tags_json", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = game_id2 { + local_var_req_builder = local_var_req_builder.query(&[("game_id", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Lists all builds of the game associated with the token used. Can be filtered by tags in the query string. +pub async fn servers_builds_list_builds(configuration: &configuration::Configuration, game_id: &str, tags_json: Option<&str>, game_id2: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/games/{game_id}/builds", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = tags_json { + local_var_req_builder = local_var_req_builder.query(&[("tags_json", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = game_id2 { + local_var_req_builder = local_var_req_builder.query(&[("game_id", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Creates a new game build for the given game. +pub async fn servers_builds_prepare_build(configuration: &configuration::Configuration, game_id: &str, servers_create_build_request: crate::models::ServersCreateBuildRequest) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/games/{game_id}/builds/prepare", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + local_var_req_builder = local_var_req_builder.json(&servers_create_build_request); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/sdks/full/rust-cli/src/apis/servers_logs_api.rs b/sdks/full/rust-cli/src/apis/servers_logs_api.rs new file mode 100644 index 0000000000..fd7c081b17 --- /dev/null +++ b/sdks/full/rust-cli/src/apis/servers_logs_api.rs @@ -0,0 +1,69 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + + +/// struct for typed errors of method [`servers_logs_get_server_logs`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ServersLogsGetServerLogsError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + + +/// Returns the logs for a given server. +pub async fn servers_logs_get_server_logs(configuration: &configuration::Configuration, game_id: &str, server_id: &str, stream: crate::models::ServersLogStream, game: Option<&str>, watch_index: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/games/{game_id}/servers/{server_id}/logs", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id), server_id=crate::apis::urlencode(server_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + local_var_req_builder = local_var_req_builder.query(&[("stream", &stream.to_string())]); + if let Some(ref local_var_str) = game { + local_var_req_builder = local_var_req_builder.query(&[("game", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = watch_index { + local_var_req_builder = local_var_req_builder.query(&[("watch_index", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/sdks/full/rust-cli/src/lib.rs b/sdks/full/rust-cli/src/lib.rs new file mode 100644 index 0000000000..c1dd666f79 --- /dev/null +++ b/sdks/full/rust-cli/src/lib.rs @@ -0,0 +1,10 @@ +#[macro_use] +extern crate serde_derive; + +extern crate serde; +extern crate serde_json; +extern crate url; +extern crate reqwest; + +pub mod apis; +pub mod models; diff --git a/sdks/full/rust-cli/src/models/admin_clusters_build_delivery_method.rs b/sdks/full/rust-cli/src/models/admin_clusters_build_delivery_method.rs new file mode 100644 index 0000000000..08876954c2 --- /dev/null +++ b/sdks/full/rust-cli/src/models/admin_clusters_build_delivery_method.rs @@ -0,0 +1,39 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum AdminClustersBuildDeliveryMethod { + #[serde(rename = "traffic_server")] + TrafficServer, + #[serde(rename = "s3_direct")] + S3Direct, + +} + +impl ToString for AdminClustersBuildDeliveryMethod { + fn to_string(&self) -> String { + match self { + Self::TrafficServer => String::from("traffic_server"), + Self::S3Direct => String::from("s3_direct"), + } + } +} + +impl Default for AdminClustersBuildDeliveryMethod { + fn default() -> AdminClustersBuildDeliveryMethod { + Self::TrafficServer + } +} + + + + diff --git a/sdks/full/rust-cli/src/models/admin_clusters_cluster.rs b/sdks/full/rust-cli/src/models/admin_clusters_cluster.rs new file mode 100644 index 0000000000..25ef74db31 --- /dev/null +++ b/sdks/full/rust-cli/src/models/admin_clusters_cluster.rs @@ -0,0 +1,37 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct AdminClustersCluster { + #[serde(rename = "cluster_id")] + pub cluster_id: uuid::Uuid, + #[serde(rename = "create_ts")] + pub create_ts: i64, + #[serde(rename = "name_id")] + pub name_id: String, + #[serde(rename = "owner_team_id", skip_serializing_if = "Option::is_none")] + pub owner_team_id: Option, +} + +impl AdminClustersCluster { + pub fn new(cluster_id: uuid::Uuid, create_ts: i64, name_id: String) -> AdminClustersCluster { + AdminClustersCluster { + cluster_id, + create_ts, + name_id, + owner_team_id: None, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/admin_clusters_create_cluster_request.rs b/sdks/full/rust-cli/src/models/admin_clusters_create_cluster_request.rs new file mode 100644 index 0000000000..b4c6f67828 --- /dev/null +++ b/sdks/full/rust-cli/src/models/admin_clusters_create_cluster_request.rs @@ -0,0 +1,31 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct AdminClustersCreateClusterRequest { + #[serde(rename = "name_id")] + pub name_id: String, + #[serde(rename = "owner_team_id", skip_serializing_if = "Option::is_none")] + pub owner_team_id: Option, +} + +impl AdminClustersCreateClusterRequest { + pub fn new(name_id: String) -> AdminClustersCreateClusterRequest { + AdminClustersCreateClusterRequest { + name_id, + owner_team_id: None, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/admin_clusters_create_cluster_response.rs b/sdks/full/rust-cli/src/models/admin_clusters_create_cluster_response.rs new file mode 100644 index 0000000000..d1ad113193 --- /dev/null +++ b/sdks/full/rust-cli/src/models/admin_clusters_create_cluster_response.rs @@ -0,0 +1,28 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct AdminClustersCreateClusterResponse { + #[serde(rename = "cluster_id")] + pub cluster_id: uuid::Uuid, +} + +impl AdminClustersCreateClusterResponse { + pub fn new(cluster_id: uuid::Uuid) -> AdminClustersCreateClusterResponse { + AdminClustersCreateClusterResponse { + cluster_id, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/admin_clusters_create_datacenter_request.rs b/sdks/full/rust-cli/src/models/admin_clusters_create_datacenter_request.rs new file mode 100644 index 0000000000..4c284fd228 --- /dev/null +++ b/sdks/full/rust-cli/src/models/admin_clusters_create_datacenter_request.rs @@ -0,0 +1,43 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct AdminClustersCreateDatacenterRequest { + #[serde(rename = "build_delivery_method")] + pub build_delivery_method: crate::models::AdminClustersBuildDeliveryMethod, + #[serde(rename = "display_name")] + pub display_name: String, + #[serde(rename = "name_id")] + pub name_id: String, + #[serde(rename = "prebakes_enabled")] + pub prebakes_enabled: bool, + #[serde(rename = "provider")] + pub provider: crate::models::AdminClustersProvider, + #[serde(rename = "provider_datacenter_id")] + pub provider_datacenter_id: String, +} + +impl AdminClustersCreateDatacenterRequest { + pub fn new(build_delivery_method: crate::models::AdminClustersBuildDeliveryMethod, display_name: String, name_id: String, prebakes_enabled: bool, provider: crate::models::AdminClustersProvider, provider_datacenter_id: String) -> AdminClustersCreateDatacenterRequest { + AdminClustersCreateDatacenterRequest { + build_delivery_method, + display_name, + name_id, + prebakes_enabled, + provider, + provider_datacenter_id, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/admin_clusters_create_datacenter_response.rs b/sdks/full/rust-cli/src/models/admin_clusters_create_datacenter_response.rs new file mode 100644 index 0000000000..8db217e876 --- /dev/null +++ b/sdks/full/rust-cli/src/models/admin_clusters_create_datacenter_response.rs @@ -0,0 +1,28 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct AdminClustersCreateDatacenterResponse { + #[serde(rename = "datacenter_id")] + pub datacenter_id: uuid::Uuid, +} + +impl AdminClustersCreateDatacenterResponse { + pub fn new(datacenter_id: uuid::Uuid) -> AdminClustersCreateDatacenterResponse { + AdminClustersCreateDatacenterResponse { + datacenter_id, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/admin_clusters_datacenter.rs b/sdks/full/rust-cli/src/models/admin_clusters_datacenter.rs new file mode 100644 index 0000000000..80318b2271 --- /dev/null +++ b/sdks/full/rust-cli/src/models/admin_clusters_datacenter.rs @@ -0,0 +1,52 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct AdminClustersDatacenter { + #[serde(rename = "build_delivery_method")] + pub build_delivery_method: crate::models::AdminClustersBuildDeliveryMethod, + #[serde(rename = "cluster_id")] + pub cluster_id: uuid::Uuid, + #[serde(rename = "datacenter_id")] + pub datacenter_id: uuid::Uuid, + #[serde(rename = "display_name")] + pub display_name: String, + #[serde(rename = "name_id")] + pub name_id: String, + #[serde(rename = "pools")] + pub pools: Vec, + #[serde(rename = "provider")] + pub provider: crate::models::AdminClustersProvider, + #[serde(rename = "provider_api_token", skip_serializing_if = "Option::is_none")] + pub provider_api_token: Option, + #[serde(rename = "provider_datacenter_id")] + pub provider_datacenter_id: String, +} + +impl AdminClustersDatacenter { + pub fn new(build_delivery_method: crate::models::AdminClustersBuildDeliveryMethod, cluster_id: uuid::Uuid, datacenter_id: uuid::Uuid, display_name: String, name_id: String, pools: Vec, provider: crate::models::AdminClustersProvider, provider_datacenter_id: String) -> AdminClustersDatacenter { + AdminClustersDatacenter { + build_delivery_method, + cluster_id, + datacenter_id, + display_name, + name_id, + pools, + provider, + provider_api_token: None, + provider_datacenter_id, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/admin_clusters_hardware.rs b/sdks/full/rust-cli/src/models/admin_clusters_hardware.rs new file mode 100644 index 0000000000..c53b0f4940 --- /dev/null +++ b/sdks/full/rust-cli/src/models/admin_clusters_hardware.rs @@ -0,0 +1,28 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct AdminClustersHardware { + #[serde(rename = "provider_hardware")] + pub provider_hardware: String, +} + +impl AdminClustersHardware { + pub fn new(provider_hardware: String) -> AdminClustersHardware { + AdminClustersHardware { + provider_hardware, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/admin_clusters_list_clusters_response.rs b/sdks/full/rust-cli/src/models/admin_clusters_list_clusters_response.rs new file mode 100644 index 0000000000..285aabf7c2 --- /dev/null +++ b/sdks/full/rust-cli/src/models/admin_clusters_list_clusters_response.rs @@ -0,0 +1,28 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct AdminClustersListClustersResponse { + #[serde(rename = "clusters")] + pub clusters: Vec, +} + +impl AdminClustersListClustersResponse { + pub fn new(clusters: Vec) -> AdminClustersListClustersResponse { + AdminClustersListClustersResponse { + clusters, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/admin_clusters_list_datacenters_response.rs b/sdks/full/rust-cli/src/models/admin_clusters_list_datacenters_response.rs new file mode 100644 index 0000000000..95ebb3cd8e --- /dev/null +++ b/sdks/full/rust-cli/src/models/admin_clusters_list_datacenters_response.rs @@ -0,0 +1,28 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct AdminClustersListDatacentersResponse { + #[serde(rename = "datacenters")] + pub datacenters: Vec, +} + +impl AdminClustersListDatacentersResponse { + pub fn new(datacenters: Vec) -> AdminClustersListDatacentersResponse { + AdminClustersListDatacentersResponse { + datacenters, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/admin_clusters_list_servers_response.rs b/sdks/full/rust-cli/src/models/admin_clusters_list_servers_response.rs new file mode 100644 index 0000000000..be7f9a2723 --- /dev/null +++ b/sdks/full/rust-cli/src/models/admin_clusters_list_servers_response.rs @@ -0,0 +1,28 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct AdminClustersListServersResponse { + #[serde(rename = "servers")] + pub servers: Vec, +} + +impl AdminClustersListServersResponse { + pub fn new(servers: Vec) -> AdminClustersListServersResponse { + AdminClustersListServersResponse { + servers, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/admin_clusters_pool.rs b/sdks/full/rust-cli/src/models/admin_clusters_pool.rs new file mode 100644 index 0000000000..d1baf2e6d1 --- /dev/null +++ b/sdks/full/rust-cli/src/models/admin_clusters_pool.rs @@ -0,0 +1,43 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct AdminClustersPool { + #[serde(rename = "desired_count")] + pub desired_count: i32, + #[serde(rename = "drain_timeout")] + pub drain_timeout: i64, + #[serde(rename = "hardware")] + pub hardware: Vec, + #[serde(rename = "max_count")] + pub max_count: i32, + #[serde(rename = "min_count")] + pub min_count: i32, + #[serde(rename = "pool_type")] + pub pool_type: crate::models::AdminClustersPoolType, +} + +impl AdminClustersPool { + pub fn new(desired_count: i32, drain_timeout: i64, hardware: Vec, max_count: i32, min_count: i32, pool_type: crate::models::AdminClustersPoolType) -> AdminClustersPool { + AdminClustersPool { + desired_count, + drain_timeout, + hardware, + max_count, + min_count, + pool_type, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/admin_clusters_pool_type.rs b/sdks/full/rust-cli/src/models/admin_clusters_pool_type.rs new file mode 100644 index 0000000000..fc5aff6753 --- /dev/null +++ b/sdks/full/rust-cli/src/models/admin_clusters_pool_type.rs @@ -0,0 +1,42 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum AdminClustersPoolType { + #[serde(rename = "job")] + Job, + #[serde(rename = "gg")] + Gg, + #[serde(rename = "ats")] + Ats, + +} + +impl ToString for AdminClustersPoolType { + fn to_string(&self) -> String { + match self { + Self::Job => String::from("job"), + Self::Gg => String::from("gg"), + Self::Ats => String::from("ats"), + } + } +} + +impl Default for AdminClustersPoolType { + fn default() -> AdminClustersPoolType { + Self::Job + } +} + + + + diff --git a/sdks/full/rust-cli/src/models/admin_clusters_pool_update.rs b/sdks/full/rust-cli/src/models/admin_clusters_pool_update.rs new file mode 100644 index 0000000000..21aad9a461 --- /dev/null +++ b/sdks/full/rust-cli/src/models/admin_clusters_pool_update.rs @@ -0,0 +1,43 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct AdminClustersPoolUpdate { + #[serde(rename = "desired_count", skip_serializing_if = "Option::is_none")] + pub desired_count: Option, + #[serde(rename = "drain_timeout", skip_serializing_if = "Option::is_none")] + pub drain_timeout: Option, + #[serde(rename = "hardware")] + pub hardware: Vec, + #[serde(rename = "max_count", skip_serializing_if = "Option::is_none")] + pub max_count: Option, + #[serde(rename = "min_count", skip_serializing_if = "Option::is_none")] + pub min_count: Option, + #[serde(rename = "pool_type")] + pub pool_type: crate::models::AdminClustersPoolType, +} + +impl AdminClustersPoolUpdate { + pub fn new(hardware: Vec, pool_type: crate::models::AdminClustersPoolType) -> AdminClustersPoolUpdate { + AdminClustersPoolUpdate { + desired_count: None, + drain_timeout: None, + hardware, + max_count: None, + min_count: None, + pool_type, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/admin_clusters_provider.rs b/sdks/full/rust-cli/src/models/admin_clusters_provider.rs new file mode 100644 index 0000000000..9700e8e76f --- /dev/null +++ b/sdks/full/rust-cli/src/models/admin_clusters_provider.rs @@ -0,0 +1,36 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum AdminClustersProvider { + #[serde(rename = "linode")] + Linode, + +} + +impl ToString for AdminClustersProvider { + fn to_string(&self) -> String { + match self { + Self::Linode => String::from("linode"), + } + } +} + +impl Default for AdminClustersProvider { + fn default() -> AdminClustersProvider { + Self::Linode + } +} + + + + diff --git a/sdks/full/rust-cli/src/models/admin_clusters_server.rs b/sdks/full/rust-cli/src/models/admin_clusters_server.rs new file mode 100644 index 0000000000..c1d6061f00 --- /dev/null +++ b/sdks/full/rust-cli/src/models/admin_clusters_server.rs @@ -0,0 +1,31 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct AdminClustersServer { + #[serde(rename = "public_ip", skip_serializing_if = "Option::is_none")] + pub public_ip: Option, + #[serde(rename = "server_id")] + pub server_id: uuid::Uuid, +} + +impl AdminClustersServer { + pub fn new(server_id: uuid::Uuid) -> AdminClustersServer { + AdminClustersServer { + public_ip: None, + server_id, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/admin_clusters_update_datacenter_request.rs b/sdks/full/rust-cli/src/models/admin_clusters_update_datacenter_request.rs new file mode 100644 index 0000000000..a5f7056488 --- /dev/null +++ b/sdks/full/rust-cli/src/models/admin_clusters_update_datacenter_request.rs @@ -0,0 +1,31 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct AdminClustersUpdateDatacenterRequest { + #[serde(rename = "pools")] + pub pools: Vec, + #[serde(rename = "prebakes_enabled", skip_serializing_if = "Option::is_none")] + pub prebakes_enabled: Option, +} + +impl AdminClustersUpdateDatacenterRequest { + pub fn new(pools: Vec) -> AdminClustersUpdateDatacenterRequest { + AdminClustersUpdateDatacenterRequest { + pools, + prebakes_enabled: None, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/admin_login_request.rs b/sdks/full/rust-cli/src/models/admin_login_request.rs new file mode 100644 index 0000000000..c89f18c94c --- /dev/null +++ b/sdks/full/rust-cli/src/models/admin_login_request.rs @@ -0,0 +1,28 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct AdminLoginRequest { + #[serde(rename = "name")] + pub name: String, +} + +impl AdminLoginRequest { + pub fn new(name: String) -> AdminLoginRequest { + AdminLoginRequest { + name, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/admin_login_response.rs b/sdks/full/rust-cli/src/models/admin_login_response.rs new file mode 100644 index 0000000000..cd93c7360d --- /dev/null +++ b/sdks/full/rust-cli/src/models/admin_login_response.rs @@ -0,0 +1,28 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct AdminLoginResponse { + #[serde(rename = "url")] + pub url: String, +} + +impl AdminLoginResponse { + pub fn new(url: String) -> AdminLoginResponse { + AdminLoginResponse { + url, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/auth_complete_status.rs b/sdks/full/rust-cli/src/models/auth_complete_status.rs new file mode 100644 index 0000000000..f2d9876170 --- /dev/null +++ b/sdks/full/rust-cli/src/models/auth_complete_status.rs @@ -0,0 +1,52 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// AuthCompleteStatus : Represents the state of an external account linking process. + +/// Represents the state of an external account linking process. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum AuthCompleteStatus { + #[serde(rename = "switch_identity")] + SwitchIdentity, + #[serde(rename = "linked_account_added")] + LinkedAccountAdded, + #[serde(rename = "already_complete")] + AlreadyComplete, + #[serde(rename = "expired")] + Expired, + #[serde(rename = "too_many_attempts")] + TooManyAttempts, + #[serde(rename = "incorrect")] + Incorrect, + +} + +impl ToString for AuthCompleteStatus { + fn to_string(&self) -> String { + match self { + Self::SwitchIdentity => String::from("switch_identity"), + Self::LinkedAccountAdded => String::from("linked_account_added"), + Self::AlreadyComplete => String::from("already_complete"), + Self::Expired => String::from("expired"), + Self::TooManyAttempts => String::from("too_many_attempts"), + Self::Incorrect => String::from("incorrect"), + } + } +} + +impl Default for AuthCompleteStatus { + fn default() -> AuthCompleteStatus { + Self::SwitchIdentity + } +} + + + + diff --git a/sdks/full/rust-cli/src/models/auth_identity_complete_access_token_verification_request.rs b/sdks/full/rust-cli/src/models/auth_identity_complete_access_token_verification_request.rs new file mode 100644 index 0000000000..5efef524e7 --- /dev/null +++ b/sdks/full/rust-cli/src/models/auth_identity_complete_access_token_verification_request.rs @@ -0,0 +1,29 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct AuthIdentityCompleteAccessTokenVerificationRequest { + /// Documentation at https://jwt.io/ + #[serde(rename = "access_token")] + pub access_token: String, +} + +impl AuthIdentityCompleteAccessTokenVerificationRequest { + pub fn new(access_token: String) -> AuthIdentityCompleteAccessTokenVerificationRequest { + AuthIdentityCompleteAccessTokenVerificationRequest { + access_token, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/auth_identity_complete_email_verification_request.rs b/sdks/full/rust-cli/src/models/auth_identity_complete_email_verification_request.rs new file mode 100644 index 0000000000..5fb77a7dd3 --- /dev/null +++ b/sdks/full/rust-cli/src/models/auth_identity_complete_email_verification_request.rs @@ -0,0 +1,32 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct AuthIdentityCompleteEmailVerificationRequest { + /// The code sent to the requestee's email. + #[serde(rename = "code")] + pub code: String, + #[serde(rename = "verification_id")] + pub verification_id: uuid::Uuid, +} + +impl AuthIdentityCompleteEmailVerificationRequest { + pub fn new(code: String, verification_id: uuid::Uuid) -> AuthIdentityCompleteEmailVerificationRequest { + AuthIdentityCompleteEmailVerificationRequest { + code, + verification_id, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/auth_identity_complete_email_verification_response.rs b/sdks/full/rust-cli/src/models/auth_identity_complete_email_verification_response.rs new file mode 100644 index 0000000000..557811bb75 --- /dev/null +++ b/sdks/full/rust-cli/src/models/auth_identity_complete_email_verification_response.rs @@ -0,0 +1,28 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct AuthIdentityCompleteEmailVerificationResponse { + #[serde(rename = "status")] + pub status: crate::models::AuthCompleteStatus, +} + +impl AuthIdentityCompleteEmailVerificationResponse { + pub fn new(status: crate::models::AuthCompleteStatus) -> AuthIdentityCompleteEmailVerificationResponse { + AuthIdentityCompleteEmailVerificationResponse { + status, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/auth_identity_start_email_verification_request.rs b/sdks/full/rust-cli/src/models/auth_identity_start_email_verification_request.rs new file mode 100644 index 0000000000..d11fbea291 --- /dev/null +++ b/sdks/full/rust-cli/src/models/auth_identity_start_email_verification_request.rs @@ -0,0 +1,34 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct AuthIdentityStartEmailVerificationRequest { + #[serde(rename = "captcha", skip_serializing_if = "Option::is_none")] + pub captcha: Option>, + #[serde(rename = "email")] + pub email: String, + #[serde(rename = "game_id", skip_serializing_if = "Option::is_none")] + pub game_id: Option, +} + +impl AuthIdentityStartEmailVerificationRequest { + pub fn new(email: String) -> AuthIdentityStartEmailVerificationRequest { + AuthIdentityStartEmailVerificationRequest { + captcha: None, + email, + game_id: None, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/auth_identity_start_email_verification_response.rs b/sdks/full/rust-cli/src/models/auth_identity_start_email_verification_response.rs new file mode 100644 index 0000000000..78533e77b2 --- /dev/null +++ b/sdks/full/rust-cli/src/models/auth_identity_start_email_verification_response.rs @@ -0,0 +1,28 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct AuthIdentityStartEmailVerificationResponse { + #[serde(rename = "verification_id")] + pub verification_id: uuid::Uuid, +} + +impl AuthIdentityStartEmailVerificationResponse { + pub fn new(verification_id: uuid::Uuid) -> AuthIdentityStartEmailVerificationResponse { + AuthIdentityStartEmailVerificationResponse { + verification_id, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/auth_refresh_identity_token_request.rs b/sdks/full/rust-cli/src/models/auth_refresh_identity_token_request.rs new file mode 100644 index 0000000000..bfaf83a1f3 --- /dev/null +++ b/sdks/full/rust-cli/src/models/auth_refresh_identity_token_request.rs @@ -0,0 +1,29 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct AuthRefreshIdentityTokenRequest { + /// When `true`, the current identity for the provided cookie will be logged out and a new identity will be returned. + #[serde(rename = "logout", skip_serializing_if = "Option::is_none")] + pub logout: Option, +} + +impl AuthRefreshIdentityTokenRequest { + pub fn new() -> AuthRefreshIdentityTokenRequest { + AuthRefreshIdentityTokenRequest { + logout: None, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/auth_refresh_identity_token_response.rs b/sdks/full/rust-cli/src/models/auth_refresh_identity_token_response.rs new file mode 100644 index 0000000000..04fc595d97 --- /dev/null +++ b/sdks/full/rust-cli/src/models/auth_refresh_identity_token_response.rs @@ -0,0 +1,36 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct AuthRefreshIdentityTokenResponse { + /// Token expiration time (in milliseconds). + #[serde(rename = "exp")] + pub exp: String, + #[serde(rename = "identity_id")] + pub identity_id: uuid::Uuid, + /// A JSON Web Token. Slightly modified to include a description prefix and use Protobufs of JSON. + #[serde(rename = "token")] + pub token: String, +} + +impl AuthRefreshIdentityTokenResponse { + pub fn new(exp: String, identity_id: uuid::Uuid, token: String) -> AuthRefreshIdentityTokenResponse { + AuthRefreshIdentityTokenResponse { + exp, + identity_id, + token, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/captcha_config.rs b/sdks/full/rust-cli/src/models/captcha_config.rs new file mode 100644 index 0000000000..d285073ecd --- /dev/null +++ b/sdks/full/rust-cli/src/models/captcha_config.rs @@ -0,0 +1,33 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CaptchaConfig : Methods to verify a captcha + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CaptchaConfig { + #[serde(rename = "hcaptcha", skip_serializing_if = "Option::is_none")] + pub hcaptcha: Option>, + #[serde(rename = "turnstile", skip_serializing_if = "Option::is_none")] + pub turnstile: Option>, +} + +impl CaptchaConfig { + /// Methods to verify a captcha + pub fn new() -> CaptchaConfig { + CaptchaConfig { + hcaptcha: None, + turnstile: None, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/captcha_config_hcaptcha.rs b/sdks/full/rust-cli/src/models/captcha_config_hcaptcha.rs new file mode 100644 index 0000000000..a342255d1d --- /dev/null +++ b/sdks/full/rust-cli/src/models/captcha_config_hcaptcha.rs @@ -0,0 +1,30 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CaptchaConfigHcaptcha : Captcha configuration. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CaptchaConfigHcaptcha { + #[serde(rename = "client_response")] + pub client_response: String, +} + +impl CaptchaConfigHcaptcha { + /// Captcha configuration. + pub fn new(client_response: String) -> CaptchaConfigHcaptcha { + CaptchaConfigHcaptcha { + client_response, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/captcha_config_turnstile.rs b/sdks/full/rust-cli/src/models/captcha_config_turnstile.rs new file mode 100644 index 0000000000..ca74d127c0 --- /dev/null +++ b/sdks/full/rust-cli/src/models/captcha_config_turnstile.rs @@ -0,0 +1,30 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CaptchaConfigTurnstile : Captcha configuration. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CaptchaConfigTurnstile { + #[serde(rename = "client_response")] + pub client_response: String, +} + +impl CaptchaConfigTurnstile { + /// Captcha configuration. + pub fn new(client_response: String) -> CaptchaConfigTurnstile { + CaptchaConfigTurnstile { + client_response, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_auth_agent.rs b/sdks/full/rust-cli/src/models/cloud_auth_agent.rs new file mode 100644 index 0000000000..5ab694c6ad --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_auth_agent.rs @@ -0,0 +1,33 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CloudAuthAgent : The current authenticated agent. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudAuthAgent { + #[serde(rename = "game_cloud", skip_serializing_if = "Option::is_none")] + pub game_cloud: Option>, + #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] + pub identity: Option>, +} + +impl CloudAuthAgent { + /// The current authenticated agent. + pub fn new() -> CloudAuthAgent { + CloudAuthAgent { + game_cloud: None, + identity: None, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_auth_agent_game_cloud.rs b/sdks/full/rust-cli/src/models/cloud_auth_agent_game_cloud.rs new file mode 100644 index 0000000000..4698420b34 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_auth_agent_game_cloud.rs @@ -0,0 +1,30 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CloudAuthAgentGameCloud : The current authenticated game cloud. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudAuthAgentGameCloud { + #[serde(rename = "game_id")] + pub game_id: uuid::Uuid, +} + +impl CloudAuthAgentGameCloud { + /// The current authenticated game cloud. + pub fn new(game_id: uuid::Uuid) -> CloudAuthAgentGameCloud { + CloudAuthAgentGameCloud { + game_id, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_auth_agent_identity.rs b/sdks/full/rust-cli/src/models/cloud_auth_agent_identity.rs new file mode 100644 index 0000000000..38dff8d0ec --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_auth_agent_identity.rs @@ -0,0 +1,30 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CloudAuthAgentIdentity : The current authenticated identity. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudAuthAgentIdentity { + #[serde(rename = "identity_id")] + pub identity_id: uuid::Uuid, +} + +impl CloudAuthAgentIdentity { + /// The current authenticated identity. + pub fn new(identity_id: uuid::Uuid) -> CloudAuthAgentIdentity { + CloudAuthAgentIdentity { + identity_id, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_bootstrap_access.rs b/sdks/full/rust-cli/src/models/cloud_bootstrap_access.rs new file mode 100644 index 0000000000..2dd93a1027 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_bootstrap_access.rs @@ -0,0 +1,39 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum CloudBootstrapAccess { + #[serde(rename = "public")] + Public, + #[serde(rename = "private")] + Private, + +} + +impl ToString for CloudBootstrapAccess { + fn to_string(&self) -> String { + match self { + Self::Public => String::from("public"), + Self::Private => String::from("private"), + } + } +} + +impl Default for CloudBootstrapAccess { + fn default() -> CloudBootstrapAccess { + Self::Public + } +} + + + + diff --git a/sdks/full/rust-cli/src/models/cloud_bootstrap_captcha.rs b/sdks/full/rust-cli/src/models/cloud_bootstrap_captcha.rs new file mode 100644 index 0000000000..9f83ccbc73 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_bootstrap_captcha.rs @@ -0,0 +1,28 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudBootstrapCaptcha { + #[serde(rename = "turnstile", skip_serializing_if = "Option::is_none")] + pub turnstile: Option>, +} + +impl CloudBootstrapCaptcha { + pub fn new() -> CloudBootstrapCaptcha { + CloudBootstrapCaptcha { + turnstile: None, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_bootstrap_captcha_turnstile.rs b/sdks/full/rust-cli/src/models/cloud_bootstrap_captcha_turnstile.rs new file mode 100644 index 0000000000..4e326bb691 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_bootstrap_captcha_turnstile.rs @@ -0,0 +1,28 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudBootstrapCaptchaTurnstile { + #[serde(rename = "site_key")] + pub site_key: String, +} + +impl CloudBootstrapCaptchaTurnstile { + pub fn new(site_key: String) -> CloudBootstrapCaptchaTurnstile { + CloudBootstrapCaptchaTurnstile { + site_key, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_bootstrap_cluster.rs b/sdks/full/rust-cli/src/models/cloud_bootstrap_cluster.rs new file mode 100644 index 0000000000..3152f22de5 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_bootstrap_cluster.rs @@ -0,0 +1,40 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CloudBootstrapCluster : The type of cluster that the backend is currently running. + +/// The type of cluster that the backend is currently running. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum CloudBootstrapCluster { + #[serde(rename = "enterprise")] + Enterprise, + #[serde(rename = "oss")] + Oss, + +} + +impl ToString for CloudBootstrapCluster { + fn to_string(&self) -> String { + match self { + Self::Enterprise => String::from("enterprise"), + Self::Oss => String::from("oss"), + } + } +} + +impl Default for CloudBootstrapCluster { + fn default() -> CloudBootstrapCluster { + Self::Enterprise + } +} + + + + diff --git a/sdks/full/rust-cli/src/models/cloud_bootstrap_domains.rs b/sdks/full/rust-cli/src/models/cloud_bootstrap_domains.rs new file mode 100644 index 0000000000..b9fd3fae52 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_bootstrap_domains.rs @@ -0,0 +1,39 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CloudBootstrapDomains : Domains that host parts of Rivet + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudBootstrapDomains { + #[serde(rename = "cdn")] + pub cdn: String, + #[serde(rename = "job")] + pub job: String, + #[serde(rename = "main")] + pub main: String, + #[serde(rename = "opengb", skip_serializing_if = "Option::is_none")] + pub opengb: Option, +} + +impl CloudBootstrapDomains { + /// Domains that host parts of Rivet + pub fn new(cdn: String, job: String, main: String) -> CloudBootstrapDomains { + CloudBootstrapDomains { + cdn, + job, + main, + opengb: None, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_bootstrap_login_methods.rs b/sdks/full/rust-cli/src/models/cloud_bootstrap_login_methods.rs new file mode 100644 index 0000000000..05ebeb2ace --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_bootstrap_login_methods.rs @@ -0,0 +1,31 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudBootstrapLoginMethods { + #[serde(rename = "access_token")] + pub access_token: bool, + #[serde(rename = "email")] + pub email: bool, +} + +impl CloudBootstrapLoginMethods { + pub fn new(access_token: bool, email: bool) -> CloudBootstrapLoginMethods { + CloudBootstrapLoginMethods { + access_token, + email, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_bootstrap_origins.rs b/sdks/full/rust-cli/src/models/cloud_bootstrap_origins.rs new file mode 100644 index 0000000000..4a26422571 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_bootstrap_origins.rs @@ -0,0 +1,30 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CloudBootstrapOrigins : Origins used to build URLs from + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudBootstrapOrigins { + #[serde(rename = "hub")] + pub hub: String, +} + +impl CloudBootstrapOrigins { + /// Origins used to build URLs from + pub fn new(hub: String) -> CloudBootstrapOrigins { + CloudBootstrapOrigins { + hub, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_bootstrap_response.rs b/sdks/full/rust-cli/src/models/cloud_bootstrap_response.rs new file mode 100644 index 0000000000..523417b1e7 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_bootstrap_response.rs @@ -0,0 +1,43 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudBootstrapResponse { + #[serde(rename = "access")] + pub access: crate::models::CloudBootstrapAccess, + #[serde(rename = "captcha")] + pub captcha: Box, + #[serde(rename = "cluster")] + pub cluster: crate::models::CloudBootstrapCluster, + #[serde(rename = "domains", skip_serializing_if = "Option::is_none")] + pub domains: Option>, + #[serde(rename = "login_methods")] + pub login_methods: Box, + #[serde(rename = "origins")] + pub origins: Box, +} + +impl CloudBootstrapResponse { + pub fn new(access: crate::models::CloudBootstrapAccess, captcha: crate::models::CloudBootstrapCaptcha, cluster: crate::models::CloudBootstrapCluster, login_methods: crate::models::CloudBootstrapLoginMethods, origins: crate::models::CloudBootstrapOrigins) -> CloudBootstrapResponse { + CloudBootstrapResponse { + access, + captcha: Box::new(captcha), + cluster, + domains: None, + login_methods: Box::new(login_methods), + origins: Box::new(origins), + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_build_summary.rs b/sdks/full/rust-cli/src/models/cloud_build_summary.rs new file mode 100644 index 0000000000..2191748cf3 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_build_summary.rs @@ -0,0 +1,53 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CloudBuildSummary : A build summary. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudBuildSummary { + #[serde(rename = "build_id")] + pub build_id: uuid::Uuid, + /// Whether or not this build has completely been uploaded. + #[serde(rename = "complete")] + pub complete: bool, + /// Unsigned 64 bit integer. + #[serde(rename = "content_length")] + pub content_length: i64, + /// RFC3339 timestamp + #[serde(rename = "create_ts")] + pub create_ts: String, + /// Represent a resource's readable display name. + #[serde(rename = "display_name")] + pub display_name: String, + /// Tags of this build + #[serde(rename = "tags")] + pub tags: ::std::collections::HashMap, + #[serde(rename = "upload_id")] + pub upload_id: uuid::Uuid, +} + +impl CloudBuildSummary { + /// A build summary. + pub fn new(build_id: uuid::Uuid, complete: bool, content_length: i64, create_ts: String, display_name: String, tags: ::std::collections::HashMap, upload_id: uuid::Uuid) -> CloudBuildSummary { + CloudBuildSummary { + build_id, + complete, + content_length, + create_ts, + display_name, + tags, + upload_id, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_cdn_auth_type.rs b/sdks/full/rust-cli/src/models/cloud_cdn_auth_type.rs new file mode 100644 index 0000000000..bd9b926551 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_cdn_auth_type.rs @@ -0,0 +1,40 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CloudCdnAuthType : A value denoting what type of authentication to use for a game namespace's CDN. + +/// A value denoting what type of authentication to use for a game namespace's CDN. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum CloudCdnAuthType { + #[serde(rename = "none")] + None, + #[serde(rename = "basic")] + Basic, + +} + +impl ToString for CloudCdnAuthType { + fn to_string(&self) -> String { + match self { + Self::None => String::from("none"), + Self::Basic => String::from("basic"), + } + } +} + +impl Default for CloudCdnAuthType { + fn default() -> CloudCdnAuthType { + Self::None + } +} + + + + diff --git a/sdks/full/rust-cli/src/models/cloud_cdn_namespace_auth_user.rs b/sdks/full/rust-cli/src/models/cloud_cdn_namespace_auth_user.rs new file mode 100644 index 0000000000..21b67ffac2 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_cdn_namespace_auth_user.rs @@ -0,0 +1,31 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CloudCdnNamespaceAuthUser : An authenticated CDN user for a given namespace. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudCdnNamespaceAuthUser { + /// A user name. + #[serde(rename = "user")] + pub user: String, +} + +impl CloudCdnNamespaceAuthUser { + /// An authenticated CDN user for a given namespace. + pub fn new(user: String) -> CloudCdnNamespaceAuthUser { + CloudCdnNamespaceAuthUser { + user, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_cdn_namespace_config.rs b/sdks/full/rust-cli/src/models/cloud_cdn_namespace_config.rs new file mode 100644 index 0000000000..438f4a8cc3 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_cdn_namespace_config.rs @@ -0,0 +1,42 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CloudCdnNamespaceConfig : CDN configuration for a given namespace. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudCdnNamespaceConfig { + #[serde(rename = "auth_type")] + pub auth_type: crate::models::CloudCdnAuthType, + /// A list of CDN authenticated users for a given namespace. + #[serde(rename = "auth_user_list")] + pub auth_user_list: Vec, + /// A list of CDN domains for a given namespace. + #[serde(rename = "domains")] + pub domains: Vec, + /// Whether or not to allow users to connect to the given namespace via domain name. + #[serde(rename = "enable_domain_public_auth")] + pub enable_domain_public_auth: bool, +} + +impl CloudCdnNamespaceConfig { + /// CDN configuration for a given namespace. + pub fn new(auth_type: crate::models::CloudCdnAuthType, auth_user_list: Vec, domains: Vec, enable_domain_public_auth: bool) -> CloudCdnNamespaceConfig { + CloudCdnNamespaceConfig { + auth_type, + auth_user_list, + domains, + enable_domain_public_auth, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_cdn_namespace_domain.rs b/sdks/full/rust-cli/src/models/cloud_cdn_namespace_domain.rs new file mode 100644 index 0000000000..db81a282e7 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_cdn_namespace_domain.rs @@ -0,0 +1,44 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CloudCdnNamespaceDomain : A CDN domain for a given namespace. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudCdnNamespaceDomain { + /// RFC3339 timestamp + #[serde(rename = "create_ts")] + pub create_ts: String, + /// A valid domain name (no protocol). + #[serde(rename = "domain")] + pub domain: String, + #[serde(rename = "verification_errors")] + pub verification_errors: Vec, + #[serde(rename = "verification_method")] + pub verification_method: Box, + #[serde(rename = "verification_status")] + pub verification_status: crate::models::CloudCdnNamespaceDomainVerificationStatus, +} + +impl CloudCdnNamespaceDomain { + /// A CDN domain for a given namespace. + pub fn new(create_ts: String, domain: String, verification_errors: Vec, verification_method: crate::models::CloudCdnNamespaceDomainVerificationMethod, verification_status: crate::models::CloudCdnNamespaceDomainVerificationStatus) -> CloudCdnNamespaceDomain { + CloudCdnNamespaceDomain { + create_ts, + domain, + verification_errors, + verification_method: Box::new(verification_method), + verification_status, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_cdn_namespace_domain_verification_method.rs b/sdks/full/rust-cli/src/models/cloud_cdn_namespace_domain_verification_method.rs new file mode 100644 index 0000000000..b6dfced487 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_cdn_namespace_domain_verification_method.rs @@ -0,0 +1,33 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CloudCdnNamespaceDomainVerificationMethod : A union representing the verification method used for this CDN domain. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudCdnNamespaceDomainVerificationMethod { + #[serde(rename = "http", skip_serializing_if = "Option::is_none")] + pub http: Option>, + #[serde(rename = "invalid", skip_serializing_if = "Option::is_none")] + pub invalid: Option, +} + +impl CloudCdnNamespaceDomainVerificationMethod { + /// A union representing the verification method used for this CDN domain. + pub fn new() -> CloudCdnNamespaceDomainVerificationMethod { + CloudCdnNamespaceDomainVerificationMethod { + http: None, + invalid: None, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_cdn_namespace_domain_verification_method_http.rs b/sdks/full/rust-cli/src/models/cloud_cdn_namespace_domain_verification_method_http.rs new file mode 100644 index 0000000000..2e382e2dea --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_cdn_namespace_domain_verification_method_http.rs @@ -0,0 +1,28 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudCdnNamespaceDomainVerificationMethodHttp { + #[serde(rename = "cname_record")] + pub cname_record: String, +} + +impl CloudCdnNamespaceDomainVerificationMethodHttp { + pub fn new(cname_record: String) -> CloudCdnNamespaceDomainVerificationMethodHttp { + CloudCdnNamespaceDomainVerificationMethodHttp { + cname_record, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_cdn_namespace_domain_verification_status.rs b/sdks/full/rust-cli/src/models/cloud_cdn_namespace_domain_verification_status.rs new file mode 100644 index 0000000000..c76e43bf9a --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_cdn_namespace_domain_verification_status.rs @@ -0,0 +1,43 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CloudCdnNamespaceDomainVerificationStatus : A value denoting the status of a CDN domain's verification status. + +/// A value denoting the status of a CDN domain's verification status. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum CloudCdnNamespaceDomainVerificationStatus { + #[serde(rename = "active")] + Active, + #[serde(rename = "pending")] + Pending, + #[serde(rename = "failed")] + Failed, + +} + +impl ToString for CloudCdnNamespaceDomainVerificationStatus { + fn to_string(&self) -> String { + match self { + Self::Active => String::from("active"), + Self::Pending => String::from("pending"), + Self::Failed => String::from("failed"), + } + } +} + +impl Default for CloudCdnNamespaceDomainVerificationStatus { + fn default() -> CloudCdnNamespaceDomainVerificationStatus { + Self::Active + } +} + + + + diff --git a/sdks/full/rust-cli/src/models/cloud_cdn_site_summary.rs b/sdks/full/rust-cli/src/models/cloud_cdn_site_summary.rs new file mode 100644 index 0000000000..15f0418c57 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_cdn_site_summary.rs @@ -0,0 +1,49 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CloudCdnSiteSummary : A CDN site summary. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudCdnSiteSummary { + /// Whether or not this site has completely been uploaded. + #[serde(rename = "complete")] + pub complete: bool, + /// Unsigned 64 bit integer. + #[serde(rename = "content_length")] + pub content_length: i64, + /// RFC3339 timestamp + #[serde(rename = "create_ts")] + pub create_ts: String, + /// Represent a resource's readable display name. + #[serde(rename = "display_name")] + pub display_name: String, + #[serde(rename = "site_id")] + pub site_id: uuid::Uuid, + #[serde(rename = "upload_id")] + pub upload_id: uuid::Uuid, +} + +impl CloudCdnSiteSummary { + /// A CDN site summary. + pub fn new(complete: bool, content_length: i64, create_ts: String, display_name: String, site_id: uuid::Uuid, upload_id: uuid::Uuid) -> CloudCdnSiteSummary { + CloudCdnSiteSummary { + complete, + content_length, + create_ts, + display_name, + site_id, + upload_id, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_custom_avatar_summary.rs b/sdks/full/rust-cli/src/models/cloud_custom_avatar_summary.rs new file mode 100644 index 0000000000..e3716280da --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_custom_avatar_summary.rs @@ -0,0 +1,50 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CloudCustomAvatarSummary : A custom avatar summary. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudCustomAvatarSummary { + /// Whether or not this custom avatar has completely been uploaded. + #[serde(rename = "complete")] + pub complete: bool, + /// Unsigned 64 bit integer. + #[serde(rename = "content_length")] + pub content_length: i64, + /// RFC3339 timestamp + #[serde(rename = "create_ts")] + pub create_ts: String, + /// Represent a resource's readable display name. + #[serde(rename = "display_name")] + pub display_name: String, + #[serde(rename = "upload_id")] + pub upload_id: uuid::Uuid, + /// The URL of this custom avatar image. Only present if upload is complete. + #[serde(rename = "url", skip_serializing_if = "Option::is_none")] + pub url: Option, +} + +impl CloudCustomAvatarSummary { + /// A custom avatar summary. + pub fn new(complete: bool, content_length: i64, create_ts: String, display_name: String, upload_id: uuid::Uuid) -> CloudCustomAvatarSummary { + CloudCustomAvatarSummary { + complete, + content_length, + create_ts, + display_name, + upload_id, + url: None, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_devices_complete_device_link_request.rs b/sdks/full/rust-cli/src/models/cloud_devices_complete_device_link_request.rs new file mode 100644 index 0000000000..be88fe67ec --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_devices_complete_device_link_request.rs @@ -0,0 +1,32 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudDevicesCompleteDeviceLinkRequest { + /// Documentation at https://jwt.io/ + #[serde(rename = "device_link_token")] + pub device_link_token: String, + #[serde(rename = "game_id")] + pub game_id: uuid::Uuid, +} + +impl CloudDevicesCompleteDeviceLinkRequest { + pub fn new(device_link_token: String, game_id: uuid::Uuid) -> CloudDevicesCompleteDeviceLinkRequest { + CloudDevicesCompleteDeviceLinkRequest { + device_link_token, + game_id, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_devices_get_device_link_response.rs b/sdks/full/rust-cli/src/models/cloud_devices_get_device_link_response.rs new file mode 100644 index 0000000000..38a1f79d55 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_devices_get_device_link_response.rs @@ -0,0 +1,31 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudDevicesGetDeviceLinkResponse { + #[serde(rename = "cloud_token", skip_serializing_if = "Option::is_none")] + pub cloud_token: Option, + #[serde(rename = "watch")] + pub watch: Box, +} + +impl CloudDevicesGetDeviceLinkResponse { + pub fn new(watch: crate::models::WatchResponse) -> CloudDevicesGetDeviceLinkResponse { + CloudDevicesGetDeviceLinkResponse { + cloud_token: None, + watch: Box::new(watch), + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_devices_prepare_device_link_response.rs b/sdks/full/rust-cli/src/models/cloud_devices_prepare_device_link_response.rs new file mode 100644 index 0000000000..3e33ef2133 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_devices_prepare_device_link_response.rs @@ -0,0 +1,34 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudDevicesPrepareDeviceLinkResponse { + #[serde(rename = "device_link_id")] + pub device_link_id: uuid::Uuid, + #[serde(rename = "device_link_token")] + pub device_link_token: String, + #[serde(rename = "device_link_url")] + pub device_link_url: String, +} + +impl CloudDevicesPrepareDeviceLinkResponse { + pub fn new(device_link_id: uuid::Uuid, device_link_token: String, device_link_url: String) -> CloudDevicesPrepareDeviceLinkResponse { + CloudDevicesPrepareDeviceLinkResponse { + device_link_id, + device_link_token, + device_link_url, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_game_full.rs b/sdks/full/rust-cli/src/models/cloud_game_full.rs new file mode 100644 index 0000000000..a4ffd17835 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_game_full.rs @@ -0,0 +1,69 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CloudGameFull : A full game. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudGameFull { + /// A list of region summaries. + #[serde(rename = "available_regions")] + pub available_regions: Vec, + /// The URL of this game's banner image. + #[serde(rename = "banner_url", skip_serializing_if = "Option::is_none")] + pub banner_url: Option, + /// RFC3339 timestamp + #[serde(rename = "create_ts")] + pub create_ts: String, + #[serde(rename = "developer_group_id")] + pub developer_group_id: uuid::Uuid, + /// Represent a resource's readable display name. + #[serde(rename = "display_name")] + pub display_name: String, + #[serde(rename = "game_id")] + pub game_id: uuid::Uuid, + /// The URL of this game's logo image. + #[serde(rename = "logo_url", skip_serializing_if = "Option::is_none")] + pub logo_url: Option, + /// A human readable short identifier used to references resources. Different than a `rivet.common#Uuid` because this is intended to be human readable. Different than `rivet.common#DisplayName` because this should not include special characters and be short. + #[serde(rename = "name_id")] + pub name_id: String, + /// A list of namespace summaries. + #[serde(rename = "namespaces")] + pub namespaces: Vec, + /// Unsigned 32 bit integer. + #[serde(rename = "total_player_count")] + pub total_player_count: i32, + /// A list of version summaries. + #[serde(rename = "versions")] + pub versions: Vec, +} + +impl CloudGameFull { + /// A full game. + pub fn new(available_regions: Vec, create_ts: String, developer_group_id: uuid::Uuid, display_name: String, game_id: uuid::Uuid, name_id: String, namespaces: Vec, total_player_count: i32, versions: Vec) -> CloudGameFull { + CloudGameFull { + available_regions, + banner_url: None, + create_ts, + developer_group_id, + display_name, + game_id, + logo_url: None, + name_id, + namespaces, + total_player_count, + versions, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_game_lobby_expenses.rs b/sdks/full/rust-cli/src/models/cloud_game_lobby_expenses.rs new file mode 100644 index 0000000000..8fd76e7e4e --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_game_lobby_expenses.rs @@ -0,0 +1,38 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CloudGameLobbyExpenses : Game lobby expenses. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudGameLobbyExpenses { + /// A list of multiple region tier expenses. + #[serde(rename = "expenses")] + pub expenses: Vec, + #[serde(rename = "game")] + pub game: Box, + /// A list of namespace summaries. + #[serde(rename = "namespaces")] + pub namespaces: Vec, +} + +impl CloudGameLobbyExpenses { + /// Game lobby expenses. + pub fn new(expenses: Vec, game: crate::models::GameHandle, namespaces: Vec) -> CloudGameLobbyExpenses { + CloudGameLobbyExpenses { + expenses, + game: Box::new(game), + namespaces, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_games_build_compression.rs b/sdks/full/rust-cli/src/models/cloud_games_build_compression.rs new file mode 100644 index 0000000000..9980cc9cb9 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_games_build_compression.rs @@ -0,0 +1,39 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum CloudGamesBuildCompression { + #[serde(rename = "none")] + None, + #[serde(rename = "lz4")] + Lz4, + +} + +impl ToString for CloudGamesBuildCompression { + fn to_string(&self) -> String { + match self { + Self::None => String::from("none"), + Self::Lz4 => String::from("lz4"), + } + } +} + +impl Default for CloudGamesBuildCompression { + fn default() -> CloudGamesBuildCompression { + Self::None + } +} + + + + diff --git a/sdks/full/rust-cli/src/models/cloud_games_build_kind.rs b/sdks/full/rust-cli/src/models/cloud_games_build_kind.rs new file mode 100644 index 0000000000..892db37414 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_games_build_kind.rs @@ -0,0 +1,39 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum CloudGamesBuildKind { + #[serde(rename = "docker_image")] + DockerImage, + #[serde(rename = "oci_bundle")] + OciBundle, + +} + +impl ToString for CloudGamesBuildKind { + fn to_string(&self) -> String { + match self { + Self::DockerImage => String::from("docker_image"), + Self::OciBundle => String::from("oci_bundle"), + } + } +} + +impl Default for CloudGamesBuildKind { + fn default() -> CloudGamesBuildKind { + Self::DockerImage + } +} + + + + diff --git a/sdks/full/rust-cli/src/models/cloud_games_create_cloud_token_response.rs b/sdks/full/rust-cli/src/models/cloud_games_create_cloud_token_response.rs new file mode 100644 index 0000000000..d6264302b4 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_games_create_cloud_token_response.rs @@ -0,0 +1,29 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudGamesCreateCloudTokenResponse { + /// A JSON Web Token. Slightly modified to include a description prefix and use Protobufs of JSON. + #[serde(rename = "token")] + pub token: String, +} + +impl CloudGamesCreateCloudTokenResponse { + pub fn new(token: String) -> CloudGamesCreateCloudTokenResponse { + CloudGamesCreateCloudTokenResponse { + token, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_games_create_game_build_request.rs b/sdks/full/rust-cli/src/models/cloud_games_create_game_build_request.rs new file mode 100644 index 0000000000..b25d286793 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_games_create_game_build_request.rs @@ -0,0 +1,45 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudGamesCreateGameBuildRequest { + #[serde(rename = "compression", skip_serializing_if = "Option::is_none")] + pub compression: Option, + /// Represent a resource's readable display name. + #[serde(rename = "display_name")] + pub display_name: String, + #[serde(rename = "image_file")] + pub image_file: Box, + /// A tag given to the game build. + #[serde(rename = "image_tag")] + pub image_tag: String, + #[serde(rename = "kind", skip_serializing_if = "Option::is_none")] + pub kind: Option, + #[serde(rename = "multipart_upload", skip_serializing_if = "Option::is_none")] + pub multipart_upload: Option, +} + +impl CloudGamesCreateGameBuildRequest { + pub fn new(display_name: String, image_file: crate::models::UploadPrepareFile, image_tag: String) -> CloudGamesCreateGameBuildRequest { + CloudGamesCreateGameBuildRequest { + compression: None, + display_name, + image_file: Box::new(image_file), + image_tag, + kind: None, + multipart_upload: None, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_games_create_game_build_response.rs b/sdks/full/rust-cli/src/models/cloud_games_create_game_build_response.rs new file mode 100644 index 0000000000..bf7ed65cca --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_games_create_game_build_response.rs @@ -0,0 +1,37 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudGamesCreateGameBuildResponse { + #[serde(rename = "build_id")] + pub build_id: uuid::Uuid, + #[serde(rename = "image_presigned_request", skip_serializing_if = "Option::is_none")] + pub image_presigned_request: Option>, + #[serde(rename = "image_presigned_requests", skip_serializing_if = "Option::is_none")] + pub image_presigned_requests: Option>, + #[serde(rename = "upload_id")] + pub upload_id: uuid::Uuid, +} + +impl CloudGamesCreateGameBuildResponse { + pub fn new(build_id: uuid::Uuid, upload_id: uuid::Uuid) -> CloudGamesCreateGameBuildResponse { + CloudGamesCreateGameBuildResponse { + build_id, + image_presigned_request: None, + image_presigned_requests: None, + upload_id, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_games_create_game_cdn_site_request.rs b/sdks/full/rust-cli/src/models/cloud_games_create_game_cdn_site_request.rs new file mode 100644 index 0000000000..57d52bb0a7 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_games_create_game_cdn_site_request.rs @@ -0,0 +1,33 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudGamesCreateGameCdnSiteRequest { + /// Represent a resource's readable display name. + #[serde(rename = "display_name")] + pub display_name: String, + /// A list of files preparing to upload. + #[serde(rename = "files")] + pub files: Vec, +} + +impl CloudGamesCreateGameCdnSiteRequest { + pub fn new(display_name: String, files: Vec) -> CloudGamesCreateGameCdnSiteRequest { + CloudGamesCreateGameCdnSiteRequest { + display_name, + files, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_games_create_game_cdn_site_response.rs b/sdks/full/rust-cli/src/models/cloud_games_create_game_cdn_site_response.rs new file mode 100644 index 0000000000..55458bf686 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_games_create_game_cdn_site_response.rs @@ -0,0 +1,34 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudGamesCreateGameCdnSiteResponse { + #[serde(rename = "presigned_requests")] + pub presigned_requests: Vec, + #[serde(rename = "site_id")] + pub site_id: uuid::Uuid, + #[serde(rename = "upload_id")] + pub upload_id: uuid::Uuid, +} + +impl CloudGamesCreateGameCdnSiteResponse { + pub fn new(presigned_requests: Vec, site_id: uuid::Uuid, upload_id: uuid::Uuid) -> CloudGamesCreateGameCdnSiteResponse { + CloudGamesCreateGameCdnSiteResponse { + presigned_requests, + site_id, + upload_id, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_games_create_game_request.rs b/sdks/full/rust-cli/src/models/cloud_games_create_game_request.rs new file mode 100644 index 0000000000..e5fd44a582 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_games_create_game_request.rs @@ -0,0 +1,36 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudGamesCreateGameRequest { + #[serde(rename = "developer_group_id")] + pub developer_group_id: uuid::Uuid, + /// Represent a resource's readable display name. + #[serde(rename = "display_name")] + pub display_name: String, + /// A human readable short identifier used to references resources. Different than a `uuid` because this is intended to be human readable. Different than `DisplayName` because this should not include special characters and be short. + #[serde(rename = "name_id", skip_serializing_if = "Option::is_none")] + pub name_id: Option, +} + +impl CloudGamesCreateGameRequest { + pub fn new(developer_group_id: uuid::Uuid, display_name: String) -> CloudGamesCreateGameRequest { + CloudGamesCreateGameRequest { + developer_group_id, + display_name, + name_id: None, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_games_create_game_response.rs b/sdks/full/rust-cli/src/models/cloud_games_create_game_response.rs new file mode 100644 index 0000000000..9cb95bbc78 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_games_create_game_response.rs @@ -0,0 +1,28 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudGamesCreateGameResponse { + #[serde(rename = "game_id")] + pub game_id: uuid::Uuid, +} + +impl CloudGamesCreateGameResponse { + pub fn new(game_id: uuid::Uuid) -> CloudGamesCreateGameResponse { + CloudGamesCreateGameResponse { + game_id, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_games_create_game_version_request.rs b/sdks/full/rust-cli/src/models/cloud_games_create_game_version_request.rs new file mode 100644 index 0000000000..0fd1233300 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_games_create_game_version_request.rs @@ -0,0 +1,32 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudGamesCreateGameVersionRequest { + #[serde(rename = "config")] + pub config: Box, + /// Represent a resource's readable display name. + #[serde(rename = "display_name")] + pub display_name: String, +} + +impl CloudGamesCreateGameVersionRequest { + pub fn new(config: crate::models::CloudVersionConfig, display_name: String) -> CloudGamesCreateGameVersionRequest { + CloudGamesCreateGameVersionRequest { + config: Box::new(config), + display_name, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_games_create_game_version_response.rs b/sdks/full/rust-cli/src/models/cloud_games_create_game_version_response.rs new file mode 100644 index 0000000000..fdda808ad3 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_games_create_game_version_response.rs @@ -0,0 +1,28 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudGamesCreateGameVersionResponse { + #[serde(rename = "version_id")] + pub version_id: uuid::Uuid, +} + +impl CloudGamesCreateGameVersionResponse { + pub fn new(version_id: uuid::Uuid) -> CloudGamesCreateGameVersionResponse { + CloudGamesCreateGameVersionResponse { + version_id, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_games_create_service_token_response.rs b/sdks/full/rust-cli/src/models/cloud_games_create_service_token_response.rs new file mode 100644 index 0000000000..7221b71310 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_games_create_service_token_response.rs @@ -0,0 +1,29 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudGamesCreateServiceTokenResponse { + /// A JSON Web Token. + #[serde(rename = "token")] + pub token: String, +} + +impl CloudGamesCreateServiceTokenResponse { + pub fn new(token: String) -> CloudGamesCreateServiceTokenResponse { + CloudGamesCreateServiceTokenResponse { + token, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_games_delete_matchmaker_lobby_response.rs b/sdks/full/rust-cli/src/models/cloud_games_delete_matchmaker_lobby_response.rs new file mode 100644 index 0000000000..d7fa01f123 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_games_delete_matchmaker_lobby_response.rs @@ -0,0 +1,29 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudGamesDeleteMatchmakerLobbyResponse { + /// Whether or not the lobby was successfully stopped. + #[serde(rename = "did_remove")] + pub did_remove: bool, +} + +impl CloudGamesDeleteMatchmakerLobbyResponse { + pub fn new(did_remove: bool) -> CloudGamesDeleteMatchmakerLobbyResponse { + CloudGamesDeleteMatchmakerLobbyResponse { + did_remove, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_games_export_lobby_logs_request.rs b/sdks/full/rust-cli/src/models/cloud_games_export_lobby_logs_request.rs new file mode 100644 index 0000000000..6f095bf46c --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_games_export_lobby_logs_request.rs @@ -0,0 +1,28 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudGamesExportLobbyLogsRequest { + #[serde(rename = "stream")] + pub stream: crate::models::CloudGamesLogStream, +} + +impl CloudGamesExportLobbyLogsRequest { + pub fn new(stream: crate::models::CloudGamesLogStream) -> CloudGamesExportLobbyLogsRequest { + CloudGamesExportLobbyLogsRequest { + stream, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_games_export_lobby_logs_response.rs b/sdks/full/rust-cli/src/models/cloud_games_export_lobby_logs_response.rs new file mode 100644 index 0000000000..3d37548c73 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_games_export_lobby_logs_response.rs @@ -0,0 +1,29 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudGamesExportLobbyLogsResponse { + /// The URL to a CSV file for the given lobby history. + #[serde(rename = "url")] + pub url: String, +} + +impl CloudGamesExportLobbyLogsResponse { + pub fn new(url: String) -> CloudGamesExportLobbyLogsResponse { + CloudGamesExportLobbyLogsResponse { + url, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_games_export_matchmaker_lobby_history_request.rs b/sdks/full/rust-cli/src/models/cloud_games_export_matchmaker_lobby_history_request.rs new file mode 100644 index 0000000000..87efdd49d2 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_games_export_matchmaker_lobby_history_request.rs @@ -0,0 +1,33 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudGamesExportMatchmakerLobbyHistoryRequest { + /// Unsigned 64 bit integer. + #[serde(rename = "query_end")] + pub query_end: i64, + /// Unsigned 64 bit integer. + #[serde(rename = "query_start")] + pub query_start: i64, +} + +impl CloudGamesExportMatchmakerLobbyHistoryRequest { + pub fn new(query_end: i64, query_start: i64) -> CloudGamesExportMatchmakerLobbyHistoryRequest { + CloudGamesExportMatchmakerLobbyHistoryRequest { + query_end, + query_start, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_games_export_matchmaker_lobby_history_response.rs b/sdks/full/rust-cli/src/models/cloud_games_export_matchmaker_lobby_history_response.rs new file mode 100644 index 0000000000..a526adcc88 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_games_export_matchmaker_lobby_history_response.rs @@ -0,0 +1,29 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudGamesExportMatchmakerLobbyHistoryResponse { + /// The URL to a CSV file for the given lobby history. + #[serde(rename = "url")] + pub url: String, +} + +impl CloudGamesExportMatchmakerLobbyHistoryResponse { + pub fn new(url: String) -> CloudGamesExportMatchmakerLobbyHistoryResponse { + CloudGamesExportMatchmakerLobbyHistoryResponse { + url, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_games_game_banner_upload_prepare_request.rs b/sdks/full/rust-cli/src/models/cloud_games_game_banner_upload_prepare_request.rs new file mode 100644 index 0000000000..46eb2ebf13 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_games_game_banner_upload_prepare_request.rs @@ -0,0 +1,37 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudGamesGameBannerUploadPrepareRequest { + /// Unsigned 64 bit integer. + #[serde(rename = "content_length")] + pub content_length: i64, + /// The MIME type of the game banner. + #[serde(rename = "mime", skip_serializing_if = "Option::is_none")] + pub mime: Option, + /// The path/filename of the game banner. + #[serde(rename = "path")] + pub path: String, +} + +impl CloudGamesGameBannerUploadPrepareRequest { + pub fn new(content_length: i64, path: String) -> CloudGamesGameBannerUploadPrepareRequest { + CloudGamesGameBannerUploadPrepareRequest { + content_length, + mime: None, + path, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_games_game_banner_upload_prepare_response.rs b/sdks/full/rust-cli/src/models/cloud_games_game_banner_upload_prepare_response.rs new file mode 100644 index 0000000000..f93a11279d --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_games_game_banner_upload_prepare_response.rs @@ -0,0 +1,31 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudGamesGameBannerUploadPrepareResponse { + #[serde(rename = "presigned_request")] + pub presigned_request: Box, + #[serde(rename = "upload_id")] + pub upload_id: uuid::Uuid, +} + +impl CloudGamesGameBannerUploadPrepareResponse { + pub fn new(presigned_request: crate::models::UploadPresignedRequest, upload_id: uuid::Uuid) -> CloudGamesGameBannerUploadPrepareResponse { + CloudGamesGameBannerUploadPrepareResponse { + presigned_request: Box::new(presigned_request), + upload_id, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_games_game_logo_upload_prepare_request.rs b/sdks/full/rust-cli/src/models/cloud_games_game_logo_upload_prepare_request.rs new file mode 100644 index 0000000000..fb54a8713c --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_games_game_logo_upload_prepare_request.rs @@ -0,0 +1,37 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudGamesGameLogoUploadPrepareRequest { + /// Unsigned 64 bit integer. + #[serde(rename = "content_length")] + pub content_length: i64, + /// The MIME type of the game logo. + #[serde(rename = "mime", skip_serializing_if = "Option::is_none")] + pub mime: Option, + /// The path/filename of the game logo. + #[serde(rename = "path")] + pub path: String, +} + +impl CloudGamesGameLogoUploadPrepareRequest { + pub fn new(content_length: i64, path: String) -> CloudGamesGameLogoUploadPrepareRequest { + CloudGamesGameLogoUploadPrepareRequest { + content_length, + mime: None, + path, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_games_game_logo_upload_prepare_response.rs b/sdks/full/rust-cli/src/models/cloud_games_game_logo_upload_prepare_response.rs new file mode 100644 index 0000000000..9030027d3f --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_games_game_logo_upload_prepare_response.rs @@ -0,0 +1,31 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudGamesGameLogoUploadPrepareResponse { + #[serde(rename = "presigned_request")] + pub presigned_request: Box, + #[serde(rename = "upload_id")] + pub upload_id: uuid::Uuid, +} + +impl CloudGamesGameLogoUploadPrepareResponse { + pub fn new(presigned_request: crate::models::UploadPresignedRequest, upload_id: uuid::Uuid) -> CloudGamesGameLogoUploadPrepareResponse { + CloudGamesGameLogoUploadPrepareResponse { + presigned_request: Box::new(presigned_request), + upload_id, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_games_get_game_by_id_response.rs b/sdks/full/rust-cli/src/models/cloud_games_get_game_by_id_response.rs new file mode 100644 index 0000000000..7b34a45026 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_games_get_game_by_id_response.rs @@ -0,0 +1,31 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudGamesGetGameByIdResponse { + #[serde(rename = "game")] + pub game: Box, + #[serde(rename = "watch")] + pub watch: Box, +} + +impl CloudGamesGetGameByIdResponse { + pub fn new(game: crate::models::CloudGameFull, watch: crate::models::WatchResponse) -> CloudGamesGetGameByIdResponse { + CloudGamesGetGameByIdResponse { + game: Box::new(game), + watch: Box::new(watch), + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_games_get_game_version_by_id_response.rs b/sdks/full/rust-cli/src/models/cloud_games_get_game_version_by_id_response.rs new file mode 100644 index 0000000000..17d85fdb62 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_games_get_game_version_by_id_response.rs @@ -0,0 +1,28 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudGamesGetGameVersionByIdResponse { + #[serde(rename = "version")] + pub version: Box, +} + +impl CloudGamesGetGameVersionByIdResponse { + pub fn new(version: crate::models::CloudVersionFull) -> CloudGamesGetGameVersionByIdResponse { + CloudGamesGetGameVersionByIdResponse { + version: Box::new(version), + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_games_get_games_response.rs b/sdks/full/rust-cli/src/models/cloud_games_get_games_response.rs new file mode 100644 index 0000000000..d6bf996615 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_games_get_games_response.rs @@ -0,0 +1,36 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudGamesGetGamesResponse { + /// A list of game summaries. + #[serde(rename = "games")] + pub games: Vec, + /// A list of group summaries. + #[serde(rename = "groups")] + pub groups: Vec, + #[serde(rename = "watch")] + pub watch: Box, +} + +impl CloudGamesGetGamesResponse { + pub fn new(games: Vec, groups: Vec, watch: crate::models::WatchResponse) -> CloudGamesGetGamesResponse { + CloudGamesGetGamesResponse { + games, + groups, + watch: Box::new(watch), + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_games_get_lobby_logs_response.rs b/sdks/full/rust-cli/src/models/cloud_games_get_lobby_logs_response.rs new file mode 100644 index 0000000000..58f54377ac --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_games_get_lobby_logs_response.rs @@ -0,0 +1,36 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudGamesGetLobbyLogsResponse { + /// Sorted old to new. + #[serde(rename = "lines")] + pub lines: Vec, + /// Sorted old to new. + #[serde(rename = "timestamps")] + pub timestamps: Vec, + #[serde(rename = "watch")] + pub watch: Box, +} + +impl CloudGamesGetLobbyLogsResponse { + pub fn new(lines: Vec, timestamps: Vec, watch: crate::models::WatchResponse) -> CloudGamesGetLobbyLogsResponse { + CloudGamesGetLobbyLogsResponse { + lines, + timestamps, + watch: Box::new(watch), + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_games_list_game_builds_response.rs b/sdks/full/rust-cli/src/models/cloud_games_list_game_builds_response.rs new file mode 100644 index 0000000000..b1acc359db --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_games_list_game_builds_response.rs @@ -0,0 +1,29 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudGamesListGameBuildsResponse { + /// A list of build summaries. + #[serde(rename = "builds")] + pub builds: Vec, +} + +impl CloudGamesListGameBuildsResponse { + pub fn new(builds: Vec) -> CloudGamesListGameBuildsResponse { + CloudGamesListGameBuildsResponse { + builds, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_games_list_game_cdn_sites_response.rs b/sdks/full/rust-cli/src/models/cloud_games_list_game_cdn_sites_response.rs new file mode 100644 index 0000000000..6c6d5a0dc1 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_games_list_game_cdn_sites_response.rs @@ -0,0 +1,29 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudGamesListGameCdnSitesResponse { + /// A list of CDN site summaries. + #[serde(rename = "sites")] + pub sites: Vec, +} + +impl CloudGamesListGameCdnSitesResponse { + pub fn new(sites: Vec) -> CloudGamesListGameCdnSitesResponse { + CloudGamesListGameCdnSitesResponse { + sites, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_games_list_game_custom_avatars_response.rs b/sdks/full/rust-cli/src/models/cloud_games_list_game_custom_avatars_response.rs new file mode 100644 index 0000000000..12d3443345 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_games_list_game_custom_avatars_response.rs @@ -0,0 +1,29 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudGamesListGameCustomAvatarsResponse { + /// A list of custom avatar summaries. + #[serde(rename = "custom_avatars")] + pub custom_avatars: Vec, +} + +impl CloudGamesListGameCustomAvatarsResponse { + pub fn new(custom_avatars: Vec) -> CloudGamesListGameCustomAvatarsResponse { + CloudGamesListGameCustomAvatarsResponse { + custom_avatars, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_games_log_stream.rs b/sdks/full/rust-cli/src/models/cloud_games_log_stream.rs new file mode 100644 index 0000000000..64bc9afaf3 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_games_log_stream.rs @@ -0,0 +1,39 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum CloudGamesLogStream { + #[serde(rename = "std_out")] + StdOut, + #[serde(rename = "std_err")] + StdErr, + +} + +impl ToString for CloudGamesLogStream { + fn to_string(&self) -> String { + match self { + Self::StdOut => String::from("std_out"), + Self::StdErr => String::from("std_err"), + } + } +} + +impl Default for CloudGamesLogStream { + fn default() -> CloudGamesLogStream { + Self::StdOut + } +} + + + + diff --git a/sdks/full/rust-cli/src/models/cloud_games_namespaces_add_namespace_domain_request.rs b/sdks/full/rust-cli/src/models/cloud_games_namespaces_add_namespace_domain_request.rs new file mode 100644 index 0000000000..444ef1c6a1 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_games_namespaces_add_namespace_domain_request.rs @@ -0,0 +1,29 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudGamesNamespacesAddNamespaceDomainRequest { + /// A valid domain name (no protocol). + #[serde(rename = "domain")] + pub domain: String, +} + +impl CloudGamesNamespacesAddNamespaceDomainRequest { + pub fn new(domain: String) -> CloudGamesNamespacesAddNamespaceDomainRequest { + CloudGamesNamespacesAddNamespaceDomainRequest { + domain, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_games_namespaces_create_game_namespace_request.rs b/sdks/full/rust-cli/src/models/cloud_games_namespaces_create_game_namespace_request.rs new file mode 100644 index 0000000000..39f79522d1 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_games_namespaces_create_game_namespace_request.rs @@ -0,0 +1,36 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudGamesNamespacesCreateGameNamespaceRequest { + /// Represent a resource's readable display name. + #[serde(rename = "display_name")] + pub display_name: String, + /// A human readable short identifier used to references resources. Different than a `rivet.common#Uuid` because this is intended to be human readable. Different than `rivet.common#DisplayName` because this should not include special characters and be short. + #[serde(rename = "name_id")] + pub name_id: String, + #[serde(rename = "version_id")] + pub version_id: uuid::Uuid, +} + +impl CloudGamesNamespacesCreateGameNamespaceRequest { + pub fn new(display_name: String, name_id: String, version_id: uuid::Uuid) -> CloudGamesNamespacesCreateGameNamespaceRequest { + CloudGamesNamespacesCreateGameNamespaceRequest { + display_name, + name_id, + version_id, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_games_namespaces_create_game_namespace_response.rs b/sdks/full/rust-cli/src/models/cloud_games_namespaces_create_game_namespace_response.rs new file mode 100644 index 0000000000..816d4796b3 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_games_namespaces_create_game_namespace_response.rs @@ -0,0 +1,28 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudGamesNamespacesCreateGameNamespaceResponse { + #[serde(rename = "namespace_id")] + pub namespace_id: uuid::Uuid, +} + +impl CloudGamesNamespacesCreateGameNamespaceResponse { + pub fn new(namespace_id: uuid::Uuid) -> CloudGamesNamespacesCreateGameNamespaceResponse { + CloudGamesNamespacesCreateGameNamespaceResponse { + namespace_id, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_games_namespaces_create_game_namespace_token_development_request.rs b/sdks/full/rust-cli/src/models/cloud_games_namespaces_create_game_namespace_token_development_request.rs new file mode 100644 index 0000000000..d494b88b33 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_games_namespaces_create_game_namespace_token_development_request.rs @@ -0,0 +1,36 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudGamesNamespacesCreateGameNamespaceTokenDevelopmentRequest { + /// The hostname used for the token. + #[serde(rename = "hostname")] + pub hostname: String, + /// **Deprecated** A list of docker ports. + #[serde(rename = "lobby_ports", skip_serializing_if = "Option::is_none")] + pub lobby_ports: Option>, + #[serde(rename = "ports", skip_serializing_if = "Option::is_none")] + pub ports: Option<::std::collections::HashMap>, +} + +impl CloudGamesNamespacesCreateGameNamespaceTokenDevelopmentRequest { + pub fn new(hostname: String) -> CloudGamesNamespacesCreateGameNamespaceTokenDevelopmentRequest { + CloudGamesNamespacesCreateGameNamespaceTokenDevelopmentRequest { + hostname, + lobby_ports: None, + ports: None, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_games_namespaces_create_game_namespace_token_development_response.rs b/sdks/full/rust-cli/src/models/cloud_games_namespaces_create_game_namespace_token_development_response.rs new file mode 100644 index 0000000000..1e607255f1 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_games_namespaces_create_game_namespace_token_development_response.rs @@ -0,0 +1,29 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudGamesNamespacesCreateGameNamespaceTokenDevelopmentResponse { + /// A JSON Web Token. Slightly modified to include a description prefix and use Protobufs of JSON. + #[serde(rename = "token")] + pub token: String, +} + +impl CloudGamesNamespacesCreateGameNamespaceTokenDevelopmentResponse { + pub fn new(token: String) -> CloudGamesNamespacesCreateGameNamespaceTokenDevelopmentResponse { + CloudGamesNamespacesCreateGameNamespaceTokenDevelopmentResponse { + token, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_games_namespaces_create_game_namespace_token_public_response.rs b/sdks/full/rust-cli/src/models/cloud_games_namespaces_create_game_namespace_token_public_response.rs new file mode 100644 index 0000000000..9d6dd8b1ed --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_games_namespaces_create_game_namespace_token_public_response.rs @@ -0,0 +1,29 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudGamesNamespacesCreateGameNamespaceTokenPublicResponse { + /// A JSON Web Token. Slightly modified to include a description prefix and use Protobufs of JSON. + #[serde(rename = "token")] + pub token: String, +} + +impl CloudGamesNamespacesCreateGameNamespaceTokenPublicResponse { + pub fn new(token: String) -> CloudGamesNamespacesCreateGameNamespaceTokenPublicResponse { + CloudGamesNamespacesCreateGameNamespaceTokenPublicResponse { + token, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_games_namespaces_get_analytics_matchmaker_live_response.rs b/sdks/full/rust-cli/src/models/cloud_games_namespaces_get_analytics_matchmaker_live_response.rs new file mode 100644 index 0000000000..09a134856e --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_games_namespaces_get_analytics_matchmaker_live_response.rs @@ -0,0 +1,29 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudGamesNamespacesGetAnalyticsMatchmakerLiveResponse { + /// A list of analytics lobby summaries. + #[serde(rename = "lobbies")] + pub lobbies: Vec, +} + +impl CloudGamesNamespacesGetAnalyticsMatchmakerLiveResponse { + pub fn new(lobbies: Vec) -> CloudGamesNamespacesGetAnalyticsMatchmakerLiveResponse { + CloudGamesNamespacesGetAnalyticsMatchmakerLiveResponse { + lobbies, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_games_namespaces_get_game_namespace_by_id_response.rs b/sdks/full/rust-cli/src/models/cloud_games_namespaces_get_game_namespace_by_id_response.rs new file mode 100644 index 0000000000..5aa1f56dc4 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_games_namespaces_get_game_namespace_by_id_response.rs @@ -0,0 +1,28 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudGamesNamespacesGetGameNamespaceByIdResponse { + #[serde(rename = "namespace")] + pub namespace: Box, +} + +impl CloudGamesNamespacesGetGameNamespaceByIdResponse { + pub fn new(namespace: crate::models::CloudNamespaceFull) -> CloudGamesNamespacesGetGameNamespaceByIdResponse { + CloudGamesNamespacesGetGameNamespaceByIdResponse { + namespace: Box::new(namespace), + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_games_namespaces_get_game_namespace_version_history_response.rs b/sdks/full/rust-cli/src/models/cloud_games_namespaces_get_game_namespace_version_history_response.rs new file mode 100644 index 0000000000..0e28f0773e --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_games_namespaces_get_game_namespace_version_history_response.rs @@ -0,0 +1,29 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudGamesNamespacesGetGameNamespaceVersionHistoryResponse { + /// A list of previously deployed namespace versions. + #[serde(rename = "versions")] + pub versions: Vec, +} + +impl CloudGamesNamespacesGetGameNamespaceVersionHistoryResponse { + pub fn new(versions: Vec) -> CloudGamesNamespacesGetGameNamespaceVersionHistoryResponse { + CloudGamesNamespacesGetGameNamespaceVersionHistoryResponse { + versions, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_games_namespaces_get_namespace_lobby_response.rs b/sdks/full/rust-cli/src/models/cloud_games_namespaces_get_namespace_lobby_response.rs new file mode 100644 index 0000000000..c09446bc8c --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_games_namespaces_get_namespace_lobby_response.rs @@ -0,0 +1,43 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudGamesNamespacesGetNamespaceLobbyResponse { + #[serde(rename = "lobby")] + pub lobby: Box, + #[serde(rename = "metrics", skip_serializing_if = "Option::is_none")] + pub metrics: Option>, + /// **Deprecated** A list of service performance summaries. + #[serde(rename = "perf_lists")] + pub perf_lists: Vec, + /// **Deprecated** A list of URLs. + #[serde(rename = "stderr_presigned_urls")] + pub stderr_presigned_urls: Vec, + /// **Deprecated** A list of URLs. + #[serde(rename = "stdout_presigned_urls")] + pub stdout_presigned_urls: Vec, +} + +impl CloudGamesNamespacesGetNamespaceLobbyResponse { + pub fn new(lobby: crate::models::CloudLogsLobbySummary, perf_lists: Vec, stderr_presigned_urls: Vec, stdout_presigned_urls: Vec) -> CloudGamesNamespacesGetNamespaceLobbyResponse { + CloudGamesNamespacesGetNamespaceLobbyResponse { + lobby: Box::new(lobby), + metrics: None, + perf_lists, + stderr_presigned_urls, + stdout_presigned_urls, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_games_namespaces_inspect_response.rs b/sdks/full/rust-cli/src/models/cloud_games_namespaces_inspect_response.rs new file mode 100644 index 0000000000..90fc0df81b --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_games_namespaces_inspect_response.rs @@ -0,0 +1,28 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudGamesNamespacesInspectResponse { + #[serde(rename = "agent")] + pub agent: Box, +} + +impl CloudGamesNamespacesInspectResponse { + pub fn new(agent: crate::models::CloudAuthAgent) -> CloudGamesNamespacesInspectResponse { + CloudGamesNamespacesInspectResponse { + agent: Box::new(agent), + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_games_namespaces_list_namespace_lobbies_response.rs b/sdks/full/rust-cli/src/models/cloud_games_namespaces_list_namespace_lobbies_response.rs new file mode 100644 index 0000000000..42e804d011 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_games_namespaces_list_namespace_lobbies_response.rs @@ -0,0 +1,29 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudGamesNamespacesListNamespaceLobbiesResponse { + /// A list of lobby log summaries. + #[serde(rename = "lobbies")] + pub lobbies: Vec, +} + +impl CloudGamesNamespacesListNamespaceLobbiesResponse { + pub fn new(lobbies: Vec) -> CloudGamesNamespacesListNamespaceLobbiesResponse { + CloudGamesNamespacesListNamespaceLobbiesResponse { + lobbies, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_games_namespaces_set_namespace_cdn_auth_type_request.rs b/sdks/full/rust-cli/src/models/cloud_games_namespaces_set_namespace_cdn_auth_type_request.rs new file mode 100644 index 0000000000..d6f98905b4 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_games_namespaces_set_namespace_cdn_auth_type_request.rs @@ -0,0 +1,28 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudGamesNamespacesSetNamespaceCdnAuthTypeRequest { + #[serde(rename = "auth_type")] + pub auth_type: crate::models::CloudCdnAuthType, +} + +impl CloudGamesNamespacesSetNamespaceCdnAuthTypeRequest { + pub fn new(auth_type: crate::models::CloudCdnAuthType) -> CloudGamesNamespacesSetNamespaceCdnAuthTypeRequest { + CloudGamesNamespacesSetNamespaceCdnAuthTypeRequest { + auth_type, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_games_namespaces_toggle_namespace_domain_public_auth_request.rs b/sdks/full/rust-cli/src/models/cloud_games_namespaces_toggle_namespace_domain_public_auth_request.rs new file mode 100644 index 0000000000..8f756de255 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_games_namespaces_toggle_namespace_domain_public_auth_request.rs @@ -0,0 +1,29 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudGamesNamespacesToggleNamespaceDomainPublicAuthRequest { + /// Whether or not to enable authentication based on domain. + #[serde(rename = "enabled")] + pub enabled: bool, +} + +impl CloudGamesNamespacesToggleNamespaceDomainPublicAuthRequest { + pub fn new(enabled: bool) -> CloudGamesNamespacesToggleNamespaceDomainPublicAuthRequest { + CloudGamesNamespacesToggleNamespaceDomainPublicAuthRequest { + enabled, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_games_namespaces_update_game_namespace_matchmaker_config_request.rs b/sdks/full/rust-cli/src/models/cloud_games_namespaces_update_game_namespace_matchmaker_config_request.rs new file mode 100644 index 0000000000..1e10a667a3 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_games_namespaces_update_game_namespace_matchmaker_config_request.rs @@ -0,0 +1,33 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudGamesNamespacesUpdateGameNamespaceMatchmakerConfigRequest { + /// Unsigned 32 bit integer. + #[serde(rename = "lobby_count_max")] + pub lobby_count_max: i32, + /// Unsigned 32 bit integer. + #[serde(rename = "max_players")] + pub max_players: i32, +} + +impl CloudGamesNamespacesUpdateGameNamespaceMatchmakerConfigRequest { + pub fn new(lobby_count_max: i32, max_players: i32) -> CloudGamesNamespacesUpdateGameNamespaceMatchmakerConfigRequest { + CloudGamesNamespacesUpdateGameNamespaceMatchmakerConfigRequest { + lobby_count_max, + max_players, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_games_namespaces_update_game_namespace_version_request.rs b/sdks/full/rust-cli/src/models/cloud_games_namespaces_update_game_namespace_version_request.rs new file mode 100644 index 0000000000..7bc24f72d1 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_games_namespaces_update_game_namespace_version_request.rs @@ -0,0 +1,28 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudGamesNamespacesUpdateGameNamespaceVersionRequest { + #[serde(rename = "version_id")] + pub version_id: uuid::Uuid, +} + +impl CloudGamesNamespacesUpdateGameNamespaceVersionRequest { + pub fn new(version_id: uuid::Uuid) -> CloudGamesNamespacesUpdateGameNamespaceVersionRequest { + CloudGamesNamespacesUpdateGameNamespaceVersionRequest { + version_id, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_games_namespaces_update_namespace_cdn_auth_user_request.rs b/sdks/full/rust-cli/src/models/cloud_games_namespaces_update_namespace_cdn_auth_user_request.rs new file mode 100644 index 0000000000..639da0d8a5 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_games_namespaces_update_namespace_cdn_auth_user_request.rs @@ -0,0 +1,33 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudGamesNamespacesUpdateNamespaceCdnAuthUserRequest { + /// A bcrypt encrypted password. An error is returned if the given string is not properly encrypted. + #[serde(rename = "password")] + pub password: String, + /// A user name. + #[serde(rename = "user")] + pub user: String, +} + +impl CloudGamesNamespacesUpdateNamespaceCdnAuthUserRequest { + pub fn new(password: String, user: String) -> CloudGamesNamespacesUpdateNamespaceCdnAuthUserRequest { + CloudGamesNamespacesUpdateNamespaceCdnAuthUserRequest { + password, + user, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_games_namespaces_validate_game_namespace_matchmaker_config_request.rs b/sdks/full/rust-cli/src/models/cloud_games_namespaces_validate_game_namespace_matchmaker_config_request.rs new file mode 100644 index 0000000000..b144620c51 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_games_namespaces_validate_game_namespace_matchmaker_config_request.rs @@ -0,0 +1,33 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudGamesNamespacesValidateGameNamespaceMatchmakerConfigRequest { + /// Unsigned 32 bit integer. + #[serde(rename = "lobby_count_max")] + pub lobby_count_max: i32, + /// Unsigned 32 bit integer. + #[serde(rename = "max_players")] + pub max_players: i32, +} + +impl CloudGamesNamespacesValidateGameNamespaceMatchmakerConfigRequest { + pub fn new(lobby_count_max: i32, max_players: i32) -> CloudGamesNamespacesValidateGameNamespaceMatchmakerConfigRequest { + CloudGamesNamespacesValidateGameNamespaceMatchmakerConfigRequest { + lobby_count_max, + max_players, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_games_namespaces_validate_game_namespace_matchmaker_config_response.rs b/sdks/full/rust-cli/src/models/cloud_games_namespaces_validate_game_namespace_matchmaker_config_response.rs new file mode 100644 index 0000000000..5b0d3eee10 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_games_namespaces_validate_game_namespace_matchmaker_config_response.rs @@ -0,0 +1,29 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudGamesNamespacesValidateGameNamespaceMatchmakerConfigResponse { + /// A list of validation errors. + #[serde(rename = "errors")] + pub errors: Vec, +} + +impl CloudGamesNamespacesValidateGameNamespaceMatchmakerConfigResponse { + pub fn new(errors: Vec) -> CloudGamesNamespacesValidateGameNamespaceMatchmakerConfigResponse { + CloudGamesNamespacesValidateGameNamespaceMatchmakerConfigResponse { + errors, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_games_namespaces_validate_game_namespace_request.rs b/sdks/full/rust-cli/src/models/cloud_games_namespaces_validate_game_namespace_request.rs new file mode 100644 index 0000000000..3b49b7bcab --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_games_namespaces_validate_game_namespace_request.rs @@ -0,0 +1,33 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudGamesNamespacesValidateGameNamespaceRequest { + /// Represent a resource's readable display name. + #[serde(rename = "display_name")] + pub display_name: String, + /// A human readable short identifier used to references resources. Different than a `rivet.common#Uuid` because this is intended to be human readable. Different than `rivet.common#DisplayName` because this should not include special characters and be short. + #[serde(rename = "name_id")] + pub name_id: String, +} + +impl CloudGamesNamespacesValidateGameNamespaceRequest { + pub fn new(display_name: String, name_id: String) -> CloudGamesNamespacesValidateGameNamespaceRequest { + CloudGamesNamespacesValidateGameNamespaceRequest { + display_name, + name_id, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_games_namespaces_validate_game_namespace_response.rs b/sdks/full/rust-cli/src/models/cloud_games_namespaces_validate_game_namespace_response.rs new file mode 100644 index 0000000000..65be900bea --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_games_namespaces_validate_game_namespace_response.rs @@ -0,0 +1,29 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudGamesNamespacesValidateGameNamespaceResponse { + /// A list of validation errors. + #[serde(rename = "errors")] + pub errors: Vec, +} + +impl CloudGamesNamespacesValidateGameNamespaceResponse { + pub fn new(errors: Vec) -> CloudGamesNamespacesValidateGameNamespaceResponse { + CloudGamesNamespacesValidateGameNamespaceResponse { + errors, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_games_namespaces_validate_game_namespace_token_development_request.rs b/sdks/full/rust-cli/src/models/cloud_games_namespaces_validate_game_namespace_token_development_request.rs new file mode 100644 index 0000000000..c3c7db4f09 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_games_namespaces_validate_game_namespace_token_development_request.rs @@ -0,0 +1,32 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudGamesNamespacesValidateGameNamespaceTokenDevelopmentRequest { + #[serde(rename = "hostname")] + pub hostname: String, + /// A list of docker ports. + #[serde(rename = "lobby_ports")] + pub lobby_ports: Vec, +} + +impl CloudGamesNamespacesValidateGameNamespaceTokenDevelopmentRequest { + pub fn new(hostname: String, lobby_ports: Vec) -> CloudGamesNamespacesValidateGameNamespaceTokenDevelopmentRequest { + CloudGamesNamespacesValidateGameNamespaceTokenDevelopmentRequest { + hostname, + lobby_ports, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_games_namespaces_validate_game_namespace_token_development_response.rs b/sdks/full/rust-cli/src/models/cloud_games_namespaces_validate_game_namespace_token_development_response.rs new file mode 100644 index 0000000000..b647adf24a --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_games_namespaces_validate_game_namespace_token_development_response.rs @@ -0,0 +1,29 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudGamesNamespacesValidateGameNamespaceTokenDevelopmentResponse { + /// A list of validation errors. + #[serde(rename = "errors")] + pub errors: Vec, +} + +impl CloudGamesNamespacesValidateGameNamespaceTokenDevelopmentResponse { + pub fn new(errors: Vec) -> CloudGamesNamespacesValidateGameNamespaceTokenDevelopmentResponse { + CloudGamesNamespacesValidateGameNamespaceTokenDevelopmentResponse { + errors, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_games_prepare_custom_avatar_upload_request.rs b/sdks/full/rust-cli/src/models/cloud_games_prepare_custom_avatar_upload_request.rs new file mode 100644 index 0000000000..fe9c725209 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_games_prepare_custom_avatar_upload_request.rs @@ -0,0 +1,37 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudGamesPrepareCustomAvatarUploadRequest { + /// Unsigned 64 bit integer. + #[serde(rename = "content_length")] + pub content_length: i64, + /// The MIME type of the custom avatar. + #[serde(rename = "mime", skip_serializing_if = "Option::is_none")] + pub mime: Option, + /// The path/filename of the custom avatar. + #[serde(rename = "path")] + pub path: String, +} + +impl CloudGamesPrepareCustomAvatarUploadRequest { + pub fn new(content_length: i64, path: String) -> CloudGamesPrepareCustomAvatarUploadRequest { + CloudGamesPrepareCustomAvatarUploadRequest { + content_length, + mime: None, + path, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_games_prepare_custom_avatar_upload_response.rs b/sdks/full/rust-cli/src/models/cloud_games_prepare_custom_avatar_upload_response.rs new file mode 100644 index 0000000000..acf310ffb8 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_games_prepare_custom_avatar_upload_response.rs @@ -0,0 +1,31 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudGamesPrepareCustomAvatarUploadResponse { + #[serde(rename = "presigned_request")] + pub presigned_request: Box, + #[serde(rename = "upload_id")] + pub upload_id: uuid::Uuid, +} + +impl CloudGamesPrepareCustomAvatarUploadResponse { + pub fn new(presigned_request: crate::models::UploadPresignedRequest, upload_id: uuid::Uuid) -> CloudGamesPrepareCustomAvatarUploadResponse { + CloudGamesPrepareCustomAvatarUploadResponse { + presigned_request: Box::new(presigned_request), + upload_id, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_games_reserve_version_name_response.rs b/sdks/full/rust-cli/src/models/cloud_games_reserve_version_name_response.rs new file mode 100644 index 0000000000..1ca6b9fd43 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_games_reserve_version_name_response.rs @@ -0,0 +1,29 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudGamesReserveVersionNameResponse { + /// Represent a resource's readable display name. + #[serde(rename = "version_display_name")] + pub version_display_name: String, +} + +impl CloudGamesReserveVersionNameResponse { + pub fn new(version_display_name: String) -> CloudGamesReserveVersionNameResponse { + CloudGamesReserveVersionNameResponse { + version_display_name, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_games_validate_game_request.rs b/sdks/full/rust-cli/src/models/cloud_games_validate_game_request.rs new file mode 100644 index 0000000000..30f7fb8d7b --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_games_validate_game_request.rs @@ -0,0 +1,33 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudGamesValidateGameRequest { + /// Represent a resource's readable display name. + #[serde(rename = "display_name")] + pub display_name: String, + /// A human readable short identifier used to references resources. Different than a `uuid` because this is intended to be human readable. Different than `DisplayName` because this should not include special characters and be short. + #[serde(rename = "name_id", skip_serializing_if = "Option::is_none")] + pub name_id: Option, +} + +impl CloudGamesValidateGameRequest { + pub fn new(display_name: String) -> CloudGamesValidateGameRequest { + CloudGamesValidateGameRequest { + display_name, + name_id: None, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_games_validate_game_response.rs b/sdks/full/rust-cli/src/models/cloud_games_validate_game_response.rs new file mode 100644 index 0000000000..d5b3f32d81 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_games_validate_game_response.rs @@ -0,0 +1,29 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudGamesValidateGameResponse { + /// A list of validation errors. + #[serde(rename = "errors")] + pub errors: Vec, +} + +impl CloudGamesValidateGameResponse { + pub fn new(errors: Vec) -> CloudGamesValidateGameResponse { + CloudGamesValidateGameResponse { + errors, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_games_validate_game_version_request.rs b/sdks/full/rust-cli/src/models/cloud_games_validate_game_version_request.rs new file mode 100644 index 0000000000..2f2f612e67 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_games_validate_game_version_request.rs @@ -0,0 +1,32 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudGamesValidateGameVersionRequest { + #[serde(rename = "config")] + pub config: Box, + /// Represent a resource's readable display name. + #[serde(rename = "display_name")] + pub display_name: String, +} + +impl CloudGamesValidateGameVersionRequest { + pub fn new(config: crate::models::CloudVersionConfig, display_name: String) -> CloudGamesValidateGameVersionRequest { + CloudGamesValidateGameVersionRequest { + config: Box::new(config), + display_name, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_games_validate_game_version_response.rs b/sdks/full/rust-cli/src/models/cloud_games_validate_game_version_response.rs new file mode 100644 index 0000000000..8d55feaec9 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_games_validate_game_version_response.rs @@ -0,0 +1,29 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudGamesValidateGameVersionResponse { + /// A list of validation errors. + #[serde(rename = "errors")] + pub errors: Vec, +} + +impl CloudGamesValidateGameVersionResponse { + pub fn new(errors: Vec) -> CloudGamesValidateGameVersionResponse { + CloudGamesValidateGameVersionResponse { + errors, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_get_ray_perf_logs_response.rs b/sdks/full/rust-cli/src/models/cloud_get_ray_perf_logs_response.rs new file mode 100644 index 0000000000..ec13db31b5 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_get_ray_perf_logs_response.rs @@ -0,0 +1,29 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudGetRayPerfLogsResponse { + /// A list of service performance summaries. + #[serde(rename = "perf_lists")] + pub perf_lists: Vec, +} + +impl CloudGetRayPerfLogsResponse { + pub fn new(perf_lists: Vec) -> CloudGetRayPerfLogsResponse { + CloudGetRayPerfLogsResponse { + perf_lists, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_get_region_tiers_response.rs b/sdks/full/rust-cli/src/models/cloud_get_region_tiers_response.rs new file mode 100644 index 0000000000..e49ac514bf --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_get_region_tiers_response.rs @@ -0,0 +1,29 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudGetRegionTiersResponse { + /// A list of region server tiers. + #[serde(rename = "tiers")] + pub tiers: Vec, +} + +impl CloudGetRegionTiersResponse { + pub fn new(tiers: Vec) -> CloudGetRegionTiersResponse { + CloudGetRegionTiersResponse { + tiers, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_group_bank_source.rs b/sdks/full/rust-cli/src/models/cloud_group_bank_source.rs new file mode 100644 index 0000000000..78e864f8c4 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_group_bank_source.rs @@ -0,0 +1,33 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudGroupBankSource { + /// The bank account number of this group's bank source. + #[serde(rename = "account_number")] + pub account_number: String, + /// The bank routing number of this group's bank source. + #[serde(rename = "routing_number")] + pub routing_number: String, +} + +impl CloudGroupBankSource { + pub fn new(account_number: String, routing_number: String) -> CloudGroupBankSource { + CloudGroupBankSource { + account_number, + routing_number, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_inspect_response.rs b/sdks/full/rust-cli/src/models/cloud_inspect_response.rs new file mode 100644 index 0000000000..21bfa6f475 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_inspect_response.rs @@ -0,0 +1,28 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudInspectResponse { + #[serde(rename = "agent")] + pub agent: Box, +} + +impl CloudInspectResponse { + pub fn new(agent: crate::models::CloudAuthAgent) -> CloudInspectResponse { + CloudInspectResponse { + agent: Box::new(agent), + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_lobby_summary_analytics.rs b/sdks/full/rust-cli/src/models/cloud_lobby_summary_analytics.rs new file mode 100644 index 0000000000..e99c372fb3 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_lobby_summary_analytics.rs @@ -0,0 +1,80 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CloudLobbySummaryAnalytics : Analytical information about a lobby. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudLobbySummaryAnalytics { + /// RFC3339 timestamp + #[serde(rename = "create_ts")] + pub create_ts: String, + /// Whether or not this lobby is in a closed state. + #[serde(rename = "is_closed")] + pub is_closed: bool, + /// Whether or not this lobby is idle. + #[serde(rename = "is_idle")] + pub is_idle: bool, + /// Whether or not this lobby is outdated. + #[serde(rename = "is_outdated")] + pub is_outdated: bool, + /// Whether or not this lobby is ready. + #[serde(rename = "is_ready")] + pub is_ready: bool, + #[serde(rename = "lobby_group_id")] + pub lobby_group_id: uuid::Uuid, + /// A human readable short identifier used to references resources. Different than a `rivet.common#Uuid` because this is intended to be human readable. Different than `rivet.common#DisplayName` because this should not include special characters and be short. + #[serde(rename = "lobby_group_name_id")] + pub lobby_group_name_id: String, + #[serde(rename = "lobby_id")] + pub lobby_id: uuid::Uuid, + /// Unsigned 32 bit integer. + #[serde(rename = "max_players_direct")] + pub max_players_direct: i32, + /// Unsigned 32 bit integer. + #[serde(rename = "max_players_normal")] + pub max_players_normal: i32, + /// Unsigned 32 bit integer. + #[serde(rename = "max_players_party")] + pub max_players_party: i32, + #[serde(rename = "region_id")] + pub region_id: uuid::Uuid, + /// Unsigned 32 bit integer. + #[serde(rename = "registered_player_count")] + pub registered_player_count: i32, + /// Unsigned 32 bit integer. + #[serde(rename = "total_player_count")] + pub total_player_count: i32, +} + +impl CloudLobbySummaryAnalytics { + /// Analytical information about a lobby. + pub fn new(create_ts: String, is_closed: bool, is_idle: bool, is_outdated: bool, is_ready: bool, lobby_group_id: uuid::Uuid, lobby_group_name_id: String, lobby_id: uuid::Uuid, max_players_direct: i32, max_players_normal: i32, max_players_party: i32, region_id: uuid::Uuid, registered_player_count: i32, total_player_count: i32) -> CloudLobbySummaryAnalytics { + CloudLobbySummaryAnalytics { + create_ts, + is_closed, + is_idle, + is_outdated, + is_ready, + lobby_group_id, + lobby_group_name_id, + lobby_id, + max_players_direct, + max_players_normal, + max_players_party, + region_id, + registered_player_count, + total_player_count, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_logs_lobby_status.rs b/sdks/full/rust-cli/src/models/cloud_logs_lobby_status.rs new file mode 100644 index 0000000000..6ce2a4709b --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_logs_lobby_status.rs @@ -0,0 +1,33 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CloudLogsLobbyStatus : A union representing the state of a lobby. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudLogsLobbyStatus { + #[serde(rename = "running")] + pub running: serde_json::Value, + #[serde(rename = "stopped", skip_serializing_if = "Option::is_none")] + pub stopped: Option>, +} + +impl CloudLogsLobbyStatus { + /// A union representing the state of a lobby. + pub fn new(running: serde_json::Value) -> CloudLogsLobbyStatus { + CloudLogsLobbyStatus { + running, + stopped: None, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_logs_lobby_status_stopped.rs b/sdks/full/rust-cli/src/models/cloud_logs_lobby_status_stopped.rs new file mode 100644 index 0000000000..c74fa79844 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_logs_lobby_status_stopped.rs @@ -0,0 +1,39 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CloudLogsLobbyStatusStopped : The status of a stopped lobby. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudLogsLobbyStatusStopped { + /// The exit code returned by the lobby's main process when stopped. + #[serde(rename = "exit_code")] + pub exit_code: i32, + /// Whether or not the lobby failed or stopped successfully. + #[serde(rename = "failed")] + pub failed: bool, + /// RFC3339 timestamp + #[serde(rename = "stop_ts")] + pub stop_ts: String, +} + +impl CloudLogsLobbyStatusStopped { + /// The status of a stopped lobby. + pub fn new(exit_code: i32, failed: bool, stop_ts: String) -> CloudLogsLobbyStatusStopped { + CloudLogsLobbyStatusStopped { + exit_code, + failed, + stop_ts, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_logs_lobby_summary.rs b/sdks/full/rust-cli/src/models/cloud_logs_lobby_summary.rs new file mode 100644 index 0000000000..7f24f714de --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_logs_lobby_summary.rs @@ -0,0 +1,55 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CloudLogsLobbySummary : A logs summary for a lobby. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudLogsLobbySummary { + /// RFC3339 timestamp + #[serde(rename = "create_ts")] + pub create_ts: String, + /// A human readable short identifier used to references resources. Different than a `rivet.common#Uuid` because this is intended to be human readable. Different than `rivet.common#DisplayName` because this should not include special characters and be short. + #[serde(rename = "lobby_group_name_id")] + pub lobby_group_name_id: String, + #[serde(rename = "lobby_id")] + pub lobby_id: uuid::Uuid, + #[serde(rename = "namespace_id")] + pub namespace_id: uuid::Uuid, + /// RFC3339 timestamp + #[serde(rename = "ready_ts", skip_serializing_if = "Option::is_none")] + pub ready_ts: Option, + #[serde(rename = "region_id")] + pub region_id: uuid::Uuid, + /// RFC3339 timestamp + #[serde(rename = "start_ts", skip_serializing_if = "Option::is_none")] + pub start_ts: Option, + #[serde(rename = "status")] + pub status: Box, +} + +impl CloudLogsLobbySummary { + /// A logs summary for a lobby. + pub fn new(create_ts: String, lobby_group_name_id: String, lobby_id: uuid::Uuid, namespace_id: uuid::Uuid, region_id: uuid::Uuid, status: crate::models::CloudLogsLobbyStatus) -> CloudLogsLobbySummary { + CloudLogsLobbySummary { + create_ts, + lobby_group_name_id, + lobby_id, + namespace_id, + ready_ts: None, + region_id, + start_ts: None, + status: Box::new(status), + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_logs_perf_mark.rs b/sdks/full/rust-cli/src/models/cloud_logs_perf_mark.rs new file mode 100644 index 0000000000..7df6a121f9 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_logs_perf_mark.rs @@ -0,0 +1,41 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CloudLogsPerfMark : A performance mark. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudLogsPerfMark { + /// The label given to this performance mark. + #[serde(rename = "label")] + pub label: String, + #[serde(rename = "ray_id", skip_serializing_if = "Option::is_none")] + pub ray_id: Option, + #[serde(rename = "req_id", skip_serializing_if = "Option::is_none")] + pub req_id: Option, + /// RFC3339 timestamp + #[serde(rename = "ts")] + pub ts: String, +} + +impl CloudLogsPerfMark { + /// A performance mark. + pub fn new(label: String, ts: String) -> CloudLogsPerfMark { + CloudLogsPerfMark { + label, + ray_id: None, + req_id: None, + ts, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_logs_perf_span.rs b/sdks/full/rust-cli/src/models/cloud_logs_perf_span.rs new file mode 100644 index 0000000000..43429ba2c8 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_logs_perf_span.rs @@ -0,0 +1,42 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CloudLogsPerfSpan : A performance span. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudLogsPerfSpan { + /// RFC3339 timestamp + #[serde(rename = "finish_ts", skip_serializing_if = "Option::is_none")] + pub finish_ts: Option, + /// The label given to this performance span. + #[serde(rename = "label")] + pub label: String, + #[serde(rename = "req_id", skip_serializing_if = "Option::is_none")] + pub req_id: Option, + /// RFC3339 timestamp + #[serde(rename = "start_ts")] + pub start_ts: String, +} + +impl CloudLogsPerfSpan { + /// A performance span. + pub fn new(label: String, start_ts: String) -> CloudLogsPerfSpan { + CloudLogsPerfSpan { + finish_ts: None, + label, + req_id: None, + start_ts, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_matchmaker_development_port.rs b/sdks/full/rust-cli/src/models/cloud_matchmaker_development_port.rs new file mode 100644 index 0000000000..b901399953 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_matchmaker_development_port.rs @@ -0,0 +1,36 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CloudMatchmakerDevelopmentPort : A port configuration used to create development tokens. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudMatchmakerDevelopmentPort { + #[serde(rename = "port", skip_serializing_if = "Option::is_none")] + pub port: Option, + #[serde(rename = "port_range", skip_serializing_if = "Option::is_none")] + pub port_range: Option>, + #[serde(rename = "protocol")] + pub protocol: crate::models::CloudVersionMatchmakerPortProtocol, +} + +impl CloudMatchmakerDevelopmentPort { + /// A port configuration used to create development tokens. + pub fn new(protocol: crate::models::CloudVersionMatchmakerPortProtocol) -> CloudMatchmakerDevelopmentPort { + CloudMatchmakerDevelopmentPort { + port: None, + port_range: None, + protocol, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_matchmaker_namespace_config.rs b/sdks/full/rust-cli/src/models/cloud_matchmaker_namespace_config.rs new file mode 100644 index 0000000000..458a1df6b1 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_matchmaker_namespace_config.rs @@ -0,0 +1,51 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CloudMatchmakerNamespaceConfig : Matchmaker configuration for a given namespace. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudMatchmakerNamespaceConfig { + /// Unsigned 32 bit integer. + #[serde(rename = "lobby_count_max")] + pub lobby_count_max: i32, + /// Unsigned 32 bit integer. + #[serde(rename = "max_players_per_client")] + pub max_players_per_client: i32, + /// Unsigned 32 bit integer. + #[serde(rename = "max_players_per_client_hosting")] + pub max_players_per_client_hosting: i32, + /// Unsigned 32 bit integer. + #[serde(rename = "max_players_per_client_proxy")] + pub max_players_per_client_proxy: i32, + /// Unsigned 32 bit integer. + #[serde(rename = "max_players_per_client_tor")] + pub max_players_per_client_tor: i32, + /// Unsigned 32 bit integer. + #[serde(rename = "max_players_per_client_vpn")] + pub max_players_per_client_vpn: i32, +} + +impl CloudMatchmakerNamespaceConfig { + /// Matchmaker configuration for a given namespace. + pub fn new(lobby_count_max: i32, max_players_per_client: i32, max_players_per_client_hosting: i32, max_players_per_client_proxy: i32, max_players_per_client_tor: i32, max_players_per_client_vpn: i32) -> CloudMatchmakerNamespaceConfig { + CloudMatchmakerNamespaceConfig { + lobby_count_max, + max_players_per_client, + max_players_per_client_hosting, + max_players_per_client_proxy, + max_players_per_client_tor, + max_players_per_client_vpn, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_namespace_config.rs b/sdks/full/rust-cli/src/models/cloud_namespace_config.rs new file mode 100644 index 0000000000..7dfe67ee46 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_namespace_config.rs @@ -0,0 +1,41 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CloudNamespaceConfig : Cloud configuration for a given namespace. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudNamespaceConfig { + #[serde(rename = "cdn")] + pub cdn: Box, + /// Identity configuration for a given namespace. + #[serde(rename = "identity")] + pub identity: serde_json::Value, + /// KV configuration for a given namespace. + #[serde(rename = "kv")] + pub kv: serde_json::Value, + #[serde(rename = "matchmaker")] + pub matchmaker: Box, +} + +impl CloudNamespaceConfig { + /// Cloud configuration for a given namespace. + pub fn new(cdn: crate::models::CloudCdnNamespaceConfig, identity: serde_json::Value, kv: serde_json::Value, matchmaker: crate::models::CloudMatchmakerNamespaceConfig) -> CloudNamespaceConfig { + CloudNamespaceConfig { + cdn: Box::new(cdn), + identity, + kv, + matchmaker: Box::new(matchmaker), + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_namespace_full.rs b/sdks/full/rust-cli/src/models/cloud_namespace_full.rs new file mode 100644 index 0000000000..581f7008ae --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_namespace_full.rs @@ -0,0 +1,48 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CloudNamespaceFull : A full namespace. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudNamespaceFull { + #[serde(rename = "config")] + pub config: Box, + /// RFC3339 timestamp + #[serde(rename = "create_ts")] + pub create_ts: String, + /// Represent a resource's readable display name. + #[serde(rename = "display_name")] + pub display_name: String, + /// A human readable short identifier used to references resources. Different than a `rivet.common#Uuid` because this is intended to be human readable. Different than `rivet.common#DisplayName` because this should not include special characters and be short. + #[serde(rename = "name_id")] + pub name_id: String, + #[serde(rename = "namespace_id")] + pub namespace_id: uuid::Uuid, + #[serde(rename = "version_id")] + pub version_id: uuid::Uuid, +} + +impl CloudNamespaceFull { + /// A full namespace. + pub fn new(config: crate::models::CloudNamespaceConfig, create_ts: String, display_name: String, name_id: String, namespace_id: uuid::Uuid, version_id: uuid::Uuid) -> CloudNamespaceFull { + CloudNamespaceFull { + config: Box::new(config), + create_ts, + display_name, + name_id, + namespace_id, + version_id, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_namespace_summary.rs b/sdks/full/rust-cli/src/models/cloud_namespace_summary.rs new file mode 100644 index 0000000000..d7e3215a51 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_namespace_summary.rs @@ -0,0 +1,45 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CloudNamespaceSummary : A namespace summary. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudNamespaceSummary { + /// RFC3339 timestamp + #[serde(rename = "create_ts")] + pub create_ts: String, + /// Represent a resource's readable display name. + #[serde(rename = "display_name")] + pub display_name: String, + /// A human readable short identifier used to references resources. Different than a `rivet.common#Uuid` because this is intended to be human readable. Different than `rivet.common#DisplayName` because this should not include special characters and be short. + #[serde(rename = "name_id")] + pub name_id: String, + #[serde(rename = "namespace_id")] + pub namespace_id: uuid::Uuid, + #[serde(rename = "version_id")] + pub version_id: uuid::Uuid, +} + +impl CloudNamespaceSummary { + /// A namespace summary. + pub fn new(create_ts: String, display_name: String, name_id: String, namespace_id: uuid::Uuid, version_id: uuid::Uuid) -> CloudNamespaceSummary { + CloudNamespaceSummary { + create_ts, + display_name, + name_id, + namespace_id, + version_id, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_namespace_version.rs b/sdks/full/rust-cli/src/models/cloud_namespace_version.rs new file mode 100644 index 0000000000..fcab3769a1 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_namespace_version.rs @@ -0,0 +1,39 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CloudNamespaceVersion : A previously deployed namespace version. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudNamespaceVersion { + /// RFC3339 timestamp + #[serde(rename = "deploy_ts")] + pub deploy_ts: String, + /// A universally unique identifier. + #[serde(rename = "namespace_id")] + pub namespace_id: String, + /// A universally unique identifier. + #[serde(rename = "version_id")] + pub version_id: String, +} + +impl CloudNamespaceVersion { + /// A previously deployed namespace version. + pub fn new(deploy_ts: String, namespace_id: String, version_id: String) -> CloudNamespaceVersion { + CloudNamespaceVersion { + deploy_ts, + namespace_id, + version_id, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_region_summary.rs b/sdks/full/rust-cli/src/models/cloud_region_summary.rs new file mode 100644 index 0000000000..397c9ceb8e --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_region_summary.rs @@ -0,0 +1,49 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CloudRegionSummary : A region summary. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudRegionSummary { + /// The server provider of this region. + #[serde(rename = "provider")] + pub provider: String, + /// Represent a resource's readable display name. + #[serde(rename = "provider_display_name")] + pub provider_display_name: String, + /// Represent a resource's readable display name. + #[serde(rename = "region_display_name")] + pub region_display_name: String, + #[serde(rename = "region_id")] + pub region_id: uuid::Uuid, + /// A human readable short identifier used to references resources. Different than a `rivet.common#Uuid` because this is intended to be human readable. Different than `rivet.common#DisplayName` because this should not include special characters and be short. + #[serde(rename = "region_name_id")] + pub region_name_id: String, + #[serde(rename = "universal_region")] + pub universal_region: crate::models::CloudUniversalRegion, +} + +impl CloudRegionSummary { + /// A region summary. + pub fn new(provider: String, provider_display_name: String, region_display_name: String, region_id: uuid::Uuid, region_name_id: String, universal_region: crate::models::CloudUniversalRegion) -> CloudRegionSummary { + CloudRegionSummary { + provider, + provider_display_name, + region_display_name, + region_id, + region_name_id, + universal_region, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_region_tier.rs b/sdks/full/rust-cli/src/models/cloud_region_tier.rs new file mode 100644 index 0000000000..7b21fb0790 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_region_tier.rs @@ -0,0 +1,59 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CloudRegionTier : A region server tier. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudRegionTier { + /// Internet bandwidth (MB). + #[serde(rename = "bandwidth")] + pub bandwidth: i32, + /// CPU frequency (MHz). + #[serde(rename = "cpu")] + pub cpu: i32, + /// Allocated disk space (MB). + #[serde(rename = "disk")] + pub disk: i32, + /// Allocated memory (MB). + #[serde(rename = "memory")] + pub memory: i32, + /// **Deprecated** Price billed for every second this server is running (in quadrillionth USD, 1,000,000,000,000 = $1.00). + #[serde(rename = "price_per_second")] + pub price_per_second: i32, + /// Together with the numerator, denotes the portion of the CPU a given server uses. + #[serde(rename = "rivet_cores_denominator")] + pub rivet_cores_denominator: i32, + /// Together with the denominator, denotes the portion of the CPU a given server uses. + #[serde(rename = "rivet_cores_numerator")] + pub rivet_cores_numerator: i32, + /// A human readable short identifier used to references resources. Different than a `rivet.common#Uuid` because this is intended to be human readable. Different than `rivet.common#DisplayName` because this should not include special characters and be short. + #[serde(rename = "tier_name_id")] + pub tier_name_id: String, +} + +impl CloudRegionTier { + /// A region server tier. + pub fn new(bandwidth: i32, cpu: i32, disk: i32, memory: i32, price_per_second: i32, rivet_cores_denominator: i32, rivet_cores_numerator: i32, tier_name_id: String) -> CloudRegionTier { + CloudRegionTier { + bandwidth, + cpu, + disk, + memory, + price_per_second, + rivet_cores_denominator, + rivet_cores_numerator, + tier_name_id, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_region_tier_expenses.rs b/sdks/full/rust-cli/src/models/cloud_region_tier_expenses.rs new file mode 100644 index 0000000000..58daa9b4a1 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_region_tier_expenses.rs @@ -0,0 +1,49 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CloudRegionTierExpenses : Region tier expenses. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudRegionTierExpenses { + /// Amount of expenses for this region tier (in hundred-thousandths USD, 100,000 = $1.00). + #[serde(rename = "expenses")] + pub expenses: f64, + /// A human readable short identifier used to references resources. Different than a `rivet.common#Uuid` because this is intended to be human readable. Different than `rivet.common#DisplayName` because this should not include special characters and be short. + #[serde(rename = "lobby_group_name_id")] + pub lobby_group_name_id: String, + #[serde(rename = "namespace_id")] + pub namespace_id: uuid::Uuid, + #[serde(rename = "region_id")] + pub region_id: uuid::Uuid, + /// A human readable short identifier used to references resources. Different than a `rivet.common#Uuid` because this is intended to be human readable. Different than `rivet.common#DisplayName` because this should not include special characters and be short. + #[serde(rename = "tier_name_id")] + pub tier_name_id: String, + /// How long a region tier has been active (in milliseconds). + #[serde(rename = "uptime")] + pub uptime: f64, +} + +impl CloudRegionTierExpenses { + /// Region tier expenses. + pub fn new(expenses: f64, lobby_group_name_id: String, namespace_id: uuid::Uuid, region_id: uuid::Uuid, tier_name_id: String, uptime: f64) -> CloudRegionTierExpenses { + CloudRegionTierExpenses { + expenses, + lobby_group_name_id, + namespace_id, + region_id, + tier_name_id, + uptime, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_svc_metrics.rs b/sdks/full/rust-cli/src/models/cloud_svc_metrics.rs new file mode 100644 index 0000000000..e4d5250626 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_svc_metrics.rs @@ -0,0 +1,43 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CloudSvcMetrics : Metrics relating to a job service. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudSvcMetrics { + /// Total allocated memory (MB). + #[serde(rename = "allocated_memory", skip_serializing_if = "Option::is_none")] + pub allocated_memory: Option, + /// CPU metrics. + #[serde(rename = "cpu")] + pub cpu: Vec, + /// The job name. + #[serde(rename = "job")] + pub job: String, + /// Memory metrics. + #[serde(rename = "memory")] + pub memory: Vec, +} + +impl CloudSvcMetrics { + /// Metrics relating to a job service. + pub fn new(cpu: Vec, job: String, memory: Vec) -> CloudSvcMetrics { + CloudSvcMetrics { + allocated_memory: None, + cpu, + job, + memory, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_svc_perf.rs b/sdks/full/rust-cli/src/models/cloud_svc_perf.rs new file mode 100644 index 0000000000..297dd08172 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_svc_perf.rs @@ -0,0 +1,50 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CloudSvcPerf : A service performance summary. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudSvcPerf { + /// Unsigned 64 bit integer. + #[serde(rename = "duration")] + pub duration: i64, + /// A list of performance marks. + #[serde(rename = "marks")] + pub marks: Vec, + #[serde(rename = "req_id", skip_serializing_if = "Option::is_none")] + pub req_id: Option, + /// A list of performance spans. + #[serde(rename = "spans")] + pub spans: Vec, + /// The name of the service. + #[serde(rename = "svc_name")] + pub svc_name: String, + /// RFC3339 timestamp + #[serde(rename = "ts")] + pub ts: String, +} + +impl CloudSvcPerf { + /// A service performance summary. + pub fn new(duration: i64, marks: Vec, spans: Vec, svc_name: String, ts: String) -> CloudSvcPerf { + CloudSvcPerf { + duration, + marks, + req_id: None, + spans, + svc_name, + ts, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_universal_region.rs b/sdks/full/rust-cli/src/models/cloud_universal_region.rs new file mode 100644 index 0000000000..33d71d0238 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_universal_region.rs @@ -0,0 +1,118 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CloudUniversalRegion : **Deprecated** + +/// **Deprecated** +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum CloudUniversalRegion { + #[serde(rename = "unknown")] + Unknown, + #[serde(rename = "local")] + Local, + #[serde(rename = "amsterdam")] + Amsterdam, + #[serde(rename = "atlanta")] + Atlanta, + #[serde(rename = "bangalore")] + Bangalore, + #[serde(rename = "dallas")] + Dallas, + #[serde(rename = "frankfurt")] + Frankfurt, + #[serde(rename = "london")] + London, + #[serde(rename = "mumbai")] + Mumbai, + #[serde(rename = "newark")] + Newark, + #[serde(rename = "new_york_city")] + NewYorkCity, + #[serde(rename = "san_francisco")] + SanFrancisco, + #[serde(rename = "singapore")] + Singapore, + #[serde(rename = "sydney")] + Sydney, + #[serde(rename = "tokyo")] + Tokyo, + #[serde(rename = "toronto")] + Toronto, + #[serde(rename = "washington_dc")] + WashingtonDc, + #[serde(rename = "chicago")] + Chicago, + #[serde(rename = "paris")] + Paris, + #[serde(rename = "seattle")] + Seattle, + #[serde(rename = "sao_paulo")] + SaoPaulo, + #[serde(rename = "stockholm")] + Stockholm, + #[serde(rename = "chennai")] + Chennai, + #[serde(rename = "osaka")] + Osaka, + #[serde(rename = "milan")] + Milan, + #[serde(rename = "miami")] + Miami, + #[serde(rename = "jakarta")] + Jakarta, + #[serde(rename = "los_angeles")] + LosAngeles, + +} + +impl ToString for CloudUniversalRegion { + fn to_string(&self) -> String { + match self { + Self::Unknown => String::from("unknown"), + Self::Local => String::from("local"), + Self::Amsterdam => String::from("amsterdam"), + Self::Atlanta => String::from("atlanta"), + Self::Bangalore => String::from("bangalore"), + Self::Dallas => String::from("dallas"), + Self::Frankfurt => String::from("frankfurt"), + Self::London => String::from("london"), + Self::Mumbai => String::from("mumbai"), + Self::Newark => String::from("newark"), + Self::NewYorkCity => String::from("new_york_city"), + Self::SanFrancisco => String::from("san_francisco"), + Self::Singapore => String::from("singapore"), + Self::Sydney => String::from("sydney"), + Self::Tokyo => String::from("tokyo"), + Self::Toronto => String::from("toronto"), + Self::WashingtonDc => String::from("washington_dc"), + Self::Chicago => String::from("chicago"), + Self::Paris => String::from("paris"), + Self::Seattle => String::from("seattle"), + Self::SaoPaulo => String::from("sao_paulo"), + Self::Stockholm => String::from("stockholm"), + Self::Chennai => String::from("chennai"), + Self::Osaka => String::from("osaka"), + Self::Milan => String::from("milan"), + Self::Miami => String::from("miami"), + Self::Jakarta => String::from("jakarta"), + Self::LosAngeles => String::from("los_angeles"), + } + } +} + +impl Default for CloudUniversalRegion { + fn default() -> CloudUniversalRegion { + Self::Unknown + } +} + + + + diff --git a/sdks/full/rust-cli/src/models/cloud_validate_group_request.rs b/sdks/full/rust-cli/src/models/cloud_validate_group_request.rs new file mode 100644 index 0000000000..998146bdce --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_validate_group_request.rs @@ -0,0 +1,29 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudValidateGroupRequest { + /// Represent a resource's readable display name. + #[serde(rename = "display_name")] + pub display_name: String, +} + +impl CloudValidateGroupRequest { + pub fn new(display_name: String) -> CloudValidateGroupRequest { + CloudValidateGroupRequest { + display_name, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_validate_group_response.rs b/sdks/full/rust-cli/src/models/cloud_validate_group_response.rs new file mode 100644 index 0000000000..285d7b19c9 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_validate_group_response.rs @@ -0,0 +1,29 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct CloudValidateGroupResponse { + /// A list of validation errors. + #[serde(rename = "errors")] + pub errors: Vec, +} + +impl CloudValidateGroupResponse { + pub fn new(errors: Vec) -> CloudValidateGroupResponse { + CloudValidateGroupResponse { + errors, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_version_cdn_config.rs b/sdks/full/rust-cli/src/models/cloud_version_cdn_config.rs new file mode 100644 index 0000000000..5986543020 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_version_cdn_config.rs @@ -0,0 +1,47 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CloudVersionCdnConfig : CDN configuration for a given version. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +#[serde(deny_unknown_fields)] +pub struct CloudVersionCdnConfig { + /// _Configures Rivet CLI behavior. Has no effect on server behavior._ + #[serde(rename = "build_command", skip_serializing_if = "Option::is_none")] + pub build_command: Option, + /// _Configures Rivet CLI behavior. Has no effect on server behavior._ + #[serde(rename = "build_env", skip_serializing_if = "Option::is_none")] + pub build_env: Option<::std::collections::HashMap>, + /// _Configures Rivet CLI behavior. Has no effect on server behavior._ + #[serde(rename = "build_output", skip_serializing_if = "Option::is_none")] + pub build_output: Option, + /// Multiple CDN version routes. + #[serde(rename = "routes", skip_serializing_if = "Option::is_none")] + pub routes: Option>, + #[serde(rename = "site_id", skip_serializing_if = "Option::is_none")] + pub site_id: Option, +} + +impl CloudVersionCdnConfig { + /// CDN configuration for a given version. + pub fn new() -> CloudVersionCdnConfig { + CloudVersionCdnConfig { + build_command: None, + build_env: None, + build_output: None, + routes: None, + site_id: None, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_version_cdn_custom_headers_middleware.rs b/sdks/full/rust-cli/src/models/cloud_version_cdn_custom_headers_middleware.rs new file mode 100644 index 0000000000..a06e043541 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_version_cdn_custom_headers_middleware.rs @@ -0,0 +1,29 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +#[serde(deny_unknown_fields)] +pub struct CloudVersionCdnCustomHeadersMiddleware { + #[serde(rename = "headers")] + pub headers: Vec, +} + +impl CloudVersionCdnCustomHeadersMiddleware { + pub fn new(headers: Vec) -> CloudVersionCdnCustomHeadersMiddleware { + CloudVersionCdnCustomHeadersMiddleware { + headers, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_version_cdn_header.rs b/sdks/full/rust-cli/src/models/cloud_version_cdn_header.rs new file mode 100644 index 0000000000..a62089037e --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_version_cdn_header.rs @@ -0,0 +1,32 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +#[serde(deny_unknown_fields)] +pub struct CloudVersionCdnHeader { + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "value")] + pub value: String, +} + +impl CloudVersionCdnHeader { + pub fn new(name: String, value: String) -> CloudVersionCdnHeader { + CloudVersionCdnHeader { + name, + value, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_version_cdn_middleware.rs b/sdks/full/rust-cli/src/models/cloud_version_cdn_middleware.rs new file mode 100644 index 0000000000..ccbad1abf8 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_version_cdn_middleware.rs @@ -0,0 +1,29 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +#[serde(deny_unknown_fields)] +pub struct CloudVersionCdnMiddleware { + #[serde(rename = "kind")] + pub kind: Box, +} + +impl CloudVersionCdnMiddleware { + pub fn new(kind: crate::models::CloudVersionCdnMiddlewareKind) -> CloudVersionCdnMiddleware { + CloudVersionCdnMiddleware { + kind: Box::new(kind), + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_version_cdn_middleware_kind.rs b/sdks/full/rust-cli/src/models/cloud_version_cdn_middleware_kind.rs new file mode 100644 index 0000000000..ceb83d085a --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_version_cdn_middleware_kind.rs @@ -0,0 +1,29 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +#[serde(deny_unknown_fields)] +pub struct CloudVersionCdnMiddlewareKind { + #[serde(rename = "custom_headers", skip_serializing_if = "Option::is_none")] + pub custom_headers: Option>, +} + +impl CloudVersionCdnMiddlewareKind { + pub fn new() -> CloudVersionCdnMiddlewareKind { + CloudVersionCdnMiddlewareKind { + custom_headers: None, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_version_cdn_route.rs b/sdks/full/rust-cli/src/models/cloud_version_cdn_route.rs new file mode 100644 index 0000000000..2bc0616035 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_version_cdn_route.rs @@ -0,0 +1,37 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +#[serde(deny_unknown_fields)] +pub struct CloudVersionCdnRoute { + #[serde(rename = "glob")] + pub glob: String, + /// Multiple CDN version middleware. + #[serde(rename = "middlewares")] + pub middlewares: Vec, + /// Unsigned 32 bit integer. + #[serde(rename = "priority")] + pub priority: i32, +} + +impl CloudVersionCdnRoute { + pub fn new(glob: String, middlewares: Vec, priority: i32) -> CloudVersionCdnRoute { + CloudVersionCdnRoute { + glob, + middlewares, + priority, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_version_config.rs b/sdks/full/rust-cli/src/models/cloud_version_config.rs new file mode 100644 index 0000000000..056f121f80 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_version_config.rs @@ -0,0 +1,47 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CloudVersionConfig : Cloud configuration for a given version. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +#[serde(deny_unknown_fields)] +pub struct CloudVersionConfig { + #[serde(rename = "cdn", skip_serializing_if = "Option::is_none")] + pub cdn: Option>, + #[serde(rename = "engine", skip_serializing_if = "Option::is_none")] + pub engine: Option>, + #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] + pub identity: Option>, + /// KV configuration for a given version. + #[serde(rename = "kv", skip_serializing_if = "Option::is_none")] + pub kv: Option, + #[serde(rename = "matchmaker", skip_serializing_if = "Option::is_none")] + pub matchmaker: Option>, + #[serde(rename = "scripts", skip_serializing_if = "Option::is_none")] + pub scripts: Option<::std::collections::HashMap>, +} + +impl CloudVersionConfig { + /// Cloud configuration for a given version. + pub fn new() -> CloudVersionConfig { + CloudVersionConfig { + cdn: None, + engine: None, + identity: None, + kv: None, + matchmaker: None, + scripts: None, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_version_engine_config.rs b/sdks/full/rust-cli/src/models/cloud_version_engine_config.rs new file mode 100644 index 0000000000..56b15cc7e3 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_version_engine_config.rs @@ -0,0 +1,41 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +#[serde(deny_unknown_fields)] +pub struct CloudVersionEngineConfig { + #[serde(rename = "custom", skip_serializing_if = "Option::is_none")] + pub custom: Option, + #[serde(rename = "godot", skip_serializing_if = "Option::is_none")] + pub godot: Option, + #[serde(rename = "html5", skip_serializing_if = "Option::is_none")] + pub html5: Option, + #[serde(rename = "unity", skip_serializing_if = "Option::is_none")] + pub unity: Option, + #[serde(rename = "unreal", skip_serializing_if = "Option::is_none")] + pub unreal: Option>, +} + +impl CloudVersionEngineConfig { + pub fn new() -> CloudVersionEngineConfig { + CloudVersionEngineConfig { + custom: None, + godot: None, + html5: None, + unity: None, + unreal: None, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_version_engine_unreal_config.rs b/sdks/full/rust-cli/src/models/cloud_version_engine_unreal_config.rs new file mode 100644 index 0000000000..285d5536aa --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_version_engine_unreal_config.rs @@ -0,0 +1,30 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +#[serde(deny_unknown_fields)] +pub struct CloudVersionEngineUnrealConfig { + /// Name of the Unreal module that holds the game code. This is usually the value of `$.Modules[0].Name` in the file `MyProject.unproject`. _Configures Rivet CLI behavior. Has no effect on server behavior._ + #[serde(rename = "game_module")] + pub game_module: String, +} + +impl CloudVersionEngineUnrealConfig { + pub fn new(game_module: String) -> CloudVersionEngineUnrealConfig { + CloudVersionEngineUnrealConfig { + game_module, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_version_full.rs b/sdks/full/rust-cli/src/models/cloud_version_full.rs new file mode 100644 index 0000000000..ac4942fb27 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_version_full.rs @@ -0,0 +1,42 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CloudVersionFull : A full version. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +#[serde(deny_unknown_fields)] +pub struct CloudVersionFull { + #[serde(rename = "config")] + pub config: Box, + /// RFC3339 timestamp + #[serde(rename = "create_ts")] + pub create_ts: String, + /// Represent a resource's readable display name. + #[serde(rename = "display_name")] + pub display_name: String, + #[serde(rename = "version_id")] + pub version_id: uuid::Uuid, +} + +impl CloudVersionFull { + /// A full version. + pub fn new(config: crate::models::CloudVersionConfig, create_ts: String, display_name: String, version_id: uuid::Uuid) -> CloudVersionFull { + CloudVersionFull { + config: Box::new(config), + create_ts, + display_name, + version_id, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_version_identity_config.rs b/sdks/full/rust-cli/src/models/cloud_version_identity_config.rs new file mode 100644 index 0000000000..09657f9f09 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_version_identity_config.rs @@ -0,0 +1,44 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CloudVersionIdentityConfig : **Deprecated** Identity configuration for a given version. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +#[serde(deny_unknown_fields)] +pub struct CloudVersionIdentityConfig { + /// **Deprecated** + #[serde(rename = "avatars", skip_serializing_if = "Option::is_none")] + pub avatars: Option>, + /// **Deprecated** + #[serde(rename = "custom_avatars", skip_serializing_if = "Option::is_none")] + pub custom_avatars: Option>, + /// **Deprecated** + #[serde(rename = "custom_display_names", skip_serializing_if = "Option::is_none")] + pub custom_display_names: Option>, + /// **Deprecated** + #[serde(rename = "display_names", skip_serializing_if = "Option::is_none")] + pub display_names: Option>, +} + +impl CloudVersionIdentityConfig { + /// **Deprecated** Identity configuration for a given version. + pub fn new() -> CloudVersionIdentityConfig { + CloudVersionIdentityConfig { + avatars: None, + custom_avatars: None, + custom_display_names: None, + display_names: None, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_version_identity_custom_avatar.rs b/sdks/full/rust-cli/src/models/cloud_version_identity_custom_avatar.rs new file mode 100644 index 0000000000..09fc3dc084 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_version_identity_custom_avatar.rs @@ -0,0 +1,29 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +#[serde(deny_unknown_fields)] +pub struct CloudVersionIdentityCustomAvatar { + #[serde(rename = "upload_id")] + pub upload_id: uuid::Uuid, +} + +impl CloudVersionIdentityCustomAvatar { + pub fn new(upload_id: uuid::Uuid) -> CloudVersionIdentityCustomAvatar { + CloudVersionIdentityCustomAvatar { + upload_id, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_version_identity_custom_display_name.rs b/sdks/full/rust-cli/src/models/cloud_version_identity_custom_display_name.rs new file mode 100644 index 0000000000..41fcfc2245 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_version_identity_custom_display_name.rs @@ -0,0 +1,30 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +#[serde(deny_unknown_fields)] +pub struct CloudVersionIdentityCustomDisplayName { + /// Represent a resource's readable display name. + #[serde(rename = "display_name")] + pub display_name: String, +} + +impl CloudVersionIdentityCustomDisplayName { + pub fn new(display_name: String) -> CloudVersionIdentityCustomDisplayName { + CloudVersionIdentityCustomDisplayName { + display_name, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_version_matchmaker_captcha.rs b/sdks/full/rust-cli/src/models/cloud_version_matchmaker_captcha.rs new file mode 100644 index 0000000000..0400a3174b --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_version_matchmaker_captcha.rs @@ -0,0 +1,42 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CloudVersionMatchmakerCaptcha : Matchmaker captcha configuration. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +#[serde(deny_unknown_fields)] +pub struct CloudVersionMatchmakerCaptcha { + #[serde(rename = "hcaptcha", skip_serializing_if = "Option::is_none")] + pub hcaptcha: Option>, + /// Denotes how many requests a connection can make before it is required to reverify a captcha. + #[serde(rename = "requests_before_reverify")] + pub requests_before_reverify: i32, + #[serde(rename = "turnstile", skip_serializing_if = "Option::is_none")] + pub turnstile: Option>, + /// Denotes how long a connection can continue to reconnect without having to reverify a captcha (in milliseconds). + #[serde(rename = "verification_ttl")] + pub verification_ttl: i64, +} + +impl CloudVersionMatchmakerCaptcha { + /// Matchmaker captcha configuration. + pub fn new(requests_before_reverify: i32, verification_ttl: i64) -> CloudVersionMatchmakerCaptcha { + CloudVersionMatchmakerCaptcha { + hcaptcha: None, + requests_before_reverify, + turnstile: None, + verification_ttl, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_version_matchmaker_captcha_hcaptcha.rs b/sdks/full/rust-cli/src/models/cloud_version_matchmaker_captcha_hcaptcha.rs new file mode 100644 index 0000000000..c102c863d6 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_version_matchmaker_captcha_hcaptcha.rs @@ -0,0 +1,39 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CloudVersionMatchmakerCaptchaHcaptcha : hCpatcha configuration. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +#[serde(deny_unknown_fields)] +pub struct CloudVersionMatchmakerCaptchaHcaptcha { + #[serde(rename = "level", skip_serializing_if = "Option::is_none")] + pub level: Option, + /// Secret key for your hCaptcha application. Must be set. + #[serde(rename = "secret_key", skip_serializing_if = "Option::is_none")] + pub secret_key: Option, + /// Site key for your hCaptcha application. Must be set. + #[serde(rename = "site_key", skip_serializing_if = "Option::is_none")] + pub site_key: Option, +} + +impl CloudVersionMatchmakerCaptchaHcaptcha { + /// hCpatcha configuration. + pub fn new() -> CloudVersionMatchmakerCaptchaHcaptcha { + CloudVersionMatchmakerCaptchaHcaptcha { + level: None, + secret_key: None, + site_key: None, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_version_matchmaker_captcha_hcaptcha_level.rs b/sdks/full/rust-cli/src/models/cloud_version_matchmaker_captcha_hcaptcha_level.rs new file mode 100644 index 0000000000..f01e7f3b10 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_version_matchmaker_captcha_hcaptcha_level.rs @@ -0,0 +1,47 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CloudVersionMatchmakerCaptchaHcaptchaLevel : **Deprecated** How hard a captcha should be. + +/// **Deprecated** How hard a captcha should be. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +#[serde(deny_unknown_fields)] +pub enum CloudVersionMatchmakerCaptchaHcaptchaLevel { + #[serde(rename = "easy")] + Easy, + #[serde(rename = "moderate")] + Moderate, + #[serde(rename = "difficult")] + Difficult, + #[serde(rename = "always_on")] + AlwaysOn, + +} + +impl ToString for CloudVersionMatchmakerCaptchaHcaptchaLevel { + fn to_string(&self) -> String { + match self { + Self::Easy => String::from("easy"), + Self::Moderate => String::from("moderate"), + Self::Difficult => String::from("difficult"), + Self::AlwaysOn => String::from("always_on"), + } + } +} + +impl Default for CloudVersionMatchmakerCaptchaHcaptchaLevel { + fn default() -> CloudVersionMatchmakerCaptchaHcaptchaLevel { + Self::Easy + } +} + + + + diff --git a/sdks/full/rust-cli/src/models/cloud_version_matchmaker_captcha_turnstile.rs b/sdks/full/rust-cli/src/models/cloud_version_matchmaker_captcha_turnstile.rs new file mode 100644 index 0000000000..0422fee6b2 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_version_matchmaker_captcha_turnstile.rs @@ -0,0 +1,34 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CloudVersionMatchmakerCaptchaTurnstile : Turnstile captcha configuration. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +#[serde(deny_unknown_fields)] +pub struct CloudVersionMatchmakerCaptchaTurnstile { + #[serde(rename = "secret_key")] + pub secret_key: String, + #[serde(rename = "site_key")] + pub site_key: String, +} + +impl CloudVersionMatchmakerCaptchaTurnstile { + /// Turnstile captcha configuration. + pub fn new(secret_key: String, site_key: String) -> CloudVersionMatchmakerCaptchaTurnstile { + CloudVersionMatchmakerCaptchaTurnstile { + secret_key, + site_key, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_version_matchmaker_config.rs b/sdks/full/rust-cli/src/models/cloud_version_matchmaker_config.rs new file mode 100644 index 0000000000..b849e2def7 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_version_matchmaker_config.rs @@ -0,0 +1,64 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CloudVersionMatchmakerConfig : Matchmaker configuration for a given version. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +#[serde(deny_unknown_fields)] +pub struct CloudVersionMatchmakerConfig { + #[serde(rename = "captcha", skip_serializing_if = "Option::is_none")] + pub captcha: Option>, + /// _Configures Rivet CLI behavior. Has no effect on server behavior._ + #[serde(rename = "dev_hostname", skip_serializing_if = "Option::is_none")] + pub dev_hostname: Option, + #[serde(rename = "docker", skip_serializing_if = "Option::is_none")] + pub docker: Option>, + /// A list of game modes. + #[serde(rename = "game_modes", skip_serializing_if = "Option::is_none")] + pub game_modes: Option<::std::collections::HashMap>, + #[serde(rename = "idle_lobbies", skip_serializing_if = "Option::is_none")] + pub idle_lobbies: Option>, + /// **Deprecated: use `game_modes` instead** A list of game modes. + #[serde(rename = "lobby_groups", skip_serializing_if = "Option::is_none")] + pub lobby_groups: Option>, + #[serde(rename = "max_players", skip_serializing_if = "Option::is_none")] + pub max_players: Option, + #[serde(rename = "max_players_direct", skip_serializing_if = "Option::is_none")] + pub max_players_direct: Option, + #[serde(rename = "max_players_party", skip_serializing_if = "Option::is_none")] + pub max_players_party: Option, + #[serde(rename = "regions", skip_serializing_if = "Option::is_none")] + pub regions: Option<::std::collections::HashMap>, + #[serde(rename = "tier", skip_serializing_if = "Option::is_none")] + pub tier: Option, +} + +impl CloudVersionMatchmakerConfig { + /// Matchmaker configuration for a given version. + pub fn new() -> CloudVersionMatchmakerConfig { + CloudVersionMatchmakerConfig { + captcha: None, + dev_hostname: None, + docker: None, + game_modes: None, + idle_lobbies: None, + lobby_groups: None, + max_players: None, + max_players_direct: None, + max_players_party: None, + regions: None, + tier: None, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_version_matchmaker_game_mode.rs b/sdks/full/rust-cli/src/models/cloud_version_matchmaker_game_mode.rs new file mode 100644 index 0000000000..5f2c84ffc5 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_version_matchmaker_game_mode.rs @@ -0,0 +1,61 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CloudVersionMatchmakerGameMode : A game mode. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +#[serde(deny_unknown_fields)] +pub struct CloudVersionMatchmakerGameMode { + #[serde(rename = "actions", skip_serializing_if = "Option::is_none")] + pub actions: Option>, + #[serde(rename = "allow_dynamic_max_players", skip_serializing_if = "Option::is_none")] + pub allow_dynamic_max_players: Option, + #[serde(rename = "docker", skip_serializing_if = "Option::is_none")] + pub docker: Option>, + #[serde(rename = "idle_lobbies", skip_serializing_if = "Option::is_none")] + pub idle_lobbies: Option>, + #[serde(rename = "listable", skip_serializing_if = "Option::is_none")] + pub listable: Option, + #[serde(rename = "max_players", skip_serializing_if = "Option::is_none")] + pub max_players: Option, + #[serde(rename = "max_players_direct", skip_serializing_if = "Option::is_none")] + pub max_players_direct: Option, + #[serde(rename = "max_players_party", skip_serializing_if = "Option::is_none")] + pub max_players_party: Option, + #[serde(rename = "regions", skip_serializing_if = "Option::is_none")] + pub regions: Option<::std::collections::HashMap>, + #[serde(rename = "taggable", skip_serializing_if = "Option::is_none")] + pub taggable: Option, + #[serde(rename = "tier", skip_serializing_if = "Option::is_none")] + pub tier: Option, +} + +impl CloudVersionMatchmakerGameMode { + /// A game mode. + pub fn new() -> CloudVersionMatchmakerGameMode { + CloudVersionMatchmakerGameMode { + actions: None, + allow_dynamic_max_players: None, + docker: None, + idle_lobbies: None, + listable: None, + max_players: None, + max_players_direct: None, + max_players_party: None, + regions: None, + taggable: None, + tier: None, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_version_matchmaker_game_mode_actions.rs b/sdks/full/rust-cli/src/models/cloud_version_matchmaker_game_mode_actions.rs new file mode 100644 index 0000000000..69211f69a5 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_version_matchmaker_game_mode_actions.rs @@ -0,0 +1,37 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CloudVersionMatchmakerGameModeActions : Configuration for the connection types allowed for a game mode. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +#[serde(deny_unknown_fields)] +pub struct CloudVersionMatchmakerGameModeActions { + #[serde(rename = "create", skip_serializing_if = "Option::is_none")] + pub create: Option>, + #[serde(rename = "find", skip_serializing_if = "Option::is_none")] + pub find: Option>, + #[serde(rename = "join", skip_serializing_if = "Option::is_none")] + pub join: Option>, +} + +impl CloudVersionMatchmakerGameModeActions { + /// Configuration for the connection types allowed for a game mode. + pub fn new() -> CloudVersionMatchmakerGameModeActions { + CloudVersionMatchmakerGameModeActions { + create: None, + find: None, + join: None, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_version_matchmaker_game_mode_create_config.rs b/sdks/full/rust-cli/src/models/cloud_version_matchmaker_game_mode_create_config.rs new file mode 100644 index 0000000000..13a1c53e50 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_version_matchmaker_game_mode_create_config.rs @@ -0,0 +1,50 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CloudVersionMatchmakerGameModeCreateConfig : Configures the requirements and authentication for the /create endpoint. If this value is not set in the config, the /create endpoint is NOT enabled. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +#[serde(deny_unknown_fields)] +pub struct CloudVersionMatchmakerGameModeCreateConfig { + /// Defaults to true when unset. + #[serde(rename = "enable_private", skip_serializing_if = "Option::is_none")] + pub enable_private: Option, + /// Defaults to false when unset. + #[serde(rename = "enable_public", skip_serializing_if = "Option::is_none")] + pub enable_public: Option, + /// Sets whether or not the /create endpoint is enabled. + #[serde(rename = "enabled")] + pub enabled: bool, + #[serde(rename = "identity_requirement", skip_serializing_if = "Option::is_none")] + pub identity_requirement: Option, + /// **Deprecated** + #[serde(rename = "max_lobbies_per_identity", skip_serializing_if = "Option::is_none")] + pub max_lobbies_per_identity: Option, + #[serde(rename = "verification", skip_serializing_if = "Option::is_none")] + pub verification: Option>, +} + +impl CloudVersionMatchmakerGameModeCreateConfig { + /// Configures the requirements and authentication for the /create endpoint. If this value is not set in the config, the /create endpoint is NOT enabled. + pub fn new(enabled: bool) -> CloudVersionMatchmakerGameModeCreateConfig { + CloudVersionMatchmakerGameModeCreateConfig { + enable_private: None, + enable_public: None, + enabled, + identity_requirement: None, + max_lobbies_per_identity: None, + verification: None, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_version_matchmaker_game_mode_find_config.rs b/sdks/full/rust-cli/src/models/cloud_version_matchmaker_game_mode_find_config.rs new file mode 100644 index 0000000000..c47446e670 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_version_matchmaker_game_mode_find_config.rs @@ -0,0 +1,38 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CloudVersionMatchmakerGameModeFindConfig : Configures the requirements and authentication for the /find endpoint. If this value is not set in the config, the /find endpoint is still enabled. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +#[serde(deny_unknown_fields)] +pub struct CloudVersionMatchmakerGameModeFindConfig { + /// Sets whether or not the /find endpoint is enabled. + #[serde(rename = "enabled")] + pub enabled: bool, + #[serde(rename = "identity_requirement", skip_serializing_if = "Option::is_none")] + pub identity_requirement: Option, + #[serde(rename = "verification", skip_serializing_if = "Option::is_none")] + pub verification: Option>, +} + +impl CloudVersionMatchmakerGameModeFindConfig { + /// Configures the requirements and authentication for the /find endpoint. If this value is not set in the config, the /find endpoint is still enabled. + pub fn new(enabled: bool) -> CloudVersionMatchmakerGameModeFindConfig { + CloudVersionMatchmakerGameModeFindConfig { + enabled, + identity_requirement: None, + verification: None, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_version_matchmaker_game_mode_identity_requirement.rs b/sdks/full/rust-cli/src/models/cloud_version_matchmaker_game_mode_identity_requirement.rs new file mode 100644 index 0000000000..efd474b0f1 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_version_matchmaker_game_mode_identity_requirement.rs @@ -0,0 +1,44 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CloudVersionMatchmakerGameModeIdentityRequirement : **Deprecated** The registration requirement for a user when joining/finding/creating a lobby. \"None\" allows for connections without an identity. + +/// **Deprecated** The registration requirement for a user when joining/finding/creating a lobby. \"None\" allows for connections without an identity. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +#[serde(deny_unknown_fields)] +pub enum CloudVersionMatchmakerGameModeIdentityRequirement { + #[serde(rename = "none")] + None, + #[serde(rename = "guest")] + Guest, + #[serde(rename = "registered")] + Registered, + +} + +impl ToString for CloudVersionMatchmakerGameModeIdentityRequirement { + fn to_string(&self) -> String { + match self { + Self::None => String::from("none"), + Self::Guest => String::from("guest"), + Self::Registered => String::from("registered"), + } + } +} + +impl Default for CloudVersionMatchmakerGameModeIdentityRequirement { + fn default() -> CloudVersionMatchmakerGameModeIdentityRequirement { + Self::None + } +} + + + + diff --git a/sdks/full/rust-cli/src/models/cloud_version_matchmaker_game_mode_idle_lobbies_config.rs b/sdks/full/rust-cli/src/models/cloud_version_matchmaker_game_mode_idle_lobbies_config.rs new file mode 100644 index 0000000000..ec7ff0ceec --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_version_matchmaker_game_mode_idle_lobbies_config.rs @@ -0,0 +1,34 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CloudVersionMatchmakerGameModeIdleLobbiesConfig : Configuration for how many idle lobbies a game version should have. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +#[serde(deny_unknown_fields)] +pub struct CloudVersionMatchmakerGameModeIdleLobbiesConfig { + #[serde(rename = "max")] + pub max: i32, + #[serde(rename = "min")] + pub min: i32, +} + +impl CloudVersionMatchmakerGameModeIdleLobbiesConfig { + /// Configuration for how many idle lobbies a game version should have. + pub fn new(max: i32, min: i32) -> CloudVersionMatchmakerGameModeIdleLobbiesConfig { + CloudVersionMatchmakerGameModeIdleLobbiesConfig { + max, + min, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_version_matchmaker_game_mode_join_config.rs b/sdks/full/rust-cli/src/models/cloud_version_matchmaker_game_mode_join_config.rs new file mode 100644 index 0000000000..5a7f01d870 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_version_matchmaker_game_mode_join_config.rs @@ -0,0 +1,38 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CloudVersionMatchmakerGameModeJoinConfig : Configures the requirements and authentication for the /join endpoint. If this value is not set in the config, the /join endpoint is still enabled. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +#[serde(deny_unknown_fields)] +pub struct CloudVersionMatchmakerGameModeJoinConfig { + /// Sets whether or not the /join endpoint is enabled. + #[serde(rename = "enabled")] + pub enabled: bool, + #[serde(rename = "identity_requirement", skip_serializing_if = "Option::is_none")] + pub identity_requirement: Option, + #[serde(rename = "verification", skip_serializing_if = "Option::is_none")] + pub verification: Option>, +} + +impl CloudVersionMatchmakerGameModeJoinConfig { + /// Configures the requirements and authentication for the /join endpoint. If this value is not set in the config, the /join endpoint is still enabled. + pub fn new(enabled: bool) -> CloudVersionMatchmakerGameModeJoinConfig { + CloudVersionMatchmakerGameModeJoinConfig { + enabled, + identity_requirement: None, + verification: None, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_version_matchmaker_game_mode_region.rs b/sdks/full/rust-cli/src/models/cloud_version_matchmaker_game_mode_region.rs new file mode 100644 index 0000000000..79203979ff --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_version_matchmaker_game_mode_region.rs @@ -0,0 +1,34 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CloudVersionMatchmakerGameModeRegion : A game mode region. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +#[serde(deny_unknown_fields)] +pub struct CloudVersionMatchmakerGameModeRegion { + #[serde(rename = "idle_lobbies", skip_serializing_if = "Option::is_none")] + pub idle_lobbies: Option>, + #[serde(rename = "tier", skip_serializing_if = "Option::is_none")] + pub tier: Option, +} + +impl CloudVersionMatchmakerGameModeRegion { + /// A game mode region. + pub fn new() -> CloudVersionMatchmakerGameModeRegion { + CloudVersionMatchmakerGameModeRegion { + idle_lobbies: None, + tier: None, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_version_matchmaker_game_mode_runtime_docker.rs b/sdks/full/rust-cli/src/models/cloud_version_matchmaker_game_mode_runtime_docker.rs new file mode 100644 index 0000000000..c38c6f2da8 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_version_matchmaker_game_mode_runtime_docker.rs @@ -0,0 +1,55 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CloudVersionMatchmakerGameModeRuntimeDocker : A game mode runtime running through Docker. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +#[serde(deny_unknown_fields)] +pub struct CloudVersionMatchmakerGameModeRuntimeDocker { + #[serde(rename = "args", skip_serializing_if = "Option::is_none")] + pub args: Option>, + /// _Configures Rivet CLI behavior. Has no effect on server behavior._ + #[serde(rename = "build_args", skip_serializing_if = "Option::is_none")] + pub build_args: Option<::std::collections::HashMap>, + /// _Configures Rivet CLI behavior. Has no effect on server behavior._ + #[serde(rename = "dockerfile", skip_serializing_if = "Option::is_none")] + pub dockerfile: Option, + #[serde(rename = "env", skip_serializing_if = "Option::is_none")] + pub env: Option<::std::collections::HashMap>, + /// _Configures Rivet CLI behavior. Has no effect on server behavior._ + #[serde(rename = "image", skip_serializing_if = "Option::is_none")] + pub image: Option, + #[serde(rename = "image_id", skip_serializing_if = "Option::is_none")] + pub image_id: Option, + #[serde(rename = "network_mode", skip_serializing_if = "Option::is_none")] + pub network_mode: Option, + #[serde(rename = "ports", skip_serializing_if = "Option::is_none")] + pub ports: Option<::std::collections::HashMap>, +} + +impl CloudVersionMatchmakerGameModeRuntimeDocker { + /// A game mode runtime running through Docker. + pub fn new() -> CloudVersionMatchmakerGameModeRuntimeDocker { + CloudVersionMatchmakerGameModeRuntimeDocker { + args: None, + build_args: None, + dockerfile: None, + env: None, + image: None, + image_id: None, + network_mode: None, + ports: None, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_version_matchmaker_game_mode_runtime_docker_port.rs b/sdks/full/rust-cli/src/models/cloud_version_matchmaker_game_mode_runtime_docker_port.rs new file mode 100644 index 0000000000..6c62491236 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_version_matchmaker_game_mode_runtime_docker_port.rs @@ -0,0 +1,51 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CloudVersionMatchmakerGameModeRuntimeDockerPort : Port config for a docker build. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +#[serde(deny_unknown_fields)] +pub struct CloudVersionMatchmakerGameModeRuntimeDockerPort { + /// _Configures Rivet CLI behavior. Has no effect on server behavior._ + #[serde(rename = "dev_port", skip_serializing_if = "Option::is_none")] + pub dev_port: Option, + #[serde(rename = "dev_port_range", skip_serializing_if = "Option::is_none")] + pub dev_port_range: Option>, + #[serde(rename = "dev_protocol", skip_serializing_if = "Option::is_none")] + pub dev_protocol: Option, + /// The port number to connect to. ### Related - cloud.version.matchmaker.PortProtocol - cloud.version.matchmaker.ProxyKind + #[serde(rename = "port", skip_serializing_if = "Option::is_none")] + pub port: Option, + #[serde(rename = "port_range", skip_serializing_if = "Option::is_none")] + pub port_range: Option>, + #[serde(rename = "protocol", skip_serializing_if = "Option::is_none")] + pub protocol: Option, + #[serde(rename = "proxy", skip_serializing_if = "Option::is_none")] + pub proxy: Option, +} + +impl CloudVersionMatchmakerGameModeRuntimeDockerPort { + /// Port config for a docker build. + pub fn new() -> CloudVersionMatchmakerGameModeRuntimeDockerPort { + CloudVersionMatchmakerGameModeRuntimeDockerPort { + dev_port: None, + dev_port_range: None, + dev_protocol: None, + port: None, + port_range: None, + protocol: None, + proxy: None, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_version_matchmaker_game_mode_verification_config.rs b/sdks/full/rust-cli/src/models/cloud_version_matchmaker_game_mode_verification_config.rs new file mode 100644 index 0000000000..76e500ce29 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_version_matchmaker_game_mode_verification_config.rs @@ -0,0 +1,34 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CloudVersionMatchmakerGameModeVerificationConfig : Configuration that tells Rivet where to send validation requests and with what headers. When set, Rivet will send the `verification_data` property (given by the user in the find/join/create endpoint) to the given url along with the headers provided and some information about the requested lobby. The response of this request will determine if the user can join that lobby or not. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +#[serde(deny_unknown_fields)] +pub struct CloudVersionMatchmakerGameModeVerificationConfig { + #[serde(rename = "headers")] + pub headers: ::std::collections::HashMap, + #[serde(rename = "url")] + pub url: String, +} + +impl CloudVersionMatchmakerGameModeVerificationConfig { + /// Configuration that tells Rivet where to send validation requests and with what headers. When set, Rivet will send the `verification_data` property (given by the user in the find/join/create endpoint) to the given url along with the headers provided and some information about the requested lobby. The response of this request will determine if the user can join that lobby or not. + pub fn new(headers: ::std::collections::HashMap, url: String) -> CloudVersionMatchmakerGameModeVerificationConfig { + CloudVersionMatchmakerGameModeVerificationConfig { + headers, + url, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_version_matchmaker_lobby_group.rs b/sdks/full/rust-cli/src/models/cloud_version_matchmaker_lobby_group.rs new file mode 100644 index 0000000000..3c252dce19 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_version_matchmaker_lobby_group.rs @@ -0,0 +1,51 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CloudVersionMatchmakerLobbyGroup : A game mode. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +#[serde(deny_unknown_fields)] +pub struct CloudVersionMatchmakerLobbyGroup { + /// Unsigned 32 bit integer. + #[serde(rename = "max_players_direct")] + pub max_players_direct: i32, + /// Unsigned 32 bit integer. + #[serde(rename = "max_players_normal")] + pub max_players_normal: i32, + /// Unsigned 32 bit integer. + #[serde(rename = "max_players_party")] + pub max_players_party: i32, + /// **Deprecated: use GameMode instead** A human readable short identifier used to references resources. Different than a `rivet.common#Uuid` because this is intended to be human readable. Different than `rivet.common#DisplayName` because this should not include special characters and be short. + #[serde(rename = "name_id")] + pub name_id: String, + /// A list of game mode regions. + #[serde(rename = "regions")] + pub regions: Vec, + #[serde(rename = "runtime")] + pub runtime: Box, +} + +impl CloudVersionMatchmakerLobbyGroup { + /// A game mode. + pub fn new(max_players_direct: i32, max_players_normal: i32, max_players_party: i32, name_id: String, regions: Vec, runtime: crate::models::CloudVersionMatchmakerLobbyGroupRuntime) -> CloudVersionMatchmakerLobbyGroup { + CloudVersionMatchmakerLobbyGroup { + max_players_direct, + max_players_normal, + max_players_party, + name_id, + regions, + runtime: Box::new(runtime), + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_version_matchmaker_lobby_group_idle_lobbies_config.rs b/sdks/full/rust-cli/src/models/cloud_version_matchmaker_lobby_group_idle_lobbies_config.rs new file mode 100644 index 0000000000..f79f2fd55d --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_version_matchmaker_lobby_group_idle_lobbies_config.rs @@ -0,0 +1,36 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CloudVersionMatchmakerLobbyGroupIdleLobbiesConfig : **Deprecated: use GameMode instead** Configuration for how many idle lobbies a game version should have. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +#[serde(deny_unknown_fields)] +pub struct CloudVersionMatchmakerLobbyGroupIdleLobbiesConfig { + /// Unsigned 32 bit integer. + #[serde(rename = "max_idle_lobbies")] + pub max_idle_lobbies: i32, + /// Unsigned 32 bit integer. + #[serde(rename = "min_idle_lobbies")] + pub min_idle_lobbies: i32, +} + +impl CloudVersionMatchmakerLobbyGroupIdleLobbiesConfig { + /// **Deprecated: use GameMode instead** Configuration for how many idle lobbies a game version should have. + pub fn new(max_idle_lobbies: i32, min_idle_lobbies: i32) -> CloudVersionMatchmakerLobbyGroupIdleLobbiesConfig { + CloudVersionMatchmakerLobbyGroupIdleLobbiesConfig { + max_idle_lobbies, + min_idle_lobbies, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_version_matchmaker_lobby_group_region.rs b/sdks/full/rust-cli/src/models/cloud_version_matchmaker_lobby_group_region.rs new file mode 100644 index 0000000000..a920af7166 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_version_matchmaker_lobby_group_region.rs @@ -0,0 +1,38 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CloudVersionMatchmakerLobbyGroupRegion : **Deprecated: use GameMode instead** A game mode region. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +#[serde(deny_unknown_fields)] +pub struct CloudVersionMatchmakerLobbyGroupRegion { + #[serde(rename = "idle_lobbies", skip_serializing_if = "Option::is_none")] + pub idle_lobbies: Option>, + #[serde(rename = "region_id")] + pub region_id: uuid::Uuid, + /// A human readable short identifier used to references resources. Different than a `rivet.common#Uuid` because this is intended to be human readable. Different than `rivet.common#DisplayName` because this should not include special characters and be short. + #[serde(rename = "tier_name_id")] + pub tier_name_id: String, +} + +impl CloudVersionMatchmakerLobbyGroupRegion { + /// **Deprecated: use GameMode instead** A game mode region. + pub fn new(region_id: uuid::Uuid, tier_name_id: String) -> CloudVersionMatchmakerLobbyGroupRegion { + CloudVersionMatchmakerLobbyGroupRegion { + idle_lobbies: None, + region_id, + tier_name_id, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_version_matchmaker_lobby_group_runtime.rs b/sdks/full/rust-cli/src/models/cloud_version_matchmaker_lobby_group_runtime.rs new file mode 100644 index 0000000000..60fd57d4d2 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_version_matchmaker_lobby_group_runtime.rs @@ -0,0 +1,31 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CloudVersionMatchmakerLobbyGroupRuntime : **Deprecated: use GameMode instead** A union representing the runtime a game mode runs on. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +#[serde(deny_unknown_fields)] +pub struct CloudVersionMatchmakerLobbyGroupRuntime { + #[serde(rename = "docker", skip_serializing_if = "Option::is_none")] + pub docker: Option>, +} + +impl CloudVersionMatchmakerLobbyGroupRuntime { + /// **Deprecated: use GameMode instead** A union representing the runtime a game mode runs on. + pub fn new() -> CloudVersionMatchmakerLobbyGroupRuntime { + CloudVersionMatchmakerLobbyGroupRuntime { + docker: None, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_version_matchmaker_lobby_group_runtime_docker.rs b/sdks/full/rust-cli/src/models/cloud_version_matchmaker_lobby_group_runtime_docker.rs new file mode 100644 index 0000000000..e462bcbba7 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_version_matchmaker_lobby_group_runtime_docker.rs @@ -0,0 +1,43 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CloudVersionMatchmakerLobbyGroupRuntimeDocker : **Deprecated: use GameMode instead** A game mode runtime running through Docker. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +#[serde(deny_unknown_fields)] +pub struct CloudVersionMatchmakerLobbyGroupRuntimeDocker { + #[serde(rename = "args")] + pub args: Vec, + #[serde(rename = "build_id", skip_serializing_if = "Option::is_none")] + pub build_id: Option, + #[serde(rename = "env_vars")] + pub env_vars: Vec, + #[serde(rename = "network_mode", skip_serializing_if = "Option::is_none")] + pub network_mode: Option, + #[serde(rename = "ports")] + pub ports: Vec, +} + +impl CloudVersionMatchmakerLobbyGroupRuntimeDocker { + /// **Deprecated: use GameMode instead** A game mode runtime running through Docker. + pub fn new(args: Vec, env_vars: Vec, ports: Vec) -> CloudVersionMatchmakerLobbyGroupRuntimeDocker { + CloudVersionMatchmakerLobbyGroupRuntimeDocker { + args, + build_id: None, + env_vars, + network_mode: None, + ports, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_version_matchmaker_lobby_group_runtime_docker_env_var.rs b/sdks/full/rust-cli/src/models/cloud_version_matchmaker_lobby_group_runtime_docker_env_var.rs new file mode 100644 index 0000000000..86dc75bc01 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_version_matchmaker_lobby_group_runtime_docker_env_var.rs @@ -0,0 +1,34 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CloudVersionMatchmakerLobbyGroupRuntimeDockerEnvVar : **Deprecated: use GameMode instead** A docker environment variable. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +#[serde(deny_unknown_fields)] +pub struct CloudVersionMatchmakerLobbyGroupRuntimeDockerEnvVar { + #[serde(rename = "key")] + pub key: String, + #[serde(rename = "value")] + pub value: String, +} + +impl CloudVersionMatchmakerLobbyGroupRuntimeDockerEnvVar { + /// **Deprecated: use GameMode instead** A docker environment variable. + pub fn new(key: String, value: String) -> CloudVersionMatchmakerLobbyGroupRuntimeDockerEnvVar { + CloudVersionMatchmakerLobbyGroupRuntimeDockerEnvVar { + key, + value, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_version_matchmaker_lobby_group_runtime_docker_port.rs b/sdks/full/rust-cli/src/models/cloud_version_matchmaker_lobby_group_runtime_docker_port.rs new file mode 100644 index 0000000000..e66443297f --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_version_matchmaker_lobby_group_runtime_docker_port.rs @@ -0,0 +1,42 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CloudVersionMatchmakerLobbyGroupRuntimeDockerPort : **Deprecated: use GameMode instead** A docker port. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +#[serde(deny_unknown_fields)] +pub struct CloudVersionMatchmakerLobbyGroupRuntimeDockerPort { + /// The label of this docker port. + #[serde(rename = "label")] + pub label: String, + #[serde(rename = "port_range", skip_serializing_if = "Option::is_none")] + pub port_range: Option>, + #[serde(rename = "proxy_protocol")] + pub proxy_protocol: crate::models::CloudVersionMatchmakerPortProtocol, + /// The port number to connect to. + #[serde(rename = "target_port", skip_serializing_if = "Option::is_none")] + pub target_port: Option, +} + +impl CloudVersionMatchmakerLobbyGroupRuntimeDockerPort { + /// **Deprecated: use GameMode instead** A docker port. + pub fn new(label: String, proxy_protocol: crate::models::CloudVersionMatchmakerPortProtocol) -> CloudVersionMatchmakerLobbyGroupRuntimeDockerPort { + CloudVersionMatchmakerLobbyGroupRuntimeDockerPort { + label, + port_range: None, + proxy_protocol, + target_port: None, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_version_matchmaker_network_mode.rs b/sdks/full/rust-cli/src/models/cloud_version_matchmaker_network_mode.rs new file mode 100644 index 0000000000..c2c49c0fe2 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_version_matchmaker_network_mode.rs @@ -0,0 +1,41 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CloudVersionMatchmakerNetworkMode : Configures how the container's network is isolated from the host. `bridge` (default) networking isolates the container's network from the host & other containers. `host` networking removes isolation between the container and the host. Only available in Rivet Open Source & Enterprise. Read more about bridge vs host networking [here](https://rivet.gg/docs/dynamic-servers/concepts/host-bridge-networking). + +/// Configures how the container's network is isolated from the host. `bridge` (default) networking isolates the container's network from the host & other containers. `host` networking removes isolation between the container and the host. Only available in Rivet Open Source & Enterprise. Read more about bridge vs host networking [here](https://rivet.gg/docs/dynamic-servers/concepts/host-bridge-networking). +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +#[serde(deny_unknown_fields)] +pub enum CloudVersionMatchmakerNetworkMode { + #[serde(rename = "bridge")] + Bridge, + #[serde(rename = "host")] + Host, + +} + +impl ToString for CloudVersionMatchmakerNetworkMode { + fn to_string(&self) -> String { + match self { + Self::Bridge => String::from("bridge"), + Self::Host => String::from("host"), + } + } +} + +impl Default for CloudVersionMatchmakerNetworkMode { + fn default() -> CloudVersionMatchmakerNetworkMode { + Self::Bridge + } +} + + + + diff --git a/sdks/full/rust-cli/src/models/cloud_version_matchmaker_port_protocol.rs b/sdks/full/rust-cli/src/models/cloud_version_matchmaker_port_protocol.rs new file mode 100644 index 0000000000..d5e7328356 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_version_matchmaker_port_protocol.rs @@ -0,0 +1,50 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CloudVersionMatchmakerPortProtocol : Signifies the protocol of the port. Note that when proxying through GameGuard (via `ProxyKind`), the port number returned by `/find`, `/join`, and `/create` will not be the same as the port number configured in the config: - With HTTP, the port will always be 80. The hostname of the port correctly routes the incoming connection to the correct port being used by the game server. - With HTTPS, the port will always be 443. The hostname of the port correctly routes the incoming connection to the correct port being used by the game server. - Using TCP/UDP, the port will be a random number between 26000 and 31999. This gets automatically routed to the correct port being used by the game server. ### Related - cloud.version.matchmaker.GameModeRuntimeDockerPort - cloud.version.matchmaker.ProxyKind - /docs/dynamic-servers/concepts/game-guard - matchmaker.lobbies.find + +/// Signifies the protocol of the port. Note that when proxying through GameGuard (via `ProxyKind`), the port number returned by `/find`, `/join`, and `/create` will not be the same as the port number configured in the config: - With HTTP, the port will always be 80. The hostname of the port correctly routes the incoming connection to the correct port being used by the game server. - With HTTPS, the port will always be 443. The hostname of the port correctly routes the incoming connection to the correct port being used by the game server. - Using TCP/UDP, the port will be a random number between 26000 and 31999. This gets automatically routed to the correct port being used by the game server. ### Related - cloud.version.matchmaker.GameModeRuntimeDockerPort - cloud.version.matchmaker.ProxyKind - /docs/dynamic-servers/concepts/game-guard - matchmaker.lobbies.find +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +#[serde(deny_unknown_fields)] +pub enum CloudVersionMatchmakerPortProtocol { + #[serde(rename = "http")] + Http, + #[serde(rename = "https")] + Https, + #[serde(rename = "tcp")] + Tcp, + #[serde(rename = "tcp_tls")] + TcpTls, + #[serde(rename = "udp")] + Udp, + +} + +impl ToString for CloudVersionMatchmakerPortProtocol { + fn to_string(&self) -> String { + match self { + Self::Http => String::from("http"), + Self::Https => String::from("https"), + Self::Tcp => String::from("tcp"), + Self::TcpTls => String::from("tcp_tls"), + Self::Udp => String::from("udp"), + } + } +} + +impl Default for CloudVersionMatchmakerPortProtocol { + fn default() -> CloudVersionMatchmakerPortProtocol { + Self::Http + } +} + + + + diff --git a/sdks/full/rust-cli/src/models/cloud_version_matchmaker_port_range.rs b/sdks/full/rust-cli/src/models/cloud_version_matchmaker_port_range.rs new file mode 100644 index 0000000000..f77a0d3ed1 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_version_matchmaker_port_range.rs @@ -0,0 +1,36 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CloudVersionMatchmakerPortRange : Range of ports that can be connected to. If configured, `network_mode` must equal `host`. Port ranges may overlap between containers, it is the responsibility of the developer to ensure ports are available before using. Read more about host networking [here](https://rivet.gg/docs/dynamic-servers/concepts/host-bridge-networking). Only available on Rivet Open Source & Enterprise. ### Related - cloud.version.matchmaker.PortProtocol - cloud.version.matchmaker.ProxyKind + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +#[serde(deny_unknown_fields)] +pub struct CloudVersionMatchmakerPortRange { + /// Unsigned 32 bit integer. + #[serde(rename = "max")] + pub max: i32, + /// Unsigned 32 bit integer. + #[serde(rename = "min")] + pub min: i32, +} + +impl CloudVersionMatchmakerPortRange { + /// Range of ports that can be connected to. If configured, `network_mode` must equal `host`. Port ranges may overlap between containers, it is the responsibility of the developer to ensure ports are available before using. Read more about host networking [here](https://rivet.gg/docs/dynamic-servers/concepts/host-bridge-networking). Only available on Rivet Open Source & Enterprise. ### Related - cloud.version.matchmaker.PortProtocol - cloud.version.matchmaker.ProxyKind + pub fn new(max: i32, min: i32) -> CloudVersionMatchmakerPortRange { + CloudVersionMatchmakerPortRange { + max, + min, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/cloud_version_matchmaker_proxy_kind.rs b/sdks/full/rust-cli/src/models/cloud_version_matchmaker_proxy_kind.rs new file mode 100644 index 0000000000..9482e5af6b --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_version_matchmaker_proxy_kind.rs @@ -0,0 +1,41 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CloudVersionMatchmakerProxyKind : Range of ports that can be connected to. `game_guard` (default) proxies all traffic through [Game Guard](https://rivet.gg/docs/dynamic-servers/concepts/game-guard) to mitigate DDoS attacks and provide TLS termination. `none` sends traffic directly to the game server. If configured, `network_mode` must equal `host`. Read more about host networking [here](https://rivet.gg/docs/dynamic-servers/concepts/host-bridge-networking). Only available on Rivet Open Source & Enterprise. ### Related - /docs/dynamic-servers/concepts/game-guard - cloud.version.matchmaker.PortProtocol + +/// Range of ports that can be connected to. `game_guard` (default) proxies all traffic through [Game Guard](https://rivet.gg/docs/dynamic-servers/concepts/game-guard) to mitigate DDoS attacks and provide TLS termination. `none` sends traffic directly to the game server. If configured, `network_mode` must equal `host`. Read more about host networking [here](https://rivet.gg/docs/dynamic-servers/concepts/host-bridge-networking). Only available on Rivet Open Source & Enterprise. ### Related - /docs/dynamic-servers/concepts/game-guard - cloud.version.matchmaker.PortProtocol +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +#[serde(deny_unknown_fields)] +pub enum CloudVersionMatchmakerProxyKind { + #[serde(rename = "none")] + None, + #[serde(rename = "game_guard")] + GameGuard, + +} + +impl ToString for CloudVersionMatchmakerProxyKind { + fn to_string(&self) -> String { + match self { + Self::None => String::from("none"), + Self::GameGuard => String::from("game_guard"), + } + } +} + +impl Default for CloudVersionMatchmakerProxyKind { + fn default() -> CloudVersionMatchmakerProxyKind { + Self::None + } +} + + + + diff --git a/sdks/full/rust-cli/src/models/cloud_version_summary.rs b/sdks/full/rust-cli/src/models/cloud_version_summary.rs new file mode 100644 index 0000000000..da670510c2 --- /dev/null +++ b/sdks/full/rust-cli/src/models/cloud_version_summary.rs @@ -0,0 +1,39 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// CloudVersionSummary : A version summary. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +#[serde(deny_unknown_fields)] +pub struct CloudVersionSummary { + /// RFC3339 timestamp + #[serde(rename = "create_ts")] + pub create_ts: String, + /// Represent a resource's readable display name. + #[serde(rename = "display_name")] + pub display_name: String, + #[serde(rename = "version_id")] + pub version_id: uuid::Uuid, +} + +impl CloudVersionSummary { + /// A version summary. + pub fn new(create_ts: String, display_name: String, version_id: uuid::Uuid) -> CloudVersionSummary { + CloudVersionSummary { + create_ts, + display_name, + version_id, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/error_body.rs b/sdks/full/rust-cli/src/models/error_body.rs new file mode 100644 index 0000000000..1ad1d62334 --- /dev/null +++ b/sdks/full/rust-cli/src/models/error_body.rs @@ -0,0 +1,41 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ErrorBody { + #[serde(rename = "code")] + pub code: String, + #[serde(rename = "documentation", skip_serializing_if = "Option::is_none")] + pub documentation: Option, + #[serde(rename = "message")] + pub message: String, + /// Unstructured metadata relating to an error. Must be manually parsed. + #[serde(rename = "metadata", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub metadata: Option>, + #[serde(rename = "ray_id")] + pub ray_id: String, +} + +impl ErrorBody { + pub fn new(code: String, message: String, ray_id: String) -> ErrorBody { + ErrorBody { + code, + documentation: None, + message, + metadata: None, + ray_id, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/game_handle.rs b/sdks/full/rust-cli/src/models/game_handle.rs new file mode 100644 index 0000000000..346a1b6a6e --- /dev/null +++ b/sdks/full/rust-cli/src/models/game_handle.rs @@ -0,0 +1,44 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct GameHandle { + /// The URL of this game's banner image. + #[serde(rename = "banner_url", skip_serializing_if = "Option::is_none")] + pub banner_url: Option, + /// Represent a resource's readable display name. + #[serde(rename = "display_name")] + pub display_name: String, + #[serde(rename = "game_id")] + pub game_id: uuid::Uuid, + /// The URL of this game's logo image. + #[serde(rename = "logo_url", skip_serializing_if = "Option::is_none")] + pub logo_url: Option, + /// A human readable short identifier used to references resources. Different than a `uuid` because this is intended to be human readable. Different than `DisplayName` because this should not include special characters and be short. + #[serde(rename = "name_id")] + pub name_id: String, +} + +impl GameHandle { + pub fn new(display_name: String, game_id: uuid::Uuid, name_id: String) -> GameHandle { + GameHandle { + banner_url: None, + display_name, + game_id, + logo_url: None, + name_id, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/game_leaderboard_category.rs b/sdks/full/rust-cli/src/models/game_leaderboard_category.rs new file mode 100644 index 0000000000..29cb86fe4e --- /dev/null +++ b/sdks/full/rust-cli/src/models/game_leaderboard_category.rs @@ -0,0 +1,31 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// GameLeaderboardCategory : A game leaderboard category. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct GameLeaderboardCategory { + /// Represent a resource's readable display name. + #[serde(rename = "display_name")] + pub display_name: String, +} + +impl GameLeaderboardCategory { + /// A game leaderboard category. + pub fn new(display_name: String) -> GameLeaderboardCategory { + GameLeaderboardCategory { + display_name, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/game_platform_link.rs b/sdks/full/rust-cli/src/models/game_platform_link.rs new file mode 100644 index 0000000000..f8a8591e22 --- /dev/null +++ b/sdks/full/rust-cli/src/models/game_platform_link.rs @@ -0,0 +1,35 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// GamePlatformLink : A platform link denoting a supported platform. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct GamePlatformLink { + /// Represent a resource's readable display name. + #[serde(rename = "display_name")] + pub display_name: String, + /// The URL to the given game's method of distribution on this platform. + #[serde(rename = "url")] + pub url: String, +} + +impl GamePlatformLink { + /// A platform link denoting a supported platform. + pub fn new(display_name: String, url: String) -> GamePlatformLink { + GamePlatformLink { + display_name, + url, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/game_profile.rs b/sdks/full/rust-cli/src/models/game_profile.rs new file mode 100644 index 0000000000..4fd3a3dfdb --- /dev/null +++ b/sdks/full/rust-cli/src/models/game_profile.rs @@ -0,0 +1,77 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// GameProfile : A game profile. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct GameProfile { + /// The URL of this game's banner image. + #[serde(rename = "banner_url", skip_serializing_if = "Option::is_none")] + pub banner_url: Option, + /// A description of the given game. + #[serde(rename = "description")] + pub description: String, + #[serde(rename = "developer")] + pub developer: Box, + /// Represent a resource's readable display name. + #[serde(rename = "display_name")] + pub display_name: String, + #[serde(rename = "game_id")] + pub game_id: uuid::Uuid, + /// A list of game leaderboard categories. + #[serde(rename = "group_leaderboard_categories")] + pub group_leaderboard_categories: Vec, + /// A list of game leaderboard categories. + #[serde(rename = "identity_leaderboard_categories")] + pub identity_leaderboard_categories: Vec, + /// The URL of this game's logo image. + #[serde(rename = "logo_url", skip_serializing_if = "Option::is_none")] + pub logo_url: Option, + /// A human readable short identifier used to references resources. Different than a `rivet.common#Uuid` because this is intended to be human readable. Different than `rivet.common#DisplayName` because this should not include special characters and be short. + #[serde(rename = "name_id")] + pub name_id: String, + /// A list of platform links. + #[serde(rename = "platforms")] + pub platforms: Vec, + /// A list of group summaries. + #[serde(rename = "recommended_groups")] + pub recommended_groups: Vec, + /// A list of game tags. + #[serde(rename = "tags")] + pub tags: Vec, + /// The URL to this game's website. + #[serde(rename = "url")] + pub url: String, +} + +impl GameProfile { + /// A game profile. + pub fn new(description: String, developer: crate::models::GroupSummary, display_name: String, game_id: uuid::Uuid, group_leaderboard_categories: Vec, identity_leaderboard_categories: Vec, name_id: String, platforms: Vec, recommended_groups: Vec, tags: Vec, url: String) -> GameProfile { + GameProfile { + banner_url: None, + description, + developer: Box::new(developer), + display_name, + game_id, + group_leaderboard_categories, + identity_leaderboard_categories, + logo_url: None, + name_id, + platforms, + recommended_groups, + tags, + url, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/game_stat.rs b/sdks/full/rust-cli/src/models/game_stat.rs new file mode 100644 index 0000000000..d9fbbfe2d1 --- /dev/null +++ b/sdks/full/rust-cli/src/models/game_stat.rs @@ -0,0 +1,34 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// GameStat : A game statistic. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct GameStat { + #[serde(rename = "config")] + pub config: Box, + /// A single overall value of the given statistic. + #[serde(rename = "overall_value")] + pub overall_value: f64, +} + +impl GameStat { + /// A game statistic. + pub fn new(config: crate::models::GameStatConfig, overall_value: f64) -> GameStat { + GameStat { + config: Box::new(config), + overall_value, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/game_stat_aggregation_method.rs b/sdks/full/rust-cli/src/models/game_stat_aggregation_method.rs new file mode 100644 index 0000000000..7f11571aa2 --- /dev/null +++ b/sdks/full/rust-cli/src/models/game_stat_aggregation_method.rs @@ -0,0 +1,46 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// GameStatAggregationMethod : A value denoting the aggregation method of a game statistic. + +/// A value denoting the aggregation method of a game statistic. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum GameStatAggregationMethod { + #[serde(rename = "sum")] + Sum, + #[serde(rename = "average")] + Average, + #[serde(rename = "min")] + Min, + #[serde(rename = "max")] + Max, + +} + +impl ToString for GameStatAggregationMethod { + fn to_string(&self) -> String { + match self { + Self::Sum => String::from("sum"), + Self::Average => String::from("average"), + Self::Min => String::from("min"), + Self::Max => String::from("max"), + } + } +} + +impl Default for GameStatAggregationMethod { + fn default() -> GameStatAggregationMethod { + Self::Sum + } +} + + + + diff --git a/sdks/full/rust-cli/src/models/game_stat_config.rs b/sdks/full/rust-cli/src/models/game_stat_config.rs new file mode 100644 index 0000000000..f9c47ec3b2 --- /dev/null +++ b/sdks/full/rust-cli/src/models/game_stat_config.rs @@ -0,0 +1,65 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// GameStatConfig : A game statistic config. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct GameStatConfig { + #[serde(rename = "aggregation")] + pub aggregation: crate::models::GameStatAggregationMethod, + /// Represent a resource's readable display name. + #[serde(rename = "display_name")] + pub display_name: String, + #[serde(rename = "format")] + pub format: crate::models::GameStatFormatMethod, + #[serde(rename = "icon_id")] + pub icon_id: uuid::Uuid, + /// A string appended to the end of a game statistic's value that is not exactly 1. Example: 45 **dollars**. + #[serde(rename = "postfix_plural", skip_serializing_if = "Option::is_none")] + pub postfix_plural: Option, + /// A string appended to the end of a singular game statistic's value. Example: 1 **dollar**. + #[serde(rename = "postfix_singular", skip_serializing_if = "Option::is_none")] + pub postfix_singular: Option, + /// A string prepended to the beginning of a game statistic's value that is not exactly 1. Example: **values** 45. + #[serde(rename = "prefix_plural", skip_serializing_if = "Option::is_none")] + pub prefix_plural: Option, + /// A string appended to the beginning of a singular game statistic's value. Example: **value** 1. + #[serde(rename = "prefix_singular", skip_serializing_if = "Option::is_none")] + pub prefix_singular: Option, + #[serde(rename = "priority")] + pub priority: i32, + #[serde(rename = "record_id")] + pub record_id: uuid::Uuid, + #[serde(rename = "sorting")] + pub sorting: crate::models::GameStatSortingMethod, +} + +impl GameStatConfig { + /// A game statistic config. + pub fn new(aggregation: crate::models::GameStatAggregationMethod, display_name: String, format: crate::models::GameStatFormatMethod, icon_id: uuid::Uuid, priority: i32, record_id: uuid::Uuid, sorting: crate::models::GameStatSortingMethod) -> GameStatConfig { + GameStatConfig { + aggregation, + display_name, + format, + icon_id, + postfix_plural: None, + postfix_singular: None, + prefix_plural: None, + prefix_singular: None, + priority, + record_id, + sorting, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/game_stat_format_method.rs b/sdks/full/rust-cli/src/models/game_stat_format_method.rs new file mode 100644 index 0000000000..7340afdf6e --- /dev/null +++ b/sdks/full/rust-cli/src/models/game_stat_format_method.rs @@ -0,0 +1,55 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// GameStatFormatMethod : A value denoting the format method of a game statistic. + +/// A value denoting the format method of a game statistic. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum GameStatFormatMethod { + #[serde(rename = "integer")] + Integer, + #[serde(rename = "float_1")] + Float1, + #[serde(rename = "float_2")] + Float2, + #[serde(rename = "float_3")] + Float3, + #[serde(rename = "duration_minute")] + DurationMinute, + #[serde(rename = "duration_second")] + DurationSecond, + #[serde(rename = "duration_hundredth_second")] + DurationHundredthSecond, + +} + +impl ToString for GameStatFormatMethod { + fn to_string(&self) -> String { + match self { + Self::Integer => String::from("integer"), + Self::Float1 => String::from("float_1"), + Self::Float2 => String::from("float_2"), + Self::Float3 => String::from("float_3"), + Self::DurationMinute => String::from("duration_minute"), + Self::DurationSecond => String::from("duration_second"), + Self::DurationHundredthSecond => String::from("duration_hundredth_second"), + } + } +} + +impl Default for GameStatFormatMethod { + fn default() -> GameStatFormatMethod { + Self::Integer + } +} + + + + diff --git a/sdks/full/rust-cli/src/models/game_stat_sorting_method.rs b/sdks/full/rust-cli/src/models/game_stat_sorting_method.rs new file mode 100644 index 0000000000..695fcf70a6 --- /dev/null +++ b/sdks/full/rust-cli/src/models/game_stat_sorting_method.rs @@ -0,0 +1,40 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// GameStatSortingMethod : A value denoting the sorting method of a game statistic. + +/// A value denoting the sorting method of a game statistic. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum GameStatSortingMethod { + #[serde(rename = "desc")] + Desc, + #[serde(rename = "asc")] + Asc, + +} + +impl ToString for GameStatSortingMethod { + fn to_string(&self) -> String { + match self { + Self::Desc => String::from("desc"), + Self::Asc => String::from("asc"), + } + } +} + +impl Default for GameStatSortingMethod { + fn default() -> GameStatSortingMethod { + Self::Desc + } +} + + + + diff --git a/sdks/full/rust-cli/src/models/game_stat_summary.rs b/sdks/full/rust-cli/src/models/game_stat_summary.rs new file mode 100644 index 0000000000..1d1a267675 --- /dev/null +++ b/sdks/full/rust-cli/src/models/game_stat_summary.rs @@ -0,0 +1,33 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// GameStatSummary : A game statistic summary. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct GameStatSummary { + #[serde(rename = "game")] + pub game: Box, + #[serde(rename = "stats")] + pub stats: Vec, +} + +impl GameStatSummary { + /// A game statistic summary. + pub fn new(game: crate::models::GameHandle, stats: Vec) -> GameStatSummary { + GameStatSummary { + game: Box::new(game), + stats, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/game_summary.rs b/sdks/full/rust-cli/src/models/game_summary.rs new file mode 100644 index 0000000000..88d337f3db --- /dev/null +++ b/sdks/full/rust-cli/src/models/game_summary.rs @@ -0,0 +1,54 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct GameSummary { + /// The URL of this game's banner image. + #[serde(rename = "banner_url", skip_serializing_if = "Option::is_none")] + pub banner_url: Option, + #[serde(rename = "developer")] + pub developer: Box, + /// Represent a resource's readable display name. + #[serde(rename = "display_name")] + pub display_name: String, + #[serde(rename = "game_id")] + pub game_id: uuid::Uuid, + /// The URL of this game's logo image. + #[serde(rename = "logo_url", skip_serializing_if = "Option::is_none")] + pub logo_url: Option, + /// A human readable short identifier used to references resources. Different than a `uuid` because this is intended to be human readable. Different than `DisplayName` because this should not include special characters and be short. + #[serde(rename = "name_id")] + pub name_id: String, + /// Unsigned 32 bit integer. + #[serde(rename = "total_player_count")] + pub total_player_count: i32, + #[serde(rename = "url")] + pub url: String, +} + +impl GameSummary { + pub fn new(developer: crate::models::GroupHandle, display_name: String, game_id: uuid::Uuid, name_id: String, total_player_count: i32, url: String) -> GameSummary { + GameSummary { + banner_url: None, + developer: Box::new(developer), + display_name, + game_id, + logo_url: None, + name_id, + total_player_count, + url, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/geo_coord.rs b/sdks/full/rust-cli/src/models/geo_coord.rs new file mode 100644 index 0000000000..6ebb7e3346 --- /dev/null +++ b/sdks/full/rust-cli/src/models/geo_coord.rs @@ -0,0 +1,33 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// GeoCoord : Geographical coordinates for a location on Planet Earth. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct GeoCoord { + #[serde(rename = "latitude")] + pub latitude: f64, + #[serde(rename = "longitude")] + pub longitude: f64, +} + +impl GeoCoord { + /// Geographical coordinates for a location on Planet Earth. + pub fn new(latitude: f64, longitude: f64) -> GeoCoord { + GeoCoord { + latitude, + longitude, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/geo_distance.rs b/sdks/full/rust-cli/src/models/geo_distance.rs new file mode 100644 index 0000000000..19b1f82bf0 --- /dev/null +++ b/sdks/full/rust-cli/src/models/geo_distance.rs @@ -0,0 +1,33 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// GeoDistance : Distance available in multiple units. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct GeoDistance { + #[serde(rename = "kilometers")] + pub kilometers: f64, + #[serde(rename = "miles")] + pub miles: f64, +} + +impl GeoDistance { + /// Distance available in multiple units. + pub fn new(kilometers: f64, miles: f64) -> GeoDistance { + GeoDistance { + kilometers, + miles, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/global_event_notification.rs b/sdks/full/rust-cli/src/models/global_event_notification.rs new file mode 100644 index 0000000000..d0ff0d22ee --- /dev/null +++ b/sdks/full/rust-cli/src/models/global_event_notification.rs @@ -0,0 +1,37 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct GlobalEventNotification { + #[serde(rename = "description")] + pub description: String, + #[serde(rename = "thumbnail_url")] + pub thumbnail_url: String, + #[serde(rename = "title")] + pub title: String, + #[serde(rename = "url")] + pub url: String, +} + +impl GlobalEventNotification { + pub fn new(description: String, thumbnail_url: String, title: String, url: String) -> GlobalEventNotification { + GlobalEventNotification { + description, + thumbnail_url, + title, + url, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/group_banned_identity.rs b/sdks/full/rust-cli/src/models/group_banned_identity.rs new file mode 100644 index 0000000000..2e552da163 --- /dev/null +++ b/sdks/full/rust-cli/src/models/group_banned_identity.rs @@ -0,0 +1,34 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// GroupBannedIdentity : A banned identity. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct GroupBannedIdentity { + /// RFC3339 timestamp + #[serde(rename = "ban_ts")] + pub ban_ts: String, + #[serde(rename = "identity")] + pub identity: Box, +} + +impl GroupBannedIdentity { + /// A banned identity. + pub fn new(ban_ts: String, identity: crate::models::IdentityHandle) -> GroupBannedIdentity { + GroupBannedIdentity { + ban_ts, + identity: Box::new(identity), + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/group_consume_invite_response.rs b/sdks/full/rust-cli/src/models/group_consume_invite_response.rs new file mode 100644 index 0000000000..fe68dce2b4 --- /dev/null +++ b/sdks/full/rust-cli/src/models/group_consume_invite_response.rs @@ -0,0 +1,28 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct GroupConsumeInviteResponse { + #[serde(rename = "group_id", skip_serializing_if = "Option::is_none")] + pub group_id: Option, +} + +impl GroupConsumeInviteResponse { + pub fn new() -> GroupConsumeInviteResponse { + GroupConsumeInviteResponse { + group_id: None, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/group_create_invite_request.rs b/sdks/full/rust-cli/src/models/group_create_invite_request.rs new file mode 100644 index 0000000000..c4a59e94e5 --- /dev/null +++ b/sdks/full/rust-cli/src/models/group_create_invite_request.rs @@ -0,0 +1,33 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct GroupCreateInviteRequest { + /// How long until the group invite expires (in milliseconds). + #[serde(rename = "ttl", skip_serializing_if = "Option::is_none")] + pub ttl: Option, + /// How many times the group invite can be used. + #[serde(rename = "use_count", skip_serializing_if = "Option::is_none")] + pub use_count: Option, +} + +impl GroupCreateInviteRequest { + pub fn new() -> GroupCreateInviteRequest { + GroupCreateInviteRequest { + ttl: None, + use_count: None, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/group_create_invite_response.rs b/sdks/full/rust-cli/src/models/group_create_invite_response.rs new file mode 100644 index 0000000000..47edeb56b1 --- /dev/null +++ b/sdks/full/rust-cli/src/models/group_create_invite_response.rs @@ -0,0 +1,29 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct GroupCreateInviteResponse { + /// The code that will be passed to `rivet.api.group#ConsumeInvite` to join a group. + #[serde(rename = "code")] + pub code: String, +} + +impl GroupCreateInviteResponse { + pub fn new(code: String) -> GroupCreateInviteResponse { + GroupCreateInviteResponse { + code, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/group_create_request.rs b/sdks/full/rust-cli/src/models/group_create_request.rs new file mode 100644 index 0000000000..503c9ce897 --- /dev/null +++ b/sdks/full/rust-cli/src/models/group_create_request.rs @@ -0,0 +1,29 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct GroupCreateRequest { + /// Represent a resource's readable display name. + #[serde(rename = "display_name")] + pub display_name: String, +} + +impl GroupCreateRequest { + pub fn new(display_name: String) -> GroupCreateRequest { + GroupCreateRequest { + display_name, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/group_create_response.rs b/sdks/full/rust-cli/src/models/group_create_response.rs new file mode 100644 index 0000000000..f31960ece8 --- /dev/null +++ b/sdks/full/rust-cli/src/models/group_create_response.rs @@ -0,0 +1,28 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct GroupCreateResponse { + #[serde(rename = "group_id")] + pub group_id: uuid::Uuid, +} + +impl GroupCreateResponse { + pub fn new(group_id: uuid::Uuid) -> GroupCreateResponse { + GroupCreateResponse { + group_id, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/group_external_links.rs b/sdks/full/rust-cli/src/models/group_external_links.rs new file mode 100644 index 0000000000..b9e0f15885 --- /dev/null +++ b/sdks/full/rust-cli/src/models/group_external_links.rs @@ -0,0 +1,31 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// GroupExternalLinks : External links for this group. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct GroupExternalLinks { + /// A link to this group's profile page. + #[serde(rename = "profile")] + pub profile: String, +} + +impl GroupExternalLinks { + /// External links for this group. + pub fn new(profile: String) -> GroupExternalLinks { + GroupExternalLinks { + profile, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/group_get_bans_response.rs b/sdks/full/rust-cli/src/models/group_get_bans_response.rs new file mode 100644 index 0000000000..b2727d9fa0 --- /dev/null +++ b/sdks/full/rust-cli/src/models/group_get_bans_response.rs @@ -0,0 +1,36 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct GroupGetBansResponse { + /// The pagination anchor. + #[serde(rename = "anchor", skip_serializing_if = "Option::is_none")] + pub anchor: Option, + /// A list of banned group members. + #[serde(rename = "banned_identities")] + pub banned_identities: Vec, + #[serde(rename = "watch")] + pub watch: Box, +} + +impl GroupGetBansResponse { + pub fn new(banned_identities: Vec, watch: crate::models::WatchResponse) -> GroupGetBansResponse { + GroupGetBansResponse { + anchor: None, + banned_identities, + watch: Box::new(watch), + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/group_get_invite_response.rs b/sdks/full/rust-cli/src/models/group_get_invite_response.rs new file mode 100644 index 0000000000..caead9d125 --- /dev/null +++ b/sdks/full/rust-cli/src/models/group_get_invite_response.rs @@ -0,0 +1,28 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct GroupGetInviteResponse { + #[serde(rename = "group")] + pub group: Box, +} + +impl GroupGetInviteResponse { + pub fn new(group: crate::models::GroupHandle) -> GroupGetInviteResponse { + GroupGetInviteResponse { + group: Box::new(group), + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/group_get_join_requests_response.rs b/sdks/full/rust-cli/src/models/group_get_join_requests_response.rs new file mode 100644 index 0000000000..62988ed18c --- /dev/null +++ b/sdks/full/rust-cli/src/models/group_get_join_requests_response.rs @@ -0,0 +1,36 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct GroupGetJoinRequestsResponse { + /// The pagination anchor. + #[serde(rename = "anchor", skip_serializing_if = "Option::is_none")] + pub anchor: Option, + /// A list of group join requests. + #[serde(rename = "join_requests")] + pub join_requests: Vec, + #[serde(rename = "watch")] + pub watch: Box, +} + +impl GroupGetJoinRequestsResponse { + pub fn new(join_requests: Vec, watch: crate::models::WatchResponse) -> GroupGetJoinRequestsResponse { + GroupGetJoinRequestsResponse { + anchor: None, + join_requests, + watch: Box::new(watch), + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/group_get_members_response.rs b/sdks/full/rust-cli/src/models/group_get_members_response.rs new file mode 100644 index 0000000000..7b4917659c --- /dev/null +++ b/sdks/full/rust-cli/src/models/group_get_members_response.rs @@ -0,0 +1,36 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct GroupGetMembersResponse { + /// The pagination anchor. + #[serde(rename = "anchor", skip_serializing_if = "Option::is_none")] + pub anchor: Option, + /// A list of group members. + #[serde(rename = "members")] + pub members: Vec, + #[serde(rename = "watch")] + pub watch: Box, +} + +impl GroupGetMembersResponse { + pub fn new(members: Vec, watch: crate::models::WatchResponse) -> GroupGetMembersResponse { + GroupGetMembersResponse { + anchor: None, + members, + watch: Box::new(watch), + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/group_get_profile_response.rs b/sdks/full/rust-cli/src/models/group_get_profile_response.rs new file mode 100644 index 0000000000..d89ac68b35 --- /dev/null +++ b/sdks/full/rust-cli/src/models/group_get_profile_response.rs @@ -0,0 +1,31 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct GroupGetProfileResponse { + #[serde(rename = "group")] + pub group: Box, + #[serde(rename = "watch")] + pub watch: Box, +} + +impl GroupGetProfileResponse { + pub fn new(group: crate::models::GroupProfile, watch: crate::models::WatchResponse) -> GroupGetProfileResponse { + GroupGetProfileResponse { + group: Box::new(group), + watch: Box::new(watch), + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/group_get_summary_response.rs b/sdks/full/rust-cli/src/models/group_get_summary_response.rs new file mode 100644 index 0000000000..cc55fd9905 --- /dev/null +++ b/sdks/full/rust-cli/src/models/group_get_summary_response.rs @@ -0,0 +1,28 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct GroupGetSummaryResponse { + #[serde(rename = "group")] + pub group: Box, +} + +impl GroupGetSummaryResponse { + pub fn new(group: crate::models::GroupSummary) -> GroupGetSummaryResponse { + GroupGetSummaryResponse { + group: Box::new(group), + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/group_handle.rs b/sdks/full/rust-cli/src/models/group_handle.rs new file mode 100644 index 0000000000..6aed5a1bfa --- /dev/null +++ b/sdks/full/rust-cli/src/models/group_handle.rs @@ -0,0 +1,45 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// GroupHandle : A group handle. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct GroupHandle { + /// The URL of this group's avatar image + #[serde(rename = "avatar_url", skip_serializing_if = "Option::is_none")] + pub avatar_url: Option, + /// Represent a resource's readable display name. + #[serde(rename = "display_name")] + pub display_name: String, + #[serde(rename = "external")] + pub external: Box, + #[serde(rename = "group_id")] + pub group_id: uuid::Uuid, + /// Whether or not this group is a developer group. + #[serde(rename = "is_developer", skip_serializing_if = "Option::is_none")] + pub is_developer: Option, +} + +impl GroupHandle { + /// A group handle. + pub fn new(display_name: String, external: crate::models::GroupExternalLinks, group_id: uuid::Uuid) -> GroupHandle { + GroupHandle { + avatar_url: None, + display_name, + external: Box::new(external), + group_id, + is_developer: None, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/group_join_request.rs b/sdks/full/rust-cli/src/models/group_join_request.rs new file mode 100644 index 0000000000..64edb19238 --- /dev/null +++ b/sdks/full/rust-cli/src/models/group_join_request.rs @@ -0,0 +1,34 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// GroupJoinRequest : A group join request. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct GroupJoinRequest { + #[serde(rename = "identity")] + pub identity: Box, + /// RFC3339 timestamp + #[serde(rename = "ts")] + pub ts: String, +} + +impl GroupJoinRequest { + /// A group join request. + pub fn new(identity: crate::models::IdentityHandle, ts: String) -> GroupJoinRequest { + GroupJoinRequest { + identity: Box::new(identity), + ts, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/group_list_suggested_response.rs b/sdks/full/rust-cli/src/models/group_list_suggested_response.rs new file mode 100644 index 0000000000..2fe41ffa8e --- /dev/null +++ b/sdks/full/rust-cli/src/models/group_list_suggested_response.rs @@ -0,0 +1,32 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct GroupListSuggestedResponse { + /// A list of group summaries. + #[serde(rename = "groups")] + pub groups: Vec, + #[serde(rename = "watch")] + pub watch: Box, +} + +impl GroupListSuggestedResponse { + pub fn new(groups: Vec, watch: crate::models::WatchResponse) -> GroupListSuggestedResponse { + GroupListSuggestedResponse { + groups, + watch: Box::new(watch), + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/group_member.rs b/sdks/full/rust-cli/src/models/group_member.rs new file mode 100644 index 0000000000..aecd0ba064 --- /dev/null +++ b/sdks/full/rust-cli/src/models/group_member.rs @@ -0,0 +1,30 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// GroupMember : A group member. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct GroupMember { + #[serde(rename = "identity")] + pub identity: Box, +} + +impl GroupMember { + /// A group member. + pub fn new(identity: crate::models::IdentityHandle) -> GroupMember { + GroupMember { + identity: Box::new(identity), + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/group_prepare_avatar_upload_request.rs b/sdks/full/rust-cli/src/models/group_prepare_avatar_upload_request.rs new file mode 100644 index 0000000000..e07a49db68 --- /dev/null +++ b/sdks/full/rust-cli/src/models/group_prepare_avatar_upload_request.rs @@ -0,0 +1,37 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct GroupPrepareAvatarUploadRequest { + /// Unsigned 64 bit integer. + #[serde(rename = "content_length")] + pub content_length: i64, + /// The MIME type of the group avatar. + #[serde(rename = "mime", skip_serializing_if = "Option::is_none")] + pub mime: Option, + /// The path/filename of the group avatar. + #[serde(rename = "path")] + pub path: String, +} + +impl GroupPrepareAvatarUploadRequest { + pub fn new(content_length: i64, path: String) -> GroupPrepareAvatarUploadRequest { + GroupPrepareAvatarUploadRequest { + content_length, + mime: None, + path, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/group_prepare_avatar_upload_response.rs b/sdks/full/rust-cli/src/models/group_prepare_avatar_upload_response.rs new file mode 100644 index 0000000000..4917e80c8d --- /dev/null +++ b/sdks/full/rust-cli/src/models/group_prepare_avatar_upload_response.rs @@ -0,0 +1,31 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct GroupPrepareAvatarUploadResponse { + #[serde(rename = "presigned_request")] + pub presigned_request: Box, + #[serde(rename = "upload_id")] + pub upload_id: uuid::Uuid, +} + +impl GroupPrepareAvatarUploadResponse { + pub fn new(presigned_request: crate::models::UploadPresignedRequest, upload_id: uuid::Uuid) -> GroupPrepareAvatarUploadResponse { + GroupPrepareAvatarUploadResponse { + presigned_request: Box::new(presigned_request), + upload_id, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/group_profile.rs b/sdks/full/rust-cli/src/models/group_profile.rs new file mode 100644 index 0000000000..c7ac6c1011 --- /dev/null +++ b/sdks/full/rust-cli/src/models/group_profile.rs @@ -0,0 +1,75 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// GroupProfile : A list of group profiles. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct GroupProfile { + /// The URL of this group's avatar image. + #[serde(rename = "avatar_url", skip_serializing_if = "Option::is_none")] + pub avatar_url: Option, + /// Detailed information about a profile. + #[serde(rename = "bio")] + pub bio: String, + /// Represent a resource's readable display name. + #[serde(rename = "display_name")] + pub display_name: String, + #[serde(rename = "external")] + pub external: Box, + #[serde(rename = "group_id")] + pub group_id: uuid::Uuid, + /// Whether or not the current identity is a member of this group. + #[serde(rename = "is_current_identity_member", skip_serializing_if = "Option::is_none")] + pub is_current_identity_member: Option, + /// Whether or not the current identity is currently requesting to join this group. + #[serde(rename = "is_current_identity_requesting_join", skip_serializing_if = "Option::is_none")] + pub is_current_identity_requesting_join: Option, + /// Whether or not this group is a developer. + #[serde(rename = "is_developer", skip_serializing_if = "Option::is_none")] + pub is_developer: Option, + /// A list of group join requests. + #[serde(rename = "join_requests")] + pub join_requests: Vec, + /// Unsigned 32 bit integer. + #[serde(rename = "member_count", skip_serializing_if = "Option::is_none")] + pub member_count: Option, + /// A list of group members. + #[serde(rename = "members")] + pub members: Vec, + #[serde(rename = "owner_identity_id")] + pub owner_identity_id: uuid::Uuid, + #[serde(rename = "publicity")] + pub publicity: crate::models::GroupPublicity, +} + +impl GroupProfile { + /// A list of group profiles. + pub fn new(bio: String, display_name: String, external: crate::models::GroupExternalLinks, group_id: uuid::Uuid, join_requests: Vec, members: Vec, owner_identity_id: uuid::Uuid, publicity: crate::models::GroupPublicity) -> GroupProfile { + GroupProfile { + avatar_url: None, + bio, + display_name, + external: Box::new(external), + group_id, + is_current_identity_member: None, + is_current_identity_requesting_join: None, + is_developer: None, + join_requests, + member_count: None, + members, + owner_identity_id, + publicity, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/group_publicity.rs b/sdks/full/rust-cli/src/models/group_publicity.rs new file mode 100644 index 0000000000..e8d758d80b --- /dev/null +++ b/sdks/full/rust-cli/src/models/group_publicity.rs @@ -0,0 +1,40 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// GroupPublicity : The current publicity value for the given group. + +/// The current publicity value for the given group. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum GroupPublicity { + #[serde(rename = "open")] + Open, + #[serde(rename = "closed")] + Closed, + +} + +impl ToString for GroupPublicity { + fn to_string(&self) -> String { + match self { + Self::Open => String::from("open"), + Self::Closed => String::from("closed"), + } + } +} + +impl Default for GroupPublicity { + fn default() -> GroupPublicity { + Self::Open + } +} + + + + diff --git a/sdks/full/rust-cli/src/models/group_resolve_join_request_request.rs b/sdks/full/rust-cli/src/models/group_resolve_join_request_request.rs new file mode 100644 index 0000000000..32c1e7fef7 --- /dev/null +++ b/sdks/full/rust-cli/src/models/group_resolve_join_request_request.rs @@ -0,0 +1,28 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct GroupResolveJoinRequestRequest { + #[serde(rename = "resolution", skip_serializing_if = "Option::is_none")] + pub resolution: Option, +} + +impl GroupResolveJoinRequestRequest { + pub fn new() -> GroupResolveJoinRequestRequest { + GroupResolveJoinRequestRequest { + resolution: None, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/group_search_response.rs b/sdks/full/rust-cli/src/models/group_search_response.rs new file mode 100644 index 0000000000..15ddb31984 --- /dev/null +++ b/sdks/full/rust-cli/src/models/group_search_response.rs @@ -0,0 +1,32 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct GroupSearchResponse { + #[serde(rename = "anchor", skip_serializing_if = "Option::is_none")] + pub anchor: Option, + /// A list of group handles. + #[serde(rename = "groups")] + pub groups: Vec, +} + +impl GroupSearchResponse { + pub fn new(groups: Vec) -> GroupSearchResponse { + GroupSearchResponse { + anchor: None, + groups, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/group_summary.rs b/sdks/full/rust-cli/src/models/group_summary.rs new file mode 100644 index 0000000000..85ae0cfede --- /dev/null +++ b/sdks/full/rust-cli/src/models/group_summary.rs @@ -0,0 +1,60 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct GroupSummary { + /// The URL of this group's avatar image. + #[serde(rename = "avatar_url", skip_serializing_if = "Option::is_none")] + pub avatar_url: Option, + /// Follows regex ^(?:[^\\n\\r]+\\n?|\\n){1,5}$ + #[serde(rename = "bio")] + pub bio: String, + /// Represent a resource's readable display name. + #[serde(rename = "display_name")] + pub display_name: String, + #[serde(rename = "external")] + pub external: Box, + #[serde(rename = "group_id")] + pub group_id: uuid::Uuid, + /// Whether or not the current identity is a member of this group. + #[serde(rename = "is_current_identity_member")] + pub is_current_identity_member: bool, + /// **Deprecated** Whether or not this group is a developer. + #[serde(rename = "is_developer")] + pub is_developer: bool, + #[serde(rename = "member_count")] + pub member_count: i32, + #[serde(rename = "owner_identity_id")] + pub owner_identity_id: uuid::Uuid, + #[serde(rename = "publicity")] + pub publicity: crate::models::GroupPublicity, +} + +impl GroupSummary { + pub fn new(bio: String, display_name: String, external: crate::models::GroupExternalLinks, group_id: uuid::Uuid, is_current_identity_member: bool, is_developer: bool, member_count: i32, owner_identity_id: uuid::Uuid, publicity: crate::models::GroupPublicity) -> GroupSummary { + GroupSummary { + avatar_url: None, + bio, + display_name, + external: Box::new(external), + group_id, + is_current_identity_member, + is_developer, + member_count, + owner_identity_id, + publicity, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/group_transfer_ownership_request.rs b/sdks/full/rust-cli/src/models/group_transfer_ownership_request.rs new file mode 100644 index 0000000000..39cbd20782 --- /dev/null +++ b/sdks/full/rust-cli/src/models/group_transfer_ownership_request.rs @@ -0,0 +1,29 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct GroupTransferOwnershipRequest { + /// Identity to transfer the group to. Must be a member of the group. + #[serde(rename = "new_owner_identity_id")] + pub new_owner_identity_id: String, +} + +impl GroupTransferOwnershipRequest { + pub fn new(new_owner_identity_id: String) -> GroupTransferOwnershipRequest { + GroupTransferOwnershipRequest { + new_owner_identity_id, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/group_update_profile_request.rs b/sdks/full/rust-cli/src/models/group_update_profile_request.rs new file mode 100644 index 0000000000..e8e7672df5 --- /dev/null +++ b/sdks/full/rust-cli/src/models/group_update_profile_request.rs @@ -0,0 +1,36 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct GroupUpdateProfileRequest { + /// Detailed information about a profile. + #[serde(rename = "bio", skip_serializing_if = "Option::is_none")] + pub bio: Option, + /// Represent a resource's readable display name. + #[serde(rename = "display_name", skip_serializing_if = "Option::is_none")] + pub display_name: Option, + #[serde(rename = "publicity", skip_serializing_if = "Option::is_none")] + pub publicity: Option, +} + +impl GroupUpdateProfileRequest { + pub fn new() -> GroupUpdateProfileRequest { + GroupUpdateProfileRequest { + bio: None, + display_name: None, + publicity: None, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/group_validate_profile_request.rs b/sdks/full/rust-cli/src/models/group_validate_profile_request.rs new file mode 100644 index 0000000000..501acb5beb --- /dev/null +++ b/sdks/full/rust-cli/src/models/group_validate_profile_request.rs @@ -0,0 +1,36 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct GroupValidateProfileRequest { + /// Represent a resource's readable display name. + #[serde(rename = "bio", skip_serializing_if = "Option::is_none")] + pub bio: Option, + /// Represent a resource's readable display name. + #[serde(rename = "display_name", skip_serializing_if = "Option::is_none")] + pub display_name: Option, + #[serde(rename = "publicity", skip_serializing_if = "Option::is_none")] + pub publicity: Option, +} + +impl GroupValidateProfileRequest { + pub fn new() -> GroupValidateProfileRequest { + GroupValidateProfileRequest { + bio: None, + display_name: None, + publicity: None, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/group_validate_profile_response.rs b/sdks/full/rust-cli/src/models/group_validate_profile_response.rs new file mode 100644 index 0000000000..decad7e290 --- /dev/null +++ b/sdks/full/rust-cli/src/models/group_validate_profile_response.rs @@ -0,0 +1,29 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct GroupValidateProfileResponse { + /// A list of validation errors. + #[serde(rename = "errors")] + pub errors: Vec, +} + +impl GroupValidateProfileResponse { + pub fn new(errors: Vec) -> GroupValidateProfileResponse { + GroupValidateProfileResponse { + errors, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/identity_access_token_linked_account.rs b/sdks/full/rust-cli/src/models/identity_access_token_linked_account.rs new file mode 100644 index 0000000000..3b4769fe75 --- /dev/null +++ b/sdks/full/rust-cli/src/models/identity_access_token_linked_account.rs @@ -0,0 +1,30 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// IdentityAccessTokenLinkedAccount : An identity's access token identity. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct IdentityAccessTokenLinkedAccount { + #[serde(rename = "name")] + pub name: String, +} + +impl IdentityAccessTokenLinkedAccount { + /// An identity's access token identity. + pub fn new(name: String) -> IdentityAccessTokenLinkedAccount { + IdentityAccessTokenLinkedAccount { + name, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/identity_cancel_game_link_request.rs b/sdks/full/rust-cli/src/models/identity_cancel_game_link_request.rs new file mode 100644 index 0000000000..31ed88eb54 --- /dev/null +++ b/sdks/full/rust-cli/src/models/identity_cancel_game_link_request.rs @@ -0,0 +1,29 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct IdentityCancelGameLinkRequest { + /// Documentation at https://jwt.io/ + #[serde(rename = "identity_link_token")] + pub identity_link_token: String, +} + +impl IdentityCancelGameLinkRequest { + pub fn new(identity_link_token: String) -> IdentityCancelGameLinkRequest { + IdentityCancelGameLinkRequest { + identity_link_token, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/identity_complete_game_link_request.rs b/sdks/full/rust-cli/src/models/identity_complete_game_link_request.rs new file mode 100644 index 0000000000..5b9e67b24a --- /dev/null +++ b/sdks/full/rust-cli/src/models/identity_complete_game_link_request.rs @@ -0,0 +1,29 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct IdentityCompleteGameLinkRequest { + /// Documentation at https://jwt.io/ + #[serde(rename = "identity_link_token")] + pub identity_link_token: String, +} + +impl IdentityCompleteGameLinkRequest { + pub fn new(identity_link_token: String) -> IdentityCompleteGameLinkRequest { + IdentityCompleteGameLinkRequest { + identity_link_token, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/identity_dev_state.rs b/sdks/full/rust-cli/src/models/identity_dev_state.rs new file mode 100644 index 0000000000..bfe9d673a4 --- /dev/null +++ b/sdks/full/rust-cli/src/models/identity_dev_state.rs @@ -0,0 +1,43 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// IdentityDevState : The state of the given identity's developer status. + +/// The state of the given identity's developer status. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum IdentityDevState { + #[serde(rename = "inactive")] + Inactive, + #[serde(rename = "pending")] + Pending, + #[serde(rename = "accepted")] + Accepted, + +} + +impl ToString for IdentityDevState { + fn to_string(&self) -> String { + match self { + Self::Inactive => String::from("inactive"), + Self::Pending => String::from("pending"), + Self::Accepted => String::from("accepted"), + } + } +} + +impl Default for IdentityDevState { + fn default() -> IdentityDevState { + Self::Inactive + } +} + + + + diff --git a/sdks/full/rust-cli/src/models/identity_email_linked_account.rs b/sdks/full/rust-cli/src/models/identity_email_linked_account.rs new file mode 100644 index 0000000000..6c458bb42f --- /dev/null +++ b/sdks/full/rust-cli/src/models/identity_email_linked_account.rs @@ -0,0 +1,31 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// IdentityEmailLinkedAccount : An identity's linked email. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct IdentityEmailLinkedAccount { + /// A valid email address + #[serde(rename = "email")] + pub email: String, +} + +impl IdentityEmailLinkedAccount { + /// An identity's linked email. + pub fn new(email: String) -> IdentityEmailLinkedAccount { + IdentityEmailLinkedAccount { + email, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/identity_external_links.rs b/sdks/full/rust-cli/src/models/identity_external_links.rs new file mode 100644 index 0000000000..dddc3a0917 --- /dev/null +++ b/sdks/full/rust-cli/src/models/identity_external_links.rs @@ -0,0 +1,35 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// IdentityExternalLinks : External links for an identity. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct IdentityExternalLinks { + /// A link to this identity's profile page. + #[serde(rename = "profile")] + pub profile: String, + /// A link to the Rivet settings page. + #[serde(rename = "settings", skip_serializing_if = "Option::is_none")] + pub settings: Option, +} + +impl IdentityExternalLinks { + /// External links for an identity. + pub fn new(profile: String) -> IdentityExternalLinks { + IdentityExternalLinks { + profile, + settings: None, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/identity_game_activity.rs b/sdks/full/rust-cli/src/models/identity_game_activity.rs new file mode 100644 index 0000000000..e4be94ffcb --- /dev/null +++ b/sdks/full/rust-cli/src/models/identity_game_activity.rs @@ -0,0 +1,42 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// IdentityGameActivity : The game an identity is currently participating in. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct IdentityGameActivity { + #[serde(rename = "game")] + pub game: Box, + /// A short activity message about the current game activity. + #[serde(rename = "message")] + pub message: String, + /// JSON data seen only by the given identity and their mutual followers. + #[serde(rename = "mutual_metadata", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub mutual_metadata: Option>, + /// JSON data seen by anyone. + #[serde(rename = "public_metadata", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub public_metadata: Option>, +} + +impl IdentityGameActivity { + /// The game an identity is currently participating in. + pub fn new(game: crate::models::GameHandle, message: String) -> IdentityGameActivity { + IdentityGameActivity { + game: Box::new(game), + message, + mutual_metadata: None, + public_metadata: None, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/identity_game_link_status.rs b/sdks/full/rust-cli/src/models/identity_game_link_status.rs new file mode 100644 index 0000000000..8fc24f518e --- /dev/null +++ b/sdks/full/rust-cli/src/models/identity_game_link_status.rs @@ -0,0 +1,42 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum IdentityGameLinkStatus { + #[serde(rename = "incomplete")] + Incomplete, + #[serde(rename = "complete")] + Complete, + #[serde(rename = "cancelled")] + Cancelled, + +} + +impl ToString for IdentityGameLinkStatus { + fn to_string(&self) -> String { + match self { + Self::Incomplete => String::from("incomplete"), + Self::Complete => String::from("complete"), + Self::Cancelled => String::from("cancelled"), + } + } +} + +impl Default for IdentityGameLinkStatus { + fn default() -> IdentityGameLinkStatus { + Self::Incomplete + } +} + + + + diff --git a/sdks/full/rust-cli/src/models/identity_get_game_link_new_identity.rs b/sdks/full/rust-cli/src/models/identity_get_game_link_new_identity.rs new file mode 100644 index 0000000000..7b61ef57b3 --- /dev/null +++ b/sdks/full/rust-cli/src/models/identity_get_game_link_new_identity.rs @@ -0,0 +1,36 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct IdentityGetGameLinkNewIdentity { + #[serde(rename = "identity")] + pub identity: Box, + /// Documentation at https://jwt.io/ + #[serde(rename = "identity_token")] + pub identity_token: String, + /// RFC3339 timestamp + #[serde(rename = "identity_token_expire_ts")] + pub identity_token_expire_ts: String, +} + +impl IdentityGetGameLinkNewIdentity { + pub fn new(identity: crate::models::IdentityProfile, identity_token: String, identity_token_expire_ts: String) -> IdentityGetGameLinkNewIdentity { + IdentityGetGameLinkNewIdentity { + identity: Box::new(identity), + identity_token, + identity_token_expire_ts, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/identity_get_game_link_response.rs b/sdks/full/rust-cli/src/models/identity_get_game_link_response.rs new file mode 100644 index 0000000000..fc93492c87 --- /dev/null +++ b/sdks/full/rust-cli/src/models/identity_get_game_link_response.rs @@ -0,0 +1,40 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct IdentityGetGameLinkResponse { + #[serde(rename = "current_identity")] + pub current_identity: Box, + #[serde(rename = "game")] + pub game: Box, + #[serde(rename = "new_identity", skip_serializing_if = "Option::is_none")] + pub new_identity: Option>, + #[serde(rename = "status")] + pub status: crate::models::IdentityGameLinkStatus, + #[serde(rename = "watch")] + pub watch: Box, +} + +impl IdentityGetGameLinkResponse { + pub fn new(current_identity: crate::models::IdentityHandle, game: crate::models::GameHandle, status: crate::models::IdentityGameLinkStatus, watch: crate::models::WatchResponse) -> IdentityGetGameLinkResponse { + IdentityGetGameLinkResponse { + current_identity: Box::new(current_identity), + game: Box::new(game), + new_identity: None, + status, + watch: Box::new(watch), + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/identity_get_handles_response.rs b/sdks/full/rust-cli/src/models/identity_get_handles_response.rs new file mode 100644 index 0000000000..ddbb9f7a0a --- /dev/null +++ b/sdks/full/rust-cli/src/models/identity_get_handles_response.rs @@ -0,0 +1,31 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct IdentityGetHandlesResponse { + #[serde(rename = "identities")] + pub identities: Vec, + #[serde(rename = "watch")] + pub watch: Box, +} + +impl IdentityGetHandlesResponse { + pub fn new(identities: Vec, watch: crate::models::WatchResponse) -> IdentityGetHandlesResponse { + IdentityGetHandlesResponse { + identities, + watch: Box::new(watch), + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/identity_get_profile_response.rs b/sdks/full/rust-cli/src/models/identity_get_profile_response.rs new file mode 100644 index 0000000000..a1e34af613 --- /dev/null +++ b/sdks/full/rust-cli/src/models/identity_get_profile_response.rs @@ -0,0 +1,31 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct IdentityGetProfileResponse { + #[serde(rename = "identity")] + pub identity: Box, + #[serde(rename = "watch")] + pub watch: Box, +} + +impl IdentityGetProfileResponse { + pub fn new(identity: crate::models::IdentityProfile, watch: crate::models::WatchResponse) -> IdentityGetProfileResponse { + IdentityGetProfileResponse { + identity: Box::new(identity), + watch: Box::new(watch), + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/identity_get_summaries_response.rs b/sdks/full/rust-cli/src/models/identity_get_summaries_response.rs new file mode 100644 index 0000000000..bf83a8b651 --- /dev/null +++ b/sdks/full/rust-cli/src/models/identity_get_summaries_response.rs @@ -0,0 +1,31 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct IdentityGetSummariesResponse { + #[serde(rename = "identities")] + pub identities: Vec, + #[serde(rename = "watch")] + pub watch: Box, +} + +impl IdentityGetSummariesResponse { + pub fn new(identities: Vec, watch: crate::models::WatchResponse) -> IdentityGetSummariesResponse { + IdentityGetSummariesResponse { + identities, + watch: Box::new(watch), + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/identity_global_event.rs b/sdks/full/rust-cli/src/models/identity_global_event.rs new file mode 100644 index 0000000000..e3533a36a9 --- /dev/null +++ b/sdks/full/rust-cli/src/models/identity_global_event.rs @@ -0,0 +1,37 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// IdentityGlobalEvent : An event relevant to the current identity. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct IdentityGlobalEvent { + #[serde(rename = "kind")] + pub kind: Box, + #[serde(rename = "notification", skip_serializing_if = "Option::is_none")] + pub notification: Option>, + /// RFC3339 timestamp + #[serde(rename = "ts")] + pub ts: String, +} + +impl IdentityGlobalEvent { + /// An event relevant to the current identity. + pub fn new(kind: crate::models::IdentityGlobalEventKind, ts: String) -> IdentityGlobalEvent { + IdentityGlobalEvent { + kind: Box::new(kind), + notification: None, + ts, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/identity_global_event_identity_update.rs b/sdks/full/rust-cli/src/models/identity_global_event_identity_update.rs new file mode 100644 index 0000000000..5ccdc16e9f --- /dev/null +++ b/sdks/full/rust-cli/src/models/identity_global_event_identity_update.rs @@ -0,0 +1,28 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct IdentityGlobalEventIdentityUpdate { + #[serde(rename = "identity")] + pub identity: Box, +} + +impl IdentityGlobalEventIdentityUpdate { + pub fn new(identity: crate::models::IdentityProfile) -> IdentityGlobalEventIdentityUpdate { + IdentityGlobalEventIdentityUpdate { + identity: Box::new(identity), + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/identity_global_event_kind.rs b/sdks/full/rust-cli/src/models/identity_global_event_kind.rs new file mode 100644 index 0000000000..ccc10bae99 --- /dev/null +++ b/sdks/full/rust-cli/src/models/identity_global_event_kind.rs @@ -0,0 +1,31 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct IdentityGlobalEventKind { + #[serde(rename = "identity_update", skip_serializing_if = "Option::is_none")] + pub identity_update: Option>, + #[serde(rename = "matchmaker_lobby_join", skip_serializing_if = "Option::is_none")] + pub matchmaker_lobby_join: Option>, +} + +impl IdentityGlobalEventKind { + pub fn new() -> IdentityGlobalEventKind { + IdentityGlobalEventKind { + identity_update: None, + matchmaker_lobby_join: None, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/identity_global_event_matchmaker_lobby_join.rs b/sdks/full/rust-cli/src/models/identity_global_event_matchmaker_lobby_join.rs new file mode 100644 index 0000000000..ecc1053927 --- /dev/null +++ b/sdks/full/rust-cli/src/models/identity_global_event_matchmaker_lobby_join.rs @@ -0,0 +1,34 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct IdentityGlobalEventMatchmakerLobbyJoin { + #[serde(rename = "lobby")] + pub lobby: Box, + #[serde(rename = "player")] + pub player: Box, + #[serde(rename = "ports")] + pub ports: ::std::collections::HashMap, +} + +impl IdentityGlobalEventMatchmakerLobbyJoin { + pub fn new(lobby: crate::models::MatchmakerJoinLobby, player: crate::models::MatchmakerJoinPlayer, ports: ::std::collections::HashMap) -> IdentityGlobalEventMatchmakerLobbyJoin { + IdentityGlobalEventMatchmakerLobbyJoin { + lobby: Box::new(lobby), + player: Box::new(player), + ports, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/identity_global_event_notification.rs b/sdks/full/rust-cli/src/models/identity_global_event_notification.rs new file mode 100644 index 0000000000..8472601185 --- /dev/null +++ b/sdks/full/rust-cli/src/models/identity_global_event_notification.rs @@ -0,0 +1,41 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// IdentityGlobalEventNotification : Notifications represent information that should be presented to the user immediately. At the moment, only chat message events have associated notifications. # Display Notifications should be displayed in an unobtrusive manner throughout the entire game. Notifications should disappear after a few seconds if not interacted with. # Interactions If your platform supports it, notifications should be able to be clicked or tapped in order to open the relevant context for the event. For a simple implementation of notification interactions, open `url` in a web browser to present the relevant context. For example, a chat message notification will open the thread the chat message was sent in. For advanced implementations that implement a custom chat UI, use `GlobalEvent.kind` to determine what action to take when the notification is interacted with. For example, if the global event kind is `GlobalEventChatMessage`, then open the chat UI for the given thread. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct IdentityGlobalEventNotification { + #[serde(rename = "description")] + pub description: String, + /// URL to an image thumbnail that should be shown for this notification. + #[serde(rename = "thumbnail_url")] + pub thumbnail_url: String, + #[serde(rename = "title")] + pub title: String, + /// Rivet Hub URL that holds the relevant context for this notification. + #[serde(rename = "url")] + pub url: String, +} + +impl IdentityGlobalEventNotification { + /// Notifications represent information that should be presented to the user immediately. At the moment, only chat message events have associated notifications. # Display Notifications should be displayed in an unobtrusive manner throughout the entire game. Notifications should disappear after a few seconds if not interacted with. # Interactions If your platform supports it, notifications should be able to be clicked or tapped in order to open the relevant context for the event. For a simple implementation of notification interactions, open `url` in a web browser to present the relevant context. For example, a chat message notification will open the thread the chat message was sent in. For advanced implementations that implement a custom chat UI, use `GlobalEvent.kind` to determine what action to take when the notification is interacted with. For example, if the global event kind is `GlobalEventChatMessage`, then open the chat UI for the given thread. + pub fn new(description: String, thumbnail_url: String, title: String, url: String) -> IdentityGlobalEventNotification { + IdentityGlobalEventNotification { + description, + thumbnail_url, + title, + url, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/identity_group.rs b/sdks/full/rust-cli/src/models/identity_group.rs new file mode 100644 index 0000000000..a280ad6ad2 --- /dev/null +++ b/sdks/full/rust-cli/src/models/identity_group.rs @@ -0,0 +1,30 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// IdentityGroup : A group that the given identity. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct IdentityGroup { + #[serde(rename = "group")] + pub group: Box, +} + +impl IdentityGroup { + /// A group that the given identity. + pub fn new(group: crate::models::GroupHandle) -> IdentityGroup { + IdentityGroup { + group: Box::new(group), + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/identity_handle.rs b/sdks/full/rust-cli/src/models/identity_handle.rs new file mode 100644 index 0000000000..3fa21c3a42 --- /dev/null +++ b/sdks/full/rust-cli/src/models/identity_handle.rs @@ -0,0 +1,51 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// IdentityHandle : An identity handle. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct IdentityHandle { + #[serde(rename = "account_number")] + pub account_number: i32, + /// The URL of this identity's avatar image. + #[serde(rename = "avatar_url")] + pub avatar_url: String, + /// Represent a resource's readable display name. + #[serde(rename = "display_name")] + pub display_name: String, + #[serde(rename = "external")] + pub external: Box, + #[serde(rename = "identity_id")] + pub identity_id: uuid::Uuid, + /// Whether or not this identity is registered with a linked account. + #[serde(rename = "is_registered")] + pub is_registered: bool, + #[serde(rename = "presence", skip_serializing_if = "Option::is_none")] + pub presence: Option>, +} + +impl IdentityHandle { + /// An identity handle. + pub fn new(account_number: i32, avatar_url: String, display_name: String, external: crate::models::IdentityExternalLinks, identity_id: uuid::Uuid, is_registered: bool) -> IdentityHandle { + IdentityHandle { + account_number, + avatar_url, + display_name, + external: Box::new(external), + identity_id, + is_registered, + presence: None, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/identity_linked_account.rs b/sdks/full/rust-cli/src/models/identity_linked_account.rs new file mode 100644 index 0000000000..3700185d94 --- /dev/null +++ b/sdks/full/rust-cli/src/models/identity_linked_account.rs @@ -0,0 +1,33 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// IdentityLinkedAccount : A union representing an identity's linked accounts. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct IdentityLinkedAccount { + #[serde(rename = "access_token", skip_serializing_if = "Option::is_none")] + pub access_token: Option>, + #[serde(rename = "email", skip_serializing_if = "Option::is_none")] + pub email: Option>, +} + +impl IdentityLinkedAccount { + /// A union representing an identity's linked accounts. + pub fn new() -> IdentityLinkedAccount { + IdentityLinkedAccount { + access_token: None, + email: None, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/identity_list_activities_response.rs b/sdks/full/rust-cli/src/models/identity_list_activities_response.rs new file mode 100644 index 0000000000..373cbb29e5 --- /dev/null +++ b/sdks/full/rust-cli/src/models/identity_list_activities_response.rs @@ -0,0 +1,40 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct IdentityListActivitiesResponse { + #[serde(rename = "games")] + pub games: Vec, + #[serde(rename = "identities")] + pub identities: Vec, + #[serde(rename = "suggested_groups")] + pub suggested_groups: Vec, + #[serde(rename = "suggested_players")] + pub suggested_players: Vec, + #[serde(rename = "watch")] + pub watch: Box, +} + +impl IdentityListActivitiesResponse { + pub fn new(games: Vec, identities: Vec, suggested_groups: Vec, suggested_players: Vec, watch: crate::models::WatchResponse) -> IdentityListActivitiesResponse { + IdentityListActivitiesResponse { + games, + identities, + suggested_groups, + suggested_players, + watch: Box::new(watch), + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/identity_list_followers_response.rs b/sdks/full/rust-cli/src/models/identity_list_followers_response.rs new file mode 100644 index 0000000000..622fed1cb3 --- /dev/null +++ b/sdks/full/rust-cli/src/models/identity_list_followers_response.rs @@ -0,0 +1,34 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct IdentityListFollowersResponse { + #[serde(rename = "anchor", skip_serializing_if = "Option::is_none")] + pub anchor: Option, + #[serde(rename = "identities")] + pub identities: Vec, + #[serde(rename = "watch")] + pub watch: Box, +} + +impl IdentityListFollowersResponse { + pub fn new(identities: Vec, watch: crate::models::WatchResponse) -> IdentityListFollowersResponse { + IdentityListFollowersResponse { + anchor: None, + identities, + watch: Box::new(watch), + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/identity_list_following_response.rs b/sdks/full/rust-cli/src/models/identity_list_following_response.rs new file mode 100644 index 0000000000..1eb3898c72 --- /dev/null +++ b/sdks/full/rust-cli/src/models/identity_list_following_response.rs @@ -0,0 +1,34 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct IdentityListFollowingResponse { + #[serde(rename = "anchor", skip_serializing_if = "Option::is_none")] + pub anchor: Option, + #[serde(rename = "identities")] + pub identities: Vec, + #[serde(rename = "watch")] + pub watch: Box, +} + +impl IdentityListFollowingResponse { + pub fn new(identities: Vec, watch: crate::models::WatchResponse) -> IdentityListFollowingResponse { + IdentityListFollowingResponse { + anchor: None, + identities, + watch: Box::new(watch), + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/identity_list_friends_response.rs b/sdks/full/rust-cli/src/models/identity_list_friends_response.rs new file mode 100644 index 0000000000..b4a5290915 --- /dev/null +++ b/sdks/full/rust-cli/src/models/identity_list_friends_response.rs @@ -0,0 +1,34 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct IdentityListFriendsResponse { + #[serde(rename = "anchor", skip_serializing_if = "Option::is_none")] + pub anchor: Option, + #[serde(rename = "identities")] + pub identities: Vec, + #[serde(rename = "watch")] + pub watch: Box, +} + +impl IdentityListFriendsResponse { + pub fn new(identities: Vec, watch: crate::models::WatchResponse) -> IdentityListFriendsResponse { + IdentityListFriendsResponse { + anchor: None, + identities, + watch: Box::new(watch), + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/identity_list_mutual_friends_response.rs b/sdks/full/rust-cli/src/models/identity_list_mutual_friends_response.rs new file mode 100644 index 0000000000..3be3871b74 --- /dev/null +++ b/sdks/full/rust-cli/src/models/identity_list_mutual_friends_response.rs @@ -0,0 +1,31 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct IdentityListMutualFriendsResponse { + #[serde(rename = "anchor", skip_serializing_if = "Option::is_none")] + pub anchor: Option, + #[serde(rename = "identities")] + pub identities: Vec, +} + +impl IdentityListMutualFriendsResponse { + pub fn new(identities: Vec) -> IdentityListMutualFriendsResponse { + IdentityListMutualFriendsResponse { + anchor: None, + identities, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/identity_list_recent_followers_response.rs b/sdks/full/rust-cli/src/models/identity_list_recent_followers_response.rs new file mode 100644 index 0000000000..d6990968f1 --- /dev/null +++ b/sdks/full/rust-cli/src/models/identity_list_recent_followers_response.rs @@ -0,0 +1,34 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct IdentityListRecentFollowersResponse { + #[serde(rename = "anchor", skip_serializing_if = "Option::is_none")] + pub anchor: Option, + #[serde(rename = "identities")] + pub identities: Vec, + #[serde(rename = "watch")] + pub watch: Box, +} + +impl IdentityListRecentFollowersResponse { + pub fn new(identities: Vec, watch: crate::models::WatchResponse) -> IdentityListRecentFollowersResponse { + IdentityListRecentFollowersResponse { + anchor: None, + identities, + watch: Box::new(watch), + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/identity_prepare_avatar_upload_request.rs b/sdks/full/rust-cli/src/models/identity_prepare_avatar_upload_request.rs new file mode 100644 index 0000000000..89c23ec726 --- /dev/null +++ b/sdks/full/rust-cli/src/models/identity_prepare_avatar_upload_request.rs @@ -0,0 +1,35 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct IdentityPrepareAvatarUploadRequest { + #[serde(rename = "content_length")] + pub content_length: i64, + /// See https://www.iana.org/assignments/media-types/media-types.xhtml + #[serde(rename = "mime")] + pub mime: String, + #[serde(rename = "path")] + pub path: String, +} + +impl IdentityPrepareAvatarUploadRequest { + pub fn new(content_length: i64, mime: String, path: String) -> IdentityPrepareAvatarUploadRequest { + IdentityPrepareAvatarUploadRequest { + content_length, + mime, + path, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/identity_prepare_avatar_upload_response.rs b/sdks/full/rust-cli/src/models/identity_prepare_avatar_upload_response.rs new file mode 100644 index 0000000000..756fdda3de --- /dev/null +++ b/sdks/full/rust-cli/src/models/identity_prepare_avatar_upload_response.rs @@ -0,0 +1,31 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct IdentityPrepareAvatarUploadResponse { + #[serde(rename = "presigned_request")] + pub presigned_request: Box, + #[serde(rename = "upload_id")] + pub upload_id: uuid::Uuid, +} + +impl IdentityPrepareAvatarUploadResponse { + pub fn new(presigned_request: crate::models::UploadPresignedRequest, upload_id: uuid::Uuid) -> IdentityPrepareAvatarUploadResponse { + IdentityPrepareAvatarUploadResponse { + presigned_request: Box::new(presigned_request), + upload_id, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/identity_prepare_game_link_response.rs b/sdks/full/rust-cli/src/models/identity_prepare_game_link_response.rs new file mode 100644 index 0000000000..cd0b41ea9d --- /dev/null +++ b/sdks/full/rust-cli/src/models/identity_prepare_game_link_response.rs @@ -0,0 +1,36 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct IdentityPrepareGameLinkResponse { + /// RFC3339 timestamp + #[serde(rename = "expire_ts")] + pub expire_ts: String, + /// Pass this to `GetGameLink` to get the linking status. Valid for 15 minutes. + #[serde(rename = "identity_link_token")] + pub identity_link_token: String, + #[serde(rename = "identity_link_url")] + pub identity_link_url: String, +} + +impl IdentityPrepareGameLinkResponse { + pub fn new(expire_ts: String, identity_link_token: String, identity_link_url: String) -> IdentityPrepareGameLinkResponse { + IdentityPrepareGameLinkResponse { + expire_ts, + identity_link_token, + identity_link_url, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/identity_presence.rs b/sdks/full/rust-cli/src/models/identity_presence.rs new file mode 100644 index 0000000000..2e4df976d6 --- /dev/null +++ b/sdks/full/rust-cli/src/models/identity_presence.rs @@ -0,0 +1,37 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// IdentityPresence : Information about the identity's current status, party, and active game. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct IdentityPresence { + #[serde(rename = "game_activity", skip_serializing_if = "Option::is_none")] + pub game_activity: Option>, + #[serde(rename = "status")] + pub status: crate::models::IdentityStatus, + /// RFC3339 timestamp + #[serde(rename = "update_ts")] + pub update_ts: String, +} + +impl IdentityPresence { + /// Information about the identity's current status, party, and active game. + pub fn new(status: crate::models::IdentityStatus, update_ts: String) -> IdentityPresence { + IdentityPresence { + game_activity: None, + status, + update_ts, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/identity_profile.rs b/sdks/full/rust-cli/src/models/identity_profile.rs new file mode 100644 index 0000000000..920c1b42ac --- /dev/null +++ b/sdks/full/rust-cli/src/models/identity_profile.rs @@ -0,0 +1,100 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// IdentityProfile : An identity profile. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct IdentityProfile { + #[serde(rename = "account_number")] + pub account_number: i32, + /// The URL of this identity's avatar image. + #[serde(rename = "avatar_url")] + pub avatar_url: String, + /// Whether or not this identity is awaiting account deletion. Only visible to when the requestee is this identity. + #[serde(rename = "awaiting_deletion", skip_serializing_if = "Option::is_none")] + pub awaiting_deletion: Option, + /// Follows regex ^(?:[^\\n\\r]+\\n?|\\n){1,5}$ + #[serde(rename = "bio")] + pub bio: String, + #[serde(rename = "dev_state", skip_serializing_if = "Option::is_none")] + pub dev_state: Option, + /// Represent a resource's readable display name. + #[serde(rename = "display_name")] + pub display_name: String, + #[serde(rename = "external")] + pub external: Box, + #[serde(rename = "follower_count")] + pub follower_count: i64, + /// Whether or not the requestee's identity is following this identity. + #[serde(rename = "following")] + pub following: bool, + #[serde(rename = "following_count")] + pub following_count: i64, + #[serde(rename = "games")] + pub games: Vec, + #[serde(rename = "groups")] + pub groups: Vec, + #[serde(rename = "identity_id")] + pub identity_id: uuid::Uuid, + /// Whether or not this identity is an admin. + #[serde(rename = "is_admin")] + pub is_admin: bool, + /// Whether or not this identity is both following and is followed by the requestee's identity. + #[serde(rename = "is_following_me")] + pub is_following_me: bool, + /// Whether or not this game user has been linked through the Rivet dashboard. + #[serde(rename = "is_game_linked", skip_serializing_if = "Option::is_none")] + pub is_game_linked: Option, + #[serde(rename = "is_mutual_following")] + pub is_mutual_following: bool, + /// Whether or not this identity is registered with a linked account. + #[serde(rename = "is_registered")] + pub is_registered: bool, + /// RFC3339 timestamp + #[serde(rename = "join_ts")] + pub join_ts: String, + #[serde(rename = "linked_accounts")] + pub linked_accounts: Vec, + #[serde(rename = "presence", skip_serializing_if = "Option::is_none")] + pub presence: Option>, +} + +impl IdentityProfile { + /// An identity profile. + pub fn new(account_number: i32, avatar_url: String, bio: String, display_name: String, external: crate::models::IdentityExternalLinks, follower_count: i64, following: bool, following_count: i64, games: Vec, groups: Vec, identity_id: uuid::Uuid, is_admin: bool, is_following_me: bool, is_mutual_following: bool, is_registered: bool, join_ts: String, linked_accounts: Vec) -> IdentityProfile { + IdentityProfile { + account_number, + avatar_url, + awaiting_deletion: None, + bio, + dev_state: None, + display_name, + external: Box::new(external), + follower_count, + following, + following_count, + games, + groups, + identity_id, + is_admin, + is_following_me, + is_game_linked: None, + is_mutual_following, + is_registered, + join_ts, + linked_accounts, + presence: None, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/identity_report_request.rs b/sdks/full/rust-cli/src/models/identity_report_request.rs new file mode 100644 index 0000000000..01b6e025a0 --- /dev/null +++ b/sdks/full/rust-cli/src/models/identity_report_request.rs @@ -0,0 +1,28 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct IdentityReportRequest { + #[serde(rename = "reason", skip_serializing_if = "Option::is_none")] + pub reason: Option, +} + +impl IdentityReportRequest { + pub fn new() -> IdentityReportRequest { + IdentityReportRequest { + reason: None, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/identity_search_response.rs b/sdks/full/rust-cli/src/models/identity_search_response.rs new file mode 100644 index 0000000000..32036502a4 --- /dev/null +++ b/sdks/full/rust-cli/src/models/identity_search_response.rs @@ -0,0 +1,32 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct IdentitySearchResponse { + /// The pagination anchor. + #[serde(rename = "anchor", skip_serializing_if = "Option::is_none")] + pub anchor: Option, + #[serde(rename = "identities")] + pub identities: Vec, +} + +impl IdentitySearchResponse { + pub fn new(identities: Vec) -> IdentitySearchResponse { + IdentitySearchResponse { + anchor: None, + identities, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/identity_set_game_activity_request.rs b/sdks/full/rust-cli/src/models/identity_set_game_activity_request.rs new file mode 100644 index 0000000000..cb53bb90bb --- /dev/null +++ b/sdks/full/rust-cli/src/models/identity_set_game_activity_request.rs @@ -0,0 +1,28 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct IdentitySetGameActivityRequest { + #[serde(rename = "game_activity")] + pub game_activity: Box, +} + +impl IdentitySetGameActivityRequest { + pub fn new(game_activity: crate::models::IdentityUpdateGameActivity) -> IdentitySetGameActivityRequest { + IdentitySetGameActivityRequest { + game_activity: Box::new(game_activity), + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/identity_setup_request.rs b/sdks/full/rust-cli/src/models/identity_setup_request.rs new file mode 100644 index 0000000000..dba1402ee0 --- /dev/null +++ b/sdks/full/rust-cli/src/models/identity_setup_request.rs @@ -0,0 +1,29 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct IdentitySetupRequest { + /// Documentation at https://jwt.io/ + #[serde(rename = "existing_identity_token", skip_serializing_if = "Option::is_none")] + pub existing_identity_token: Option, +} + +impl IdentitySetupRequest { + pub fn new() -> IdentitySetupRequest { + IdentitySetupRequest { + existing_identity_token: None, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/identity_setup_response.rs b/sdks/full/rust-cli/src/models/identity_setup_response.rs new file mode 100644 index 0000000000..d72d496270 --- /dev/null +++ b/sdks/full/rust-cli/src/models/identity_setup_response.rs @@ -0,0 +1,39 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct IdentitySetupResponse { + #[serde(rename = "game_id")] + pub game_id: uuid::Uuid, + #[serde(rename = "identity")] + pub identity: Box, + /// Documentation at https://jwt.io/ + #[serde(rename = "identity_token")] + pub identity_token: String, + /// RFC3339 timestamp + #[serde(rename = "identity_token_expire_ts")] + pub identity_token_expire_ts: String, +} + +impl IdentitySetupResponse { + pub fn new(game_id: uuid::Uuid, identity: crate::models::IdentityProfile, identity_token: String, identity_token_expire_ts: String) -> IdentitySetupResponse { + IdentitySetupResponse { + game_id, + identity: Box::new(identity), + identity_token, + identity_token_expire_ts, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/identity_signup_for_beta_request.rs b/sdks/full/rust-cli/src/models/identity_signup_for_beta_request.rs new file mode 100644 index 0000000000..7e4e94dd23 --- /dev/null +++ b/sdks/full/rust-cli/src/models/identity_signup_for_beta_request.rs @@ -0,0 +1,40 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct IdentitySignupForBetaRequest { + #[serde(rename = "company_name", skip_serializing_if = "Option::is_none")] + pub company_name: Option, + #[serde(rename = "company_size")] + pub company_size: String, + #[serde(rename = "goals")] + pub goals: String, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "preferred_tools")] + pub preferred_tools: String, +} + +impl IdentitySignupForBetaRequest { + pub fn new(company_size: String, goals: String, name: String, preferred_tools: String) -> IdentitySignupForBetaRequest { + IdentitySignupForBetaRequest { + company_name: None, + company_size, + goals, + name, + preferred_tools, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/identity_status.rs b/sdks/full/rust-cli/src/models/identity_status.rs new file mode 100644 index 0000000000..992b7897ac --- /dev/null +++ b/sdks/full/rust-cli/src/models/identity_status.rs @@ -0,0 +1,43 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// IdentityStatus : The current status of an identity. This helps players understand if another player is currently playing or has their game in the background. + +/// The current status of an identity. This helps players understand if another player is currently playing or has their game in the background. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum IdentityStatus { + #[serde(rename = "online")] + Online, + #[serde(rename = "away")] + Away, + #[serde(rename = "offline")] + Offline, + +} + +impl ToString for IdentityStatus { + fn to_string(&self) -> String { + match self { + Self::Online => String::from("online"), + Self::Away => String::from("away"), + Self::Offline => String::from("offline"), + } + } +} + +impl Default for IdentityStatus { + fn default() -> IdentityStatus { + Self::Online + } +} + + + + diff --git a/sdks/full/rust-cli/src/models/identity_summary.rs b/sdks/full/rust-cli/src/models/identity_summary.rs new file mode 100644 index 0000000000..585b399d60 --- /dev/null +++ b/sdks/full/rust-cli/src/models/identity_summary.rs @@ -0,0 +1,62 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// IdentitySummary : An identity summary. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct IdentitySummary { + #[serde(rename = "account_number")] + pub account_number: i32, + /// The URL of this identity's avatar image. + #[serde(rename = "avatar_url")] + pub avatar_url: String, + /// Represent a resource's readable display name. + #[serde(rename = "display_name")] + pub display_name: String, + #[serde(rename = "external")] + pub external: Box, + /// Whether or not the requestee's identity is following this identity. + #[serde(rename = "following")] + pub following: bool, + #[serde(rename = "identity_id")] + pub identity_id: uuid::Uuid, + /// Whether or not this identity is both following and is followed by the requestee's identity. + #[serde(rename = "is_following_me")] + pub is_following_me: bool, + #[serde(rename = "is_mutual_following")] + pub is_mutual_following: bool, + /// Whether or not this identity is registered with a linked account. + #[serde(rename = "is_registered")] + pub is_registered: bool, + #[serde(rename = "presence", skip_serializing_if = "Option::is_none")] + pub presence: Option>, +} + +impl IdentitySummary { + /// An identity summary. + pub fn new(account_number: i32, avatar_url: String, display_name: String, external: crate::models::IdentityExternalLinks, following: bool, identity_id: uuid::Uuid, is_following_me: bool, is_mutual_following: bool, is_registered: bool) -> IdentitySummary { + IdentitySummary { + account_number, + avatar_url, + display_name, + external: Box::new(external), + following, + identity_id, + is_following_me, + is_mutual_following, + is_registered, + presence: None, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/identity_update_game_activity.rs b/sdks/full/rust-cli/src/models/identity_update_game_activity.rs new file mode 100644 index 0000000000..eb5698c4e9 --- /dev/null +++ b/sdks/full/rust-cli/src/models/identity_update_game_activity.rs @@ -0,0 +1,39 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// IdentityUpdateGameActivity : Information about the identity's current game. This is information that all other identities can see about what the current identity is doing. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct IdentityUpdateGameActivity { + /// A short message about the current game activity. + #[serde(rename = "message", skip_serializing_if = "Option::is_none")] + pub message: Option, + /// JSON data seen only by the given identity and their mutual followers. + #[serde(rename = "mutual_metadata", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub mutual_metadata: Option>, + /// JSON data seen by anyone. + #[serde(rename = "public_metadata", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub public_metadata: Option>, +} + +impl IdentityUpdateGameActivity { + /// Information about the identity's current game. This is information that all other identities can see about what the current identity is doing. + pub fn new() -> IdentityUpdateGameActivity { + IdentityUpdateGameActivity { + message: None, + mutual_metadata: None, + public_metadata: None, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/identity_update_profile_request.rs b/sdks/full/rust-cli/src/models/identity_update_profile_request.rs new file mode 100644 index 0000000000..24d90a91c4 --- /dev/null +++ b/sdks/full/rust-cli/src/models/identity_update_profile_request.rs @@ -0,0 +1,36 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct IdentityUpdateProfileRequest { + #[serde(rename = "account_number", skip_serializing_if = "Option::is_none")] + pub account_number: Option, + /// Follows regex ^(?:[^\\n\\r]+\\n?|\\n){1,5}$ + #[serde(rename = "bio", skip_serializing_if = "Option::is_none")] + pub bio: Option, + /// Represent a resource's readable display name. + #[serde(rename = "display_name", skip_serializing_if = "Option::is_none")] + pub display_name: Option, +} + +impl IdentityUpdateProfileRequest { + pub fn new() -> IdentityUpdateProfileRequest { + IdentityUpdateProfileRequest { + account_number: None, + bio: None, + display_name: None, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/identity_update_status_request.rs b/sdks/full/rust-cli/src/models/identity_update_status_request.rs new file mode 100644 index 0000000000..c6c79c6881 --- /dev/null +++ b/sdks/full/rust-cli/src/models/identity_update_status_request.rs @@ -0,0 +1,28 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct IdentityUpdateStatusRequest { + #[serde(rename = "status")] + pub status: crate::models::IdentityStatus, +} + +impl IdentityUpdateStatusRequest { + pub fn new(status: crate::models::IdentityStatus) -> IdentityUpdateStatusRequest { + IdentityUpdateStatusRequest { + status, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/identity_validate_profile_response.rs b/sdks/full/rust-cli/src/models/identity_validate_profile_response.rs new file mode 100644 index 0000000000..f08e3f02b1 --- /dev/null +++ b/sdks/full/rust-cli/src/models/identity_validate_profile_response.rs @@ -0,0 +1,28 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct IdentityValidateProfileResponse { + #[serde(rename = "errors")] + pub errors: Vec, +} + +impl IdentityValidateProfileResponse { + pub fn new(errors: Vec) -> IdentityValidateProfileResponse { + IdentityValidateProfileResponse { + errors, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/identity_watch_events_response.rs b/sdks/full/rust-cli/src/models/identity_watch_events_response.rs new file mode 100644 index 0000000000..e04fd721dc --- /dev/null +++ b/sdks/full/rust-cli/src/models/identity_watch_events_response.rs @@ -0,0 +1,31 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct IdentityWatchEventsResponse { + #[serde(rename = "events")] + pub events: Vec, + #[serde(rename = "watch")] + pub watch: Box, +} + +impl IdentityWatchEventsResponse { + pub fn new(events: Vec, watch: crate::models::WatchResponse) -> IdentityWatchEventsResponse { + IdentityWatchEventsResponse { + events, + watch: Box::new(watch), + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/kv_entry.rs b/sdks/full/rust-cli/src/models/kv_entry.rs new file mode 100644 index 0000000000..6d9e82a460 --- /dev/null +++ b/sdks/full/rust-cli/src/models/kv_entry.rs @@ -0,0 +1,38 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// KvEntry : A key-value entry. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct KvEntry { + #[serde(rename = "deleted", skip_serializing_if = "Option::is_none")] + pub deleted: Option, + /// A string representing a key in the key-value database. Maximum length of 512 characters. _Recommended Key Path Format_ Key path components are split by a slash (e.g. `a/b/c` has the path components `[\"a\", \"b\", \"c\"]`). Slashes can be escaped by using a backslash (e.g. `a/b/c/d` has the path components `[\"a\", \"b/c\", \"d\"]`). This format is not enforced by Rivet, but the tools built around Rivet KV work better if this format is used. + #[serde(rename = "key")] + pub key: String, + /// A JSON object stored in the KV database. A `null` value indicates the entry is deleted. Maximum length of 262,144 bytes when encoded. + #[serde(rename = "value", deserialize_with = "Option::deserialize")] + pub value: Option, +} + +impl KvEntry { + /// A key-value entry. + pub fn new(key: String, value: Option) -> KvEntry { + KvEntry { + deleted: None, + key, + value, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/kv_get_batch_response.rs b/sdks/full/rust-cli/src/models/kv_get_batch_response.rs new file mode 100644 index 0000000000..cf0a07971f --- /dev/null +++ b/sdks/full/rust-cli/src/models/kv_get_batch_response.rs @@ -0,0 +1,31 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct KvGetBatchResponse { + #[serde(rename = "entries")] + pub entries: Vec, + #[serde(rename = "watch")] + pub watch: Box, +} + +impl KvGetBatchResponse { + pub fn new(entries: Vec, watch: crate::models::WatchResponse) -> KvGetBatchResponse { + KvGetBatchResponse { + entries, + watch: Box::new(watch), + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/kv_get_response.rs b/sdks/full/rust-cli/src/models/kv_get_response.rs new file mode 100644 index 0000000000..9386defb05 --- /dev/null +++ b/sdks/full/rust-cli/src/models/kv_get_response.rs @@ -0,0 +1,36 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct KvGetResponse { + /// Whether or not the entry has been deleted. Only set when watching this endpoint. + #[serde(rename = "deleted", skip_serializing_if = "Option::is_none")] + pub deleted: Option, + /// A JSON object stored in the KV database. A `null` value indicates the entry is deleted. Maximum length of 262,144 bytes when encoded. + #[serde(rename = "value", deserialize_with = "Option::deserialize")] + pub value: Option, + #[serde(rename = "watch")] + pub watch: Box, +} + +impl KvGetResponse { + pub fn new(value: Option, watch: crate::models::WatchResponse) -> KvGetResponse { + KvGetResponse { + deleted: None, + value, + watch: Box::new(watch), + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/kv_list_response.rs b/sdks/full/rust-cli/src/models/kv_list_response.rs new file mode 100644 index 0000000000..25cfadcf4a --- /dev/null +++ b/sdks/full/rust-cli/src/models/kv_list_response.rs @@ -0,0 +1,28 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct KvListResponse { + #[serde(rename = "entries")] + pub entries: Vec, +} + +impl KvListResponse { + pub fn new(entries: Vec) -> KvListResponse { + KvListResponse { + entries, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/kv_put_batch_request.rs b/sdks/full/rust-cli/src/models/kv_put_batch_request.rs new file mode 100644 index 0000000000..2bac4cf812 --- /dev/null +++ b/sdks/full/rust-cli/src/models/kv_put_batch_request.rs @@ -0,0 +1,31 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct KvPutBatchRequest { + #[serde(rename = "entries")] + pub entries: Vec, + #[serde(rename = "namespace_id", skip_serializing_if = "Option::is_none")] + pub namespace_id: Option, +} + +impl KvPutBatchRequest { + pub fn new(entries: Vec) -> KvPutBatchRequest { + KvPutBatchRequest { + entries, + namespace_id: None, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/kv_put_entry.rs b/sdks/full/rust-cli/src/models/kv_put_entry.rs new file mode 100644 index 0000000000..9d6ad9230e --- /dev/null +++ b/sdks/full/rust-cli/src/models/kv_put_entry.rs @@ -0,0 +1,35 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// KvPutEntry : A new entry to insert into the key-value database. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct KvPutEntry { + /// A string representing a key in the key-value database. Maximum length of 512 characters. _Recommended Key Path Format_ Key path components are split by a slash (e.g. `a/b/c` has the path components `[\"a\", \"b\", \"c\"]`). Slashes can be escaped by using a backslash (e.g. `a/b/c/d` has the path components `[\"a\", \"b/c\", \"d\"]`). This format is not enforced by Rivet, but the tools built around Rivet KV work better if this format is used. + #[serde(rename = "key")] + pub key: String, + /// A JSON object stored in the KV database. A `null` value indicates the entry is deleted. Maximum length of 262,144 bytes when encoded. + #[serde(rename = "value", deserialize_with = "Option::deserialize")] + pub value: Option, +} + +impl KvPutEntry { + /// A new entry to insert into the key-value database. + pub fn new(key: String, value: Option) -> KvPutEntry { + KvPutEntry { + key, + value, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/kv_put_request.rs b/sdks/full/rust-cli/src/models/kv_put_request.rs new file mode 100644 index 0000000000..d6bac35f58 --- /dev/null +++ b/sdks/full/rust-cli/src/models/kv_put_request.rs @@ -0,0 +1,36 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct KvPutRequest { + /// A string representing a key in the key-value database. Maximum length of 512 characters. _Recommended Key Path Format_ Key path components are split by a slash (e.g. `a/b/c` has the path components `[\"a\", \"b\", \"c\"]`). Slashes can be escaped by using a backslash (e.g. `a/b/c/d` has the path components `[\"a\", \"b/c\", \"d\"]`). This format is not enforced by Rivet, but the tools built around Rivet KV work better if this format is used. + #[serde(rename = "key")] + pub key: String, + #[serde(rename = "namespace_id", skip_serializing_if = "Option::is_none")] + pub namespace_id: Option, + /// A JSON object stored in the KV database. A `null` value indicates the entry is deleted. Maximum length of 262,144 bytes when encoded. + #[serde(rename = "value", deserialize_with = "Option::deserialize")] + pub value: Option, +} + +impl KvPutRequest { + pub fn new(key: String, value: Option) -> KvPutRequest { + KvPutRequest { + key, + namespace_id: None, + value, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/matchmaker_create_lobby_response.rs b/sdks/full/rust-cli/src/models/matchmaker_create_lobby_response.rs new file mode 100644 index 0000000000..0d1bcc029a --- /dev/null +++ b/sdks/full/rust-cli/src/models/matchmaker_create_lobby_response.rs @@ -0,0 +1,34 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct MatchmakerCreateLobbyResponse { + #[serde(rename = "lobby")] + pub lobby: Box, + #[serde(rename = "player")] + pub player: Box, + #[serde(rename = "ports")] + pub ports: ::std::collections::HashMap, +} + +impl MatchmakerCreateLobbyResponse { + pub fn new(lobby: crate::models::MatchmakerJoinLobby, player: crate::models::MatchmakerJoinPlayer, ports: ::std::collections::HashMap) -> MatchmakerCreateLobbyResponse { + MatchmakerCreateLobbyResponse { + lobby: Box::new(lobby), + player: Box::new(player), + ports, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/matchmaker_custom_lobby_publicity.rs b/sdks/full/rust-cli/src/models/matchmaker_custom_lobby_publicity.rs new file mode 100644 index 0000000000..e3dcead796 --- /dev/null +++ b/sdks/full/rust-cli/src/models/matchmaker_custom_lobby_publicity.rs @@ -0,0 +1,39 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum MatchmakerCustomLobbyPublicity { + #[serde(rename = "public")] + Public, + #[serde(rename = "private")] + Private, + +} + +impl ToString for MatchmakerCustomLobbyPublicity { + fn to_string(&self) -> String { + match self { + Self::Public => String::from("public"), + Self::Private => String::from("private"), + } + } +} + +impl Default for MatchmakerCustomLobbyPublicity { + fn default() -> MatchmakerCustomLobbyPublicity { + Self::Public + } +} + + + + diff --git a/sdks/full/rust-cli/src/models/matchmaker_find_lobby_response.rs b/sdks/full/rust-cli/src/models/matchmaker_find_lobby_response.rs new file mode 100644 index 0000000000..0a72c11058 --- /dev/null +++ b/sdks/full/rust-cli/src/models/matchmaker_find_lobby_response.rs @@ -0,0 +1,34 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct MatchmakerFindLobbyResponse { + #[serde(rename = "lobby")] + pub lobby: Box, + #[serde(rename = "player")] + pub player: Box, + #[serde(rename = "ports")] + pub ports: ::std::collections::HashMap, +} + +impl MatchmakerFindLobbyResponse { + pub fn new(lobby: crate::models::MatchmakerJoinLobby, player: crate::models::MatchmakerJoinPlayer, ports: ::std::collections::HashMap) -> MatchmakerFindLobbyResponse { + MatchmakerFindLobbyResponse { + lobby: Box::new(lobby), + player: Box::new(player), + ports, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/matchmaker_game_mode_info.rs b/sdks/full/rust-cli/src/models/matchmaker_game_mode_info.rs new file mode 100644 index 0000000000..d3d921a688 --- /dev/null +++ b/sdks/full/rust-cli/src/models/matchmaker_game_mode_info.rs @@ -0,0 +1,31 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// MatchmakerGameModeInfo : A game mode that the player can join. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct MatchmakerGameModeInfo { + /// A human readable short identifier used to references resources. Different than a `uuid` because this is intended to be human readable. Different than `DisplayName` because this should not include special characters and be short. + #[serde(rename = "game_mode_id")] + pub game_mode_id: String, +} + +impl MatchmakerGameModeInfo { + /// A game mode that the player can join. + pub fn new(game_mode_id: String) -> MatchmakerGameModeInfo { + MatchmakerGameModeInfo { + game_mode_id, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/matchmaker_game_mode_statistics.rs b/sdks/full/rust-cli/src/models/matchmaker_game_mode_statistics.rs new file mode 100644 index 0000000000..d2da15d2d9 --- /dev/null +++ b/sdks/full/rust-cli/src/models/matchmaker_game_mode_statistics.rs @@ -0,0 +1,31 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct MatchmakerGameModeStatistics { + #[serde(rename = "player_count")] + pub player_count: i64, + #[serde(rename = "regions")] + pub regions: ::std::collections::HashMap, +} + +impl MatchmakerGameModeStatistics { + pub fn new(player_count: i64, regions: ::std::collections::HashMap) -> MatchmakerGameModeStatistics { + MatchmakerGameModeStatistics { + player_count, + regions, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/matchmaker_get_statistics_response.rs b/sdks/full/rust-cli/src/models/matchmaker_get_statistics_response.rs new file mode 100644 index 0000000000..4275e93a5e --- /dev/null +++ b/sdks/full/rust-cli/src/models/matchmaker_get_statistics_response.rs @@ -0,0 +1,31 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct MatchmakerGetStatisticsResponse { + #[serde(rename = "game_modes")] + pub game_modes: ::std::collections::HashMap, + #[serde(rename = "player_count")] + pub player_count: i64, +} + +impl MatchmakerGetStatisticsResponse { + pub fn new(game_modes: ::std::collections::HashMap, player_count: i64) -> MatchmakerGetStatisticsResponse { + MatchmakerGetStatisticsResponse { + game_modes, + player_count, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/matchmaker_join_lobby.rs b/sdks/full/rust-cli/src/models/matchmaker_join_lobby.rs new file mode 100644 index 0000000000..aaf5bd9cd7 --- /dev/null +++ b/sdks/full/rust-cli/src/models/matchmaker_join_lobby.rs @@ -0,0 +1,40 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// MatchmakerJoinLobby : A matchmaker lobby. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct MatchmakerJoinLobby { + #[serde(rename = "lobby_id")] + pub lobby_id: uuid::Uuid, + #[serde(rename = "player")] + pub player: Box, + /// **Deprecated** + #[serde(rename = "ports")] + pub ports: ::std::collections::HashMap, + #[serde(rename = "region")] + pub region: Box, +} + +impl MatchmakerJoinLobby { + /// A matchmaker lobby. + pub fn new(lobby_id: uuid::Uuid, player: crate::models::MatchmakerJoinPlayer, ports: ::std::collections::HashMap, region: crate::models::MatchmakerJoinRegion) -> MatchmakerJoinLobby { + MatchmakerJoinLobby { + lobby_id, + player: Box::new(player), + ports, + region: Box::new(region), + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/matchmaker_join_lobby_response.rs b/sdks/full/rust-cli/src/models/matchmaker_join_lobby_response.rs new file mode 100644 index 0000000000..d284339b25 --- /dev/null +++ b/sdks/full/rust-cli/src/models/matchmaker_join_lobby_response.rs @@ -0,0 +1,34 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct MatchmakerJoinLobbyResponse { + #[serde(rename = "lobby")] + pub lobby: Box, + #[serde(rename = "player")] + pub player: Box, + #[serde(rename = "ports")] + pub ports: ::std::collections::HashMap, +} + +impl MatchmakerJoinLobbyResponse { + pub fn new(lobby: crate::models::MatchmakerJoinLobby, player: crate::models::MatchmakerJoinPlayer, ports: ::std::collections::HashMap) -> MatchmakerJoinLobbyResponse { + MatchmakerJoinLobbyResponse { + lobby: Box::new(lobby), + player: Box::new(player), + ports, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/matchmaker_join_player.rs b/sdks/full/rust-cli/src/models/matchmaker_join_player.rs new file mode 100644 index 0000000000..198434b8ac --- /dev/null +++ b/sdks/full/rust-cli/src/models/matchmaker_join_player.rs @@ -0,0 +1,31 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// MatchmakerJoinPlayer : A matchmaker lobby player. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct MatchmakerJoinPlayer { + /// Documentation at https://jwt.io/ + #[serde(rename = "token")] + pub token: String, +} + +impl MatchmakerJoinPlayer { + /// A matchmaker lobby player. + pub fn new(token: String) -> MatchmakerJoinPlayer { + MatchmakerJoinPlayer { + token, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/matchmaker_join_port.rs b/sdks/full/rust-cli/src/models/matchmaker_join_port.rs new file mode 100644 index 0000000000..86e07f170a --- /dev/null +++ b/sdks/full/rust-cli/src/models/matchmaker_join_port.rs @@ -0,0 +1,43 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct MatchmakerJoinPort { + /// The host for the given port. Will be null if using a port range. + #[serde(rename = "host", skip_serializing_if = "Option::is_none")] + pub host: Option, + #[serde(rename = "hostname")] + pub hostname: String, + /// Whether or not this lobby port uses TLS. You cannot mix a non-TLS and TLS ports. + #[serde(rename = "is_tls")] + pub is_tls: bool, + /// The port number for this lobby. Will be null if using a port range. + #[serde(rename = "port", skip_serializing_if = "Option::is_none")] + pub port: Option, + #[serde(rename = "port_range", skip_serializing_if = "Option::is_none")] + pub port_range: Option>, +} + +impl MatchmakerJoinPort { + pub fn new(hostname: String, is_tls: bool) -> MatchmakerJoinPort { + MatchmakerJoinPort { + host: None, + hostname, + is_tls, + port: None, + port_range: None, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/matchmaker_join_port_range.rs b/sdks/full/rust-cli/src/models/matchmaker_join_port_range.rs new file mode 100644 index 0000000000..5b793d5c52 --- /dev/null +++ b/sdks/full/rust-cli/src/models/matchmaker_join_port_range.rs @@ -0,0 +1,35 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// MatchmakerJoinPortRange : Inclusive range of ports that can be connected to. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct MatchmakerJoinPortRange { + /// Maximum port that can be connected to. Inclusive range. + #[serde(rename = "max")] + pub max: i32, + /// Minimum port that can be connected to. Inclusive range. + #[serde(rename = "min")] + pub min: i32, +} + +impl MatchmakerJoinPortRange { + /// Inclusive range of ports that can be connected to. + pub fn new(max: i32, min: i32) -> MatchmakerJoinPortRange { + MatchmakerJoinPortRange { + max, + min, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/matchmaker_join_region.rs b/sdks/full/rust-cli/src/models/matchmaker_join_region.rs new file mode 100644 index 0000000000..7f38d680cf --- /dev/null +++ b/sdks/full/rust-cli/src/models/matchmaker_join_region.rs @@ -0,0 +1,35 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// MatchmakerJoinRegion : A matchmaker lobby region. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct MatchmakerJoinRegion { + /// Represent a resource's readable display name. + #[serde(rename = "display_name")] + pub display_name: String, + /// A human readable short identifier used to references resources. Different than a `uuid` because this is intended to be human readable. Different than `DisplayName` because this should not include special characters and be short. + #[serde(rename = "region_id")] + pub region_id: String, +} + +impl MatchmakerJoinRegion { + /// A matchmaker lobby region. + pub fn new(display_name: String, region_id: String) -> MatchmakerJoinRegion { + MatchmakerJoinRegion { + display_name, + region_id, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/matchmaker_list_lobbies_response.rs b/sdks/full/rust-cli/src/models/matchmaker_list_lobbies_response.rs new file mode 100644 index 0000000000..181d6b0bd0 --- /dev/null +++ b/sdks/full/rust-cli/src/models/matchmaker_list_lobbies_response.rs @@ -0,0 +1,34 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct MatchmakerListLobbiesResponse { + #[serde(rename = "game_modes")] + pub game_modes: Vec, + #[serde(rename = "lobbies")] + pub lobbies: Vec, + #[serde(rename = "regions")] + pub regions: Vec, +} + +impl MatchmakerListLobbiesResponse { + pub fn new(game_modes: Vec, lobbies: Vec, regions: Vec) -> MatchmakerListLobbiesResponse { + MatchmakerListLobbiesResponse { + game_modes, + lobbies, + regions, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/matchmaker_list_regions_response.rs b/sdks/full/rust-cli/src/models/matchmaker_list_regions_response.rs new file mode 100644 index 0000000000..07eae13752 --- /dev/null +++ b/sdks/full/rust-cli/src/models/matchmaker_list_regions_response.rs @@ -0,0 +1,28 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct MatchmakerListRegionsResponse { + #[serde(rename = "regions")] + pub regions: Vec, +} + +impl MatchmakerListRegionsResponse { + pub fn new(regions: Vec) -> MatchmakerListRegionsResponse { + MatchmakerListRegionsResponse { + regions, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/matchmaker_lobbies_create_request.rs b/sdks/full/rust-cli/src/models/matchmaker_lobbies_create_request.rs new file mode 100644 index 0000000000..4a61128a8f --- /dev/null +++ b/sdks/full/rust-cli/src/models/matchmaker_lobbies_create_request.rs @@ -0,0 +1,49 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct MatchmakerLobbiesCreateRequest { + #[serde(rename = "captcha", skip_serializing_if = "Option::is_none")] + pub captcha: Option>, + #[serde(rename = "game_mode")] + pub game_mode: String, + #[serde(rename = "lobby_config", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub lobby_config: Option>, + #[serde(rename = "max_players", skip_serializing_if = "Option::is_none")] + pub max_players: Option, + #[serde(rename = "publicity", skip_serializing_if = "Option::is_none")] + pub publicity: Option, + #[serde(rename = "region", skip_serializing_if = "Option::is_none")] + pub region: Option, + #[serde(rename = "tags", skip_serializing_if = "Option::is_none")] + pub tags: Option<::std::collections::HashMap>, + #[serde(rename = "verification_data", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub verification_data: Option>, +} + +impl MatchmakerLobbiesCreateRequest { + pub fn new(game_mode: String) -> MatchmakerLobbiesCreateRequest { + MatchmakerLobbiesCreateRequest { + captcha: None, + game_mode, + lobby_config: None, + max_players: None, + publicity: None, + region: None, + tags: None, + verification_data: None, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/matchmaker_lobbies_find_request.rs b/sdks/full/rust-cli/src/models/matchmaker_lobbies_find_request.rs new file mode 100644 index 0000000000..6761c70629 --- /dev/null +++ b/sdks/full/rust-cli/src/models/matchmaker_lobbies_find_request.rs @@ -0,0 +1,46 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct MatchmakerLobbiesFindRequest { + #[serde(rename = "captcha", skip_serializing_if = "Option::is_none")] + pub captcha: Option>, + #[serde(rename = "game_modes")] + pub game_modes: Vec, + #[serde(rename = "max_players", skip_serializing_if = "Option::is_none")] + pub max_players: Option, + #[serde(rename = "prevent_auto_create_lobby", skip_serializing_if = "Option::is_none")] + pub prevent_auto_create_lobby: Option, + #[serde(rename = "regions", skip_serializing_if = "Option::is_none")] + pub regions: Option>, + #[serde(rename = "tags", skip_serializing_if = "Option::is_none")] + pub tags: Option<::std::collections::HashMap>, + #[serde(rename = "verification_data", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub verification_data: Option>, +} + +impl MatchmakerLobbiesFindRequest { + pub fn new(game_modes: Vec) -> MatchmakerLobbiesFindRequest { + MatchmakerLobbiesFindRequest { + captcha: None, + game_modes, + max_players: None, + prevent_auto_create_lobby: None, + regions: None, + tags: None, + verification_data: None, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/matchmaker_lobbies_join_request.rs b/sdks/full/rust-cli/src/models/matchmaker_lobbies_join_request.rs new file mode 100644 index 0000000000..6f622e00a1 --- /dev/null +++ b/sdks/full/rust-cli/src/models/matchmaker_lobbies_join_request.rs @@ -0,0 +1,34 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct MatchmakerLobbiesJoinRequest { + #[serde(rename = "captcha", skip_serializing_if = "Option::is_none")] + pub captcha: Option>, + #[serde(rename = "lobby_id")] + pub lobby_id: String, + #[serde(rename = "verification_data", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub verification_data: Option>, +} + +impl MatchmakerLobbiesJoinRequest { + pub fn new(lobby_id: String) -> MatchmakerLobbiesJoinRequest { + MatchmakerLobbiesJoinRequest { + captcha: None, + lobby_id, + verification_data: None, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/matchmaker_lobbies_set_closed_request.rs b/sdks/full/rust-cli/src/models/matchmaker_lobbies_set_closed_request.rs new file mode 100644 index 0000000000..32b2a4cfe2 --- /dev/null +++ b/sdks/full/rust-cli/src/models/matchmaker_lobbies_set_closed_request.rs @@ -0,0 +1,28 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct MatchmakerLobbiesSetClosedRequest { + #[serde(rename = "is_closed")] + pub is_closed: bool, +} + +impl MatchmakerLobbiesSetClosedRequest { + pub fn new(is_closed: bool) -> MatchmakerLobbiesSetClosedRequest { + MatchmakerLobbiesSetClosedRequest { + is_closed, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/matchmaker_lobby_info.rs b/sdks/full/rust-cli/src/models/matchmaker_lobby_info.rs new file mode 100644 index 0000000000..bdae0cba81 --- /dev/null +++ b/sdks/full/rust-cli/src/models/matchmaker_lobby_info.rs @@ -0,0 +1,51 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// MatchmakerLobbyInfo : A public lobby in the lobby list. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct MatchmakerLobbyInfo { + #[serde(rename = "game_mode_id")] + pub game_mode_id: String, + #[serde(rename = "lobby_id")] + pub lobby_id: uuid::Uuid, + #[serde(rename = "max_players_direct")] + pub max_players_direct: i32, + #[serde(rename = "max_players_normal")] + pub max_players_normal: i32, + #[serde(rename = "max_players_party")] + pub max_players_party: i32, + #[serde(rename = "region_id")] + pub region_id: String, + #[serde(rename = "state", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub state: Option>, + #[serde(rename = "total_player_count")] + pub total_player_count: i32, +} + +impl MatchmakerLobbyInfo { + /// A public lobby in the lobby list. + pub fn new(game_mode_id: String, lobby_id: uuid::Uuid, max_players_direct: i32, max_players_normal: i32, max_players_party: i32, region_id: String, total_player_count: i32) -> MatchmakerLobbyInfo { + MatchmakerLobbyInfo { + game_mode_id, + lobby_id, + max_players_direct, + max_players_normal, + max_players_party, + region_id, + state: None, + total_player_count, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/matchmaker_players_connected_request.rs b/sdks/full/rust-cli/src/models/matchmaker_players_connected_request.rs new file mode 100644 index 0000000000..c5de54c33c --- /dev/null +++ b/sdks/full/rust-cli/src/models/matchmaker_players_connected_request.rs @@ -0,0 +1,28 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct MatchmakerPlayersConnectedRequest { + #[serde(rename = "player_token")] + pub player_token: String, +} + +impl MatchmakerPlayersConnectedRequest { + pub fn new(player_token: String) -> MatchmakerPlayersConnectedRequest { + MatchmakerPlayersConnectedRequest { + player_token, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/matchmaker_region_info.rs b/sdks/full/rust-cli/src/models/matchmaker_region_info.rs new file mode 100644 index 0000000000..ed5df899d6 --- /dev/null +++ b/sdks/full/rust-cli/src/models/matchmaker_region_info.rs @@ -0,0 +1,45 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// MatchmakerRegionInfo : A region that the player can connect to. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct MatchmakerRegionInfo { + #[serde(rename = "datacenter_coord")] + pub datacenter_coord: Box, + #[serde(rename = "datacenter_distance_from_client")] + pub datacenter_distance_from_client: Box, + /// Represent a resource's readable display name. + #[serde(rename = "provider_display_name")] + pub provider_display_name: String, + /// Represent a resource's readable display name. + #[serde(rename = "region_display_name")] + pub region_display_name: String, + /// A human readable short identifier used to references resources. Different than a `uuid` because this is intended to be human readable. Different than `DisplayName` because this should not include special characters and be short. + #[serde(rename = "region_id")] + pub region_id: String, +} + +impl MatchmakerRegionInfo { + /// A region that the player can connect to. + pub fn new(datacenter_coord: crate::models::GeoCoord, datacenter_distance_from_client: crate::models::GeoDistance, provider_display_name: String, region_display_name: String, region_id: String) -> MatchmakerRegionInfo { + MatchmakerRegionInfo { + datacenter_coord: Box::new(datacenter_coord), + datacenter_distance_from_client: Box::new(datacenter_distance_from_client), + provider_display_name, + region_display_name, + region_id, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/matchmaker_region_statistics.rs b/sdks/full/rust-cli/src/models/matchmaker_region_statistics.rs new file mode 100644 index 0000000000..1f213d2419 --- /dev/null +++ b/sdks/full/rust-cli/src/models/matchmaker_region_statistics.rs @@ -0,0 +1,28 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct MatchmakerRegionStatistics { + #[serde(rename = "player_count")] + pub player_count: i64, +} + +impl MatchmakerRegionStatistics { + pub fn new(player_count: i64) -> MatchmakerRegionStatistics { + MatchmakerRegionStatistics { + player_count, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/mod.rs b/sdks/full/rust-cli/src/models/mod.rs new file mode 100644 index 0000000000..a0f0d782b9 --- /dev/null +++ b/sdks/full/rust-cli/src/models/mod.rs @@ -0,0 +1,660 @@ +pub mod admin_clusters_build_delivery_method; +pub use self::admin_clusters_build_delivery_method::AdminClustersBuildDeliveryMethod; +pub mod admin_clusters_cluster; +pub use self::admin_clusters_cluster::AdminClustersCluster; +pub mod admin_clusters_create_cluster_request; +pub use self::admin_clusters_create_cluster_request::AdminClustersCreateClusterRequest; +pub mod admin_clusters_create_cluster_response; +pub use self::admin_clusters_create_cluster_response::AdminClustersCreateClusterResponse; +pub mod admin_clusters_create_datacenter_request; +pub use self::admin_clusters_create_datacenter_request::AdminClustersCreateDatacenterRequest; +pub mod admin_clusters_create_datacenter_response; +pub use self::admin_clusters_create_datacenter_response::AdminClustersCreateDatacenterResponse; +pub mod admin_clusters_datacenter; +pub use self::admin_clusters_datacenter::AdminClustersDatacenter; +pub mod admin_clusters_hardware; +pub use self::admin_clusters_hardware::AdminClustersHardware; +pub mod admin_clusters_list_clusters_response; +pub use self::admin_clusters_list_clusters_response::AdminClustersListClustersResponse; +pub mod admin_clusters_list_datacenters_response; +pub use self::admin_clusters_list_datacenters_response::AdminClustersListDatacentersResponse; +pub mod admin_clusters_list_servers_response; +pub use self::admin_clusters_list_servers_response::AdminClustersListServersResponse; +pub mod admin_clusters_pool; +pub use self::admin_clusters_pool::AdminClustersPool; +pub mod admin_clusters_pool_type; +pub use self::admin_clusters_pool_type::AdminClustersPoolType; +pub mod admin_clusters_pool_update; +pub use self::admin_clusters_pool_update::AdminClustersPoolUpdate; +pub mod admin_clusters_provider; +pub use self::admin_clusters_provider::AdminClustersProvider; +pub mod admin_clusters_server; +pub use self::admin_clusters_server::AdminClustersServer; +pub mod admin_clusters_update_datacenter_request; +pub use self::admin_clusters_update_datacenter_request::AdminClustersUpdateDatacenterRequest; +pub mod admin_login_request; +pub use self::admin_login_request::AdminLoginRequest; +pub mod admin_login_response; +pub use self::admin_login_response::AdminLoginResponse; +pub mod auth_complete_status; +pub use self::auth_complete_status::AuthCompleteStatus; +pub mod auth_identity_complete_access_token_verification_request; +pub use self::auth_identity_complete_access_token_verification_request::AuthIdentityCompleteAccessTokenVerificationRequest; +pub mod auth_identity_complete_email_verification_request; +pub use self::auth_identity_complete_email_verification_request::AuthIdentityCompleteEmailVerificationRequest; +pub mod auth_identity_complete_email_verification_response; +pub use self::auth_identity_complete_email_verification_response::AuthIdentityCompleteEmailVerificationResponse; +pub mod auth_identity_start_email_verification_request; +pub use self::auth_identity_start_email_verification_request::AuthIdentityStartEmailVerificationRequest; +pub mod auth_identity_start_email_verification_response; +pub use self::auth_identity_start_email_verification_response::AuthIdentityStartEmailVerificationResponse; +pub mod auth_refresh_identity_token_request; +pub use self::auth_refresh_identity_token_request::AuthRefreshIdentityTokenRequest; +pub mod auth_refresh_identity_token_response; +pub use self::auth_refresh_identity_token_response::AuthRefreshIdentityTokenResponse; +pub mod captcha_config; +pub use self::captcha_config::CaptchaConfig; +pub mod captcha_config_hcaptcha; +pub use self::captcha_config_hcaptcha::CaptchaConfigHcaptcha; +pub mod captcha_config_turnstile; +pub use self::captcha_config_turnstile::CaptchaConfigTurnstile; +pub mod cloud_auth_agent; +pub use self::cloud_auth_agent::CloudAuthAgent; +pub mod cloud_auth_agent_game_cloud; +pub use self::cloud_auth_agent_game_cloud::CloudAuthAgentGameCloud; +pub mod cloud_auth_agent_identity; +pub use self::cloud_auth_agent_identity::CloudAuthAgentIdentity; +pub mod cloud_bootstrap_access; +pub use self::cloud_bootstrap_access::CloudBootstrapAccess; +pub mod cloud_bootstrap_captcha; +pub use self::cloud_bootstrap_captcha::CloudBootstrapCaptcha; +pub mod cloud_bootstrap_captcha_turnstile; +pub use self::cloud_bootstrap_captcha_turnstile::CloudBootstrapCaptchaTurnstile; +pub mod cloud_bootstrap_cluster; +pub use self::cloud_bootstrap_cluster::CloudBootstrapCluster; +pub mod cloud_bootstrap_domains; +pub use self::cloud_bootstrap_domains::CloudBootstrapDomains; +pub mod cloud_bootstrap_login_methods; +pub use self::cloud_bootstrap_login_methods::CloudBootstrapLoginMethods; +pub mod cloud_bootstrap_origins; +pub use self::cloud_bootstrap_origins::CloudBootstrapOrigins; +pub mod cloud_bootstrap_response; +pub use self::cloud_bootstrap_response::CloudBootstrapResponse; +pub mod cloud_build_summary; +pub use self::cloud_build_summary::CloudBuildSummary; +pub mod cloud_cdn_auth_type; +pub use self::cloud_cdn_auth_type::CloudCdnAuthType; +pub mod cloud_cdn_namespace_auth_user; +pub use self::cloud_cdn_namespace_auth_user::CloudCdnNamespaceAuthUser; +pub mod cloud_cdn_namespace_config; +pub use self::cloud_cdn_namespace_config::CloudCdnNamespaceConfig; +pub mod cloud_cdn_namespace_domain; +pub use self::cloud_cdn_namespace_domain::CloudCdnNamespaceDomain; +pub mod cloud_cdn_namespace_domain_verification_method; +pub use self::cloud_cdn_namespace_domain_verification_method::CloudCdnNamespaceDomainVerificationMethod; +pub mod cloud_cdn_namespace_domain_verification_method_http; +pub use self::cloud_cdn_namespace_domain_verification_method_http::CloudCdnNamespaceDomainVerificationMethodHttp; +pub mod cloud_cdn_namespace_domain_verification_status; +pub use self::cloud_cdn_namespace_domain_verification_status::CloudCdnNamespaceDomainVerificationStatus; +pub mod cloud_cdn_site_summary; +pub use self::cloud_cdn_site_summary::CloudCdnSiteSummary; +pub mod cloud_custom_avatar_summary; +pub use self::cloud_custom_avatar_summary::CloudCustomAvatarSummary; +pub mod cloud_devices_complete_device_link_request; +pub use self::cloud_devices_complete_device_link_request::CloudDevicesCompleteDeviceLinkRequest; +pub mod cloud_devices_get_device_link_response; +pub use self::cloud_devices_get_device_link_response::CloudDevicesGetDeviceLinkResponse; +pub mod cloud_devices_prepare_device_link_response; +pub use self::cloud_devices_prepare_device_link_response::CloudDevicesPrepareDeviceLinkResponse; +pub mod cloud_game_full; +pub use self::cloud_game_full::CloudGameFull; +pub mod cloud_game_lobby_expenses; +pub use self::cloud_game_lobby_expenses::CloudGameLobbyExpenses; +pub mod cloud_games_build_compression; +pub use self::cloud_games_build_compression::CloudGamesBuildCompression; +pub mod cloud_games_build_kind; +pub use self::cloud_games_build_kind::CloudGamesBuildKind; +pub mod cloud_games_create_cloud_token_response; +pub use self::cloud_games_create_cloud_token_response::CloudGamesCreateCloudTokenResponse; +pub mod cloud_games_create_game_build_request; +pub use self::cloud_games_create_game_build_request::CloudGamesCreateGameBuildRequest; +pub mod cloud_games_create_game_build_response; +pub use self::cloud_games_create_game_build_response::CloudGamesCreateGameBuildResponse; +pub mod cloud_games_create_game_cdn_site_request; +pub use self::cloud_games_create_game_cdn_site_request::CloudGamesCreateGameCdnSiteRequest; +pub mod cloud_games_create_game_cdn_site_response; +pub use self::cloud_games_create_game_cdn_site_response::CloudGamesCreateGameCdnSiteResponse; +pub mod cloud_games_create_game_request; +pub use self::cloud_games_create_game_request::CloudGamesCreateGameRequest; +pub mod cloud_games_create_game_response; +pub use self::cloud_games_create_game_response::CloudGamesCreateGameResponse; +pub mod cloud_games_create_game_version_request; +pub use self::cloud_games_create_game_version_request::CloudGamesCreateGameVersionRequest; +pub mod cloud_games_create_game_version_response; +pub use self::cloud_games_create_game_version_response::CloudGamesCreateGameVersionResponse; +pub mod cloud_games_create_service_token_response; +pub use self::cloud_games_create_service_token_response::CloudGamesCreateServiceTokenResponse; +pub mod cloud_games_delete_matchmaker_lobby_response; +pub use self::cloud_games_delete_matchmaker_lobby_response::CloudGamesDeleteMatchmakerLobbyResponse; +pub mod cloud_games_export_lobby_logs_request; +pub use self::cloud_games_export_lobby_logs_request::CloudGamesExportLobbyLogsRequest; +pub mod cloud_games_export_lobby_logs_response; +pub use self::cloud_games_export_lobby_logs_response::CloudGamesExportLobbyLogsResponse; +pub mod cloud_games_export_matchmaker_lobby_history_request; +pub use self::cloud_games_export_matchmaker_lobby_history_request::CloudGamesExportMatchmakerLobbyHistoryRequest; +pub mod cloud_games_export_matchmaker_lobby_history_response; +pub use self::cloud_games_export_matchmaker_lobby_history_response::CloudGamesExportMatchmakerLobbyHistoryResponse; +pub mod cloud_games_game_banner_upload_prepare_request; +pub use self::cloud_games_game_banner_upload_prepare_request::CloudGamesGameBannerUploadPrepareRequest; +pub mod cloud_games_game_banner_upload_prepare_response; +pub use self::cloud_games_game_banner_upload_prepare_response::CloudGamesGameBannerUploadPrepareResponse; +pub mod cloud_games_game_logo_upload_prepare_request; +pub use self::cloud_games_game_logo_upload_prepare_request::CloudGamesGameLogoUploadPrepareRequest; +pub mod cloud_games_game_logo_upload_prepare_response; +pub use self::cloud_games_game_logo_upload_prepare_response::CloudGamesGameLogoUploadPrepareResponse; +pub mod cloud_games_get_game_by_id_response; +pub use self::cloud_games_get_game_by_id_response::CloudGamesGetGameByIdResponse; +pub mod cloud_games_get_game_version_by_id_response; +pub use self::cloud_games_get_game_version_by_id_response::CloudGamesGetGameVersionByIdResponse; +pub mod cloud_games_get_games_response; +pub use self::cloud_games_get_games_response::CloudGamesGetGamesResponse; +pub mod cloud_games_get_lobby_logs_response; +pub use self::cloud_games_get_lobby_logs_response::CloudGamesGetLobbyLogsResponse; +pub mod cloud_games_list_game_builds_response; +pub use self::cloud_games_list_game_builds_response::CloudGamesListGameBuildsResponse; +pub mod cloud_games_list_game_cdn_sites_response; +pub use self::cloud_games_list_game_cdn_sites_response::CloudGamesListGameCdnSitesResponse; +pub mod cloud_games_list_game_custom_avatars_response; +pub use self::cloud_games_list_game_custom_avatars_response::CloudGamesListGameCustomAvatarsResponse; +pub mod cloud_games_log_stream; +pub use self::cloud_games_log_stream::CloudGamesLogStream; +pub mod cloud_games_namespaces_add_namespace_domain_request; +pub use self::cloud_games_namespaces_add_namespace_domain_request::CloudGamesNamespacesAddNamespaceDomainRequest; +pub mod cloud_games_namespaces_create_game_namespace_request; +pub use self::cloud_games_namespaces_create_game_namespace_request::CloudGamesNamespacesCreateGameNamespaceRequest; +pub mod cloud_games_namespaces_create_game_namespace_response; +pub use self::cloud_games_namespaces_create_game_namespace_response::CloudGamesNamespacesCreateGameNamespaceResponse; +pub mod cloud_games_namespaces_create_game_namespace_token_development_request; +pub use self::cloud_games_namespaces_create_game_namespace_token_development_request::CloudGamesNamespacesCreateGameNamespaceTokenDevelopmentRequest; +pub mod cloud_games_namespaces_create_game_namespace_token_development_response; +pub use self::cloud_games_namespaces_create_game_namespace_token_development_response::CloudGamesNamespacesCreateGameNamespaceTokenDevelopmentResponse; +pub mod cloud_games_namespaces_create_game_namespace_token_public_response; +pub use self::cloud_games_namespaces_create_game_namespace_token_public_response::CloudGamesNamespacesCreateGameNamespaceTokenPublicResponse; +pub mod cloud_games_namespaces_get_analytics_matchmaker_live_response; +pub use self::cloud_games_namespaces_get_analytics_matchmaker_live_response::CloudGamesNamespacesGetAnalyticsMatchmakerLiveResponse; +pub mod cloud_games_namespaces_get_game_namespace_by_id_response; +pub use self::cloud_games_namespaces_get_game_namespace_by_id_response::CloudGamesNamespacesGetGameNamespaceByIdResponse; +pub mod cloud_games_namespaces_get_game_namespace_version_history_response; +pub use self::cloud_games_namespaces_get_game_namespace_version_history_response::CloudGamesNamespacesGetGameNamespaceVersionHistoryResponse; +pub mod cloud_games_namespaces_get_namespace_lobby_response; +pub use self::cloud_games_namespaces_get_namespace_lobby_response::CloudGamesNamespacesGetNamespaceLobbyResponse; +pub mod cloud_games_namespaces_inspect_response; +pub use self::cloud_games_namespaces_inspect_response::CloudGamesNamespacesInspectResponse; +pub mod cloud_games_namespaces_list_namespace_lobbies_response; +pub use self::cloud_games_namespaces_list_namespace_lobbies_response::CloudGamesNamespacesListNamespaceLobbiesResponse; +pub mod cloud_games_namespaces_set_namespace_cdn_auth_type_request; +pub use self::cloud_games_namespaces_set_namespace_cdn_auth_type_request::CloudGamesNamespacesSetNamespaceCdnAuthTypeRequest; +pub mod cloud_games_namespaces_toggle_namespace_domain_public_auth_request; +pub use self::cloud_games_namespaces_toggle_namespace_domain_public_auth_request::CloudGamesNamespacesToggleNamespaceDomainPublicAuthRequest; +pub mod cloud_games_namespaces_update_game_namespace_matchmaker_config_request; +pub use self::cloud_games_namespaces_update_game_namespace_matchmaker_config_request::CloudGamesNamespacesUpdateGameNamespaceMatchmakerConfigRequest; +pub mod cloud_games_namespaces_update_game_namespace_version_request; +pub use self::cloud_games_namespaces_update_game_namespace_version_request::CloudGamesNamespacesUpdateGameNamespaceVersionRequest; +pub mod cloud_games_namespaces_update_namespace_cdn_auth_user_request; +pub use self::cloud_games_namespaces_update_namespace_cdn_auth_user_request::CloudGamesNamespacesUpdateNamespaceCdnAuthUserRequest; +pub mod cloud_games_namespaces_validate_game_namespace_matchmaker_config_request; +pub use self::cloud_games_namespaces_validate_game_namespace_matchmaker_config_request::CloudGamesNamespacesValidateGameNamespaceMatchmakerConfigRequest; +pub mod cloud_games_namespaces_validate_game_namespace_matchmaker_config_response; +pub use self::cloud_games_namespaces_validate_game_namespace_matchmaker_config_response::CloudGamesNamespacesValidateGameNamespaceMatchmakerConfigResponse; +pub mod cloud_games_namespaces_validate_game_namespace_request; +pub use self::cloud_games_namespaces_validate_game_namespace_request::CloudGamesNamespacesValidateGameNamespaceRequest; +pub mod cloud_games_namespaces_validate_game_namespace_response; +pub use self::cloud_games_namespaces_validate_game_namespace_response::CloudGamesNamespacesValidateGameNamespaceResponse; +pub mod cloud_games_namespaces_validate_game_namespace_token_development_request; +pub use self::cloud_games_namespaces_validate_game_namespace_token_development_request::CloudGamesNamespacesValidateGameNamespaceTokenDevelopmentRequest; +pub mod cloud_games_namespaces_validate_game_namespace_token_development_response; +pub use self::cloud_games_namespaces_validate_game_namespace_token_development_response::CloudGamesNamespacesValidateGameNamespaceTokenDevelopmentResponse; +pub mod cloud_games_prepare_custom_avatar_upload_request; +pub use self::cloud_games_prepare_custom_avatar_upload_request::CloudGamesPrepareCustomAvatarUploadRequest; +pub mod cloud_games_prepare_custom_avatar_upload_response; +pub use self::cloud_games_prepare_custom_avatar_upload_response::CloudGamesPrepareCustomAvatarUploadResponse; +pub mod cloud_games_reserve_version_name_response; +pub use self::cloud_games_reserve_version_name_response::CloudGamesReserveVersionNameResponse; +pub mod cloud_games_validate_game_request; +pub use self::cloud_games_validate_game_request::CloudGamesValidateGameRequest; +pub mod cloud_games_validate_game_response; +pub use self::cloud_games_validate_game_response::CloudGamesValidateGameResponse; +pub mod cloud_games_validate_game_version_request; +pub use self::cloud_games_validate_game_version_request::CloudGamesValidateGameVersionRequest; +pub mod cloud_games_validate_game_version_response; +pub use self::cloud_games_validate_game_version_response::CloudGamesValidateGameVersionResponse; +pub mod cloud_get_ray_perf_logs_response; +pub use self::cloud_get_ray_perf_logs_response::CloudGetRayPerfLogsResponse; +pub mod cloud_get_region_tiers_response; +pub use self::cloud_get_region_tiers_response::CloudGetRegionTiersResponse; +pub mod cloud_group_bank_source; +pub use self::cloud_group_bank_source::CloudGroupBankSource; +pub mod cloud_inspect_response; +pub use self::cloud_inspect_response::CloudInspectResponse; +pub mod cloud_lobby_summary_analytics; +pub use self::cloud_lobby_summary_analytics::CloudLobbySummaryAnalytics; +pub mod cloud_logs_lobby_status; +pub use self::cloud_logs_lobby_status::CloudLogsLobbyStatus; +pub mod cloud_logs_lobby_status_stopped; +pub use self::cloud_logs_lobby_status_stopped::CloudLogsLobbyStatusStopped; +pub mod cloud_logs_lobby_summary; +pub use self::cloud_logs_lobby_summary::CloudLogsLobbySummary; +pub mod cloud_logs_perf_mark; +pub use self::cloud_logs_perf_mark::CloudLogsPerfMark; +pub mod cloud_logs_perf_span; +pub use self::cloud_logs_perf_span::CloudLogsPerfSpan; +pub mod cloud_matchmaker_development_port; +pub use self::cloud_matchmaker_development_port::CloudMatchmakerDevelopmentPort; +pub mod cloud_matchmaker_namespace_config; +pub use self::cloud_matchmaker_namespace_config::CloudMatchmakerNamespaceConfig; +pub mod cloud_namespace_config; +pub use self::cloud_namespace_config::CloudNamespaceConfig; +pub mod cloud_namespace_full; +pub use self::cloud_namespace_full::CloudNamespaceFull; +pub mod cloud_namespace_summary; +pub use self::cloud_namespace_summary::CloudNamespaceSummary; +pub mod cloud_namespace_version; +pub use self::cloud_namespace_version::CloudNamespaceVersion; +pub mod cloud_region_summary; +pub use self::cloud_region_summary::CloudRegionSummary; +pub mod cloud_region_tier; +pub use self::cloud_region_tier::CloudRegionTier; +pub mod cloud_region_tier_expenses; +pub use self::cloud_region_tier_expenses::CloudRegionTierExpenses; +pub mod cloud_svc_metrics; +pub use self::cloud_svc_metrics::CloudSvcMetrics; +pub mod cloud_svc_perf; +pub use self::cloud_svc_perf::CloudSvcPerf; +pub mod cloud_universal_region; +pub use self::cloud_universal_region::CloudUniversalRegion; +pub mod cloud_validate_group_request; +pub use self::cloud_validate_group_request::CloudValidateGroupRequest; +pub mod cloud_validate_group_response; +pub use self::cloud_validate_group_response::CloudValidateGroupResponse; +pub mod cloud_version_cdn_config; +pub use self::cloud_version_cdn_config::CloudVersionCdnConfig; +pub mod cloud_version_cdn_custom_headers_middleware; +pub use self::cloud_version_cdn_custom_headers_middleware::CloudVersionCdnCustomHeadersMiddleware; +pub mod cloud_version_cdn_header; +pub use self::cloud_version_cdn_header::CloudVersionCdnHeader; +pub mod cloud_version_cdn_middleware; +pub use self::cloud_version_cdn_middleware::CloudVersionCdnMiddleware; +pub mod cloud_version_cdn_middleware_kind; +pub use self::cloud_version_cdn_middleware_kind::CloudVersionCdnMiddlewareKind; +pub mod cloud_version_cdn_route; +pub use self::cloud_version_cdn_route::CloudVersionCdnRoute; +pub mod cloud_version_config; +pub use self::cloud_version_config::CloudVersionConfig; +pub mod cloud_version_engine_config; +pub use self::cloud_version_engine_config::CloudVersionEngineConfig; +pub mod cloud_version_engine_unreal_config; +pub use self::cloud_version_engine_unreal_config::CloudVersionEngineUnrealConfig; +pub mod cloud_version_full; +pub use self::cloud_version_full::CloudVersionFull; +pub mod cloud_version_identity_config; +pub use self::cloud_version_identity_config::CloudVersionIdentityConfig; +pub mod cloud_version_identity_custom_avatar; +pub use self::cloud_version_identity_custom_avatar::CloudVersionIdentityCustomAvatar; +pub mod cloud_version_identity_custom_display_name; +pub use self::cloud_version_identity_custom_display_name::CloudVersionIdentityCustomDisplayName; +pub mod cloud_version_matchmaker_captcha; +pub use self::cloud_version_matchmaker_captcha::CloudVersionMatchmakerCaptcha; +pub mod cloud_version_matchmaker_captcha_hcaptcha; +pub use self::cloud_version_matchmaker_captcha_hcaptcha::CloudVersionMatchmakerCaptchaHcaptcha; +pub mod cloud_version_matchmaker_captcha_hcaptcha_level; +pub use self::cloud_version_matchmaker_captcha_hcaptcha_level::CloudVersionMatchmakerCaptchaHcaptchaLevel; +pub mod cloud_version_matchmaker_captcha_turnstile; +pub use self::cloud_version_matchmaker_captcha_turnstile::CloudVersionMatchmakerCaptchaTurnstile; +pub mod cloud_version_matchmaker_config; +pub use self::cloud_version_matchmaker_config::CloudVersionMatchmakerConfig; +pub mod cloud_version_matchmaker_game_mode; +pub use self::cloud_version_matchmaker_game_mode::CloudVersionMatchmakerGameMode; +pub mod cloud_version_matchmaker_game_mode_actions; +pub use self::cloud_version_matchmaker_game_mode_actions::CloudVersionMatchmakerGameModeActions; +pub mod cloud_version_matchmaker_game_mode_create_config; +pub use self::cloud_version_matchmaker_game_mode_create_config::CloudVersionMatchmakerGameModeCreateConfig; +pub mod cloud_version_matchmaker_game_mode_find_config; +pub use self::cloud_version_matchmaker_game_mode_find_config::CloudVersionMatchmakerGameModeFindConfig; +pub mod cloud_version_matchmaker_game_mode_identity_requirement; +pub use self::cloud_version_matchmaker_game_mode_identity_requirement::CloudVersionMatchmakerGameModeIdentityRequirement; +pub mod cloud_version_matchmaker_game_mode_idle_lobbies_config; +pub use self::cloud_version_matchmaker_game_mode_idle_lobbies_config::CloudVersionMatchmakerGameModeIdleLobbiesConfig; +pub mod cloud_version_matchmaker_game_mode_join_config; +pub use self::cloud_version_matchmaker_game_mode_join_config::CloudVersionMatchmakerGameModeJoinConfig; +pub mod cloud_version_matchmaker_game_mode_region; +pub use self::cloud_version_matchmaker_game_mode_region::CloudVersionMatchmakerGameModeRegion; +pub mod cloud_version_matchmaker_game_mode_runtime_docker; +pub use self::cloud_version_matchmaker_game_mode_runtime_docker::CloudVersionMatchmakerGameModeRuntimeDocker; +pub mod cloud_version_matchmaker_game_mode_runtime_docker_port; +pub use self::cloud_version_matchmaker_game_mode_runtime_docker_port::CloudVersionMatchmakerGameModeRuntimeDockerPort; +pub mod cloud_version_matchmaker_game_mode_verification_config; +pub use self::cloud_version_matchmaker_game_mode_verification_config::CloudVersionMatchmakerGameModeVerificationConfig; +pub mod cloud_version_matchmaker_lobby_group; +pub use self::cloud_version_matchmaker_lobby_group::CloudVersionMatchmakerLobbyGroup; +pub mod cloud_version_matchmaker_lobby_group_idle_lobbies_config; +pub use self::cloud_version_matchmaker_lobby_group_idle_lobbies_config::CloudVersionMatchmakerLobbyGroupIdleLobbiesConfig; +pub mod cloud_version_matchmaker_lobby_group_region; +pub use self::cloud_version_matchmaker_lobby_group_region::CloudVersionMatchmakerLobbyGroupRegion; +pub mod cloud_version_matchmaker_lobby_group_runtime; +pub use self::cloud_version_matchmaker_lobby_group_runtime::CloudVersionMatchmakerLobbyGroupRuntime; +pub mod cloud_version_matchmaker_lobby_group_runtime_docker; +pub use self::cloud_version_matchmaker_lobby_group_runtime_docker::CloudVersionMatchmakerLobbyGroupRuntimeDocker; +pub mod cloud_version_matchmaker_lobby_group_runtime_docker_env_var; +pub use self::cloud_version_matchmaker_lobby_group_runtime_docker_env_var::CloudVersionMatchmakerLobbyGroupRuntimeDockerEnvVar; +pub mod cloud_version_matchmaker_lobby_group_runtime_docker_port; +pub use self::cloud_version_matchmaker_lobby_group_runtime_docker_port::CloudVersionMatchmakerLobbyGroupRuntimeDockerPort; +pub mod cloud_version_matchmaker_network_mode; +pub use self::cloud_version_matchmaker_network_mode::CloudVersionMatchmakerNetworkMode; +pub mod cloud_version_matchmaker_port_protocol; +pub use self::cloud_version_matchmaker_port_protocol::CloudVersionMatchmakerPortProtocol; +pub mod cloud_version_matchmaker_port_range; +pub use self::cloud_version_matchmaker_port_range::CloudVersionMatchmakerPortRange; +pub mod cloud_version_matchmaker_proxy_kind; +pub use self::cloud_version_matchmaker_proxy_kind::CloudVersionMatchmakerProxyKind; +pub mod cloud_version_summary; +pub use self::cloud_version_summary::CloudVersionSummary; +pub mod error_body; +pub use self::error_body::ErrorBody; +pub mod game_handle; +pub use self::game_handle::GameHandle; +pub mod game_leaderboard_category; +pub use self::game_leaderboard_category::GameLeaderboardCategory; +pub mod game_platform_link; +pub use self::game_platform_link::GamePlatformLink; +pub mod game_profile; +pub use self::game_profile::GameProfile; +pub mod game_stat; +pub use self::game_stat::GameStat; +pub mod game_stat_aggregation_method; +pub use self::game_stat_aggregation_method::GameStatAggregationMethod; +pub mod game_stat_config; +pub use self::game_stat_config::GameStatConfig; +pub mod game_stat_format_method; +pub use self::game_stat_format_method::GameStatFormatMethod; +pub mod game_stat_sorting_method; +pub use self::game_stat_sorting_method::GameStatSortingMethod; +pub mod game_stat_summary; +pub use self::game_stat_summary::GameStatSummary; +pub mod game_summary; +pub use self::game_summary::GameSummary; +pub mod geo_coord; +pub use self::geo_coord::GeoCoord; +pub mod geo_distance; +pub use self::geo_distance::GeoDistance; +pub mod global_event_notification; +pub use self::global_event_notification::GlobalEventNotification; +pub mod group_banned_identity; +pub use self::group_banned_identity::GroupBannedIdentity; +pub mod group_consume_invite_response; +pub use self::group_consume_invite_response::GroupConsumeInviteResponse; +pub mod group_create_invite_request; +pub use self::group_create_invite_request::GroupCreateInviteRequest; +pub mod group_create_invite_response; +pub use self::group_create_invite_response::GroupCreateInviteResponse; +pub mod group_create_request; +pub use self::group_create_request::GroupCreateRequest; +pub mod group_create_response; +pub use self::group_create_response::GroupCreateResponse; +pub mod group_external_links; +pub use self::group_external_links::GroupExternalLinks; +pub mod group_get_bans_response; +pub use self::group_get_bans_response::GroupGetBansResponse; +pub mod group_get_invite_response; +pub use self::group_get_invite_response::GroupGetInviteResponse; +pub mod group_get_join_requests_response; +pub use self::group_get_join_requests_response::GroupGetJoinRequestsResponse; +pub mod group_get_members_response; +pub use self::group_get_members_response::GroupGetMembersResponse; +pub mod group_get_profile_response; +pub use self::group_get_profile_response::GroupGetProfileResponse; +pub mod group_get_summary_response; +pub use self::group_get_summary_response::GroupGetSummaryResponse; +pub mod group_handle; +pub use self::group_handle::GroupHandle; +pub mod group_join_request; +pub use self::group_join_request::GroupJoinRequest; +pub mod group_list_suggested_response; +pub use self::group_list_suggested_response::GroupListSuggestedResponse; +pub mod group_member; +pub use self::group_member::GroupMember; +pub mod group_prepare_avatar_upload_request; +pub use self::group_prepare_avatar_upload_request::GroupPrepareAvatarUploadRequest; +pub mod group_prepare_avatar_upload_response; +pub use self::group_prepare_avatar_upload_response::GroupPrepareAvatarUploadResponse; +pub mod group_profile; +pub use self::group_profile::GroupProfile; +pub mod group_publicity; +pub use self::group_publicity::GroupPublicity; +pub mod group_resolve_join_request_request; +pub use self::group_resolve_join_request_request::GroupResolveJoinRequestRequest; +pub mod group_search_response; +pub use self::group_search_response::GroupSearchResponse; +pub mod group_summary; +pub use self::group_summary::GroupSummary; +pub mod group_transfer_ownership_request; +pub use self::group_transfer_ownership_request::GroupTransferOwnershipRequest; +pub mod group_update_profile_request; +pub use self::group_update_profile_request::GroupUpdateProfileRequest; +pub mod group_validate_profile_request; +pub use self::group_validate_profile_request::GroupValidateProfileRequest; +pub mod group_validate_profile_response; +pub use self::group_validate_profile_response::GroupValidateProfileResponse; +pub mod identity_access_token_linked_account; +pub use self::identity_access_token_linked_account::IdentityAccessTokenLinkedAccount; +pub mod identity_cancel_game_link_request; +pub use self::identity_cancel_game_link_request::IdentityCancelGameLinkRequest; +pub mod identity_complete_game_link_request; +pub use self::identity_complete_game_link_request::IdentityCompleteGameLinkRequest; +pub mod identity_dev_state; +pub use self::identity_dev_state::IdentityDevState; +pub mod identity_email_linked_account; +pub use self::identity_email_linked_account::IdentityEmailLinkedAccount; +pub mod identity_external_links; +pub use self::identity_external_links::IdentityExternalLinks; +pub mod identity_game_activity; +pub use self::identity_game_activity::IdentityGameActivity; +pub mod identity_game_link_status; +pub use self::identity_game_link_status::IdentityGameLinkStatus; +pub mod identity_get_game_link_new_identity; +pub use self::identity_get_game_link_new_identity::IdentityGetGameLinkNewIdentity; +pub mod identity_get_game_link_response; +pub use self::identity_get_game_link_response::IdentityGetGameLinkResponse; +pub mod identity_get_handles_response; +pub use self::identity_get_handles_response::IdentityGetHandlesResponse; +pub mod identity_get_profile_response; +pub use self::identity_get_profile_response::IdentityGetProfileResponse; +pub mod identity_get_summaries_response; +pub use self::identity_get_summaries_response::IdentityGetSummariesResponse; +pub mod identity_global_event; +pub use self::identity_global_event::IdentityGlobalEvent; +pub mod identity_global_event_identity_update; +pub use self::identity_global_event_identity_update::IdentityGlobalEventIdentityUpdate; +pub mod identity_global_event_kind; +pub use self::identity_global_event_kind::IdentityGlobalEventKind; +pub mod identity_global_event_matchmaker_lobby_join; +pub use self::identity_global_event_matchmaker_lobby_join::IdentityGlobalEventMatchmakerLobbyJoin; +pub mod identity_global_event_notification; +pub use self::identity_global_event_notification::IdentityGlobalEventNotification; +pub mod identity_group; +pub use self::identity_group::IdentityGroup; +pub mod identity_handle; +pub use self::identity_handle::IdentityHandle; +pub mod identity_linked_account; +pub use self::identity_linked_account::IdentityLinkedAccount; +pub mod identity_list_activities_response; +pub use self::identity_list_activities_response::IdentityListActivitiesResponse; +pub mod identity_list_followers_response; +pub use self::identity_list_followers_response::IdentityListFollowersResponse; +pub mod identity_list_following_response; +pub use self::identity_list_following_response::IdentityListFollowingResponse; +pub mod identity_list_friends_response; +pub use self::identity_list_friends_response::IdentityListFriendsResponse; +pub mod identity_list_mutual_friends_response; +pub use self::identity_list_mutual_friends_response::IdentityListMutualFriendsResponse; +pub mod identity_list_recent_followers_response; +pub use self::identity_list_recent_followers_response::IdentityListRecentFollowersResponse; +pub mod identity_prepare_avatar_upload_request; +pub use self::identity_prepare_avatar_upload_request::IdentityPrepareAvatarUploadRequest; +pub mod identity_prepare_avatar_upload_response; +pub use self::identity_prepare_avatar_upload_response::IdentityPrepareAvatarUploadResponse; +pub mod identity_prepare_game_link_response; +pub use self::identity_prepare_game_link_response::IdentityPrepareGameLinkResponse; +pub mod identity_presence; +pub use self::identity_presence::IdentityPresence; +pub mod identity_profile; +pub use self::identity_profile::IdentityProfile; +pub mod identity_report_request; +pub use self::identity_report_request::IdentityReportRequest; +pub mod identity_search_response; +pub use self::identity_search_response::IdentitySearchResponse; +pub mod identity_set_game_activity_request; +pub use self::identity_set_game_activity_request::IdentitySetGameActivityRequest; +pub mod identity_setup_request; +pub use self::identity_setup_request::IdentitySetupRequest; +pub mod identity_setup_response; +pub use self::identity_setup_response::IdentitySetupResponse; +pub mod identity_signup_for_beta_request; +pub use self::identity_signup_for_beta_request::IdentitySignupForBetaRequest; +pub mod identity_status; +pub use self::identity_status::IdentityStatus; +pub mod identity_summary; +pub use self::identity_summary::IdentitySummary; +pub mod identity_update_game_activity; +pub use self::identity_update_game_activity::IdentityUpdateGameActivity; +pub mod identity_update_profile_request; +pub use self::identity_update_profile_request::IdentityUpdateProfileRequest; +pub mod identity_update_status_request; +pub use self::identity_update_status_request::IdentityUpdateStatusRequest; +pub mod identity_validate_profile_response; +pub use self::identity_validate_profile_response::IdentityValidateProfileResponse; +pub mod identity_watch_events_response; +pub use self::identity_watch_events_response::IdentityWatchEventsResponse; +pub mod kv_entry; +pub use self::kv_entry::KvEntry; +pub mod kv_get_batch_response; +pub use self::kv_get_batch_response::KvGetBatchResponse; +pub mod kv_get_response; +pub use self::kv_get_response::KvGetResponse; +pub mod kv_list_response; +pub use self::kv_list_response::KvListResponse; +pub mod kv_put_batch_request; +pub use self::kv_put_batch_request::KvPutBatchRequest; +pub mod kv_put_entry; +pub use self::kv_put_entry::KvPutEntry; +pub mod kv_put_request; +pub use self::kv_put_request::KvPutRequest; +pub mod matchmaker_create_lobby_response; +pub use self::matchmaker_create_lobby_response::MatchmakerCreateLobbyResponse; +pub mod matchmaker_custom_lobby_publicity; +pub use self::matchmaker_custom_lobby_publicity::MatchmakerCustomLobbyPublicity; +pub mod matchmaker_find_lobby_response; +pub use self::matchmaker_find_lobby_response::MatchmakerFindLobbyResponse; +pub mod matchmaker_game_mode_info; +pub use self::matchmaker_game_mode_info::MatchmakerGameModeInfo; +pub mod matchmaker_game_mode_statistics; +pub use self::matchmaker_game_mode_statistics::MatchmakerGameModeStatistics; +pub mod matchmaker_get_statistics_response; +pub use self::matchmaker_get_statistics_response::MatchmakerGetStatisticsResponse; +pub mod matchmaker_join_lobby; +pub use self::matchmaker_join_lobby::MatchmakerJoinLobby; +pub mod matchmaker_join_lobby_response; +pub use self::matchmaker_join_lobby_response::MatchmakerJoinLobbyResponse; +pub mod matchmaker_join_player; +pub use self::matchmaker_join_player::MatchmakerJoinPlayer; +pub mod matchmaker_join_port; +pub use self::matchmaker_join_port::MatchmakerJoinPort; +pub mod matchmaker_join_port_range; +pub use self::matchmaker_join_port_range::MatchmakerJoinPortRange; +pub mod matchmaker_join_region; +pub use self::matchmaker_join_region::MatchmakerJoinRegion; +pub mod matchmaker_list_lobbies_response; +pub use self::matchmaker_list_lobbies_response::MatchmakerListLobbiesResponse; +pub mod matchmaker_list_regions_response; +pub use self::matchmaker_list_regions_response::MatchmakerListRegionsResponse; +pub mod matchmaker_lobbies_create_request; +pub use self::matchmaker_lobbies_create_request::MatchmakerLobbiesCreateRequest; +pub mod matchmaker_lobbies_find_request; +pub use self::matchmaker_lobbies_find_request::MatchmakerLobbiesFindRequest; +pub mod matchmaker_lobbies_join_request; +pub use self::matchmaker_lobbies_join_request::MatchmakerLobbiesJoinRequest; +pub mod matchmaker_lobbies_set_closed_request; +pub use self::matchmaker_lobbies_set_closed_request::MatchmakerLobbiesSetClosedRequest; +pub mod matchmaker_lobby_info; +pub use self::matchmaker_lobby_info::MatchmakerLobbyInfo; +pub mod matchmaker_players_connected_request; +pub use self::matchmaker_players_connected_request::MatchmakerPlayersConnectedRequest; +pub mod matchmaker_region_info; +pub use self::matchmaker_region_info::MatchmakerRegionInfo; +pub mod matchmaker_region_statistics; +pub use self::matchmaker_region_statistics::MatchmakerRegionStatistics; +pub mod portal_get_game_profile_response; +pub use self::portal_get_game_profile_response::PortalGetGameProfileResponse; +pub mod portal_get_suggested_games_response; +pub use self::portal_get_suggested_games_response::PortalGetSuggestedGamesResponse; +pub mod portal_notification_register_firebase_service; +pub use self::portal_notification_register_firebase_service::PortalNotificationRegisterFirebaseService; +pub mod portal_notification_register_service; +pub use self::portal_notification_register_service::PortalNotificationRegisterService; +pub mod portal_notification_unregister_service; +pub use self::portal_notification_unregister_service::PortalNotificationUnregisterService; +pub mod provision_datacenters_get_tls_response; +pub use self::provision_datacenters_get_tls_response::ProvisionDatacentersGetTlsResponse; +pub mod provision_servers_get_info_response; +pub use self::provision_servers_get_info_response::ProvisionServersGetInfoResponse; +pub mod servers_build; +pub use self::servers_build::ServersBuild; +pub mod servers_build_compression; +pub use self::servers_build_compression::ServersBuildCompression; +pub mod servers_build_kind; +pub use self::servers_build_kind::ServersBuildKind; +pub mod servers_create_build_request; +pub use self::servers_create_build_request::ServersCreateBuildRequest; +pub mod servers_create_build_response; +pub use self::servers_create_build_response::ServersCreateBuildResponse; +pub mod servers_create_server_network_request; +pub use self::servers_create_server_network_request::ServersCreateServerNetworkRequest; +pub mod servers_create_server_port_request; +pub use self::servers_create_server_port_request::ServersCreateServerPortRequest; +pub mod servers_create_server_request; +pub use self::servers_create_server_request::ServersCreateServerRequest; +pub mod servers_create_server_response; +pub use self::servers_create_server_response::ServersCreateServerResponse; +pub mod servers_get_build_response; +pub use self::servers_get_build_response::ServersGetBuildResponse; +pub mod servers_get_server_logs_response; +pub use self::servers_get_server_logs_response::ServersGetServerLogsResponse; +pub mod servers_get_server_response; +pub use self::servers_get_server_response::ServersGetServerResponse; +pub mod servers_list_builds_response; +pub use self::servers_list_builds_response::ServersListBuildsResponse; +pub mod servers_list_servers_response; +pub use self::servers_list_servers_response::ServersListServersResponse; +pub mod servers_log_stream; +pub use self::servers_log_stream::ServersLogStream; +pub mod servers_network; +pub use self::servers_network::ServersNetwork; +pub mod servers_network_mode; +pub use self::servers_network_mode::ServersNetworkMode; +pub mod servers_port; +pub use self::servers_port::ServersPort; +pub mod servers_port_protocol; +pub use self::servers_port_protocol::ServersPortProtocol; +pub mod servers_port_routing; +pub use self::servers_port_routing::ServersPortRouting; +pub mod servers_resources; +pub use self::servers_resources::ServersResources; +pub mod servers_server; +pub use self::servers_server::ServersServer; +pub mod upload_prepare_file; +pub use self::upload_prepare_file::UploadPrepareFile; +pub mod upload_presigned_request; +pub use self::upload_presigned_request::UploadPresignedRequest; +pub mod validation_error; +pub use self::validation_error::ValidationError; +pub mod watch_response; +pub use self::watch_response::WatchResponse; diff --git a/sdks/full/rust-cli/src/models/portal_get_game_profile_response.rs b/sdks/full/rust-cli/src/models/portal_get_game_profile_response.rs new file mode 100644 index 0000000000..956b0da212 --- /dev/null +++ b/sdks/full/rust-cli/src/models/portal_get_game_profile_response.rs @@ -0,0 +1,31 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct PortalGetGameProfileResponse { + #[serde(rename = "game")] + pub game: Box, + #[serde(rename = "watch")] + pub watch: Box, +} + +impl PortalGetGameProfileResponse { + pub fn new(game: crate::models::GameProfile, watch: crate::models::WatchResponse) -> PortalGetGameProfileResponse { + PortalGetGameProfileResponse { + game: Box::new(game), + watch: Box::new(watch), + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/portal_get_suggested_games_response.rs b/sdks/full/rust-cli/src/models/portal_get_suggested_games_response.rs new file mode 100644 index 0000000000..a663aeaac5 --- /dev/null +++ b/sdks/full/rust-cli/src/models/portal_get_suggested_games_response.rs @@ -0,0 +1,32 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct PortalGetSuggestedGamesResponse { + /// A list of game summaries. + #[serde(rename = "games")] + pub games: Vec, + #[serde(rename = "watch")] + pub watch: Box, +} + +impl PortalGetSuggestedGamesResponse { + pub fn new(games: Vec, watch: crate::models::WatchResponse) -> PortalGetSuggestedGamesResponse { + PortalGetSuggestedGamesResponse { + games, + watch: Box::new(watch), + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/portal_notification_register_firebase_service.rs b/sdks/full/rust-cli/src/models/portal_notification_register_firebase_service.rs new file mode 100644 index 0000000000..213357992e --- /dev/null +++ b/sdks/full/rust-cli/src/models/portal_notification_register_firebase_service.rs @@ -0,0 +1,28 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct PortalNotificationRegisterFirebaseService { + #[serde(rename = "access_key")] + pub access_key: String, +} + +impl PortalNotificationRegisterFirebaseService { + pub fn new(access_key: String) -> PortalNotificationRegisterFirebaseService { + PortalNotificationRegisterFirebaseService { + access_key, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/portal_notification_register_service.rs b/sdks/full/rust-cli/src/models/portal_notification_register_service.rs new file mode 100644 index 0000000000..1058fd743b --- /dev/null +++ b/sdks/full/rust-cli/src/models/portal_notification_register_service.rs @@ -0,0 +1,28 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct PortalNotificationRegisterService { + #[serde(rename = "firebase", skip_serializing_if = "Option::is_none")] + pub firebase: Option>, +} + +impl PortalNotificationRegisterService { + pub fn new() -> PortalNotificationRegisterService { + PortalNotificationRegisterService { + firebase: None, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/portal_notification_unregister_service.rs b/sdks/full/rust-cli/src/models/portal_notification_unregister_service.rs new file mode 100644 index 0000000000..d4bda04c73 --- /dev/null +++ b/sdks/full/rust-cli/src/models/portal_notification_unregister_service.rs @@ -0,0 +1,36 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum PortalNotificationUnregisterService { + #[serde(rename = "firebase")] + Firebase, + +} + +impl ToString for PortalNotificationUnregisterService { + fn to_string(&self) -> String { + match self { + Self::Firebase => String::from("firebase"), + } + } +} + +impl Default for PortalNotificationUnregisterService { + fn default() -> PortalNotificationUnregisterService { + Self::Firebase + } +} + + + + diff --git a/sdks/full/rust-cli/src/models/provision_datacenters_get_tls_response.rs b/sdks/full/rust-cli/src/models/provision_datacenters_get_tls_response.rs new file mode 100644 index 0000000000..a2039a21ba --- /dev/null +++ b/sdks/full/rust-cli/src/models/provision_datacenters_get_tls_response.rs @@ -0,0 +1,31 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ProvisionDatacentersGetTlsResponse { + #[serde(rename = "job_cert_pem")] + pub job_cert_pem: String, + #[serde(rename = "job_private_key_pem")] + pub job_private_key_pem: String, +} + +impl ProvisionDatacentersGetTlsResponse { + pub fn new(job_cert_pem: String, job_private_key_pem: String) -> ProvisionDatacentersGetTlsResponse { + ProvisionDatacentersGetTlsResponse { + job_cert_pem, + job_private_key_pem, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/provision_servers_get_info_response.rs b/sdks/full/rust-cli/src/models/provision_servers_get_info_response.rs new file mode 100644 index 0000000000..2ea3c801d8 --- /dev/null +++ b/sdks/full/rust-cli/src/models/provision_servers_get_info_response.rs @@ -0,0 +1,40 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ProvisionServersGetInfoResponse { + #[serde(rename = "cluster_id")] + pub cluster_id: uuid::Uuid, + #[serde(rename = "datacenter_id")] + pub datacenter_id: uuid::Uuid, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "server_id")] + pub server_id: uuid::Uuid, + #[serde(rename = "vlan_ip")] + pub vlan_ip: String, +} + +impl ProvisionServersGetInfoResponse { + pub fn new(cluster_id: uuid::Uuid, datacenter_id: uuid::Uuid, name: String, server_id: uuid::Uuid, vlan_ip: String) -> ProvisionServersGetInfoResponse { + ProvisionServersGetInfoResponse { + cluster_id, + datacenter_id, + name, + server_id, + vlan_ip, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/servers_build.rs b/sdks/full/rust-cli/src/models/servers_build.rs new file mode 100644 index 0000000000..3eb27290a8 --- /dev/null +++ b/sdks/full/rust-cli/src/models/servers_build.rs @@ -0,0 +1,50 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ServersBuild { + /// RFC3339 timestamp + #[serde(rename = "completed_at", skip_serializing_if = "Option::is_none")] + pub completed_at: Option, + /// Unsigned 64 bit integer. + #[serde(rename = "content_length")] + pub content_length: i64, + /// RFC3339 timestamp + #[serde(rename = "created_at")] + pub created_at: String, + #[serde(rename = "id")] + pub id: uuid::Uuid, + #[serde(rename = "name")] + pub name: String, + /// Tags of this build + #[serde(rename = "tags")] + pub tags: ::std::collections::HashMap, + #[serde(rename = "upload")] + pub upload: uuid::Uuid, +} + +impl ServersBuild { + pub fn new(content_length: i64, created_at: String, id: uuid::Uuid, name: String, tags: ::std::collections::HashMap, upload: uuid::Uuid) -> ServersBuild { + ServersBuild { + completed_at: None, + content_length, + created_at, + id, + name, + tags, + upload, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/servers_build_compression.rs b/sdks/full/rust-cli/src/models/servers_build_compression.rs new file mode 100644 index 0000000000..fd549d6279 --- /dev/null +++ b/sdks/full/rust-cli/src/models/servers_build_compression.rs @@ -0,0 +1,39 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum ServersBuildCompression { + #[serde(rename = "none")] + None, + #[serde(rename = "lz4")] + Lz4, + +} + +impl ToString for ServersBuildCompression { + fn to_string(&self) -> String { + match self { + Self::None => String::from("none"), + Self::Lz4 => String::from("lz4"), + } + } +} + +impl Default for ServersBuildCompression { + fn default() -> ServersBuildCompression { + Self::None + } +} + + + + diff --git a/sdks/full/rust-cli/src/models/servers_build_kind.rs b/sdks/full/rust-cli/src/models/servers_build_kind.rs new file mode 100644 index 0000000000..853abbb0e7 --- /dev/null +++ b/sdks/full/rust-cli/src/models/servers_build_kind.rs @@ -0,0 +1,39 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum ServersBuildKind { + #[serde(rename = "docker_image")] + DockerImage, + #[serde(rename = "oci_bundle")] + OciBundle, + +} + +impl ToString for ServersBuildKind { + fn to_string(&self) -> String { + match self { + Self::DockerImage => String::from("docker_image"), + Self::OciBundle => String::from("oci_bundle"), + } + } +} + +impl Default for ServersBuildKind { + fn default() -> ServersBuildKind { + Self::DockerImage + } +} + + + + diff --git a/sdks/full/rust-cli/src/models/servers_create_build_request.rs b/sdks/full/rust-cli/src/models/servers_create_build_request.rs new file mode 100644 index 0000000000..3bc0d3a7d7 --- /dev/null +++ b/sdks/full/rust-cli/src/models/servers_create_build_request.rs @@ -0,0 +1,47 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ServersCreateBuildRequest { + #[serde(rename = "compression", skip_serializing_if = "Option::is_none")] + pub compression: Option, + #[serde(rename = "image_file")] + pub image_file: Box, + /// A tag given to the game build. + #[serde(rename = "image_tag")] + pub image_tag: String, + #[serde(rename = "kind", skip_serializing_if = "Option::is_none")] + pub kind: Option, + #[serde(rename = "multipart_upload", skip_serializing_if = "Option::is_none")] + pub multipart_upload: Option, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "tags", deserialize_with = "Option::deserialize")] + pub tags: Option, +} + +impl ServersCreateBuildRequest { + pub fn new(image_file: crate::models::UploadPrepareFile, image_tag: String, name: String, tags: Option) -> ServersCreateBuildRequest { + ServersCreateBuildRequest { + compression: None, + image_file: Box::new(image_file), + image_tag, + kind: None, + multipart_upload: None, + name, + tags, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/servers_create_build_response.rs b/sdks/full/rust-cli/src/models/servers_create_build_response.rs new file mode 100644 index 0000000000..9bce4b6134 --- /dev/null +++ b/sdks/full/rust-cli/src/models/servers_create_build_response.rs @@ -0,0 +1,37 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ServersCreateBuildResponse { + #[serde(rename = "build")] + pub build: uuid::Uuid, + #[serde(rename = "image_presigned_request", skip_serializing_if = "Option::is_none")] + pub image_presigned_request: Option>, + #[serde(rename = "image_presigned_requests", skip_serializing_if = "Option::is_none")] + pub image_presigned_requests: Option>, + #[serde(rename = "upload")] + pub upload: uuid::Uuid, +} + +impl ServersCreateBuildResponse { + pub fn new(build: uuid::Uuid, upload: uuid::Uuid) -> ServersCreateBuildResponse { + ServersCreateBuildResponse { + build, + image_presigned_request: None, + image_presigned_requests: None, + upload, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/servers_create_server_network_request.rs b/sdks/full/rust-cli/src/models/servers_create_server_network_request.rs new file mode 100644 index 0000000000..d469cc181d --- /dev/null +++ b/sdks/full/rust-cli/src/models/servers_create_server_network_request.rs @@ -0,0 +1,31 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ServersCreateServerNetworkRequest { + #[serde(rename = "mode", skip_serializing_if = "Option::is_none")] + pub mode: Option, + #[serde(rename = "ports")] + pub ports: ::std::collections::HashMap, +} + +impl ServersCreateServerNetworkRequest { + pub fn new(ports: ::std::collections::HashMap) -> ServersCreateServerNetworkRequest { + ServersCreateServerNetworkRequest { + mode: None, + ports, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/servers_create_server_port_request.rs b/sdks/full/rust-cli/src/models/servers_create_server_port_request.rs new file mode 100644 index 0000000000..d818685f71 --- /dev/null +++ b/sdks/full/rust-cli/src/models/servers_create_server_port_request.rs @@ -0,0 +1,34 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ServersCreateServerPortRequest { + #[serde(rename = "internal_port", skip_serializing_if = "Option::is_none")] + pub internal_port: Option, + #[serde(rename = "protocol")] + pub protocol: crate::models::ServersPortProtocol, + #[serde(rename = "routing", skip_serializing_if = "Option::is_none")] + pub routing: Option>, +} + +impl ServersCreateServerPortRequest { + pub fn new(protocol: crate::models::ServersPortProtocol) -> ServersCreateServerPortRequest { + ServersCreateServerPortRequest { + internal_port: None, + protocol, + routing: None, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/servers_create_server_request.rs b/sdks/full/rust-cli/src/models/servers_create_server_request.rs new file mode 100644 index 0000000000..7112b716f1 --- /dev/null +++ b/sdks/full/rust-cli/src/models/servers_create_server_request.rs @@ -0,0 +1,54 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ServersCreateServerRequest { + #[serde(rename = "arguments", skip_serializing_if = "Option::is_none")] + pub arguments: Option>, + #[serde(rename = "datacenter")] + pub datacenter: uuid::Uuid, + #[serde(rename = "environment", skip_serializing_if = "Option::is_none")] + pub environment: Option<::std::collections::HashMap>, + #[serde(rename = "image")] + pub image: uuid::Uuid, + /// The duration to wait for in milliseconds before killing the server. This should be set to a safe default, and can be overridden during a DELETE request if needed. + #[serde(rename = "kill_timeout", skip_serializing_if = "Option::is_none")] + pub kill_timeout: Option, + #[serde(rename = "network")] + pub network: Box, + #[serde(rename = "resources")] + pub resources: Box, + #[serde(rename = "tags", deserialize_with = "Option::deserialize")] + pub tags: Option, + /// A url to send to which events from the server running will be sent + #[serde(rename = "webhook_url", skip_serializing_if = "Option::is_none")] + pub webhook_url: Option, +} + +impl ServersCreateServerRequest { + pub fn new(datacenter: uuid::Uuid, image: uuid::Uuid, network: crate::models::ServersCreateServerNetworkRequest, resources: crate::models::ServersResources, tags: Option) -> ServersCreateServerRequest { + ServersCreateServerRequest { + arguments: None, + datacenter, + environment: None, + image, + kill_timeout: None, + network: Box::new(network), + resources: Box::new(resources), + tags, + webhook_url: None, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/servers_create_server_response.rs b/sdks/full/rust-cli/src/models/servers_create_server_response.rs new file mode 100644 index 0000000000..3c32cbd896 --- /dev/null +++ b/sdks/full/rust-cli/src/models/servers_create_server_response.rs @@ -0,0 +1,28 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ServersCreateServerResponse { + #[serde(rename = "server")] + pub server: Box, +} + +impl ServersCreateServerResponse { + pub fn new(server: crate::models::ServersServer) -> ServersCreateServerResponse { + ServersCreateServerResponse { + server: Box::new(server), + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/servers_get_build_response.rs b/sdks/full/rust-cli/src/models/servers_get_build_response.rs new file mode 100644 index 0000000000..25515b9332 --- /dev/null +++ b/sdks/full/rust-cli/src/models/servers_get_build_response.rs @@ -0,0 +1,28 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ServersGetBuildResponse { + #[serde(rename = "build")] + pub build: Box, +} + +impl ServersGetBuildResponse { + pub fn new(build: crate::models::ServersBuild) -> ServersGetBuildResponse { + ServersGetBuildResponse { + build: Box::new(build), + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/servers_get_server_logs_response.rs b/sdks/full/rust-cli/src/models/servers_get_server_logs_response.rs new file mode 100644 index 0000000000..dd6df5a770 --- /dev/null +++ b/sdks/full/rust-cli/src/models/servers_get_server_logs_response.rs @@ -0,0 +1,36 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ServersGetServerLogsResponse { + /// Sorted old to new. + #[serde(rename = "lines")] + pub lines: Vec, + /// Sorted old to new. + #[serde(rename = "timestamps")] + pub timestamps: Vec, + #[serde(rename = "watch")] + pub watch: Box, +} + +impl ServersGetServerLogsResponse { + pub fn new(lines: Vec, timestamps: Vec, watch: crate::models::WatchResponse) -> ServersGetServerLogsResponse { + ServersGetServerLogsResponse { + lines, + timestamps, + watch: Box::new(watch), + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/servers_get_server_response.rs b/sdks/full/rust-cli/src/models/servers_get_server_response.rs new file mode 100644 index 0000000000..2f017da813 --- /dev/null +++ b/sdks/full/rust-cli/src/models/servers_get_server_response.rs @@ -0,0 +1,28 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ServersGetServerResponse { + #[serde(rename = "server")] + pub server: Box, +} + +impl ServersGetServerResponse { + pub fn new(server: crate::models::ServersServer) -> ServersGetServerResponse { + ServersGetServerResponse { + server: Box::new(server), + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/servers_list_builds_response.rs b/sdks/full/rust-cli/src/models/servers_list_builds_response.rs new file mode 100644 index 0000000000..c3e1d63e80 --- /dev/null +++ b/sdks/full/rust-cli/src/models/servers_list_builds_response.rs @@ -0,0 +1,29 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ServersListBuildsResponse { + /// A list of builds for the game associated with the token. + #[serde(rename = "builds")] + pub builds: Vec, +} + +impl ServersListBuildsResponse { + pub fn new(builds: Vec) -> ServersListBuildsResponse { + ServersListBuildsResponse { + builds, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/servers_list_servers_response.rs b/sdks/full/rust-cli/src/models/servers_list_servers_response.rs new file mode 100644 index 0000000000..202010aa26 --- /dev/null +++ b/sdks/full/rust-cli/src/models/servers_list_servers_response.rs @@ -0,0 +1,29 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ServersListServersResponse { + /// A list of servers for the game associated with the token. + #[serde(rename = "servers")] + pub servers: Vec, +} + +impl ServersListServersResponse { + pub fn new(servers: Vec) -> ServersListServersResponse { + ServersListServersResponse { + servers, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/servers_log_stream.rs b/sdks/full/rust-cli/src/models/servers_log_stream.rs new file mode 100644 index 0000000000..b96bdda215 --- /dev/null +++ b/sdks/full/rust-cli/src/models/servers_log_stream.rs @@ -0,0 +1,39 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum ServersLogStream { + #[serde(rename = "std_out")] + StdOut, + #[serde(rename = "std_err")] + StdErr, + +} + +impl ToString for ServersLogStream { + fn to_string(&self) -> String { + match self { + Self::StdOut => String::from("std_out"), + Self::StdErr => String::from("std_err"), + } + } +} + +impl Default for ServersLogStream { + fn default() -> ServersLogStream { + Self::StdOut + } +} + + + + diff --git a/sdks/full/rust-cli/src/models/servers_network.rs b/sdks/full/rust-cli/src/models/servers_network.rs new file mode 100644 index 0000000000..97bade5673 --- /dev/null +++ b/sdks/full/rust-cli/src/models/servers_network.rs @@ -0,0 +1,31 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ServersNetwork { + #[serde(rename = "mode", skip_serializing_if = "Option::is_none")] + pub mode: Option, + #[serde(rename = "ports")] + pub ports: ::std::collections::HashMap, +} + +impl ServersNetwork { + pub fn new(ports: ::std::collections::HashMap) -> ServersNetwork { + ServersNetwork { + mode: None, + ports, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/servers_network_mode.rs b/sdks/full/rust-cli/src/models/servers_network_mode.rs new file mode 100644 index 0000000000..bbb9bd9a5b --- /dev/null +++ b/sdks/full/rust-cli/src/models/servers_network_mode.rs @@ -0,0 +1,39 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum ServersNetworkMode { + #[serde(rename = "bridge")] + Bridge, + #[serde(rename = "host")] + Host, + +} + +impl ToString for ServersNetworkMode { + fn to_string(&self) -> String { + match self { + Self::Bridge => String::from("bridge"), + Self::Host => String::from("host"), + } + } +} + +impl Default for ServersNetworkMode { + fn default() -> ServersNetworkMode { + Self::Bridge + } +} + + + + diff --git a/sdks/full/rust-cli/src/models/servers_port.rs b/sdks/full/rust-cli/src/models/servers_port.rs new file mode 100644 index 0000000000..ab305ac1e4 --- /dev/null +++ b/sdks/full/rust-cli/src/models/servers_port.rs @@ -0,0 +1,40 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ServersPort { + #[serde(rename = "internal_port", skip_serializing_if = "Option::is_none")] + pub internal_port: Option, + #[serde(rename = "protocol")] + pub protocol: crate::models::ServersPortProtocol, + #[serde(rename = "public_hostname", skip_serializing_if = "Option::is_none")] + pub public_hostname: Option, + #[serde(rename = "public_port", skip_serializing_if = "Option::is_none")] + pub public_port: Option, + #[serde(rename = "routing")] + pub routing: Box, +} + +impl ServersPort { + pub fn new(protocol: crate::models::ServersPortProtocol, routing: crate::models::ServersPortRouting) -> ServersPort { + ServersPort { + internal_port: None, + protocol, + public_hostname: None, + public_port: None, + routing: Box::new(routing), + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/servers_port_protocol.rs b/sdks/full/rust-cli/src/models/servers_port_protocol.rs new file mode 100644 index 0000000000..e2e8c326c9 --- /dev/null +++ b/sdks/full/rust-cli/src/models/servers_port_protocol.rs @@ -0,0 +1,48 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum ServersPortProtocol { + #[serde(rename = "http")] + Http, + #[serde(rename = "https")] + Https, + #[serde(rename = "tcp")] + Tcp, + #[serde(rename = "tcp_tls")] + TcpTls, + #[serde(rename = "udp")] + Udp, + +} + +impl ToString for ServersPortProtocol { + fn to_string(&self) -> String { + match self { + Self::Http => String::from("http"), + Self::Https => String::from("https"), + Self::Tcp => String::from("tcp"), + Self::TcpTls => String::from("tcp_tls"), + Self::Udp => String::from("udp"), + } + } +} + +impl Default for ServersPortProtocol { + fn default() -> ServersPortProtocol { + Self::Http + } +} + + + + diff --git a/sdks/full/rust-cli/src/models/servers_port_routing.rs b/sdks/full/rust-cli/src/models/servers_port_routing.rs new file mode 100644 index 0000000000..83f0846fc4 --- /dev/null +++ b/sdks/full/rust-cli/src/models/servers_port_routing.rs @@ -0,0 +1,31 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ServersPortRouting { + #[serde(rename = "game_guard", skip_serializing_if = "Option::is_none")] + pub game_guard: Option, + #[serde(rename = "host", skip_serializing_if = "Option::is_none")] + pub host: Option, +} + +impl ServersPortRouting { + pub fn new() -> ServersPortRouting { + ServersPortRouting { + game_guard: None, + host: None, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/servers_resources.rs b/sdks/full/rust-cli/src/models/servers_resources.rs new file mode 100644 index 0000000000..d29a3cb0ac --- /dev/null +++ b/sdks/full/rust-cli/src/models/servers_resources.rs @@ -0,0 +1,33 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ServersResources { + /// The number of CPU cores in millicores, or 1/1000 of a core. For example, 1/8 of a core would be 125 millicores, and 1 core would be 1000 millicores. + #[serde(rename = "cpu")] + pub cpu: i32, + /// The amount of memory in megabytes + #[serde(rename = "memory")] + pub memory: i32, +} + +impl ServersResources { + pub fn new(cpu: i32, memory: i32) -> ServersResources { + ServersResources { + cpu, + memory, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/servers_server.rs b/sdks/full/rust-cli/src/models/servers_server.rs new file mode 100644 index 0000000000..421b0c2530 --- /dev/null +++ b/sdks/full/rust-cli/src/models/servers_server.rs @@ -0,0 +1,68 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ServersServer { + #[serde(rename = "arguments", skip_serializing_if = "Option::is_none")] + pub arguments: Option>, + #[serde(rename = "cluster")] + pub cluster: uuid::Uuid, + #[serde(rename = "created_at")] + pub created_at: i64, + #[serde(rename = "datacenter")] + pub datacenter: uuid::Uuid, + #[serde(rename = "destroyed_at", skip_serializing_if = "Option::is_none")] + pub destroyed_at: Option, + #[serde(rename = "environment", skip_serializing_if = "Option::is_none")] + pub environment: Option<::std::collections::HashMap>, + #[serde(rename = "game")] + pub game: uuid::Uuid, + #[serde(rename = "id")] + pub id: uuid::Uuid, + #[serde(rename = "image")] + pub image: uuid::Uuid, + /// The duration to wait for in milliseconds before killing the server. This should be set to a safe default, and can be overridden during a DELETE request if needed. + #[serde(rename = "kill_timeout", skip_serializing_if = "Option::is_none")] + pub kill_timeout: Option, + #[serde(rename = "network")] + pub network: Box, + #[serde(rename = "resources")] + pub resources: Box, + #[serde(rename = "started_at", skip_serializing_if = "Option::is_none")] + pub started_at: Option, + #[serde(rename = "tags", deserialize_with = "Option::deserialize")] + pub tags: Option, +} + +impl ServersServer { + pub fn new(cluster: uuid::Uuid, created_at: i64, datacenter: uuid::Uuid, game: uuid::Uuid, id: uuid::Uuid, image: uuid::Uuid, network: crate::models::ServersNetwork, resources: crate::models::ServersResources, tags: Option) -> ServersServer { + ServersServer { + arguments: None, + cluster, + created_at, + datacenter, + destroyed_at: None, + environment: None, + game, + id, + image, + kill_timeout: None, + network: Box::new(network), + resources: Box::new(resources), + started_at: None, + tags, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/upload_prepare_file.rs b/sdks/full/rust-cli/src/models/upload_prepare_file.rs new file mode 100644 index 0000000000..0d197af99b --- /dev/null +++ b/sdks/full/rust-cli/src/models/upload_prepare_file.rs @@ -0,0 +1,39 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// UploadPrepareFile : A file being prepared to upload. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct UploadPrepareFile { + /// Unsigned 64 bit integer. + #[serde(rename = "content_length")] + pub content_length: i64, + /// The MIME type of the file. + #[serde(rename = "content_type", skip_serializing_if = "Option::is_none")] + pub content_type: Option, + /// The path/filename of the file. + #[serde(rename = "path")] + pub path: String, +} + +impl UploadPrepareFile { + /// A file being prepared to upload. + pub fn new(content_length: i64, path: String) -> UploadPrepareFile { + UploadPrepareFile { + content_length, + content_type: None, + path, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/upload_presigned_request.rs b/sdks/full/rust-cli/src/models/upload_presigned_request.rs new file mode 100644 index 0000000000..7f2ca3aad5 --- /dev/null +++ b/sdks/full/rust-cli/src/models/upload_presigned_request.rs @@ -0,0 +1,43 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// UploadPresignedRequest : A presigned request used to upload files. Upload your file to the given URL via a PUT request. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct UploadPresignedRequest { + /// The byte offset for this multipart chunk. Always 0 if not a multipart upload. + #[serde(rename = "byte_offset")] + pub byte_offset: i64, + /// Expected size of this upload. + #[serde(rename = "content_length")] + pub content_length: i64, + /// The name of the file to upload. This is the same as the one given in the upload prepare file. + #[serde(rename = "path")] + pub path: String, + /// The URL of the presigned request for which to upload your file to. + #[serde(rename = "url")] + pub url: String, +} + +impl UploadPresignedRequest { + /// A presigned request used to upload files. Upload your file to the given URL via a PUT request. + pub fn new(byte_offset: i64, content_length: i64, path: String, url: String) -> UploadPresignedRequest { + UploadPresignedRequest { + byte_offset, + content_length, + path, + url, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/validation_error.rs b/sdks/full/rust-cli/src/models/validation_error.rs new file mode 100644 index 0000000000..d4b2471cb7 --- /dev/null +++ b/sdks/full/rust-cli/src/models/validation_error.rs @@ -0,0 +1,31 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// ValidationError : An error given by failed content validation. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ValidationError { + /// A list of strings denoting the origin of a validation error. + #[serde(rename = "path")] + pub path: Vec, +} + +impl ValidationError { + /// An error given by failed content validation. + pub fn new(path: Vec) -> ValidationError { + ValidationError { + path, + } + } +} + + diff --git a/sdks/full/rust-cli/src/models/watch_response.rs b/sdks/full/rust-cli/src/models/watch_response.rs new file mode 100644 index 0000000000..d1ca872c6c --- /dev/null +++ b/sdks/full/rust-cli/src/models/watch_response.rs @@ -0,0 +1,31 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + +/// WatchResponse : Provided by watchable endpoints used in blocking loops. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct WatchResponse { + /// Index indicating the version of the data responded. Pass this to `WatchQuery` to block and wait for the next response. + #[serde(rename = "index")] + pub index: String, +} + +impl WatchResponse { + /// Provided by watchable endpoints used in blocking loops. + pub fn new(index: String) -> WatchResponse { + WatchResponse { + index, + } + } +} + + diff --git a/sdks/full/rust/.openapi-generator/FILES b/sdks/full/rust/.openapi-generator/FILES index 7ca1b565fe..bc993ad026 100644 --- a/sdks/full/rust/.openapi-generator/FILES +++ b/sdks/full/rust/.openapi-generator/FILES @@ -357,6 +357,7 @@ docs/ServersCreateServerNetworkRequest.md docs/ServersCreateServerPortRequest.md docs/ServersCreateServerRequest.md docs/ServersCreateServerResponse.md +docs/ServersGetBuildResponse.md docs/ServersGetServerLogsResponse.md docs/ServersGetServerResponse.md docs/ServersListBuildsResponse.md @@ -734,6 +735,7 @@ src/models/servers_create_server_network_request.rs src/models/servers_create_server_port_request.rs src/models/servers_create_server_request.rs src/models/servers_create_server_response.rs +src/models/servers_get_build_response.rs src/models/servers_get_server_logs_response.rs src/models/servers_get_server_response.rs src/models/servers_list_builds_response.rs diff --git a/sdks/full/rust/README.md b/sdks/full/rust/README.md index 2b3029ca15..8f9008098d 100644 --- a/sdks/full/rust/README.md +++ b/sdks/full/rust/README.md @@ -172,6 +172,7 @@ Class | Method | HTTP request | Description *ServersApi* | [**servers_get**](docs/ServersApi.md#servers_get) | **GET** /games/{game_id}/servers/{server_id} | *ServersApi* | [**servers_list**](docs/ServersApi.md#servers_list) | **GET** /games/{game_id}/servers | *ServersBuildsApi* | [**servers_builds_complete_build**](docs/ServersBuildsApi.md#servers_builds_complete_build) | **POST** /games/{game_id}/builds/{build_id}/complete | +*ServersBuildsApi* | [**servers_builds_get_build**](docs/ServersBuildsApi.md#servers_builds_get_build) | **GET** /games/{game_id}/builds/{build_id} | *ServersBuildsApi* | [**servers_builds_list_builds**](docs/ServersBuildsApi.md#servers_builds_list_builds) | **GET** /games/{game_id}/builds | *ServersBuildsApi* | [**servers_builds_prepare_build**](docs/ServersBuildsApi.md#servers_builds_prepare_build) | **POST** /games/{game_id}/builds/prepare | *ServersLogsApi* | [**servers_logs_get_server_logs**](docs/ServersLogsApi.md#servers_logs_get_server_logs) | **GET** /games/{game_id}/servers/{server_id}/logs | @@ -492,6 +493,7 @@ Class | Method | HTTP request | Description - [ServersCreateServerPortRequest](docs/ServersCreateServerPortRequest.md) - [ServersCreateServerRequest](docs/ServersCreateServerRequest.md) - [ServersCreateServerResponse](docs/ServersCreateServerResponse.md) + - [ServersGetBuildResponse](docs/ServersGetBuildResponse.md) - [ServersGetServerLogsResponse](docs/ServersGetServerLogsResponse.md) - [ServersGetServerResponse](docs/ServersGetServerResponse.md) - [ServersListBuildsResponse](docs/ServersListBuildsResponse.md) diff --git a/sdks/full/rust/docs/ServersApi.md b/sdks/full/rust/docs/ServersApi.md index 7585e0f8eb..f446dd1893 100644 --- a/sdks/full/rust/docs/ServersApi.md +++ b/sdks/full/rust/docs/ServersApi.md @@ -107,7 +107,7 @@ Name | Type | Description | Required | Notes ## servers_list -> crate::models::ServersListServersResponse servers_list(game_id, tags, game) +> crate::models::ServersListServersResponse servers_list(game_id, tags_json, game) Lists all servers associated with the token used. Can be filtered by tags in the query string. @@ -118,7 +118,7 @@ Lists all servers associated with the token used. Can be filtered by tags in the Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **game_id** | **uuid::Uuid** | | [required] | -**tags** | Option<**String**> | | | +**tags_json** | Option<**String**> | | | **game** | Option<**uuid::Uuid**> | | | ### Return type diff --git a/sdks/full/rust/docs/ServersBuildsApi.md b/sdks/full/rust/docs/ServersBuildsApi.md index 9e0f575ea2..bbc2592b8e 100644 --- a/sdks/full/rust/docs/ServersBuildsApi.md +++ b/sdks/full/rust/docs/ServersBuildsApi.md @@ -5,6 +5,7 @@ All URIs are relative to *https://api.rivet.gg* Method | HTTP request | Description ------------- | ------------- | ------------- [**servers_builds_complete_build**](ServersBuildsApi.md#servers_builds_complete_build) | **POST** /games/{game_id}/builds/{build_id}/complete | +[**servers_builds_get_build**](ServersBuildsApi.md#servers_builds_get_build) | **GET** /games/{game_id}/builds/{build_id} | [**servers_builds_list_builds**](ServersBuildsApi.md#servers_builds_list_builds) | **GET** /games/{game_id}/builds | [**servers_builds_prepare_build**](ServersBuildsApi.md#servers_builds_prepare_build) | **POST** /games/{game_id}/builds/prepare | @@ -41,9 +42,42 @@ Name | Type | Description | Required | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +## servers_builds_get_build + +> crate::models::ServersGetBuildResponse servers_builds_get_build(game_id, build_id, tags_json, game_id2) + + +Lists all builds of the game associated with the token used. Can be filtered by tags in the query string. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**game_id** | **uuid::Uuid** | | [required] | +**build_id** | **uuid::Uuid** | | [required] | +**tags_json** | Option<**String**> | | | +**game_id2** | Option<**uuid::Uuid**> | | | + +### Return type + +[**crate::models::ServersGetBuildResponse**](ServersGetBuildResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + ## servers_builds_list_builds -> crate::models::ServersListBuildsResponse servers_builds_list_builds(game_id, tags, game_id2) +> crate::models::ServersListBuildsResponse servers_builds_list_builds(game_id, tags_json, game_id2) Lists all builds of the game associated with the token used. Can be filtered by tags in the query string. @@ -54,7 +88,7 @@ Lists all builds of the game associated with the token used. Can be filtered by Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **game_id** | **uuid::Uuid** | | [required] | -**tags** | Option<**String**> | | | +**tags_json** | Option<**String**> | | | **game_id2** | Option<**uuid::Uuid**> | | | ### Return type diff --git a/sdks/full/rust/docs/ServersCreateServerRequest.md b/sdks/full/rust/docs/ServersCreateServerRequest.md index b0ba2e3806..5c7128b15c 100644 --- a/sdks/full/rust/docs/ServersCreateServerRequest.md +++ b/sdks/full/rust/docs/ServersCreateServerRequest.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **arguments** | Option<**Vec**> | | [optional] -**datacenter** | **String** | The name ID of the datacenter | +**datacenter** | [**uuid::Uuid**](uuid::Uuid.md) | | **environment** | Option<**::std::collections::HashMap**> | | [optional] **image** | [**uuid::Uuid**](uuid::Uuid.md) | | **kill_timeout** | Option<**i64**> | The duration to wait for in milliseconds before killing the server. This should be set to a safe default, and can be overridden during a DELETE request if needed. | [optional] diff --git a/sdks/full/rust/docs/ServersGetBuildResponse.md b/sdks/full/rust/docs/ServersGetBuildResponse.md new file mode 100644 index 0000000000..fdadac8aaf --- /dev/null +++ b/sdks/full/rust/docs/ServersGetBuildResponse.md @@ -0,0 +1,11 @@ +# ServersGetBuildResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**build** | [**crate::models::ServersBuild**](ServersBuild.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/full/rust/docs/ServersServer.md b/sdks/full/rust/docs/ServersServer.md index f56433e33d..9318bb1c47 100644 --- a/sdks/full/rust/docs/ServersServer.md +++ b/sdks/full/rust/docs/ServersServer.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **arguments** | Option<**Vec**> | | [optional] **cluster** | [**uuid::Uuid**](uuid::Uuid.md) | | **created_at** | **i64** | | -**datacenter** | **String** | | +**datacenter** | [**uuid::Uuid**](uuid::Uuid.md) | | **destroyed_at** | Option<**i64**> | | [optional] **environment** | Option<**::std::collections::HashMap**> | | [optional] **game** | [**uuid::Uuid**](uuid::Uuid.md) | | diff --git a/sdks/full/rust/src/apis/admin_clusters_servers_api.rs b/sdks/full/rust/src/apis/admin_clusters_servers_api.rs index f6e4f44836..1bf403175b 100644 --- a/sdks/full/rust/src/apis/admin_clusters_servers_api.rs +++ b/sdks/full/rust/src/apis/admin_clusters_servers_api.rs @@ -55,7 +55,7 @@ pub enum AdminClustersServersTaintError { } -pub async fn admin_clusters_servers_destroy(configuration: &configuration::Configuration, cluster_id: &str, server_id: Option<&str>, datacenter: Option<&str>, pool: Option, public_ip: Option<&str>) -> Result<(), Error> { +pub async fn admin_clusters_servers_destroy(configuration: &configuration::Configuration, cluster_id: &str, server_id: Option<&str>, datacenter: Option<&str>, pool: Option, public_ip: Option<&str>) -> Result<(), Error> { let local_var_configuration = configuration; let local_var_client = &local_var_configuration.client; @@ -97,7 +97,7 @@ pub async fn admin_clusters_servers_destroy(configuration: &configuration::Confi } } -pub async fn admin_clusters_servers_list(configuration: &configuration::Configuration, cluster_id: &str, server_id: Option<&str>, datacenter: Option<&str>, pool: Option, public_ip: Option<&str>) -> Result> { +pub async fn admin_clusters_servers_list(configuration: &configuration::Configuration, cluster_id: &str, server_id: Option<&str>, datacenter: Option<&str>, pool: Option, public_ip: Option<&str>) -> Result> { let local_var_configuration = configuration; let local_var_client = &local_var_configuration.client; @@ -139,7 +139,7 @@ pub async fn admin_clusters_servers_list(configuration: &configuration::Configur } } -pub async fn admin_clusters_servers_taint(configuration: &configuration::Configuration, cluster_id: &str, server_id: Option<&str>, datacenter: Option<&str>, pool: Option, public_ip: Option<&str>) -> Result<(), Error> { +pub async fn admin_clusters_servers_taint(configuration: &configuration::Configuration, cluster_id: &str, server_id: Option<&str>, datacenter: Option<&str>, pool: Option, public_ip: Option<&str>) -> Result<(), Error> { let local_var_configuration = configuration; let local_var_client = &local_var_configuration.client; diff --git a/sdks/full/rust/src/apis/servers_api.rs b/sdks/full/rust/src/apis/servers_api.rs index d2942c5dde..5b89e415cd 100644 --- a/sdks/full/rust/src/apis/servers_api.rs +++ b/sdks/full/rust/src/apis/servers_api.rs @@ -166,7 +166,7 @@ pub async fn servers_get(configuration: &configuration::Configuration, game_id: } /// Lists all servers associated with the token used. Can be filtered by tags in the query string. -pub async fn servers_list(configuration: &configuration::Configuration, game_id: &str, tags: Option<&str>, game: Option<&str>) -> Result> { +pub async fn servers_list(configuration: &configuration::Configuration, game_id: &str, tags_json: Option<&str>, game: Option<&str>) -> Result> { let local_var_configuration = configuration; let local_var_client = &local_var_configuration.client; @@ -174,8 +174,8 @@ pub async fn servers_list(configuration: &configuration::Configuration, game_id: let local_var_uri_str = format!("{}/games/{game_id}/servers", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id)); let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); - if let Some(ref local_var_str) = tags { - local_var_req_builder = local_var_req_builder.query(&[("tags", &local_var_str.to_string())]); + if let Some(ref local_var_str) = tags_json { + local_var_req_builder = local_var_req_builder.query(&[("tags_json", &local_var_str.to_string())]); } if let Some(ref local_var_str) = game { local_var_req_builder = local_var_req_builder.query(&[("game", &local_var_str.to_string())]); diff --git a/sdks/full/rust/src/apis/servers_builds_api.rs b/sdks/full/rust/src/apis/servers_builds_api.rs index eec5c8c2ba..6e78d49658 100644 --- a/sdks/full/rust/src/apis/servers_builds_api.rs +++ b/sdks/full/rust/src/apis/servers_builds_api.rs @@ -28,6 +28,19 @@ pub enum ServersBuildsCompleteBuildError { UnknownValue(serde_json::Value), } +/// struct for typed errors of method [`servers_builds_get_build`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ServersBuildsGetBuildError { + Status400(crate::models::ErrorBody), + Status403(crate::models::ErrorBody), + Status404(crate::models::ErrorBody), + Status408(crate::models::ErrorBody), + Status429(crate::models::ErrorBody), + Status500(crate::models::ErrorBody), + UnknownValue(serde_json::Value), +} + /// struct for typed errors of method [`servers_builds_list_builds`] #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] @@ -87,7 +100,44 @@ pub async fn servers_builds_complete_build(configuration: &configuration::Config } /// Lists all builds of the game associated with the token used. Can be filtered by tags in the query string. -pub async fn servers_builds_list_builds(configuration: &configuration::Configuration, game_id: &str, tags: Option<&str>, game_id2: Option<&str>) -> Result> { +pub async fn servers_builds_get_build(configuration: &configuration::Configuration, game_id: &str, build_id: &str, tags_json: Option<&str>, game_id2: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/games/{game_id}/builds/{build_id}", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id), build_id=crate::apis::urlencode(build_id)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = tags_json { + local_var_req_builder = local_var_req_builder.query(&[("tags_json", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = game_id2 { + local_var_req_builder = local_var_req_builder.query(&[("game_id", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Lists all builds of the game associated with the token used. Can be filtered by tags in the query string. +pub async fn servers_builds_list_builds(configuration: &configuration::Configuration, game_id: &str, tags_json: Option<&str>, game_id2: Option<&str>) -> Result> { let local_var_configuration = configuration; let local_var_client = &local_var_configuration.client; @@ -95,8 +145,8 @@ pub async fn servers_builds_list_builds(configuration: &configuration::Configura let local_var_uri_str = format!("{}/games/{game_id}/builds", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id)); let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); - if let Some(ref local_var_str) = tags { - local_var_req_builder = local_var_req_builder.query(&[("tags", &local_var_str.to_string())]); + if let Some(ref local_var_str) = tags_json { + local_var_req_builder = local_var_req_builder.query(&[("tags_json", &local_var_str.to_string())]); } if let Some(ref local_var_str) = game_id2 { local_var_req_builder = local_var_req_builder.query(&[("game_id", &local_var_str.to_string())]); diff --git a/sdks/full/rust/src/apis/servers_logs_api.rs b/sdks/full/rust/src/apis/servers_logs_api.rs index 09daa25cbd..fd7c081b17 100644 --- a/sdks/full/rust/src/apis/servers_logs_api.rs +++ b/sdks/full/rust/src/apis/servers_logs_api.rs @@ -30,7 +30,7 @@ pub enum ServersLogsGetServerLogsError { /// Returns the logs for a given server. -pub async fn servers_logs_get_server_logs(configuration: &configuration::Configuration, game_id: &str, server_id: &str, stream: ServersLogStream, game: Option<&str>, watch_index: Option<&str>) -> Result> { +pub async fn servers_logs_get_server_logs(configuration: &configuration::Configuration, game_id: &str, server_id: &str, stream: crate::models::ServersLogStream, game: Option<&str>, watch_index: Option<&str>) -> Result> { let local_var_configuration = configuration; let local_var_client = &local_var_configuration.client; diff --git a/sdks/full/rust/src/models/mod.rs b/sdks/full/rust/src/models/mod.rs index a2f5d60aa6..a0f0d782b9 100644 --- a/sdks/full/rust/src/models/mod.rs +++ b/sdks/full/rust/src/models/mod.rs @@ -624,6 +624,8 @@ pub mod servers_create_server_request; pub use self::servers_create_server_request::ServersCreateServerRequest; pub mod servers_create_server_response; pub use self::servers_create_server_response::ServersCreateServerResponse; +pub mod servers_get_build_response; +pub use self::servers_get_build_response::ServersGetBuildResponse; pub mod servers_get_server_logs_response; pub use self::servers_get_server_logs_response::ServersGetServerLogsResponse; pub mod servers_get_server_response; diff --git a/sdks/full/rust/src/models/servers_create_server_request.rs b/sdks/full/rust/src/models/servers_create_server_request.rs index 6d8a52712f..7112b716f1 100644 --- a/sdks/full/rust/src/models/servers_create_server_request.rs +++ b/sdks/full/rust/src/models/servers_create_server_request.rs @@ -15,9 +15,8 @@ pub struct ServersCreateServerRequest { #[serde(rename = "arguments", skip_serializing_if = "Option::is_none")] pub arguments: Option>, - /// The name ID of the datacenter #[serde(rename = "datacenter")] - pub datacenter: String, + pub datacenter: uuid::Uuid, #[serde(rename = "environment", skip_serializing_if = "Option::is_none")] pub environment: Option<::std::collections::HashMap>, #[serde(rename = "image")] @@ -37,7 +36,7 @@ pub struct ServersCreateServerRequest { } impl ServersCreateServerRequest { - pub fn new(datacenter: String, image: uuid::Uuid, network: crate::models::ServersCreateServerNetworkRequest, resources: crate::models::ServersResources, tags: Option) -> ServersCreateServerRequest { + pub fn new(datacenter: uuid::Uuid, image: uuid::Uuid, network: crate::models::ServersCreateServerNetworkRequest, resources: crate::models::ServersResources, tags: Option) -> ServersCreateServerRequest { ServersCreateServerRequest { arguments: None, datacenter, diff --git a/sdks/full/rust/src/models/servers_get_build_response.rs b/sdks/full/rust/src/models/servers_get_build_response.rs new file mode 100644 index 0000000000..25515b9332 --- /dev/null +++ b/sdks/full/rust/src/models/servers_get_build_response.rs @@ -0,0 +1,28 @@ +/* + * Rivet API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.1 + * + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ServersGetBuildResponse { + #[serde(rename = "build")] + pub build: Box, +} + +impl ServersGetBuildResponse { + pub fn new(build: crate::models::ServersBuild) -> ServersGetBuildResponse { + ServersGetBuildResponse { + build: Box::new(build), + } + } +} + + diff --git a/sdks/full/rust/src/models/servers_server.rs b/sdks/full/rust/src/models/servers_server.rs index f2662209a9..421b0c2530 100644 --- a/sdks/full/rust/src/models/servers_server.rs +++ b/sdks/full/rust/src/models/servers_server.rs @@ -20,7 +20,7 @@ pub struct ServersServer { #[serde(rename = "created_at")] pub created_at: i64, #[serde(rename = "datacenter")] - pub datacenter: String, + pub datacenter: uuid::Uuid, #[serde(rename = "destroyed_at", skip_serializing_if = "Option::is_none")] pub destroyed_at: Option, #[serde(rename = "environment", skip_serializing_if = "Option::is_none")] @@ -45,7 +45,7 @@ pub struct ServersServer { } impl ServersServer { - pub fn new(cluster: uuid::Uuid, created_at: i64, datacenter: String, game: uuid::Uuid, id: uuid::Uuid, image: uuid::Uuid, network: crate::models::ServersNetwork, resources: crate::models::ServersResources, tags: Option) -> ServersServer { + pub fn new(cluster: uuid::Uuid, created_at: i64, datacenter: uuid::Uuid, game: uuid::Uuid, id: uuid::Uuid, image: uuid::Uuid, network: crate::models::ServersNetwork, resources: crate::models::ServersResources, tags: Option) -> ServersServer { ServersServer { arguments: None, cluster, diff --git a/sdks/full/typescript/archive.tgz b/sdks/full/typescript/archive.tgz index d82c53f9e7..d8f93d25b9 100644 --- a/sdks/full/typescript/archive.tgz +++ b/sdks/full/typescript/archive.tgz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:356a3e1da7ae05965a58050d20b49bf60587da42f811337b666fd536ba44863b -size 544240 +oid sha256:a905f05340ac499a8dc7d406919029e4658f8587b053e4010a15af3b5e40f09a +size 544919 diff --git a/sdks/full/typescript/src/api/resources/servers/client/Client.ts b/sdks/full/typescript/src/api/resources/servers/client/Client.ts index 94471b090c..29ed864781 100644 --- a/sdks/full/typescript/src/api/resources/servers/client/Client.ts +++ b/sdks/full/typescript/src/api/resources/servers/client/Client.ts @@ -179,7 +179,7 @@ export class Servers { * * @example * await client.servers.list("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", { - * tags: "string", + * tagsJson: "string", * game: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32" * }) */ @@ -188,10 +188,10 @@ export class Servers { request: Rivet.servers.GetServersRequest = {}, requestOptions?: Servers.RequestOptions ): Promise { - const { tags, game } = request; + const { tagsJson, game } = request; const _queryParams: Record = {}; - if (tags != null) { - _queryParams["tags"] = tags; + if (tagsJson != null) { + _queryParams["tags_json"] = tagsJson; } if (game != null) { @@ -325,7 +325,7 @@ export class Servers { * * @example * await client.servers.create("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", { - * datacenter: "string", + * datacenter: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", * tags: { * "key": "value" * }, diff --git a/sdks/full/typescript/src/api/resources/servers/client/requests/GetServersRequest.ts b/sdks/full/typescript/src/api/resources/servers/client/requests/GetServersRequest.ts index f7b97f390a..8824b9c49c 100644 --- a/sdks/full/typescript/src/api/resources/servers/client/requests/GetServersRequest.ts +++ b/sdks/full/typescript/src/api/resources/servers/client/requests/GetServersRequest.ts @@ -5,11 +5,11 @@ /** * @example * { - * tags: "string", + * tagsJson: "string", * game: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32" * } */ export interface GetServersRequest { - tags?: string; + tagsJson?: string; game?: string; } diff --git a/sdks/full/typescript/src/api/resources/servers/resources/builds/client/Client.ts b/sdks/full/typescript/src/api/resources/servers/resources/builds/client/Client.ts index b41deb39c7..468c5b38f1 100644 --- a/sdks/full/typescript/src/api/resources/servers/resources/builds/client/Client.ts +++ b/sdks/full/typescript/src/api/resources/servers/resources/builds/client/Client.ts @@ -33,7 +33,155 @@ export class Builds { * Lists all builds of the game associated with the token used. Can be filtered by tags in the query string. * * @param {string} gameId - * @param {Rivet.servers.GetBuildsRequest} request + * @param {string} buildId + * @param {Rivet.servers.GetBuildRequest} request + * @param {Builds.RequestOptions} requestOptions - Request-specific configuration. + * + * @throws {@link Rivet.InternalError} + * @throws {@link Rivet.RateLimitError} + * @throws {@link Rivet.ForbiddenError} + * @throws {@link Rivet.UnauthorizedError} + * @throws {@link Rivet.NotFoundError} + * @throws {@link Rivet.BadRequestError} + * + * @example + * await client.servers.builds.getBuild("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", { + * tagsJson: "string", + * gameId: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32" + * }) + */ + public async getBuild( + gameId: string, + buildId: string, + request: Rivet.servers.GetBuildRequest = {}, + requestOptions?: Builds.RequestOptions + ): Promise { + const { tagsJson, gameId: gameId_ } = request; + const _queryParams: Record = {}; + if (tagsJson != null) { + _queryParams["tags_json"] = tagsJson; + } + + if (gameId_ != null) { + _queryParams["game_id"] = gameId_; + } + + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: urlJoin( + (await core.Supplier.get(this._options.environment)) ?? environments.RivetEnvironment.Production, + `/games/${encodeURIComponent(gameId)}/builds/${encodeURIComponent(buildId)}` + ), + method: "GET", + headers: { + Authorization: await this._getAuthorizationHeader(), + }, + contentType: "application/json", + queryParameters: _queryParams, + requestType: "json", + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 180000, + maxRetries: requestOptions?.maxRetries, + abortSignal: requestOptions?.abortSignal, + }); + if (_response.ok) { + return serializers.servers.GetBuildResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + if (_response.error.reason === "status-code") { + switch (_response.error.statusCode) { + case 500: + throw new Rivet.InternalError( + serializers.ErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 429: + throw new Rivet.RateLimitError( + serializers.ErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 403: + throw new Rivet.ForbiddenError( + serializers.ErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 408: + throw new Rivet.UnauthorizedError( + serializers.ErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 404: + throw new Rivet.NotFoundError( + serializers.ErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 400: + throw new Rivet.BadRequestError( + serializers.ErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + default: + throw new errors.RivetError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + }); + } + } + + switch (_response.error.reason) { + case "non-json": + throw new errors.RivetError({ + statusCode: _response.error.statusCode, + body: _response.error.rawBody, + }); + case "timeout": + throw new errors.RivetTimeoutError(); + case "unknown": + throw new errors.RivetError({ + message: _response.error.errorMessage, + }); + } + } + + /** + * Lists all builds of the game associated with the token used. Can be filtered by tags in the query string. + * + * @param {string} gameId + * @param {Rivet.servers.ListBuildsRequest} request * @param {Builds.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Rivet.InternalError} @@ -45,19 +193,19 @@ export class Builds { * * @example * await client.servers.builds.listBuilds("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", { - * tags: "string", + * tagsJson: "string", * gameId: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32" * }) */ public async listBuilds( gameId: string, - request: Rivet.servers.GetBuildsRequest = {}, + request: Rivet.servers.ListBuildsRequest = {}, requestOptions?: Builds.RequestOptions ): Promise { - const { tags, gameId: gameId_ } = request; + const { tagsJson, gameId: gameId_ } = request; const _queryParams: Record = {}; - if (tags != null) { - _queryParams["tags"] = tags; + if (tagsJson != null) { + _queryParams["tags_json"] = tagsJson; } if (gameId_ != null) { diff --git a/sdks/full/typescript/src/api/resources/servers/resources/builds/client/requests/GetBuildsRequest.ts b/sdks/full/typescript/src/api/resources/servers/resources/builds/client/requests/GetBuildRequest.ts similarity index 68% rename from sdks/full/typescript/src/api/resources/servers/resources/builds/client/requests/GetBuildsRequest.ts rename to sdks/full/typescript/src/api/resources/servers/resources/builds/client/requests/GetBuildRequest.ts index 68e550826e..cec734dea4 100644 --- a/sdks/full/typescript/src/api/resources/servers/resources/builds/client/requests/GetBuildsRequest.ts +++ b/sdks/full/typescript/src/api/resources/servers/resources/builds/client/requests/GetBuildRequest.ts @@ -5,11 +5,11 @@ /** * @example * { - * tags: "string", + * tagsJson: "string", * gameId: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32" * } */ -export interface GetBuildsRequest { - tags?: string; +export interface GetBuildRequest { + tagsJson?: string; gameId?: string; } diff --git a/sdks/full/typescript/src/api/resources/servers/resources/builds/client/requests/ListBuildsRequest.ts b/sdks/full/typescript/src/api/resources/servers/resources/builds/client/requests/ListBuildsRequest.ts new file mode 100644 index 0000000000..607f12d909 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/servers/resources/builds/client/requests/ListBuildsRequest.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * @example + * { + * tagsJson: "string", + * gameId: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32" + * } + */ +export interface ListBuildsRequest { + tagsJson?: string; + gameId?: string; +} diff --git a/sdks/full/typescript/src/api/resources/servers/resources/builds/client/requests/index.ts b/sdks/full/typescript/src/api/resources/servers/resources/builds/client/requests/index.ts index 86e3138056..f6318526d0 100644 --- a/sdks/full/typescript/src/api/resources/servers/resources/builds/client/requests/index.ts +++ b/sdks/full/typescript/src/api/resources/servers/resources/builds/client/requests/index.ts @@ -1 +1,2 @@ -export { type GetBuildsRequest } from "./GetBuildsRequest"; +export { type GetBuildRequest } from "./GetBuildRequest"; +export { type ListBuildsRequest } from "./ListBuildsRequest"; diff --git a/sdks/runtime/typescript/archive.tgz b/sdks/runtime/typescript/archive.tgz index 7ab7fd5396..845d84907e 100644 --- a/sdks/runtime/typescript/archive.tgz +++ b/sdks/runtime/typescript/archive.tgz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:1ddcfb062cee4536fc83d5cb3380b79c693b0092a8c68f4222565af2d6b5f0c4 -size 282607 +oid sha256:fff34c21863eb214e8bb34ece330baa6f5fdfa9b728203f7792bad9188131685 +size 282610 diff --git a/svc/api/servers/src/assert.rs b/svc/api/servers/src/assert.rs index b0430b2e73..015637a4f0 100644 --- a/svc/api/servers/src/assert.rs +++ b/svc/api/servers/src/assert.rs @@ -11,13 +11,13 @@ pub async fn server_for_game(ctx: &Ctx, server_id: Uuid, game_id: Uuid) -> server_ids: vec![server_id.into()], }) .await?; - - let server = models::GamesServersServer::api_try_from( - unwrap_with!(get_res.servers.first(), SERVERS_SERVER_NOT_FOUND).clone(), - )?; + let server = unwrap_with!(get_res.servers.first(), SERVERS_SERVER_NOT_FOUND); // Validate token can access server - ensure_with!(server.game_id == game_id, SERVERS_SERVER_NOT_FOUND); + ensure_with!( + unwrap!(server.game_id).as_uuid() == game_id, + SERVERS_SERVER_NOT_FOUND + ); Ok(()) } diff --git a/svc/api/servers/src/route/builds.rs b/svc/api/servers/src/route/builds.rs index 4020dbfb99..a459383310 100644 --- a/svc/api/servers/src/route/builds.rs +++ b/svc/api/servers/src/route/builds.rs @@ -3,31 +3,31 @@ use std::collections::HashMap; use api_helper::{anchor::WatchIndexQuery, ctx::Ctx}; use proto::backend; use rivet_api::models; -use rivet_claims::ClaimsDecode; use rivet_convert::ApiTryInto; use rivet_operation::prelude::*; use serde::{Deserialize, Serialize}; use serde_json::json; +use util::timestamp; use crate::auth::Auth; // MARK: GET /games/{}/builds #[derive(Debug, Clone, Serialize, Deserialize)] pub struct GetQuery { - tags: Option, + tags_json: Option, } -pub async fn get_builds( +pub async fn list( ctx: Ctx, game_id: Uuid, _watch_index: WatchIndexQuery, query: GetQuery, -) -> GlobalResult { +) -> GlobalResult { ctx.auth().check_game(ctx.op_ctx(), game_id, true).await?; let list_res = op!([ctx] build_list_for_game { game_id: Some(game_id.into()), - tags: query.tags.as_deref().map_or(Ok(HashMap::new()), serde_json::from_str)?, + tags: query.tags_json.as_deref().map_or(Ok(HashMap::new()), serde_json::from_str)?, }) .await?; @@ -60,15 +60,19 @@ pub async fn get_builds( GlobalResult::Ok(( build.create_ts, - models::CloudBuildSummary { - build_id: unwrap_ref!(build.build_id).as_uuid(), - upload_id: unwrap_ref!(build.upload_id).as_uuid(), - display_name: build.display_name.clone(), - create_ts: util::timestamp::to_string(build.create_ts)?, + models::ServersBuild { + id: unwrap!(build.build_id).as_uuid(), + upload: unwrap!(build.upload_id).as_uuid(), + name: build.display_name.clone(), + created_at: timestamp::to_string(build.create_ts)?, content_length: upload .map_or(0, |upload| upload.content_length) .api_try_into()?, - complete: upload.map_or(true, |upload| upload.complete_ts.is_some()), + completed_at: upload + .as_ref() + .and_then(|x| x.complete_ts) + .map(timestamp::to_string) + .transpose()?, tags: build.tags.clone(), }, )) @@ -79,17 +83,63 @@ pub async fn get_builds( builds.sort_by_key(|(create_ts, _)| *create_ts); builds.reverse(); - Ok(models::GamesServersListBuildsResponse { + Ok(models::ServersListBuildsResponse { builds: builds.into_iter().map(|(_, x)| x).collect::>(), }) } +// MARK: GET /games/{}/builds/{} +pub async fn get( + ctx: Ctx, + game_id: Uuid, + build_id: Uuid, + _watch_index: WatchIndexQuery, +) -> GlobalResult { + ctx.auth().check_game(ctx.op_ctx(), game_id, true).await?; + + let builds_res = op!([ctx] build_get { + build_ids: vec![build_id.into()], + }) + .await?; + let build = unwrap!(builds_res.builds.first()); + + let uploads_res = op!([ctx] upload_get { + upload_ids: builds_res + .builds + .iter() + .filter_map(|build| build.upload_id) + .collect::>(), + }) + .await?; + let upload = uploads_res.uploads.first(); + + let build = models::ServersBuild { + id: unwrap!(build.build_id).as_uuid(), + upload: unwrap!(build.upload_id).as_uuid(), + name: build.display_name.clone(), + created_at: timestamp::to_string(build.create_ts)?, + content_length: upload + .map_or(0, |upload| upload.content_length) + .api_try_into()?, + completed_at: upload + .as_ref() + .and_then(|x| x.complete_ts) + .map(timestamp::to_string) + .transpose()?, + tags: build.tags.clone(), + }; + + Ok(models::ServersGetBuildResponse { + build: Box::new(build), + }) +} + // MARK: POST /games/{}/builds/prepare pub async fn create_build( ctx: Ctx, game_id: Uuid, - body: models::GamesServersCreateBuildRequest, -) -> GlobalResult { + body: models::ServersCreateBuildRequest, +) -> GlobalResult { ctx.auth().check_game(ctx.op_ctx(), game_id, false).await?; // TODO: Read and validate image file @@ -97,17 +147,17 @@ pub async fn create_build( let multipart_upload = body.multipart_upload.unwrap_or(false); let kind = match body.kind { - None | Some(models::GamesServersBuildKind::DockerImage) => { + None | Some(models::ServersBuildKind::DockerImage) => { backend::build::BuildKind::DockerImage } - Some(models::GamesServersBuildKind::OciBundle) => backend::build::BuildKind::OciBundle, + Some(models::ServersBuildKind::OciBundle) => backend::build::BuildKind::OciBundle, }; let compression = match body.compression { - None | Some(models::GamesServersBuildCompression::None) => { + None | Some(models::ServersBuildCompression::None) => { backend::build::BuildCompression::None } - Some(models::GamesServersBuildCompression::Lz4) => backend::build::BuildCompression::Lz4, + Some(models::ServersBuildCompression::Lz4) => backend::build::BuildCompression::Lz4, }; // Verify that tags are valid @@ -117,7 +167,7 @@ pub async fn create_build( let create_res = op!([ctx] build_create { game_id: Some(game_id.into()), - display_name: body.display_name, + display_name: body.name, image_tag: Some(body.image_tag), image_file: Some((*body.image_file).api_try_into()?), multipart: multipart_upload, @@ -150,9 +200,9 @@ pub async fn create_build( None }; - Ok(models::GamesServersCreateBuildResponse { - build_id: unwrap_ref!(create_res.build_id).as_uuid(), - upload_id: unwrap_ref!(create_res.upload_id).as_uuid(), + Ok(models::ServersCreateBuildResponse { + build: unwrap_ref!(create_res.build_id).as_uuid(), + upload: unwrap_ref!(create_res.upload_id).as_uuid(), image_presigned_request, image_presigned_requests, }) diff --git a/svc/api/servers/src/route/logs.rs b/svc/api/servers/src/route/logs.rs index 7d19c3bb12..a99956c5e5 100644 --- a/svc/api/servers/src/route/logs.rs +++ b/svc/api/servers/src/route/logs.rs @@ -22,7 +22,7 @@ pub async fn get_logs( server_id: Uuid, watch_index: WatchIndexQuery, query: GetServerLogsQuery, -) -> GlobalResult { +) -> GlobalResult { ctx.auth().check_game(ctx.op_ctx(), game_id, false).await?; // Validate server belongs to game @@ -126,7 +126,7 @@ pub async fn get_logs( timestamps.reverse(); let watch_nts = logs_res.entries.first().map_or(before_nts, |x| x.nts); - Ok(models::GamesServersGetServerLogsResponse { + Ok(models::ServersGetServerLogsResponse { lines, timestamps, watch: WatchResponse::new_as_model(watch_nts), diff --git a/svc/api/servers/src/route/mod.rs b/svc/api/servers/src/route/mod.rs index 23f2b9c52f..817cb14d5c 100644 --- a/svc/api/servers/src/route/mod.rs +++ b/svc/api/servers/src/route/mod.rs @@ -28,7 +28,7 @@ define_router! { query: servers::ListQuery, ), POST: servers::create( - body: models::GamesServersCreateServerRequest, + body: models::ServersCreateServerRequest, ), }, @@ -46,13 +46,17 @@ define_router! { }, "games" / Uuid / "builds": { - GET: builds::get_builds( + GET: builds::list( query: builds::GetQuery, ), }, + "games" / Uuid / "builds" / Uuid: { + GET: builds::get(), + }, + "games" / Uuid / "builds" / "prepare": { - POST: builds::create_build(body: models::GamesServersCreateBuildRequest), + POST: builds::create_build(body: models::ServersCreateBuildRequest), }, "games" / Uuid / "builds" / Uuid / "complete": { diff --git a/svc/api/servers/src/route/servers.rs b/svc/api/servers/src/route/servers.rs index 42bfa984e6..8cd9ecd5a1 100644 --- a/svc/api/servers/src/route/servers.rs +++ b/svc/api/servers/src/route/servers.rs @@ -14,7 +14,7 @@ pub async fn get( game_id: Uuid, server_id: Uuid, _watch_index: WatchIndexQuery, -) -> GlobalResult { +) -> GlobalResult { ctx.auth().check_game(ctx.op_ctx(), game_id, true).await?; // Get the server @@ -22,16 +22,16 @@ pub async fn get( server_ids: vec![server_id.into()], }) .await?; - - let server = models::GamesServersServer::api_try_from( - unwrap_with!(get_res.servers.first(), SERVERS_SERVER_NOT_FOUND).clone(), - )?; + let server = unwrap_with!(get_res.servers.first(), SERVERS_SERVER_NOT_FOUND).clone(); // Validate token can access server - ensure_with!(server.game_id == game_id, SERVERS_SERVER_NOT_FOUND); + ensure_with!( + unwrap!(server.game_id).as_uuid() == game_id, + SERVERS_SERVER_NOT_FOUND + ); - Ok(models::GamesServersGetServerResponse { - server: Box::new(server), + Ok(models::ServersGetServerResponse { + server: Box::new(models::ServersServer::api_try_from(server)?), }) } @@ -39,8 +39,8 @@ pub async fn get( pub async fn create( ctx: Ctx, game_id: Uuid, - body: models::GamesServersCreateServerRequest, -) -> GlobalResult { + body: models::ServersCreateServerRequest, +) -> GlobalResult { ctx.auth().check_game(ctx.op_ctx(), game_id, true).await?; let games = ctx @@ -49,22 +49,19 @@ pub async fn create( }) .await? .games; - let cluster_id = unwrap!(games.first()).cluster_id; let datacenters = ctx - .op(cluster::ops::datacenter::resolve_for_name_id::Input { - cluster_id, - name_ids: vec![body.datacenter.clone()], + .op(cluster::ops::datacenter::list::Input { + cluster_ids: vec![cluster_id], }) - .await? - .datacenters; - - if datacenters.is_empty() { - bail_with!(CLUSTER_DATACENTER_NOT_FOUND); - } - - let datacenter_id = unwrap!(datacenters.first()).datacenter_id; + .await?; + ensure_with!( + unwrap!(datacenters.clusters.first()) + .datacenter_ids + .contains(&body.datacenter), + CLUSTER_DATACENTER_NOT_FOUND + ); let tags = serde_json::from_value(body.tags.unwrap_or_default())?; @@ -72,13 +69,13 @@ pub async fn create( let server = op!([ctx] ds_server_create { game_id: Some(game_id.into()), - datacenter_id: Some(datacenter_id.into()), + datacenter_id: Some(body.datacenter.into()), cluster_id: Some(cluster_id.into()), tags: tags, resources: Some((*body.resources).api_into()), kill_timeout_ms: body.kill_timeout.unwrap_or_default(), webhook_url: body.webhook_url, - image_id: Some(body.image_id.into()), + image_id: Some(body.image.into()), args: body.arguments.unwrap_or_default(), network_mode: backend::ds::NetworkMode::api_from( body.network.mode.unwrap_or_default(), @@ -91,7 +88,7 @@ pub async fn create( internal_port: p.internal_port, routing: Some(if let Some(routing) = p.routing { match *routing { - models::GamesServersPortRouting { + models::ServersPortRouting { game_guard: Some(_), host: None, } => dynamic_servers::server_create::port::Routing::GameGuard( @@ -99,13 +96,13 @@ pub async fn create( protocol: backend::ds::GameGuardProtocol::api_from(p.protocol) as i32, }, ), - models::GamesServersPortRouting { + models::ServersPortRouting { game_guard: None, host: Some(_), } => dynamic_servers::server_create::port::Routing::Host(backend::ds::HostRouting { protocol: backend::ds::HostProtocol::api_try_from(p.protocol)? as i32, }), - models::GamesServersPortRouting { .. } => { + models::ServersPortRouting { .. } => { bail_with!(SERVERS_MUST_SPECIFY_ROUTING_TYPE) } } @@ -120,7 +117,7 @@ pub async fn create( .await? .server; - Ok(models::GamesServersCreateServerResponse { + Ok(models::ServersCreateServerResponse { server: Box::new(unwrap!(server).api_try_into()?), }) } @@ -153,7 +150,7 @@ pub async fn destroy( // MARK: GET /games/{}/servers #[derive(Debug, Clone, Serialize, Deserialize)] pub struct ListQuery { - tags: Option, + tags_json: Option, } pub async fn list_servers( @@ -161,12 +158,12 @@ pub async fn list_servers( game_id: Uuid, _watch_index: WatchIndexQuery, query: ListQuery, -) -> GlobalResult { +) -> GlobalResult { ctx.auth().check_game(ctx.op_ctx(), game_id, true).await?; let list_res = op!([ctx] ds_server_list_for_game { game_id: Some(game_id.into()), - tags: query.tags.as_deref().map_or(Ok(HashMap::new()), serde_json::from_str)?, + tags: query.tags_json.as_deref().map_or(Ok(HashMap::new()), serde_json::from_str)?, }) .await?; @@ -179,10 +176,10 @@ pub async fn list_servers( .servers .into_iter() .map(|server| { - let server = models::GamesServersServer::api_try_from(server)?; + let server = models::ServersServer::api_try_from(server)?; Ok(server) }) .collect::>>()?; - Ok(models::GamesServersListServersResponse { servers }) + Ok(models::ServersListServersResponse { servers }) } diff --git a/svc/api/servers/tests/basic.rs b/svc/api/servers/tests/basic.rs index 74f6558c2c..67e3846832 100644 --- a/svc/api/servers/tests/basic.rs +++ b/svc/api/servers/tests/basic.rs @@ -148,24 +148,24 @@ async fn create_http() -> GlobalResult<()> { let ctx_config = ctx.config(ctx.ns_auth_token.clone())?; - let res = games_servers_api::games_servers_create( + servers_api::servers_create( &ctx_config, &ctx.game_id_str, - models::GamesServersCreateServerRequest { + models::ServersCreateServerRequest { arguments: None, - datacenter: ctx.datacenter_id.to_string(), + datacenter: ctx.datacenter_id, environment: Some(HashMap::new()), - image_id: ctx.image_id, + image: ctx.image_id, kill_timeout: Some(0), webhook_url: None, tags: None, - network: Box::new(models::GamesServersCreateServerNetworkRequest { - mode: Some(models::GamesServersNetworkMode::Bridge), + network: Box::new(models::ServersCreateServerNetworkRequest { + mode: Some(models::ServersNetworkMode::Bridge), ports: vec![( "testing2".to_string(), - models::GamesServersCreateServerPortRequest { - protocol: models::GamesServersPortProtocol::Http, - routing: Some(Box::new(models::GamesServersPortRouting { + models::ServersCreateServerPortRequest { + protocol: models::ServersPortProtocol::Http, + routing: Some(Box::new(models::ServersPortRouting { game_guard: Some(serde_json::Value::Object(serde_json::Map::new())), host: None, })), @@ -176,12 +176,13 @@ async fn create_http() -> GlobalResult<()> { .into_iter() .collect(), }), - resources: Box::new(models::GamesServersResources { + resources: Box::new(models::ServersResources { cpu: 100, memory: 200, }), }, - ); + ) + .await?; Ok(()) } @@ -192,24 +193,24 @@ async fn list_builds_with_tags() -> GlobalResult<()> { let ctx_config = ctx.config(ctx.ns_auth_token.clone())?; - let res = games_servers_api::games_servers_create( + servers_api::servers_create( &ctx_config, &ctx.game_id_str, - models::GamesServersCreateServerRequest { + models::ServersCreateServerRequest { arguments: None, - datacenter: ctx.datacenter_id.to_string(), + datacenter: ctx.datacenter_id, environment: Some(HashMap::new()), - image_id: ctx.image_id, + image: ctx.image_id, kill_timeout: Some(0), webhook_url: None, tags: None, - network: Box::new(models::GamesServersCreateServerNetworkRequest { - mode: Some(models::GamesServersNetworkMode::Bridge), + network: Box::new(models::ServersCreateServerNetworkRequest { + mode: Some(models::ServersNetworkMode::Bridge), ports: vec![( "testing2".to_string(), - models::GamesServersCreateServerPortRequest { - protocol: models::GamesServersPortProtocol::Http, - routing: Some(Box::new(models::GamesServersPortRouting { + models::ServersCreateServerPortRequest { + protocol: models::ServersPortProtocol::Http, + routing: Some(Box::new(models::ServersPortRouting { game_guard: Some(serde_json::Value::Object(serde_json::Map::new())), host: None, })), @@ -220,12 +221,13 @@ async fn list_builds_with_tags() -> GlobalResult<()> { .into_iter() .collect(), }), - resources: Box::new(models::GamesServersResources { + resources: Box::new(models::ServersResources { cpu: 100, memory: 200, }), }, - ); + ) + .await?; Ok(()) } diff --git a/svc/pkg/ds/worker/src/workers/mod.rs b/svc/pkg/ds/worker/src/workers/mod.rs index eee768e610..0e6d4981bf 100644 --- a/svc/pkg/ds/worker/src/workers/mod.rs +++ b/svc/pkg/ds/worker/src/workers/mod.rs @@ -85,7 +85,7 @@ pub async fn webhook_call( // Example of a JSON payload let payload = serde_json::json!({ - "message": match rivet_api::models::GamesServersServer::api_try_from(server.clone()) { + "message": match rivet_api::models::ServersServer::api_try_from(server.clone()) { Ok(server) => server, Err(err) => { tracing::error!(?err, "Could not convert server to API");